rescue.vue 22 KB

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