rescue.vue 22 KB

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