rescue.vue 21 KB

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