discountCardDetail.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. <template>
  2. <view class="box">
  3. <view style="width: 750rpx;height: 172rpx;" class="boxtop" :style="{background:'#'+themeColor}"></view>
  4. <view class="detailBg" v-if="detail">
  5. <view class="detailTop">
  6. <view class="leftB" v-if="detail.discountType==1">
  7. <view class="use">¥<span class="use2">{{detail.actMoney}}</span></view>
  8. <view class="tiaojian">{{detail.whereMoney!==0?'满'+detail.whereMoney+'元可用':'满任意金额可用'}}</view>
  9. </view>
  10. <view v-if="detail.discountType!=1" class="leftB" style="display: flex;align-items: center;justify-content: center;">
  11. <image src="http://dmsphoto.66km.com.cn/thFiles/5340A784-FEE2-43FA-8ED1-C509FADFDBED.png"
  12. mode="" style="width: 77rpx;height:48rpx;"></image>
  13. </view>
  14. <view class="centerB">
  15. <view class="name">
  16. <span class="djq" v-if="detail.discountType==1">代金券</span>
  17. <span class="djq" v-if="detail.discountType==2">商品券</span>
  18. <span class="djq" v-if="detail.discountType==3">服务券</span>
  19. <span>{{detail.actName}}</span>
  20. </view>
  21. <view class="time" v-if="detail.startTime">
  22. 有效期:{{detail.startTime.slice(0,10)}}至{{detail.endTime.slice(0,10)}}</view>
  23. <view class="time" v-else>有效期:领取后 <span v-if="detail.endOffsetDays">{{detail.endOffsetDays}}</span> 天
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="comtentBox">
  29. <view style="margin-bottom: 30rpx;">
  30. <view style="display: flex;justify-content: space-between;">
  31. <view class="titleBox">
  32. <image src="../../static/img/icon_youhui_red.png" mode="" class="redPoint"></image>
  33. <view class="title">适用门店</view>
  34. </view>
  35. <view v-if="detail.shopList.length" @click="spShopS" style="color: #666666;font-size: 24rpx;line-height: 24rpx;display: flex;">
  36. {{detail.shopList.length}}家门店通用
  37. <image src="../../static/img/little_rightArrow.png" mode="" style="width: 24rpx;height: 24rpx;"></image>
  38. </view>
  39. </view>
  40. <view v-if="detail.shopList.length" class="symendinaBox">
  41. <view class="shopline" >
  42. <view class="newdistance" v-if="detail.shopList[0].distance&&detail.shopList[0].distance!= '0.00'">
  43. <image src="../../static/img2/dh.png" mode="" class="dhImg"></image>
  44. <view style="padding-top: 6rpx;"><span >{{detail.shopList[0].distance}}km</span></view>
  45. </view>
  46. <view class="shoplineLeft">
  47. <image :src="detail.shopList[0].doorImg1" mode="" class="shopImg" v-if="detail.shopList[0].doorImg1"></image>
  48. <image :src="detail.shopList[0].doorImg2" mode="" class="shopImg" v-else-if="detail.shopList[0].doorImg2"></image>
  49. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  50. </view>
  51. <view class="shopright">
  52. <view style="width: 475rpx;">
  53. <view class="shopTop">
  54. <view class="shopName">{{detail.shopList[0].shopName}}</view>
  55. </view>
  56. </view>
  57. <view class="shopTime">营业时间:<span v-if="detail.shopList[0].startTime">{{detail.shopList[0].startTime}}</span> - <span
  58. v-if="detail.shopList[0].endTime">{{detail.shopList[0].endTime}}</span> </view>
  59. <view class="shopBottomLeft">
  60. <span class="shopaddress"
  61. v-if="detail.shopList[0].address">{{detail.shopList[0].provinceName}}{{detail.shopList[0].cityName}}{{detail.shopList[0].areaName}}{{detail.shopList[0].address}}</span>
  62. <!-- <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span> -->
  63. </view>
  64. <view class="shopdhBox">
  65. <view class="shopcall" @click.stop="goMap(detail.shopList[0])">
  66. <image class="shopcallIcon" src="../../static/img2/dhjt.png" mode=""></image>
  67. <view class="shopcallTxt">导航</view>
  68. </view>
  69. <view class="shopcall" @click.stop="makePhoneCall(detail.shopList[0].contactorPhone)">
  70. <image class="shopcallIcon" src="../../static/img2/call.png" mode=""></image>
  71. <view class="shopcallTxt">电话</view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="nodataBox" v-if="detail.shopList.length==0">
  78. <image src="http://dmsphoto.66km.com.cn/thFiles/3C95A4C5-73F8-4B34-902B-703B8A0825C9.png" mode="widthFix" class="nodataImg"></image>
  79. <view class="noTxt">暂无可用门店</view>
  80. </view>
  81. </view>
  82. <view>
  83. <view class="titleBox">
  84. <image src="../../static/img/icon_youhui_red.png" mode="" class="redPoint"></image>
  85. <view class="title">使用说明</view>
  86. </view>
  87. <view style="font-size: 20rpx;" v-if="detail.couContent" v-html="detail.couContent"></view>
  88. <view v-else class="content">暂无</view>
  89. </view>
  90. </view>
  91. <view class="comtentBox" v-if="detail.usedState==1">
  92. <view class="titleBox">
  93. <image src="../../static/img/icon_youhui_red.png" mode="" class="redPoint"></image>
  94. <view class="title">使用记录</view>
  95. </view>
  96. <view class="couponCodeBox">
  97. <view class="couponCodeYd"></view>
  98. <view class="ouponCode">{{detail.couponCode}}</view>
  99. <view class="couponCodeUse">已使用</view>
  100. </view>
  101. <view class="couponCodeLine">
  102. <view class="couponCodeLeft">核销时间:</view>
  103. <view class="couponCodeLineRight">{{detail.usedTime}}</view>
  104. </view>
  105. <view class="couponCodeLine">
  106. <view class="couponCodeLeft">核销门店:</view>
  107. <view class="couponCodeLineRight">{{detail.usedShopName}}</view>
  108. </view>
  109. </view>
  110. <view style="height: 120rpx;"></view>
  111. <view class="useBox" v-if="detail.state==0">
  112. <view class="useBtn" @click="hxHide">去使用</view>
  113. </view>
  114. <!-- 核销码 -->
  115. <view class="authorizBox" v-if="hxShow" @click="hxclose">
  116. <view class="hxBox" @click.stop="">
  117. <view class="chBox">
  118. <img src="../../static/timg/chahao.png" alt="" class="chahaoImg" @click="hxclose"/>
  119. </view>
  120. <view class="hxName">{{detail.actName}}</view>
  121. <view class="hxTime" v-if="detail.startTime">
  122. 有效期:{{detail.startTime.slice(0,10)}}至{{detail.endTime.slice(0,10)}}</view>
  123. <view class="hxTime" v-else>有效期:领取后{{detail.endOffsetDays}}天</view>
  124. <view style="display: flex;justify-content: center;padding-top:50rpx;">
  125. <tki-qrcode cid="qrcode1" ref="qrcode" :val="detail.couponCode" :size="400" :unit="unit"
  126. :pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
  127. :loadMake="loadMake" :usingComponents="true" @result="qrR" />
  128. </view>
  129. <view class="couponCode">{{detail.couponCode}}</view>
  130. <view class="couponCodeTs">请到店出示券码即可开始服务</view>
  131. </view>
  132. </view>
  133. <!-- 适用门店 -->
  134. <view class="authorizBox" v-if="spShopShow" @click="spShopHide">
  135. <view class="syShopBox" @click.stop="">
  136. <view class="chBox2">
  137. <view class="syShopTitle">适用门店</view>
  138. <img src="../../static/timg/chahao.png" alt="" class="chahaoImg" @click="spShopHide"/>
  139. </view>
  140. <view class="spShopLineBox">
  141. <view class="spShopLine" >
  142. <view class="spShopLineke" v-for="(item,index) in detail.shopList">
  143. <view class="shopline">
  144. <view class="newdistance" v-if="item.distance&&item.distance!= '0.00'">
  145. <image src="../../static/img2/dh.png" mode="" class="dhImg"></image>
  146. <view style="padding-top: 6rpx;"><span >{{item.distance}}km</span></view>
  147. </view>
  148. <view class="shoplineLeft">
  149. <image :src="item.doorImg1" mode="" class="shopImg" v-if="item.doorImg1"></image>
  150. <image :src="item.doorImg2" mode="" class="shopImg" v-else-if="item.doorImg2"></image>
  151. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  152. </view>
  153. <view class="shopright">
  154. <view style="width: 500rpx;">
  155. <view class="shopTop">
  156. <view class="shopName">{{item.shopName}}</view>
  157. </view>
  158. </view>
  159. <view class="shopTime">营业时间:<span v-if="item.startTime">{{item.startTime}}</span> - <span
  160. v-if="item.endTime">{{item.endTime}}</span> </view>
  161. <view class="shopBottomLeft">
  162. <span class="shopaddress"
  163. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  164. <!-- <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span> -->
  165. </view>
  166. <view class="shopdhBox">
  167. <view class="shopcall" @click.stop="goMap(item)">
  168. <image class="shopcallIcon" src="../../static/img2/dhjt.png" mode=""></image>
  169. <view class="shopcallTxt">导航</view>
  170. </view>
  171. <view class="shopcall" @click.stop="makePhoneCall(item.contactorPhone)">
  172. <image class="shopcallIcon" src="../../static/img2/call.png" mode=""></image>
  173. <view class="shopcallTxt">电话</view>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </view>
  183. <!-- 手机号授权 -->
  184. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  185. <view class="authorizCont" @click.stop="">
  186. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  187. <view class="authorizMs">未注册的手机号登录后将自动创建会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
  188. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  189. </view>
  190. <view style="text-align: center;padding-top: 56rpx;">
  191. <image src="../../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  192. </view>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
  198. export default {
  199. components: {
  200. tkiQrcode,
  201. },
  202. data() {
  203. return {
  204. id: '',
  205. detail: {},
  206. themeColor:'',
  207. type:'',
  208. userInfo:'',
  209. ext:'',
  210. wxOpenData:'',
  211. authorizShow:false,
  212. onval: true, // val值变化时自动重新生成二维码
  213. loadMake: true, // 组件加载完成后自动生成二维码
  214. val: '二维码', // 要生成的二维码值
  215. unit: 'upx', // 单位
  216. background: '#b4e9e2', // 背景色
  217. foreground: '#309286', // 前景色
  218. pdground: '#262637', // 角标色
  219. icon: '', // 二维码图标
  220. iconsize: 40, // 二维码图标大小
  221. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  222. src: '', // 二维码生成后的图片地址或base64
  223. hxShow:false,
  224. spShopShow:false,
  225. location: {
  226. lng: '',
  227. lat: '',
  228. },
  229. }
  230. },
  231. onLoad(opt) {
  232. this.themeColor = uni.getStorageSync("themeColor");
  233. this.id = opt.id;
  234. this.type=opt.type;
  235. this.userInfo=this.$store.state.userInfo;
  236. this.ext=this.$common.getExtStoreId();
  237. if(this.userInfo){
  238. if (this.id) {
  239. this.getData();
  240. }
  241. }else{
  242. this.$common.automaticlogin().then(val => {
  243. this.userInfo=this.$store.state.userInfo;
  244. this.wxOpenData=this.$store.state.wxOpenData;
  245. this.themeColor = uni.getStorageSync("themeColor");
  246. if (this.id) {
  247. this.getData();
  248. }
  249. if(!this.userInfo){
  250. this.authorizShow=true
  251. }
  252. })
  253. }
  254. //this.getData();
  255. },
  256. methods: {
  257. spShopHide(){
  258. this.spShopShow=false;
  259. },
  260. spShopS(){
  261. this.spShopShow=true;
  262. },
  263. hxHide(){
  264. this.hxShow=true;
  265. },
  266. hxclose(){
  267. this.hxShow=false;
  268. },
  269. getData() {
  270. var that=this
  271. uni.showLoading({
  272. title: '加载中'
  273. });
  274. uni.authorize({
  275. scope: 'scope.userLocation',
  276. success() {
  277. uni.getLocation({
  278. type: 'gcj02',
  279. success: function(res) {
  280. console.log(res)
  281. that.location.lat = res.latitude
  282. that.location.lng = res.longitude
  283. that.getData2();
  284. },
  285. fail(err) {
  286. console.log("定位失败")
  287. that.getData2();
  288. }
  289. });
  290. },
  291. fail: (err) => {
  292. console.log(err)
  293. that.getData2();
  294. }})
  295. },
  296. getData2(){
  297. if(this.type==2){
  298. var url='opencoupon/detailsCouponDetails';
  299. var params={
  300. id: this.id,
  301. custId:this.$store.state.wxOpenData.loginInfo.customerInfo.id,
  302. lat: this.location.lat ? this.location.lat : '',
  303. lng: this.location.lng ? this.location.lng : '',
  304. }
  305. }else{
  306. var url='opencoupon/detailsCoupon'
  307. var params={
  308. id: this.id,
  309. lat: this.location.lat ? this.location.lat : '',
  310. lng: this.location.lng ? this.location.lng : '',
  311. }
  312. }
  313. this.$http(url, params, 'GET').then(res => {
  314. uni.hideLoading();
  315. if(res.data.couContent){
  316. res.data.couContent=res.data.couContent.replaceAll('font-size:15px', 'font-size:12px');
  317. res.data.couContent=res.data.couContent.replaceAll('font-size: 15px', 'font-size:12px');
  318. res.data.couContent=res.data.couContent.replaceAll('font-size:14px', 'font-size:12px');
  319. }
  320. this.detail = res.data;
  321. })
  322. },
  323. makePhoneCall(num){
  324. uni.makePhoneCall({
  325. phoneNumber:num
  326. });
  327. },
  328. goMap(item){
  329. var that = this;
  330. if (!item.lat || !item.lng) {
  331. uni.showToast({
  332. title: '该店铺未设置定位',
  333. icon: 'none',
  334. duration: 3000
  335. });
  336. } else {
  337. uni.openLocation({
  338. latitude: Number(item.lat),
  339. longitude: Number(item.lng),
  340. name: item.shopName,
  341. address: item.provinceName + item.cityName + item.areaName +
  342. item.address,
  343. success: function() {
  344. console.log('success');
  345. },
  346. fail(err) {
  347. console.log(err)
  348. }
  349. });
  350. }
  351. },
  352. }
  353. }
  354. </script>
  355. <style scoped>
  356. .djq{
  357. background: linear-gradient(128deg, #FFE4C5 0%, #FDC692 100%);
  358. border-radius: 4rpx;
  359. height: 34rpx;
  360. width: 76rpx;
  361. line-height: 34rpx;
  362. text-align: center;
  363. color: #2B2219;
  364. font-size: 20rpx;
  365. margin-top: 4rpx;
  366. margin-right: 10rpx;
  367. }
  368. .titleBox span{
  369. font-size: 12px;
  370. }
  371. .centerB{
  372. padding-top: 10rpx;
  373. }
  374. .syShopBox{
  375. background: #FFFFFF;
  376. border-radius: 32rpx 32rpx 0rpx 0rpx;
  377. width: 750rpx;
  378. height: 80vh;
  379. margin-top: 20vh;
  380. }
  381. .spShopLineBox{
  382. height: calc(80vh - 90rpx);
  383. overflow-y: scroll;
  384. }
  385. .spShopLine{
  386. color: #333333;font-size: 26rpx;
  387. padding: 10rpx 24rpx;
  388. /* border-bottom: 1px solid #EEEEEE; */
  389. }
  390. .chBox2{
  391. display: flex;justify-content: space-between;
  392. padding-left: 30rpx;
  393. padding-top: 30rpx;
  394. padding-right: 24rpx;
  395. padding-bottom: 10rpx;
  396. }
  397. .syShopTitle{
  398. font-weight: 500;
  399. color: #333333;
  400. font-size: 30rpx;
  401. line-height: 42rpx;
  402. }
  403. .hxBox{
  404. width: 750rpx;
  405. height: 70vh;
  406. margin-top: 30vh;
  407. background: #FFFFFF;
  408. border-radius: 32rpx 32rpx 0rpx 0rpx;
  409. }
  410. .couponCode{
  411. font-weight: 500;
  412. color: #333333;
  413. font-size: 30rpx;
  414. padding-top: 40rpx;
  415. text-align: center;
  416. }
  417. .couponCodeTs{
  418. color: #666666;font-size: 24rpx;
  419. text-align: center;padding-top: 10rpx;
  420. }
  421. .hxName{
  422. font-weight: 500;
  423. color: #333333;
  424. line-height: 42rpx;
  425. font-size: 30rpx;
  426. text-align: center;
  427. padding-top: 26rpx;
  428. }
  429. .hxTime{
  430. color: #3C3C3C;font-size: 24rpx; text-align: center;padding-top: 16rpx;
  431. padding-bottom: 50rpx;
  432. border-bottom: 1px dashed #C3C3C3;
  433. }
  434. .chahaoImg{
  435. width: 36rpx;height: 36rpx;
  436. }
  437. .chBox{
  438. text-align: right;
  439. padding-top: 33rpx;
  440. padding-right: 24rpx;
  441. }
  442. .couponCodeBox{
  443. display: flex;
  444. padding-top: 15rpx;
  445. }
  446. .useBox{
  447. height: 120rpx;
  448. width: 750rpx;
  449. position: fixed;
  450. left: 0;
  451. bottom: 0;
  452. background: #FFFFFF;
  453. box-shadow: 0rpx -2rpx 10rpx 0rpx rgba(153,153,153,0.2);
  454. }
  455. .useBtn{
  456. width: 690rpx;
  457. height: 74rpx;
  458. background: #EC0F0A;
  459. border-radius: 37rpx;
  460. font-weight: 500;
  461. color: #FFFFFF;
  462. font-size: 30rpx;
  463. text-align: center;
  464. line-height: 74rpx;
  465. margin-top: 23rpx;
  466. margin-left: 30rpx;
  467. }
  468. .couponCodeYd{
  469. width: 10rpx;
  470. height: 10rpx;
  471. background: #EC0F0A;
  472. border-radius: 50%;
  473. margin-top: 10rpx;
  474. margin-right: 12rpx;
  475. }
  476. .ouponCode{
  477. color: #666666;
  478. line-height: 33rpx;
  479. font-size: 24rpx;
  480. text-decoration: line-through;
  481. }
  482. .couponCodeUse{
  483. width: 86rpx;
  484. height: 32rpx;
  485. border-radius: 4rpx;
  486. border: 1rpx solid #DDDDDD;
  487. color: #999999;
  488. line-height: 32rpx;
  489. text-align: center;
  490. font-size: 22rpx;
  491. margin-left: 12rpx;
  492. }
  493. .couponCodeLine{
  494. padding-left: 20rpx;display: flex;
  495. color: #999999;font-size: 24rpx;
  496. line-height: 33rpx;padding-top: 8rpx;
  497. }
  498. .boxtop{
  499. background: #EC0F0A;
  500. }
  501. .box {
  502. min-height: 100vh;
  503. background: #F4F5F7;
  504. }
  505. .detailBg {
  506. margin: -100rpx 24rpx 0rpx;
  507. background-color: #FFFFFF;
  508. border-radius: 10rpx;
  509. padding: 40rpx 20rpx;
  510. }
  511. .detailTop {
  512. display: flex;
  513. justify-content: flex-start;
  514. }
  515. .use {
  516. text-align: center;
  517. font-size: 26rpx;
  518. color: #EC0F0A;
  519. }
  520. .use2 {
  521. font-size: 40rpx;
  522. font-weight: 500;
  523. color: #EC0F0A;
  524. line-height: 56rpx;
  525. }
  526. .used {
  527. font-size: 26rpx;
  528. color: #666666;
  529. }
  530. .used2 {
  531. font-size: 40rpx;
  532. font-weight: 500;
  533. color: #666666;
  534. line-height: 56rpx;
  535. }
  536. .tiaojian {
  537. font-size: 24rpx;
  538. color: #666666;
  539. }
  540. .name {
  541. line-height: 42rpx;
  542. font-size: 30rpx;
  543. display: flex;
  544. font-weight: 500;
  545. color: #333333;
  546. }
  547. .time {
  548. font-size: 24rpx;
  549. color: #666666;
  550. }
  551. .leftB {
  552. margin-right: 15rpx;
  553. width: 170rpx;
  554. }
  555. .centerB{
  556. width: 500rpx;
  557. }
  558. .comtentBox {
  559. margin: 20rpx 24rpx;
  560. background-color: #FFFFFF;
  561. border-radius: 10rpx;
  562. padding: 20rpx;
  563. }
  564. .titleBox {
  565. display: flex;
  566. align-items: center;
  567. }
  568. .redPoint {
  569. width: 18rpx;
  570. height: 18rpx;
  571. margin-right: 10rpx;
  572. }
  573. .title {
  574. font-size: 30rpx;
  575. color: #333333;
  576. font-weight: bold;
  577. }
  578. .content {
  579. font-size: 26rpx;
  580. color: #666666;
  581. margin-top: 16rpx;
  582. margin-left: 28rpx;
  583. }
  584. .authorizBox{
  585. width: 100vw;
  586. height: 100vh;
  587. background: rgba(0, 0, 0, 0.5);
  588. position: fixed;
  589. top: 0;
  590. left: 0;
  591. }
  592. .authorizCont{
  593. margin-top: 30vh;
  594. width: 564rpx;
  595. height: 408rpx;
  596. background: #FFFFFF;
  597. border-radius: 24rpx;
  598. margin-left: 93rpx;
  599. position: relative;
  600. }
  601. .authorizCloseImg{
  602. width: 62rpx;
  603. height: 62rpx;
  604. }
  605. .sqLogoBox{
  606. width: 180rpx;
  607. height: 180rpx;
  608. background: #FFFFFF;
  609. border-radius: 90rpx;
  610. text-align: center;
  611. position: absolute;
  612. top: -50rpx;
  613. left: 192rpx;
  614. }
  615. .authorizName{
  616. color: #333333;
  617. line-height: 42rpx;
  618. font-size: 30rpx;
  619. text-align: center;
  620. padding-top: 58rpx;
  621. }
  622. .authorizMs{
  623. color: #999999;
  624. line-height: 36rpx;
  625. font-size: 26rpx;
  626. width: 452rpx;
  627. padding-top: 24rpx;
  628. text-align: center;
  629. margin-left: 56rpx;
  630. }
  631. .authorizContbutton{
  632. width: 422rpx;
  633. height: 88rpx;
  634. background: #EC0F0A;
  635. border-radius: 44rpx;
  636. line-height: 88rpx;
  637. text-align: center;
  638. font-size:30rpx;
  639. color: #FFFFFF;
  640. margin-top: 62rpx;
  641. margin-left:71rpx;
  642. }
  643. .shopBoxpt{
  644. margin-top: 20rpx;
  645. }
  646. button::after{
  647. border: none;
  648. }
  649. button{
  650. position: relative;
  651. display: block;
  652. margin-left: 0;
  653. margin-right: 0;
  654. padding-left: 0px;
  655. padding-right: 0px;
  656. box-sizing: border-box;
  657. // font-size: 18px;
  658. text-align: center;
  659. text-decoration: none;
  660. // line-height: 1;
  661. line-height: 1.35;
  662. // border-radius: 5px;
  663. -webkit-tap-highlight-color: transparent;
  664. overflow: hidden;
  665. color: #000000;
  666. background-color: #fff;
  667. height: 100%;
  668. }
  669. .shopline {
  670. margin: 20rpx 0rpx 24rpx 20rpx;
  671. /* padding: 20rpx; */
  672. background-color: #FFFFFF;
  673. border-radius: 10rpx;
  674. position: relative;
  675. display: flex;
  676. }
  677. .newdistance{
  678. position: absolute;top: 2rpx;right: 0rpx;
  679. text-align: center;
  680. font-size: 22rpx;
  681. color: #666666;
  682. }
  683. .shopbox {
  684. padding: 0 16rpx;
  685. }
  686. .shopImg {
  687. width: 146rpx;
  688. height: 146rpx;
  689. border-radius: 10rpx;
  690. }
  691. .shopCallImg {
  692. width: 38rpx;
  693. height: 46rpx;
  694. }
  695. .shopTop {
  696. display: flex;
  697. justify-content: space-between;
  698. width: 510rpx;
  699. }
  700. .shopright {
  701. padding-left: 20rpx;
  702. }
  703. .shopName {
  704. width: 450rpx;
  705. white-space: nowrap;
  706. overflow: hidden;
  707. text-overflow: ellipsis;
  708. }
  709. .shopScore1 {
  710. font-size: 36rpx;
  711. font-weight: bold;
  712. color: #FF4F00;
  713. height: 50rpx;
  714. line-height: 50rpx;
  715. }
  716. .shopScore11 {
  717. font-size: 22rpx;
  718. color: #FF4F00;
  719. margin-right: 14rpx;
  720. }
  721. .shopScore2 {
  722. font-size: 22rpx;
  723. color: #666666;
  724. margin-right: 14rpx;
  725. padding: 8rpx 0;
  726. }
  727. .shopScore3 {
  728. font-size: 22rpx;
  729. color: #333333;
  730. padding-left: 20rpx;
  731. }
  732. .shopaddress {
  733. width: 400rpx;
  734. /* 隐藏文字显示 ...不换行 */
  735. overflow: hidden;
  736. text-overflow: ellipsis;
  737. white-space: nowrap;
  738. color: #999999;
  739. }
  740. .shopCont {
  741. padding-left: 22rpx;
  742. width: 520rpx;
  743. }
  744. .shopName {
  745. font-size: 32rpx;
  746. font-weight: bold;
  747. color: #222222;
  748. line-height: 40rpx;
  749. width: 450rpx;
  750. white-space: nowrap;
  751. overflow: hidden;
  752. text-overflow: ellipsis;
  753. }
  754. .shopTime {
  755. color: #666666;
  756. font-size: 26rpx;
  757. padding-top: 4rpx;
  758. }
  759. .addressBox {
  760. color: #666666;
  761. font-size: 22rpx;
  762. }
  763. .shopaddress {
  764. width: 400rpx;
  765. /* 隐藏文字显示 ...不换行 */
  766. overflow: hidden;
  767. text-overflow: ellipsis;
  768. white-space: nowrap;
  769. color: #999999;
  770. }
  771. .shopBottomLeft {
  772. font-size: 25rpx;
  773. color: #666666;
  774. line-height: 30rpx;
  775. padding-top: 10rpx;
  776. display: flex;
  777. justify-content: space-between;
  778. padding-right: 10rpx;
  779. }
  780. .shopdhBox{
  781. display: flex;padding-top: 20rpx;
  782. justify-content: space-between;
  783. }
  784. .shopcall{
  785. display: flex;
  786. }
  787. .shopcallIcon{
  788. width: 26rpx;height: 26rpx;margin-top: 2rpx;
  789. }
  790. .shopcallTxt{
  791. font-size: 24rpx;
  792. color: #222222;
  793. line-height: 33rpx;padding-left: 8rpx;
  794. }
  795. .dhImg{
  796. width: 35rpx;height: 35rpx;border-radius: 6rpx;
  797. }
  798. .nodataImg {
  799. width: 400rpx;
  800. padding-top: 100rpx;
  801. }
  802. .noTxt {
  803. font-size: 30rpx;
  804. color: #999999;
  805. padding-top: 50rpx;
  806. }
  807. .nodataBox {
  808. text-align: center;
  809. }
  810. .symendinaBox{
  811. border-bottom: 2rpx dashed #eaeaea;
  812. }
  813. .spShopLine .shopline{
  814. margin: 0;
  815. margin-top: 20rpx;
  816. padding: 10rpx 0 20rpx 0;
  817. }
  818. .spShopLineke{
  819. border-bottom: 1px solid #eeeeee;
  820. }
  821. </style>