rescue.vue 22 KB

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