rescue.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  1. <template>
  2. <view class="box">
  3. <map :latitude="latitude"
  4. :longitude="longitude" :markers="covers"
  5. @poitap="tapfn" class="mapbox"
  6. :include-points="points" ></map><!-- @regionchange="regionchangefn" :style="{height:mapHeight + 'px'}" -->
  7. <view class="contBox" >
  8. <view class="tab">
  9. <view class="tabLine" :class="{tabActive:tabIndex==0}" @click="tabClick(0)">现在</view>
  10. <view class="tabLine" :class="{tabActive:tabIndex==1}" @click="tabClick(1)">预约</view>
  11. </view>
  12. <view class="timeBox" v-if="tabIndex==1" @click="openDatetimePicker">
  13. <view class="time">{{yytime?yytime:'预约救援时间'}}</view>
  14. <image src="../../static/img/little_rightArrow.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
  15. </view>
  16. <view class="typeBox">
  17. <view class="box2" @click="typeClick(1)" :class="{typeActive:typeIndex==1}">
  18. <image src="../../static/img/icon_dadian_N.png" mode="" class="typeImg"></image>
  19. <view class="title">搭电</view>
  20. </view>
  21. <view class="box2" @click="typeClick(2)" :class="{typeActive:typeIndex==2}">
  22. <image src="../../static/img/icon_tuoche_N.png" mode="" class="typeImg"></image>
  23. <view class="title">拖车</view>
  24. </view>
  25. <view class="box2" @click="typeClick(3)" :class="{typeActive:typeIndex==3}">
  26. <image src="../../static/img/icon_luntai_N.png" mode="" class="typeImg"></image>
  27. <view class="title">换胎</view>
  28. </view>
  29. <view class="box2" @click="typeClick(4)" :class="{typeActive:typeIndex==4}">
  30. <image src="../../static/timg/icon_luntai_def.png" mode="" class="typeImg"></image>
  31. <view class="title">未知原因</view>
  32. </view>
  33. </view>
  34. <view class="price">服务费用 {{helpPrice}}</view>
  35. <!-- <view class="shopBox">
  36. <view class="left">
  37. <view class="graypoint"></view>
  38. <view class="leftTitle">门店</view>
  39. <view class="content">{{shopInfo.shopName}}</view>
  40. </view>
  41. <image src="../../static/img/little_rightArrow.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
  42. </view> -->
  43. <view class="shopBox" @click="startBtn">
  44. <view class="left">
  45. <view class="graypoint"></view>
  46. <view class="leftTitle">位置</view>
  47. <view class="content">{{currentAddress}}</view>
  48. </view>
  49. <image src="../../static/img/little_rightArrow.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
  50. </view>
  51. <view class="shopBox" @click="endBtn" v-if="typeIndex==2">
  52. <view class="left">
  53. <view class="graypoint"></view>
  54. <view class="leftTitle">终点</view>
  55. <view class="content" v-if="endAddress">{{endAddress}}</view>
  56. <view class="Nocontent" v-else>请选择</view>
  57. </view>
  58. <image src="../../static/img/little_rightArrow.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
  59. </view>
  60. </view>
  61. <view class="bottomView">
  62. <view class="sure" @click="sure">确定</view>
  63. </view>
  64. <w-picker
  65. :visible.sync="visible"
  66. mode="date"
  67. startYear="2023"
  68. endYear="2029"
  69. value="2020-04-08 13:18"
  70. :current="true"
  71. fields="minute"
  72. @confirm="onConfirm($event,'date')"
  73. @cancel="onCancel"
  74. :disabled-after="false"
  75. ref="picker"
  76. ></w-picker>
  77. <!-- 手机号授权 -->
  78. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  79. <view class="authorizCont" @click.stop="">
  80. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  81. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  82. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  83. </view>
  84. <view style="text-align: center;padding-top: 56rpx;">
  85. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  86. </view>
  87. </view>
  88. </view>
  89. </template>
  90. <script>
  91. import wPicker from "@/components/w-picker/w-picker.vue";
  92. import QQMapWX from '@/utils/qqmap-wx-jssdk.js'
  93. export default {
  94. components: {
  95. wPicker
  96. },
  97. data() {
  98. return {
  99. latitude: '',
  100. longitude: '',
  101. covers: [
  102. // {
  103. // latitude: 39.909,
  104. // longitude: 116.39742,
  105. // iconPath: '../../static/img/icon_qidian.png'
  106. // }, {
  107. // latitude: 39.90,
  108. // longitude: 116.39,
  109. // iconPath: '../../static/img/icon_zhongdian.png'
  110. // },
  111. ],
  112. tabIndex: 0,
  113. tMap:'',
  114. mapHeight:200,
  115. currentAddress:'',
  116. endAddress:'',
  117. points: [],
  118. endLat:'',
  119. endLng:'',
  120. distance:'',
  121. time:'',
  122. typeIndex:1,
  123. shopInfo:'',
  124. shopList:'',
  125. visible:false,
  126. yytime:'',
  127. userInfo:'',
  128. ext:'',
  129. wxOpenData:'',
  130. authorizShow:false,
  131. shopid:'',
  132. msg:'',
  133. helpPrice:'',
  134. helptime:'',
  135. }
  136. },
  137. onLoad() {
  138. var that = this;
  139. this.userInfo=this.$store.state.userInfo;
  140. this.ext=this.$common.getExtStoreId();
  141. if(this.userInfo){
  142. }else{
  143. this.$common.automaticlogin().then(val => {
  144. this.userInfo=this.$store.state.userInfo;
  145. this.wxOpenData=this.$store.state.wxOpenData;
  146. if(!this.userInfo){
  147. this.authorizShow=true
  148. }
  149. })
  150. }
  151. //this.queryRescue()
  152. //return false;
  153. const tMap = new QQMapWX({
  154. key: 'L2GBZ-CIS6J-HRFFV-K5LO6-QROT7-BQFXZ' //开发者密钥 //这里要换成自己的key
  155. });
  156. this.tMap=tMap
  157. // uni.getSystemInfo({
  158. // success: (res) => {
  159. // this.mapHeight = res.windowHeight *2 - 664 - 120
  160. // }
  161. // })
  162. uni.getLocation({
  163. type: 'gcj02',
  164. success: function (res) {
  165. console.log('当前位置的经度:' + res.longitude);
  166. console.log('当前位置的纬度:' + res.latitude);
  167. that.latitude=res.latitude;
  168. that.longitude=res.longitude;
  169. //that.getShopInfo()
  170. var obj={
  171. latitude: that.latitude,
  172. longitude: that.longitude,
  173. iconPath: '../../static/img/icon_qidian.png',
  174. width:25,
  175. height:39
  176. }
  177. that.covers.push(obj);
  178. that.points.push({
  179. longitude: that.longitude,
  180. latitude:that.latitude
  181. })
  182. //that.calculateDistance()
  183. //that.queryhelpshopList()
  184. that.tMap.reverseGeocoder({
  185. location: {
  186. latitude: that.latitude,
  187. longitude: that.longitude
  188. },
  189. success: function(res) {
  190. console.log(res)
  191. that.currentAddress=res.result.formatted_addresses.recommend
  192. },
  193. fail: function(res) {
  194. console.log(res);
  195. },
  196. })
  197. }
  198. });
  199. },
  200. methods: {
  201. decryptPhoneNumber: function(e) {
  202. console.log(e);
  203. this.code=e.detail.code
  204. this.wxPhoneLogin()
  205. this.authorizShow=false;
  206. },
  207. wxPhoneLogin(){
  208. var that=this;
  209. this.$http('miniApp2/sys/wxPhoneLogin', {
  210. appId:this.ext.appId,
  211. unionId:this.ext.unionId,
  212. code:this.code,
  213. openId:this.wxOpenData.openid
  214. },'POST').then(res => {
  215. var data = res.data;
  216. if(data.loginInfo){
  217. this.userInfo=data.loginInfo.openUser;
  218. this.wxOpenData=data.loginInfo;
  219. this.$store.commit('mutationswxOpenData', data)
  220. this.$store.commit('mutationsuserInfo', this.userInfo)
  221. //this.getData()
  222. }
  223. })
  224. },
  225. getShopInfo(){
  226. this.$http('openShopHelpSheetOrder/getShopInfo', {
  227. lat:this.latitude,
  228. lng:this.longitude
  229. }, 'GET').then(res => {
  230. this.shopInfo=res.data.shopInfo;
  231. this.helpPrice=res.data.shopHelpSetting.helpPrice;
  232. this.msg=res.msg
  233. })
  234. },
  235. onConfirm(e){
  236. console.log(e)
  237. this.yytime=e.result
  238. this.helptime=e.obj.hour+':'+e.obj.minute
  239. },
  240. openDatetimePicker() {
  241. this.$refs.picker.show()
  242. },
  243. // 关闭picker
  244. onCancel() {
  245. this.$refs.picker.hide()
  246. },
  247. queryRescue(){
  248. uni.showLoading({
  249. title: '加载中'
  250. })
  251. this.$http('openEmergencyRescue/queryRescue', {}, 'GET').then(res => {
  252. uni.hideLoading();
  253. //this.shopList = res.data
  254. })
  255. },
  256. queryhelpshopList(){
  257. uni.showLoading({
  258. title: '加载中'
  259. })
  260. this.$http('openEmergencyRescue/queryhelpshopList', {}, 'GET').then(res => {
  261. uni.hideLoading();
  262. this.shopList = res.data
  263. })
  264. },
  265. sure(){
  266. if(this.tabIndex==0){
  267. const yy = new Date().getFullYear()
  268. const MM = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1)
  269. const dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
  270. const HH = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours()
  271. const mm = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes()
  272. //const ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds()
  273. var time= yy + '-' + MM + '-' + dd + ' ' + HH + ':' + mm //+ ':' + ss
  274. console.log(time)
  275. this.helptime=HH + ':' + mm
  276. //return false;
  277. }else{
  278. if(this.yytime==''){
  279. uni.showToast({
  280. title: '请选择预约时间',
  281. icon:'none',
  282. duration: 3000
  283. });
  284. return false;
  285. }
  286. var time=this.yytime
  287. }
  288. if(this.typeIndex==2){
  289. if(this.endAddress==''){
  290. uni.showToast({
  291. title: '请选择终点',
  292. icon:'none',
  293. duration: 3000
  294. });
  295. return false;
  296. }
  297. }
  298. //console.log(time)
  299. this.$http('openShopHelpSheetOrder/getShopInfo', {
  300. lat:this.latitude,
  301. lng:this.longitude,
  302. type:this.typeIndex,
  303. helptime:this.helptime
  304. }, 'GET').then(res => {
  305. if(res.code==0){
  306. this.shopInfo=res.data.shopInfo;
  307. this.helpPrice=res.data.shopHelpSetting.helpPrice;
  308. this.msg=res.msg
  309. }else{
  310. this.shopInfo=''
  311. }
  312. /* uni.redirectTo({
  313. url:'../subPack/rescueOrderOrderDetail?id='
  314. }) */
  315. if(!this.shopInfo){
  316. uni.showToast({
  317. title: '暂未找到救援门店',
  318. icon:'none',
  319. duration: 3000
  320. });
  321. return false
  322. }
  323. var orderType=1;
  324. if(this.tabIndex==1){
  325. orderType=2
  326. }
  327. uni.navigateTo({
  328. url:'confirmRescue?lat='+this.latitude+"&lng="+this.longitude+"&shopId="+this.shopInfo.ID+'&shopName='+this.shopInfo.ShopName+'&type='+this.typeIndex+'&time='+time+'&currentAddress='+this.currentAddress+'&endAddress='+this.endAddress+'&endLat='+this.endLat+'&endLng='+this.endLng+'&orderType='+orderType
  329. })
  330. })
  331. },
  332. startBtn(){
  333. var that=this;
  334. uni.chooseLocation({
  335. success: function (res) {
  336. console.log(res);
  337. that.currentAddress=res.name
  338. // console.log('位置名称:' + res.name);
  339. // console.log('详细地址:' + res.address);
  340. // console.log('纬度:' + res.latitude);
  341. // console.log('经度:' + res.longitude);
  342. that.longitude=res.longitude
  343. that.latitude=res.latitude//.toFixed(5)
  344. var obj={
  345. latitude: that.latitude,
  346. longitude: that.longitude,
  347. iconPath: '../../static/img/icon_qidian.png',
  348. width:25,
  349. height:39
  350. }
  351. var obj2 = {
  352. longitude: that.longitude,
  353. latitude:that.latitude
  354. }
  355. that.covers[0]=obj;
  356. that.points[0]=obj2;
  357. //that.getShopInfo()
  358. //that.calculateDistance()
  359. console.log(that.covers)
  360. },
  361. fail(err){
  362. console.log(err)
  363. }
  364. })
  365. },
  366. endBtn(){
  367. var that=this;
  368. uni.getSetting({
  369. success(res) {
  370. if (!res.authSetting['scope.userLocation']) {
  371. uni.authorize({
  372. scope: 'scope.userLocation',
  373. success() {
  374. that.chooseLocation()
  375. return;
  376. }
  377. })
  378. }else{
  379. that.chooseLocation()
  380. return;
  381. }
  382. }
  383. })
  384. },
  385. chooseLocation(){
  386. var that=this;
  387. uni.chooseLocation({
  388. success: function (res) {
  389. console.log(res);
  390. that.endAddress=res.name
  391. // console.log('位置名称:' + res.name);
  392. // console.log('详细地址:' + res.address);
  393. // console.log('纬度:' + res.latitude);
  394. // console.log('经度:' + res.longitude);
  395. var longitude=res.longitude
  396. var latitude=res.latitude
  397. var obj={
  398. latitude: latitude,
  399. longitude: longitude,
  400. iconPath: '../../static/img/icon_zhongdian.png',
  401. width:25,
  402. height:39,
  403. // label:{
  404. // content:'文本'
  405. // },
  406. callout: { //自定义标记点上方的气泡窗口 点击有效
  407. content: '拖到这里', //文本
  408. color: '#ffffff', //文字颜色
  409. fontSize: 15, //文本大小
  410. borderRadius: 15, //边框圆角
  411. padding: '10',
  412. bgColor: '#FF0000', //背景颜色
  413. display: 'ALWAYS', //常显
  414. }
  415. }
  416. var obj2={
  417. longitude: longitude,
  418. latitude:latitude
  419. }
  420. that.endLat=latitude;
  421. that.endLng=longitude
  422. if(that.covers.length>1){
  423. that.covers[1]=obj;
  424. that.points[1]=obj2;
  425. }else{
  426. that.covers.push(obj);
  427. that.points.push(obj2)
  428. }
  429. //console.log(that.covers)
  430. //that.calculateDistance()
  431. },
  432. fail(err){
  433. console.log(err)
  434. }
  435. })
  436. },
  437. //计算距离
  438. calculateDistance(){
  439. //调用距离计算接口
  440. var that=this;
  441. this.tMap.calculateDistance({
  442. mode: 'driving',//可选值:'driving'(驾车)、'walking'(步行),不填默认:'walking',可不填
  443. //from参数不填默认当前地址
  444. //获取表单提交的经纬度并设置from和to参数(示例为string格式)
  445. from: {
  446. latitude: that.shopInfo.lat,
  447. longitude: that.shopInfo.lng,
  448. }, //若起点有数据则采用起点坐标,若为空默认当前地址
  449. to:[
  450. {
  451. latitude: that.latitude,
  452. longitude: that.longitude
  453. }
  454. ] , //终点坐标
  455. success: function(res) {//成功后的回调
  456. console.log(res);
  457. that.distance=res.result.elements[0].distance;
  458. that.time = res.result.elements[0].duration/60;
  459. that.time=Math.ceil(that.time)
  460. that.setTime()
  461. },
  462. fail: function(error) {
  463. console.error(error);
  464. },
  465. complete: function(res) {
  466. console.log(res);
  467. }
  468. });
  469. },
  470. setTime(){
  471. var obj={
  472. latitude: this.latitude,
  473. longitude: this.longitude,
  474. iconPath: '../../static/img/icon_qidian.png',
  475. width:25,
  476. height:39,
  477. callout: { //自定义标记点上方的气泡窗口 点击有效
  478. content: '约'+this.time+'分钟到达', //文本
  479. color: '#ffffff', //文字颜色
  480. fontSize: 15, //文本大小
  481. borderRadius: 15, //边框圆角
  482. padding: '10',
  483. bgColor: '#3F90F7', //背景颜色
  484. display: 'ALWAYS', //常显
  485. }
  486. }
  487. this.covers[0]=obj;
  488. },
  489. regionchangefn(e){
  490. console.log(e)
  491. var that=this;
  492. if(e.detail.centerLocation){
  493. var latitude=e.detail.centerLocation.latitude;
  494. var longitude=e.detail.centerLocation.longitude;
  495. var obj={
  496. latitude: latitude,
  497. longitude: longitude,
  498. iconPath: '../../static/img/icon_qidian.png',
  499. width:25,
  500. height:39
  501. }
  502. this.covers=[];
  503. this.covers.push(obj)
  504. }
  505. },
  506. tapfn(e){
  507. //点击获取位置
  508. return false;
  509. console.log(e);
  510. var that=this;
  511. var latitude=e.detail.latitude;
  512. var longitude=e.detail.longitude;
  513. var obj={
  514. latitude: latitude,
  515. longitude: longitude,
  516. iconPath: '../../static/img/icon_qidian.png',
  517. width:25,
  518. height:39
  519. }
  520. this.covers=[];
  521. this.covers.push(obj)
  522. this.tMap.reverseGeocoder({
  523. location: {
  524. latitude: latitude,
  525. longitude: longitude
  526. },
  527. success: function(res) {
  528. //console.log(res)
  529. that.currentAddress=res.result.formatted_addresses.recommend;
  530. //console.log(this.currentAddress)
  531. //this.$set(this, 'currentAddress', this.currentAddress)
  532. },
  533. fail: function(res) {
  534. console.log(res);
  535. },
  536. })
  537. },
  538. tabClick(num) {
  539. this.tabIndex = num;
  540. },
  541. typeClick(num){
  542. this.typeIndex=num;
  543. if(num!=2){
  544. this.endLat='';
  545. this.endLng='';
  546. this.endAddress='';
  547. this.covers.splice(1,1);
  548. }
  549. }
  550. }
  551. }
  552. </script>
  553. <style scoped>
  554. .box {
  555. width: 100vw;
  556. min-height: 100vh;
  557. background-color: #FFFFFF;
  558. }
  559. map {
  560. width: 750rpx;
  561. height: calc(100vh - 664rpx - 120rpx);
  562. }
  563. .contBox {
  564. width: 100%;
  565. height: 664rpx;
  566. }
  567. .tab {
  568. background: #FFFFFF;
  569. display: flex;
  570. justify-content: space-between;
  571. align-items: center;
  572. padding-left: 230rpx;
  573. padding-right: 230rpx;
  574. height: 92rpx;
  575. line-height: 60rpx;
  576. }
  577. .tabLine {
  578. font-size: 30rpx;
  579. color: #333333;
  580. text-align: center;
  581. padding: 0 10rpx;
  582. }
  583. .tabActive {
  584. color: #FF0000;
  585. font-weight: bold;
  586. border-bottom: 4rpx solid #FF0000;
  587. }
  588. .timeBox {
  589. padding-top: 20rpx;
  590. display: flex;
  591. justify-content: center;
  592. align-items: center;
  593. }
  594. .time {
  595. color: #959595;
  596. font-size: 24rpx;
  597. }
  598. .typeBox {
  599. padding: 30rpx 30rpx;
  600. display: flex;
  601. justify-content: space-between;
  602. }
  603. .box2 {
  604. display: flex;
  605. align-items: center;
  606. padding: 20rpx;
  607. background: #FFFFFF;
  608. height: 32rpx;
  609. border-radius: 10rpx;
  610. border: 2rpx solid #CCCCCC;
  611. }
  612. .typeImg {
  613. width: 34rpx;
  614. height: 34rpx;
  615. margin-right: 10rpx;
  616. }
  617. .title {
  618. height: 40rpx;
  619. font-size: 28rpx;
  620. font-weight: 400;
  621. color: #666666;
  622. line-height: 40rpx;
  623. }
  624. .price {
  625. padding-bottom: 30rpx;
  626. font-size: 24rpx;
  627. font-weight: 400;
  628. color: #D53533;
  629. text-align: center;
  630. }
  631. .shopBox {
  632. padding: 30rpx 24rpx;
  633. border-top: 1rpx solid #EEEEEE;
  634. display: flex;
  635. justify-content: space-between;
  636. align-items: center;
  637. }
  638. .left {
  639. display: flex;
  640. align-items: center;
  641. }
  642. .leftTitle{
  643. width: 56rpx;
  644. font-size: 28rpx;
  645. font-weight: 400;
  646. color: #666666;
  647. line-height: 40rpx;
  648. margin-left: 16rpx;
  649. margin-right: 30rpx;
  650. }
  651. .graypoint {
  652. width: 14rpx;
  653. height: 14rpx;
  654. background: #DDDDDD;
  655. border-radius: 7rpx;
  656. }
  657. .bluepoint {
  658. width: 14rpx;
  659. height: 14rpx;
  660. background: #3F90F7;
  661. border-radius: 7rpx;
  662. }
  663. .redpoint {
  664. width: 14rpx;
  665. height: 14rpx;
  666. background: #FF0000;
  667. border-radius: 7rpx;
  668. }
  669. .typeActive{
  670. background: #FF0000;
  671. }
  672. .typeActive .title{
  673. color: #FFFFFF !important;
  674. }
  675. .bottomView {
  676. border-top: 1rpx solid #EEEEEE;
  677. background-color: #FFFFFF;
  678. width: 100%;
  679. height: 120rpx;
  680. position: fixed;
  681. bottom: 0rpx;
  682. /* padding-bottom: constant(safe-area-inset-bottom);
  683. padding-bottom: env(safe-area-inset-bottom); */
  684. }
  685. .content{
  686. width: 540rpx;
  687. font-size: 30rpx;
  688. word-wrap: break-word; /*强制换行*/
  689. overflow: hidden; /*超出隐藏*/
  690. text-overflow: ellipsis;/*隐藏后添加省略号*/
  691. white-space: nowrap;/*强制不换行*/
  692. }
  693. .Nocontent{
  694. font-size: 30rpx;
  695. color: #999999;
  696. }
  697. .sure {
  698. background-color: #D53533;
  699. margin: 23rpx 30rpx;
  700. height: 74rpx;
  701. border-radius: 37rpx;
  702. color: #FFFFFF;
  703. font-size: 30rpx;
  704. font-weight: bold;
  705. text-align: center;
  706. line-height: 74rpx;
  707. }
  708. .authorizBox{
  709. width: 100vw;
  710. height: 100vh;
  711. background: rgba(0, 0, 0, 0.5);
  712. position: fixed;
  713. top: 0;
  714. left: 0;
  715. }
  716. .authorizCont{
  717. margin-top: 30vh;
  718. width: 564rpx;
  719. height: 408rpx;
  720. background: #FFFFFF;
  721. border-radius: 24rpx;
  722. margin-left: 93rpx;
  723. position: relative;
  724. }
  725. .authorizCloseImg{
  726. width: 62rpx;
  727. height: 62rpx;
  728. }
  729. .sqLogoBox{
  730. width: 180rpx;
  731. height: 180rpx;
  732. background: #FFFFFF;
  733. border-radius: 90rpx;
  734. text-align: center;
  735. position: absolute;
  736. top: -50rpx;
  737. left: 192rpx;
  738. }
  739. .authorizName{
  740. color: #333333;
  741. line-height: 42rpx;
  742. font-size: 30rpx;
  743. text-align: center;
  744. padding-top: 58rpx;
  745. }
  746. .authorizMs{
  747. color: #999999;
  748. line-height: 36rpx;
  749. font-size: 26rpx;
  750. width: 452rpx;
  751. padding-top: 24rpx;
  752. text-align: center;
  753. margin-left: 56rpx;
  754. }
  755. .authorizContbutton{
  756. width: 422rpx;
  757. height: 88rpx;
  758. background: #D53533;
  759. border-radius: 44rpx;
  760. line-height: 88rpx;
  761. text-align: center;
  762. font-size:30rpx;
  763. color: #FFFFFF;
  764. margin-top: 62rpx;
  765. margin-left:71rpx;
  766. }
  767. </style>