rescue.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  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. })
  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.userInfo) {
  295. } else {
  296. this.authorizShow = true;
  297. return false;
  298. }
  299. if(this.tabIndex==0){
  300. const yy = new Date().getFullYear()
  301. const MM = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1)
  302. const dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
  303. const HH = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours()
  304. const mm = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes()
  305. //const ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds() : new Date().getSeconds()
  306. var time= yy + '-' + MM + '-' + dd + ' ' + HH + ':' + mm //+ ':' + ss
  307. console.log(time)
  308. this.helptime=HH + ':' + mm
  309. //return false;
  310. }else{
  311. if(this.yytime==''){
  312. uni.showToast({
  313. title: '请选择预约时间',
  314. icon:'none',
  315. duration: 3000
  316. });
  317. return false;
  318. }
  319. var time=this.yytime
  320. }
  321. if(this.typeIndex==2){
  322. if(this.endAddress==''){
  323. uni.showToast({
  324. title: '请选择终点',
  325. icon:'none',
  326. duration: 3000
  327. });
  328. return false;
  329. }
  330. }
  331. //console.log(time)
  332. this.$http('openShopHelpSheetOrder/getShopInfo', {
  333. lat:this.latitude,
  334. lng:this.longitude,
  335. type:this.typeIndex,
  336. helptime:this.helptime
  337. }, 'GET').then(res => {
  338. if(res.code==0){
  339. this.shopInfo=res.data.shopInfo;
  340. this.helpPrice=res.data.shopHelpSetting.helpPrice;
  341. this.msg=res.msg
  342. }else{
  343. this.shopInfo=''
  344. }
  345. /* uni.redirectTo({
  346. url:'../subPack/rescueOrderOrderDetail?id='
  347. }) */
  348. if(!this.shopInfo){
  349. uni.showToast({
  350. title: res.data.msg,
  351. icon:'none',
  352. duration: 3000
  353. });
  354. return false
  355. }
  356. var orderType=1;
  357. if(this.tabIndex==1){
  358. orderType=2
  359. }
  360. uni.navigateTo({
  361. 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
  362. })
  363. })
  364. },
  365. startBtn(){
  366. var that=this;
  367. uni.chooseLocation({
  368. success: function (res) {
  369. console.log(res);
  370. that.currentAddress=res.name
  371. // console.log('位置名称:' + res.name);
  372. // console.log('详细地址:' + res.address);
  373. // console.log('纬度:' + res.latitude);
  374. // console.log('经度:' + res.longitude);
  375. that.longitude=res.longitude
  376. that.latitude=res.latitude//.toFixed(5)
  377. var obj={
  378. latitude: that.latitude,
  379. longitude: that.longitude,
  380. iconPath: '../../static/img/icon_qidian.png',
  381. width:25,
  382. height:39
  383. }
  384. var obj2 = {
  385. longitude: that.longitude,
  386. latitude:that.latitude
  387. }
  388. that.covers[0]=obj;
  389. that.points[0]=obj2;
  390. //that.getShopInfo()
  391. //that.calculateDistance()
  392. console.log(that.covers)
  393. },
  394. fail(err){
  395. console.log(err)
  396. }
  397. })
  398. },
  399. endBtn(){
  400. var that=this;
  401. uni.getSetting({
  402. success(res) {
  403. if (!res.authSetting['scope.userLocation']) {
  404. uni.authorize({
  405. scope: 'scope.userLocation',
  406. success() {
  407. that.chooseLocation()
  408. return;
  409. }
  410. })
  411. }else{
  412. that.chooseLocation()
  413. return;
  414. }
  415. }
  416. })
  417. },
  418. chooseLocation(){
  419. var that=this;
  420. uni.chooseLocation({
  421. success: function (res) {
  422. console.log(res);
  423. that.endAddress=res.name
  424. // console.log('位置名称:' + res.name);
  425. // console.log('详细地址:' + res.address);
  426. // console.log('纬度:' + res.latitude);
  427. // console.log('经度:' + res.longitude);
  428. var longitude=res.longitude
  429. var latitude=res.latitude
  430. var obj={
  431. latitude: latitude,
  432. longitude: longitude,
  433. iconPath: '../../static/img/icon_zhongdian.png',
  434. width:25,
  435. height:39,
  436. // label:{
  437. // content:'文本'
  438. // },
  439. callout: { //自定义标记点上方的气泡窗口 点击有效
  440. content: '拖到这里', //文本
  441. color: '#ffffff', //文字颜色
  442. fontSize: 15, //文本大小
  443. borderRadius: 15, //边框圆角
  444. padding: '10',
  445. bgColor: '#FF0000', //背景颜色
  446. display: 'ALWAYS', //常显
  447. }
  448. }
  449. var obj2={
  450. longitude: longitude,
  451. latitude:latitude
  452. }
  453. that.endLat=latitude;
  454. that.endLng=longitude
  455. if(that.covers.length>1){
  456. that.covers[1]=obj;
  457. that.points[1]=obj2;
  458. }else{
  459. that.covers.push(obj);
  460. that.points.push(obj2)
  461. }
  462. //console.log(that.covers)
  463. //that.calculateDistance()
  464. },
  465. fail(err){
  466. console.log(err)
  467. }
  468. })
  469. },
  470. //计算距离
  471. calculateDistance(){
  472. //调用距离计算接口
  473. var that=this;
  474. this.tMap.calculateDistance({
  475. mode: 'driving',//可选值:'driving'(驾车)、'walking'(步行),不填默认:'walking',可不填
  476. //from参数不填默认当前地址
  477. //获取表单提交的经纬度并设置from和to参数(示例为string格式)
  478. from: {
  479. latitude: that.shopInfo.lat,
  480. longitude: that.shopInfo.lng,
  481. }, //若起点有数据则采用起点坐标,若为空默认当前地址
  482. to:[
  483. {
  484. latitude: that.latitude,
  485. longitude: that.longitude
  486. }
  487. ] , //终点坐标
  488. success: function(res) {//成功后的回调
  489. console.log(res);
  490. that.distance=res.result.elements[0].distance;
  491. that.time = res.result.elements[0].duration/60;
  492. that.time=Math.ceil(that.time)
  493. that.setTime()
  494. },
  495. fail: function(error) {
  496. console.error(error);
  497. },
  498. complete: function(res) {
  499. console.log(res);
  500. }
  501. });
  502. },
  503. setTime(){
  504. var obj={
  505. latitude: this.latitude,
  506. longitude: this.longitude,
  507. iconPath: '../../static/img/icon_qidian.png',
  508. width:25,
  509. height:39,
  510. callout: { //自定义标记点上方的气泡窗口 点击有效
  511. content: '约'+this.time+'分钟到达', //文本
  512. color: '#ffffff', //文字颜色
  513. fontSize: 15, //文本大小
  514. borderRadius: 15, //边框圆角
  515. padding: '10',
  516. bgColor: '#3F90F7', //背景颜色
  517. display: 'ALWAYS', //常显
  518. }
  519. }
  520. this.covers[0]=obj;
  521. },
  522. regionchangefn(e){
  523. console.log(e)
  524. var that=this;
  525. if(e.detail.centerLocation){
  526. var latitude=e.detail.centerLocation.latitude;
  527. var longitude=e.detail.centerLocation.longitude;
  528. var obj={
  529. latitude: latitude,
  530. longitude: longitude,
  531. iconPath: '../../static/img/icon_qidian.png',
  532. width:25,
  533. height:39
  534. }
  535. this.covers=[];
  536. this.covers.push(obj)
  537. }
  538. },
  539. tapfn(e){
  540. //点击获取位置
  541. return false;
  542. console.log(e);
  543. var that=this;
  544. var latitude=e.detail.latitude;
  545. var longitude=e.detail.longitude;
  546. var obj={
  547. latitude: latitude,
  548. longitude: longitude,
  549. iconPath: '../../static/img/icon_qidian.png',
  550. width:25,
  551. height:39
  552. }
  553. this.covers=[];
  554. this.covers.push(obj)
  555. this.tMap.reverseGeocoder({
  556. location: {
  557. latitude: latitude,
  558. longitude: longitude
  559. },
  560. success: function(res) {
  561. //console.log(res)
  562. that.currentAddress=res.result.formatted_addresses.recommend;
  563. //console.log(this.currentAddress)
  564. //this.$set(this, 'currentAddress', this.currentAddress)
  565. },
  566. fail: function(res) {
  567. console.log(res);
  568. },
  569. })
  570. },
  571. tabClick(num) {
  572. this.tabIndex = num;
  573. },
  574. typeClick(num){
  575. this.typeIndex=num;
  576. if(num!=2){
  577. this.endLat='';
  578. this.endLng='';
  579. this.endAddress='';
  580. this.covers.splice(1,1);
  581. }
  582. }
  583. }
  584. }
  585. </script>
  586. <style scoped>
  587. .box {
  588. width: 100vw;
  589. min-height: 100vh;
  590. background-color: #FFFFFF;
  591. }
  592. map {
  593. width: 750rpx;
  594. height: calc(100vh - 664rpx - 120rpx);
  595. }
  596. .contBox {
  597. width: 100%;
  598. height: 664rpx;
  599. }
  600. .tab {
  601. background: #FFFFFF;
  602. display: flex;
  603. justify-content: space-between;
  604. align-items: center;
  605. padding-left: 230rpx;
  606. padding-right: 230rpx;
  607. height: 92rpx;
  608. line-height: 60rpx;
  609. }
  610. .tabLine {
  611. font-size: 30rpx;
  612. color: #333333;
  613. text-align: center;
  614. padding: 0 10rpx;
  615. }
  616. .tabActive {
  617. color: #FF0000;
  618. font-weight: bold;
  619. border-bottom: 4rpx solid #FF0000;
  620. }
  621. .timeBox {
  622. padding-top: 20rpx;
  623. display: flex;
  624. justify-content: center;
  625. align-items: center;
  626. }
  627. .time {
  628. color: #959595;
  629. font-size: 24rpx;
  630. }
  631. .typeBox {
  632. padding: 30rpx 30rpx;
  633. display: flex;
  634. justify-content: space-between;
  635. }
  636. .box2 {
  637. display: flex;
  638. align-items: center;
  639. padding: 20rpx;
  640. background: #FFFFFF;
  641. height: 32rpx;
  642. border-radius: 10rpx;
  643. border: 2rpx solid #CCCCCC;
  644. }
  645. .typeImg {
  646. width: 34rpx;
  647. height: 34rpx;
  648. margin-right: 10rpx;
  649. }
  650. .title {
  651. height: 40rpx;
  652. font-size: 28rpx;
  653. font-weight: 400;
  654. color: #666666;
  655. line-height: 40rpx;
  656. }
  657. .price {
  658. padding-bottom: 30rpx;
  659. font-size: 24rpx;
  660. font-weight: 400;
  661. color: #D53533;
  662. text-align: center;
  663. }
  664. .shopBox {
  665. padding: 30rpx 24rpx;
  666. border-top: 1rpx solid #EEEEEE;
  667. display: flex;
  668. justify-content: space-between;
  669. align-items: center;
  670. }
  671. .left {
  672. display: flex;
  673. align-items: center;
  674. }
  675. .leftTitle{
  676. width: 56rpx;
  677. font-size: 28rpx;
  678. font-weight: 400;
  679. color: #666666;
  680. line-height: 40rpx;
  681. margin-left: 16rpx;
  682. margin-right: 30rpx;
  683. }
  684. .graypoint {
  685. width: 14rpx;
  686. height: 14rpx;
  687. background: #DDDDDD;
  688. border-radius: 7rpx;
  689. }
  690. .bluepoint {
  691. width: 14rpx;
  692. height: 14rpx;
  693. background: #3F90F7;
  694. border-radius: 7rpx;
  695. }
  696. .redpoint {
  697. width: 14rpx;
  698. height: 14rpx;
  699. background: #FF0000;
  700. border-radius: 7rpx;
  701. }
  702. .typeActive{
  703. background: #FF0000;
  704. }
  705. .typeActive .title{
  706. color: #FFFFFF !important;
  707. }
  708. .bottomView {
  709. border-top: 1rpx solid #EEEEEE;
  710. background-color: #FFFFFF;
  711. width: 100%;
  712. height: 120rpx;
  713. position: fixed;
  714. bottom: 0rpx;
  715. /* padding-bottom: constant(safe-area-inset-bottom);
  716. padding-bottom: env(safe-area-inset-bottom); */
  717. }
  718. .content{
  719. width: 540rpx;
  720. font-size: 30rpx;
  721. word-wrap: break-word; /*强制换行*/
  722. overflow: hidden; /*超出隐藏*/
  723. text-overflow: ellipsis;/*隐藏后添加省略号*/
  724. white-space: nowrap;/*强制不换行*/
  725. }
  726. .Nocontent{
  727. font-size: 30rpx;
  728. color: #999999;
  729. }
  730. .sure {
  731. background-color: #D53533;
  732. margin: 23rpx 30rpx;
  733. height: 74rpx;
  734. border-radius: 37rpx;
  735. color: #FFFFFF;
  736. font-size: 30rpx;
  737. font-weight: bold;
  738. text-align: center;
  739. line-height: 74rpx;
  740. }
  741. .authorizBox{
  742. width: 100vw;
  743. height: 100vh;
  744. background: rgba(0, 0, 0, 0.5);
  745. position: fixed;
  746. top: 0;
  747. left: 0;
  748. }
  749. .authorizCont{
  750. margin-top: 30vh;
  751. width: 564rpx;
  752. height: 408rpx;
  753. background: #FFFFFF;
  754. border-radius: 24rpx;
  755. margin-left: 93rpx;
  756. position: relative;
  757. }
  758. .authorizCloseImg{
  759. width: 62rpx;
  760. height: 62rpx;
  761. }
  762. .sqLogoBox{
  763. width: 180rpx;
  764. height: 180rpx;
  765. background: #FFFFFF;
  766. border-radius: 90rpx;
  767. text-align: center;
  768. position: absolute;
  769. top: -50rpx;
  770. left: 192rpx;
  771. }
  772. .authorizName{
  773. color: #333333;
  774. line-height: 42rpx;
  775. font-size: 30rpx;
  776. text-align: center;
  777. padding-top: 58rpx;
  778. }
  779. .authorizMs{
  780. color: #999999;
  781. line-height: 36rpx;
  782. font-size: 26rpx;
  783. width: 452rpx;
  784. padding-top: 24rpx;
  785. text-align: center;
  786. margin-left: 56rpx;
  787. }
  788. .authorizContbutton{
  789. width: 422rpx;
  790. height: 88rpx;
  791. background: #D53533;
  792. border-radius: 44rpx;
  793. line-height: 88rpx;
  794. text-align: center;
  795. font-size:30rpx;
  796. color: #FFFFFF;
  797. margin-top: 62rpx;
  798. margin-left:71rpx;
  799. }
  800. </style>