jkDetail.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <img :src="mainImg" alt="" class="topimg" mode="widthFix">
  5. </view>
  6. <view class="cont">
  7. <view class="name">{{info.activityName}}</view>
  8. <view class="name2">{{info.startTime.slice(0,10)}}~{{info.endTime.slice(0,10)}}</view>
  9. <view class="name3">{{info.activityContent}}</view>
  10. </view>
  11. <view class="shopBox">
  12. <view class="shopBoxTop">
  13. <view class="shopMs">活动门店</view>
  14. <view class="shopTy" @click="useShow">
  15. <view class="shopTyTxt">{{info.shopCount}}家门店通用</view>
  16. <img src="../../static/timg/jt2.png" alt="" class="shopjt">
  17. </view>
  18. </view>
  19. <view class="shopCont">
  20. <view class="shopContLeft">
  21. <view class="shopName">{{shopInfo.shopName}}</view>
  22. <view class="shopaddress">{{shopInfo.address?shopInfo.address:''}}</view>
  23. </view>
  24. <view class="shopContRight">
  25. <view class="shopContRightLine" @click="getmap">
  26. <img src="../../static/timg/icon_map.png" alt="" class="shopRightIcon">
  27. <view class="shopRightTxt">地图</view>
  28. </view>
  29. <view class="shopRightSx"></view>
  30. <view class="shopContRightLine" @click="call">
  31. <img src="../../static/timg/icon_phone.png" alt="" class="shopRightIcon">
  32. <view class="shopRightTxt">电话</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 多少人报名 -->
  38. <view class="signupBox" v-if="info.signUserList.length">
  39. <view class="signupTop">
  40. <span class="signupTops1">{{info.signUserList.length}}</span>
  41. <span class="signupTops1">人已报名</span>
  42. </view>
  43. <view class="signupCont">
  44. <view class="signupLine" v-for="(item,index) in info.signUserList">
  45. <view class="signupLineL">
  46. <img :src="item.headImg" alt="" class="signupLineLImg">
  47. <view class="signupLineLName">{{item.nickName}}</view>
  48. </view>
  49. <view class="signupLineM">{{item.plateNumber?item.plateNumber:''}}</view>
  50. <view class="signupLineR">{{item.createTime}}</view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 多少人报名 -->
  55. <!-- 多少人看过 -->
  56. <view class="signupBox" v-if="info.lookCount">
  57. <view class="signupTop">
  58. <span class="signupTops1">{{info.lookCount}}</span>
  59. <span class="signupTops1">人看过</span>
  60. </view>
  61. <!-- <view class="seeBox">
  62. <view class="seeLine" v-for="(item,index) in 15">
  63. <img src="http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg" alt="" class="signupLineLImg">
  64. </view>
  65. </view> -->
  66. </view>
  67. <view class="detailBOx" v-if="dimgList.length>0">
  68. <view class="detailTitle">活动详情</view>
  69. <view class="detailImgBox" v-for="(item,index) in dimgList">
  70. <img :src="item.img" alt="" class="detailImg" mode="widthFix">
  71. </view>
  72. </view>
  73. <view style="height: 200rpx;padding-bottom: constant(safe-area-inset-bottom);
  74. padding-bottom: env(safe-area-inset-bottom);"></view>
  75. <view class="bottom">
  76. <view class="timeTbox" v-if="!activityEnd">
  77. <view class="timeviewTxt" v-if="activityNoOpen"> 距开始</view>
  78. <view class="timeviewTxt" v-if="!activityNoOpen"> 距结束</view>
  79. <view class="timeK">{{shengyuD}}</view>
  80. <view class="timeviewTxt" > 天</view>
  81. <view class="timeK">{{shengyuH}}</view>
  82. <view class="timeviewTxt"> 时</view>
  83. <view class="timeK">{{shengyuM}}</view>
  84. <view class="timeviewTxt" > 分</view>
  85. </view>
  86. <view class="bottomBtnBox">
  87. <view class="bottomBtnBoxLeft" @click="shareShowzs">
  88. <img src="../../static/timg/share.png" alt="" class="shareIcon">
  89. <view class="shareTxt">分享</view>
  90. </view>
  91. <!-- <button open-type="share" class="bottomBtnBoxLeft shareBtn" >
  92. <image src="../../static/timg/share.png" mode="" class="shareIcon"></image>
  93. <view class="shareTxt">分享</view>
  94. </button> -->
  95. <!-- 状态1未开始 2进行中3已结束 -->
  96. <view class="bottomBtn" v-if="info.state==2" @click="signUp" :style="{background:'#'+themeColor}">
  97. <span v-if="info.money">¥{{info.money}} &nbsp; 立即抢购</span>
  98. <span v-else>立即报名</span>
  99. </view>
  100. <view class="bottomBtn2" v-if="info.state==1">报名未开始</view>
  101. <view class="bottomBtn2" v-if="info.state==3">报名已结束</view>
  102. </view>
  103. </view>
  104. <!-- 报名弹框 -->
  105. <view class="baomingBox" v-if="bmShow" @click="nobmshow">
  106. <view class="baomingCont" @click.stop="" :style="{bottom: jpHeight}">
  107. <view class="bmTop">
  108. <view class="bmTitle">登记信息</view>
  109. <img src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="nobmshow">
  110. </view>
  111. <view style="padding: 0 24rpx;">
  112. <view class="bmshopLine" @click="showCkshop">
  113. <view class="bmshopname" v-if="!shopName">请选择门店</view>
  114. <view class="bmshopname" style="color: #333333;">{{shopName}}</view>
  115. <img src="../../static/timg/icon_arrow_right.png" alt="" class="bmshopjt">
  116. </view>
  117. <!-- clWhere报名凭证1,2,3,4 1手机号2车牌号3姓名4单位 -->
  118. <view class="bmLine" v-if="info.clWhere.indexOf(1)!=-1" @click="focusState1cl">
  119. <!-- :focus="focusState1" --> <input type="number" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="mobilePhone" class="bmlineInput" placeholder="输入手机号" placeholder-style="color:#999999">
  120. </view>
  121. <view class="bmLine" v-if="info.clWhere.indexOf(2)!=-1" @click="focusState2cl">
  122. <input type="text" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="plateNumber" class="bmlineInput" placeholder="输入车牌号" placeholder-style="color:#999999">
  123. </view>
  124. <view class="bmLine" v-if="info.clWhere.indexOf(3)!=-1" @click="focusState3cl">
  125. <input type="text" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="customerName" class="bmlineInput" placeholder="输入姓名" placeholder-style="color:#999999">
  126. </view>
  127. <view class="bmLine" v-if="info.clWhere.indexOf(4)!=-1" @click="focusState4cl">
  128. <input type="text" :adjust-position="false" :hold-keyboard="true" @blur="inputBindBlur" @focus="inputBindFocus" v-model="unit" class="bmlineInput" placeholder="输入单位" placeholder-style="color:#999999">
  129. </view>
  130. </view>
  131. <view class="bmTtnBox">
  132. <view style="height: 1rpx;"></view>
  133. <view class="bmBtn" @click="submitOrder" :style="{background:'#'+themeColor}">
  134. <span v-if="info.money">¥{{info.money}} &nbsp; 立即抢购</span>
  135. <span v-else>立即报名</span>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. <!-- 门店弹框 -->
  141. <view class="baomingBox ckshopBox" v-if="ckshopShow">
  142. <view class="baomingCont">
  143. <view class="bmTop">
  144. <view class="bmTitle">选择门店</view>
  145. <img src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="noShowShop">
  146. </view>
  147. <view style="padding: 0 24rpx; height: 65vh;overflow-y: scroll;">
  148. <view class="ckshopLine" v-for="(item,index) in info.shopList" @click="ckshop(item)">
  149. <view class="shoplineLeft">
  150. <image :src="item.photoPath" mode="" class="shopImg" v-if="item.photoPath"></image>
  151. <image src="../../static/img/noimg.png" mode="" class="shopImg" v-else></image>
  152. </view>
  153. <view class="shopright" style="padding-left: 20rpx;">
  154. <view class="shopTop">
  155. <view class="shopName">{{item.shopName}}</view>
  156. </view>
  157. <view class="brandsBg" v-if="item.brands">
  158. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  159. </view>
  160. <view class="shopTime"><span v-if="item.startTime">{{item.startTime}}</span> - <span
  161. v-if="item.endTime">{{item.endTime}}</span> </view>
  162. <view class="shopBottomLeft">
  163. <span class="shopaddress"
  164. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  165. <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. <!-- 适用门店 -->
  173. <view class="baomingBox ckshopBox" v-if="useShopShow" @click="noShowShop2">
  174. <view class="baomingCont" @click.stop="">
  175. <view class="bmTop">
  176. <view class="bmTitle">选择门店</view>
  177. <img src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="noShowShop2">
  178. </view>
  179. <view style="padding: 0 24rpx; height: 65vh;overflow-y: scroll;">
  180. <view class="ckshopLine" v-for="(item,index) in info.shopList" @click="ckshop(item)">
  181. <view class="shoplineLeft">
  182. <image :src="item.photoPath" mode="" class="shopImg" v-if="item.photoPath"></image>
  183. <image src="../../static/img/noimg.png" mode="" class="shopImg" v-else></image>
  184. </view>
  185. <view class="shopright" style="padding-left: 20rpx;">
  186. <view class="shopTop">
  187. <view class="shopName">{{item.shopName}}</view>
  188. </view>
  189. <view class="brandsBg" v-if="item.brands">
  190. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  191. </view>
  192. <view class="shopTime"><span v-if="item.startTime">{{item.startTime}}</span> - <span
  193. v-if="item.endTime">{{item.endTime}}</span> </view>
  194. <view class="shopBottomLeft">
  195. <span class="shopaddress"
  196. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  197. <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span>
  198. </view>
  199. </view>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. <img src="../../static/timg/mp3.png" class="mp3Img" @click="play()" v-if="!payshow&mp3Url!=''">
  205. <img src=".../../static/timg/mp31.png" class="mp3Img" @click="play2()" id="bofang" v-if="payshow&mp3Url!=''">
  206. <view class="shareBox" v-if="shareShow" @click="shareShowyc">
  207. <img :src="shareQrCode" alt=""style="width: 300rpx;height:300rpx">
  208. <view class="shareCont" @click.stop="">
  209. <button open-type="share" class=" shareBtn" >
  210. <image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
  211. <view class="bottomTxtshare">分享</view>
  212. </button>
  213. <view @click="gowp">
  214. <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
  215. <view class="bottomTxtshare">生成海报</view>
  216. </view>
  217. </view>
  218. </view>
  219. </view>
  220. </template>
  221. <script>
  222. export default {
  223. data() {
  224. return {
  225. info:'',
  226. type:'',
  227. shopNum:'',
  228. shopInfo:'',
  229. activityEnd:true,
  230. activityNoOpen:true,
  231. shengyuD:'',
  232. shengyuH:'',
  233. shengyuM:'',
  234. queryShopList:'',
  235. collectingID:'',
  236. bmShow:false,
  237. ckshopShow:false,
  238. mainImg:'',
  239. dimgList:[],
  240. shopName:'',
  241. ckshopdata:'',
  242. customerName:'',
  243. mobilePhone:'',
  244. unit:'',
  245. plateNumber:'',
  246. comment:'',
  247. userInfo:'',
  248. useShopShow:false,
  249. jpHeight:0,
  250. isPlay: false,
  251. mp3Url:'',
  252. payshow:false,
  253. jpNum:1,
  254. focusState1:false,
  255. focusState2:false,
  256. focusState3:false,
  257. focusState4:false,
  258. shareShow:false,
  259. ext:'',
  260. shareId:'',
  261. scene:'',
  262. themeColor:'',
  263. }
  264. },
  265. onLoad(opt) {
  266. console.log(opt)
  267. if(opt.shareId){
  268. this.shareId=opt.shareId
  269. }
  270. this.userInfo=this.$store.state.userInfo;
  271. // opt.scene='10002'
  272. if(this.userInfo){
  273. this.themeColor = uni.getStorageSync("themeColor");
  274. this.queryGoodsLook()
  275. if(opt.scene&&opt.scene!='undefined'){
  276. this.scene=opt.scene;
  277. this.getShareParams()
  278. }else{
  279. this.collectingID=opt.id;
  280. //this.getInfo();
  281. this.queryActivityInfo();
  282. this.queryGoodsLook()
  283. }
  284. }else{
  285. this.$common.automaticlogin().then(val => {
  286. this.themeColor = uni.getStorageSync("themeColor");
  287. this.userInfo=this.$store.state.userInfo;
  288. if(opt.scene&&opt.scene!='undefined'){
  289. this.scene=opt.scene;
  290. this.getShareParams()
  291. }else{
  292. this.collectingID=opt.id;
  293. //this.getInfo();
  294. this.queryActivityInfo();
  295. this.queryGoodsLook()
  296. }
  297. //this.queryActivityInfo();
  298. })
  299. }
  300. this.shopckList= uni.getStorageSync("shopckList");
  301. //this.ckmusic=uni.getStorageSync("ckmusic");
  302. },
  303. onPullDownRefresh(){
  304. //this.getInfo();
  305. this.queryActivityInfo();
  306. setTimeout(() => {
  307. uni.stopPullDownRefresh(); // 关闭下拉刷新
  308. }, 1000);
  309. },
  310. onHide(){
  311. this.bgmMusic.stop(()=>{
  312. console.log('背景音乐停止了');
  313. });
  314. },
  315. onUnload(){
  316. this.bgmMusic.stop()
  317. },
  318. methods: {
  319. getShareParams(){
  320. this.$http('openMall/getShareParams', {
  321. scene:this.scene,
  322. },'GET').then(res => {
  323. this.collectingID=res.data.goodsID;
  324. this.shareId=res.data.operatorID
  325. this.queryActivityInfo();
  326. this.queryGoodsLook()
  327. })
  328. },
  329. gowp(){
  330. var time=''
  331. if(this.info.startTime){
  332. var time = this.info.startTime.slice(0,10) + '~' +this.info.endTime.slice(0,10)
  333. }else{
  334. }
  335. var sellingPoint='';
  336. if(this.info.activityContent){
  337. sellingPoint=this.info.activityContent
  338. }
  339. this.shareShow=false;
  340. uni.navigateTo({
  341. url:'../shop/wp?img='+this.mainImg+'&name='+this.info.activityName+'&time='+time+'&sellingPoint'+sellingPoint+'&id='+this.collectingID+'&type=2'
  342. })
  343. },
  344. shareShowyc(){
  345. this.shareShow=false;
  346. },
  347. shareShowzs(){
  348. this.shareShow=true;
  349. },
  350. focusState1cl(){
  351. this.focusState1=true;
  352. },
  353. focusState2cl(){
  354. this.focusState2=true;
  355. },
  356. focusState3cl(){
  357. this.focusState3=true;
  358. },
  359. focusState4cl(){
  360. this.focusState4=true;
  361. },
  362. inputBindFocus(e){
  363. //console.log( e.detail.height);
  364. this.jpHeight=e.detail.height+ "px";
  365. //console.log(this.jpHeight)
  366. },
  367. inputBindBlur(){
  368. //return false;
  369. uni.onKeyboardHeightChange((obj)=>{
  370. console.log("inputBindBlur"+obj.height)
  371. let _sysInfo = uni.getSystemInfoSync();
  372. let _heightDiff = _sysInfo.screenHeight - _sysInfo.windowHeight
  373. let _diff = obj.height - _heightDiff;
  374. console.log(_diff)
  375. if(_diff<0||_diff==0){
  376. this.jpHeight=0
  377. }
  378. // 键盘高度
  379. //this.jpHeight = (_diff > 0 ? _diff : 0) - 2 + "px";
  380. })
  381. if(this.jpNum==1){
  382. this.jpHeight=0
  383. }
  384. this.jpNum++;
  385. },
  386. queryGoodsLook(){
  387. this.$http('openmy/queryGoodsLook', {
  388. goodsId:this.collectingID,
  389. openId:this.userInfo.openId
  390. },'POST').then(res => {
  391. })
  392. },
  393. noShowShop2(){
  394. this.useShopShow=false;
  395. },
  396. useShow(){
  397. this.useShopShow=true;
  398. },
  399. submitOrder(){
  400. uni.hideKeyboard()
  401. var jsonArray={
  402. itemId:this.collectingID,
  403. itemName:this.info.activityName,
  404. itemQty:1,
  405. salePrice:this.info.money?this.info.money:0,
  406. totalPrice:this.info.money?this.info.money:0,
  407. }
  408. if(this.ckshopdata==''){
  409. uni.showToast({
  410. title: '请选择服务门店',
  411. icon: 'none',
  412. duration: 3000
  413. });
  414. return false;
  415. }
  416. if(this.info.clWhere.indexOf(1)!=-1&&this.mobilePhone==''){
  417. uni.showToast({
  418. title: '请输入手机号',
  419. icon: 'none',
  420. duration: 3000
  421. });
  422. return false;
  423. }
  424. if(this.info.clWhere.indexOf(2)!=-1&&this.plateNumber==''){
  425. uni.showToast({
  426. title: '请输入车牌号',
  427. icon: 'none',
  428. duration: 3000
  429. });
  430. return false;
  431. }
  432. if(this.info.clWhere.indexOf(3)!=-1&&this.customerName==''){
  433. uni.showToast({
  434. title: '请输入姓名',
  435. icon: 'none',
  436. duration: 3000
  437. });
  438. return false;
  439. }
  440. if(this.info.clWhere.indexOf(4)!=-1&&this.unit==''){
  441. uni.showToast({
  442. title: '请输入单位',
  443. icon: 'none',
  444. duration: 3000
  445. });
  446. return false;
  447. }
  448. var arr=[]
  449. arr.push(jsonArray)
  450. var params={
  451. sheetType:'6',
  452. sheetContent:this.info.activityName,
  453. customerName:this.customerName,
  454. mobilePhone:this.mobilePhone,
  455. unit:this.unit,
  456. plateNumber:this.plateNumber,
  457. //carModel:this.carInfo.carModel,
  458. totalMoney:this.info.money?this.info.money:0,
  459. shopId:this.ckshopdata.id,
  460. comment:this.comment,
  461. sheetDetail:JSON.stringify(arr),
  462. payType:this.info.payType,
  463. shareId:this.shareId,
  464. }
  465. uni.showLoading({
  466. title: '加载中'
  467. })
  468. this.$http('openMallOrder/submitOrder', params,'POST').then(res => {
  469. uni.hideLoading();
  470. if(res.code==0){
  471. this.orderData=res.data
  472. if(this.info.payType==1){
  473. this.unifiedPay(res.data)
  474. }else{
  475. uni.showToast({
  476. title: '报名成功',
  477. icon: 'none',
  478. duration: 3000
  479. });
  480. uni.redirectTo({
  481. url: "../user/myOrder/activityOrderDetail?id=" + this.orderData.id +"&SheetType=" + this.orderData.sheetType
  482. })
  483. }
  484. }else{
  485. uni.showToast({
  486. title: res.msg,
  487. icon: 'none',
  488. duration: 3000
  489. });
  490. }
  491. })
  492. },
  493. unifiedPay(res){
  494. this.$http('openMallOrder/unifiedPay', {
  495. sheetId:res.id
  496. },'POST').then(res => {
  497. if(res.code==0){
  498. this.requestPayment(res.data)
  499. }else{
  500. uni.showToast({
  501. title: res.msg,
  502. icon: 'none',
  503. duration: 3000
  504. });
  505. }
  506. })
  507. },
  508. requestPayment(res){
  509. var payInfo=res;
  510. //console.log(payInfo)
  511. //console.log(String(Date.now()))
  512. var that=this;
  513. uni.requestPayment({
  514. provider: 'wxpay',
  515. //timeStamp: String(Date.now()),
  516. timeStamp: payInfo.timeStamp,
  517. nonceStr: payInfo.nonceStr,
  518. package:payInfo.package,
  519. signType: payInfo.signType,
  520. paySign: payInfo.paySign,
  521. appid:payInfo.appId,
  522. success: function (res) {
  523. console.log('success:' + JSON.stringify(res));
  524. uni.showToast({
  525. title: '支付成功',
  526. icon:'none',
  527. duration: 2000
  528. });
  529. uni.redirectTo({
  530. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  531. })
  532. },
  533. fail: function (err) {
  534. console.log(err)
  535. uni.showToast({
  536. title: '支付失败',
  537. icon:'none',
  538. duration: 2000
  539. });
  540. console.log(that.orderData)
  541. uni.redirectTo({
  542. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  543. })
  544. }
  545. });
  546. },
  547. signUp(){
  548. this.info.shopList.forEach(item=>{
  549. if(item.id == this.shopInfo.id){
  550. this.ckshopdata=item;
  551. this.shopName=item.shopName;
  552. }
  553. })
  554. this.bmShow=true;
  555. },
  556. nobmshow(){
  557. this.bmShow=false;
  558. },
  559. ckshop(item){
  560. this.ckshopdata=item;
  561. this.shopName=item.shopName;
  562. this.ckshopShow=false;
  563. this.shopInfo=item
  564. this.useShopShow=false;
  565. },
  566. showCkshop(){
  567. console.log("选择门店")
  568. this.ckshopShow=true;
  569. },
  570. noShowShop(){
  571. this.ckshopShow=false;
  572. },
  573. queryActivityInfo(){
  574. uni.showLoading({
  575. title: '加载中'
  576. })
  577. this.$http('openHome/queryActivityInfo', {
  578. collectingID:this.collectingID
  579. }, 'GET').then(res => {
  580. //uni.hideLoading();
  581. this.info = res.data;
  582. this.getInfo()
  583. if(this.info.imgList){
  584. this.info.imgList.forEach(item=>{
  585. if(item.imgType==1){
  586. this.mainImg=item.img
  587. }else{
  588. this.dimgList.push(item)
  589. }
  590. })
  591. }
  592. if (this.info.endTime < this.info.startTime) {
  593. // this.$vux.toast.text('时间设置错误')
  594. return
  595. }
  596. // this.activityNoOpen
  597. if (Number(new Date().getTime()) > (Number(new Date(this.info.startTime.replace(/-/g, '/')).getTime()) || 0)) {
  598. console.log("现在时间大于开始时间")
  599. this.activityNoOpen = false
  600. } else {
  601. this.activityNoOpen = true
  602. }
  603. if (Number(new Date().getTime()) > Number(new Date(this.info.endTime.replace(/-/g, '/')).getTime())) {
  604. console.log("现在时间大于结束时间")
  605. this.activityEnd = true
  606. } else {
  607. this.activityEnd = false
  608. }
  609. if (!this.activityNoOpen && !this.activityEnd) {
  610. this.clock()
  611. }
  612. if (this.activityNoOpen && !this.activityEnd) {
  613. this.clock2()
  614. }
  615. if(this.info.music){
  616. this.bgmMusic = uni.createInnerAudioContext();
  617. this.bgmMusic.autoplay = true;//自动播放
  618. this.bgmMusic.loop = true;//循环播放
  619. this.mp3Url='http://dmsimg.66km.com/music/sakuratears.mp3';
  620. this.bgmMusic.src ='http://dmsimg.66km.com/music/sakuratears.mp3'//, mp3Url;//背景音乐地址
  621. this.bgmMusic.onPlay(function(){
  622. console.log('背景音乐播放中');
  623. });
  624. this.bgmMusic.onError((res) => {
  625. console.log(res.errMsg);
  626. console.log(res.errCode);
  627. });
  628. }
  629. })
  630. },
  631. play2(){
  632. this.bgmMusic.play();
  633. this.payshow=false;
  634. },
  635. play(){
  636. this.payshow=true;
  637. this.bgmMusic.stop(()=>{
  638. console.log('背景音乐停止了');
  639. });
  640. },
  641. getInfo(){
  642. this.$http('openreservation/getInfo', {
  643. lat: '',
  644. lng: '',
  645. }, 'GET').then(res => {
  646. uni.hideLoading();
  647. //this.shopInfo = res.data.shopInfo
  648. var shopinfo=res.data.shopInfo;
  649. this.info.shopList.forEach(item=>{
  650. //console.log(item.id)
  651. //console.log(shopinfo.id)
  652. if(item.id==shopinfo.id){
  653. this.shopInfo=shopinfo
  654. }
  655. })
  656. if(this.shopInfo==''){
  657. this.shopInfo=this.info.shopList[0]
  658. }
  659. })
  660. },
  661. call() {
  662. uni.makePhoneCall({
  663. phoneNumber: this.shopInfo.mobilePhone
  664. });
  665. },
  666. getmap() {
  667. console.log("打开地图")
  668. var that = this;
  669. if (!that.shopInfo.lat || !that.shopInfo.lng) {
  670. uni.showToast({
  671. title: '该店铺未设置定位',
  672. icon: 'none',
  673. duration: 3000
  674. });
  675. } else {
  676. uni.openLocation({
  677. latitude: Number(that.shopInfo.lat),
  678. longitude: Number(that.shopInfo.lng),
  679. name: that.shopInfo.shopName,
  680. address: that.shopInfo.provinceName + that.shopInfo.cityName + that.shopInfo.areaName + that.shopInfo.address,
  681. success: function() {
  682. console.log('success');
  683. },
  684. fail(err) {
  685. console.log(err)
  686. }
  687. });
  688. }
  689. },
  690. clock () {
  691. let _this = this
  692. let today = new Date() // 当前时间
  693. let h = today.getHours()
  694. let m = today.getMinutes()
  695. let s = today.getSeconds()
  696. let stopTime = new Date(_this.info.endTime.replace(/-/g, '/')) // 结束时间
  697. if (Number(new Date(_this.info.endTime).getTime()) < Number(new Date().getTime())) {
  698. this.activityEnd = true
  699. return
  700. }
  701. let stopH = stopTime.getHours()
  702. let stopM = stopTime.getMinutes()
  703. let stopS = stopTime.getSeconds()
  704. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  705. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  706. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  707. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  708. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  709. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  710. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  711. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  712. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  713. // setTimeout("clock()",500);
  714. this.shengyuM=shengyuM;
  715. this.shengyuD=shengyuD;
  716. this.shengyuH=shengyuH;
  717. setTimeout(_this.clock, 500)
  718. },
  719. clock2(){
  720. let _this = this
  721. let today = new Date() // 当前时间
  722. let h = today.getHours()
  723. let m = today.getMinutes()
  724. let s = today.getSeconds()
  725. let startTime = new Date(_this.info.startTime.replace(/-/g, '/')) // 结束时间
  726. if (Number(new Date(_this.info.startTime).getTime()) < Number(new Date().getTime())) {
  727. this.activityNoOpen = true
  728. return
  729. }
  730. let stopH = startTime.getHours()
  731. let stopM = startTime.getMinutes()
  732. let stopS = startTime.getSeconds()
  733. let shenyu = startTime.getTime() - today.getTime() // 倒计时毫秒数
  734. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  735. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  736. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  737. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  738. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  739. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  740. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  741. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  742. // setTimeout("clock()",500);
  743. this.shengyuM=shengyuM;
  744. this.shengyuD=shengyuD;
  745. this.shengyuH=shengyuH;
  746. setTimeout(_this.clock2, 500)
  747. }
  748. },
  749. onShareAppMessage(res) {
  750. console.log(this.userInfo)
  751. var img='';
  752. /* if(this.info.ImgList.length>0){
  753. img=this.info.ImgList[0].url
  754. } */
  755. return {
  756. title: this.info.activityName,
  757. imageUrl:this.mainImg,
  758. path: 'pages/activity/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId,
  759. success(res){
  760. uni.showToast({
  761. title:'分享成功'
  762. })
  763. },
  764. fail(res){
  765. uni.showToast({
  766. title:'分享失败',
  767. icon:'none',
  768. duration: 3000
  769. })
  770. }
  771. }
  772. },
  773. }
  774. </script>
  775. <style scoped>
  776. .shareBtn{
  777. /* width: 100rpx; */
  778. background: #F4F5F7;
  779. }
  780. .shareBimg{
  781. width: 102rpx;
  782. height: 102rpx;
  783. }
  784. .bottomTxtshare{
  785. color: #333333;
  786. font-size: 22rpx;
  787. padding-top: 20rpx;
  788. }
  789. .shareBox{
  790. width: 100%;
  791. height: 100vh;
  792. background: rgba(0, 0, 0, 0.5);
  793. position: fixed;
  794. left: 0;
  795. bottom: 0;
  796. z-index: 11;
  797. }
  798. .shareCont{
  799. width: 100%;
  800. background: #F4F5F7;
  801. position: absolute;
  802. left: 0;
  803. bottom: 0;
  804. display: flex;
  805. justify-content: space-around;
  806. padding: 50rpx 0;
  807. border-radius: 40rpx 40rpx 0px 0px;
  808. }
  809. .mp3Img{
  810. /* transform: translate(-1584.4%, 121.5%) scale(1); */
  811. position: fixed;
  812. top: 40rpx;
  813. right: 40rpx;
  814. width: 60rpx;
  815. height: 60rpx;
  816. }
  817. .ckshopBox{
  818. z-index: 111 !important;
  819. }
  820. .shopline {
  821. padding: 20rpx 0;
  822. background-color: #FFFFFF;
  823. border-radius: 10rpx;
  824. display: flex;
  825. }
  826. .baomingBox{
  827. width: 750rpx;
  828. height: 100vh;
  829. background: rgba(0, 0, 0, 0.4);
  830. position: fixed;
  831. top: 0;
  832. left: 0;
  833. z-index: 11;
  834. /* display: flex;
  835. align-items: center; */
  836. }
  837. .bmTtnBox{
  838. width: 750rpx;
  839. height: 120rpx;
  840. background: #FFFFFF;
  841. box-shadow: 0px -2px 10rpx 0px rgba(153,153,153,0.2000);
  842. /* position: absolute;
  843. left: 0;
  844. bottom: 0; */
  845. /* padding-bottom: constant(safe-area-inset-bottom);
  846. padding-bottom: env(safe-area-inset-bottom); */
  847. }
  848. .bmBtn{
  849. width: 690rpx;
  850. height: 74rpx;
  851. background: #D53533;
  852. border-radius: 37rpx;
  853. text-align: center;
  854. line-height: 74rpx;
  855. color: #ffffff;
  856. font-size: 30rpx;
  857. margin-top: 23rpx;
  858. margin-left: 30rpx;
  859. margin-top: 20rpx;
  860. }
  861. .bmshopjt{
  862. width: 12rpx;
  863. height: 20rpx;
  864. margin-top: 10rpx;
  865. }
  866. .bmlineInput{
  867. color: #333333;
  868. font-size: 28rpx;
  869. height: 98rpx;
  870. line-height: 98rpx;
  871. }
  872. .bmshopname{
  873. font-weight: 400;
  874. color: #999999;
  875. font-size: 28rpx;
  876. line-height: 40rpx;
  877. width: 500rpx;
  878. white-space:nowrap;
  879. overflow:hidden;
  880. text-overflow:ellipsis;
  881. }
  882. .bmshopLine{
  883. display: flex;
  884. justify-content: space-between;
  885. padding: 26rpx 0;
  886. border-bottom: 1px solid #EEEEEE;
  887. }
  888. .bmLine{
  889. border-bottom: 1px solid #EEEEEE;
  890. }
  891. .bmTop{
  892. display: flex;
  893. justify-content: space-between;
  894. padding: 40rpx 24rpx 10rpx 24rpx;
  895. }
  896. .bmTitle{
  897. font-weight: 500;
  898. color: #3C3C3C;
  899. font-size: 30rpx;
  900. line-height: 36rpx;
  901. }
  902. .bmChimg{
  903. width: 36rpx;
  904. height: 36rpx;
  905. }
  906. .baomingCont{
  907. position: absolute;
  908. width: 750rpx;
  909. /* height:850rpx; */
  910. /* padding-bottom: constant(safe-area-inset-bottom);
  911. padding-bottom: env(safe-area-inset-bottom); */
  912. left: 0;
  913. bottom: 0;
  914. background: #ffffff;
  915. border-radius: 24rpx 24rpx 0px 0px;
  916. padding-bottom: 10rpx;
  917. }
  918. .shareIcon{
  919. width: 48rpx;
  920. height: 48rpx;
  921. display: block;
  922. }
  923. .bottomBtnBox{
  924. display: flex;
  925. }
  926. .bottomBtnBoxLeft{
  927. padding-left: 40rpx;
  928. padding-top: 21rpx;
  929. }
  930. .shareTxt{
  931. color: #666666;font-size: 20rpx;
  932. text-align: center;
  933. }
  934. .bottomBtn{
  935. width: 598rpx;
  936. height: 74rpx;
  937. background: #D53533;
  938. border-radius: 37rpx;
  939. line-height: 74rpx;
  940. text-align: center;
  941. color: #ffffff;
  942. font-size: 30rpx;
  943. margin-top: 24rpx;
  944. margin-left: 34rpx;
  945. }
  946. .bottomBtn2{
  947. width: 598rpx;
  948. height: 74rpx;
  949. background: #DDDDDD;
  950. border-radius: 37rpx;
  951. line-height: 74rpx;
  952. text-align: center;
  953. color: #ffffff;
  954. font-size: 30rpx;
  955. margin-top: 24rpx;
  956. margin-left: 34rpx;
  957. }
  958. .timeTbox{
  959. width: 750rpx;
  960. height: 60rpx;
  961. background:#FFF5F0;
  962. border-radius: 24rpx 24rpx 0px 0px;
  963. border: 1px solid #EFE1D5;
  964. display: flex;
  965. justify-content: center;
  966. font-size: 24rpx;
  967. font-family: PingFangSC-Regular, PingFang SC;
  968. font-weight: 400;
  969. color: #764D49;
  970. }
  971. .timeviewTxt{
  972. line-height: 41rpx;
  973. padding-top: 10rpx;
  974. }
  975. .timeDivTxt{
  976. line-height: 60rpx;
  977. padding: 0 10rpx;
  978. }
  979. .timeK{
  980. height: 41rpx;
  981. line-height: 41rpx;
  982. color: #FFFFFF;
  983. width: 41rpx;
  984. text-align: center;
  985. background: #F03B3B;
  986. border-radius: 6rpx;
  987. margin-top: 9rpx;
  988. margin-left: 15rpx;
  989. margin-right: 15rpx;
  990. }
  991. .bottom{
  992. width: 750rpx;
  993. height: 180rpx;
  994. background: #FFFFFF;
  995. border-radius: 24rpx 24rpx 0px 0px;
  996. position: fixed;
  997. left: 0;
  998. bottom: 0;
  999. padding-bottom: constant(safe-area-inset-bottom);
  1000. padding-bottom: env(safe-area-inset-bottom);
  1001. }
  1002. .signupBox{
  1003. background: #ffffff;
  1004. margin-top: 20rpx;
  1005. }
  1006. .seeBox{
  1007. display: flex;
  1008. flex-wrap: wrap;
  1009. padding-left: 24rpx;
  1010. padding-bottom: 20rpx;
  1011. }
  1012. .seeLine{
  1013. padding-top: 14rpx;
  1014. padding-right: 16rpx;
  1015. }
  1016. .signupLine{
  1017. display: flex;
  1018. justify-content: space-between;
  1019. padding: 11rpx 0;
  1020. border-bottom: 1px solid #DDDDDD;
  1021. }
  1022. .signupLineM{
  1023. color: #3C3C3C;font-size: 26rpx;
  1024. line-height: 56rpx;
  1025. }
  1026. .signupLineR{
  1027. color: #999999;
  1028. font-size: 26rpx;
  1029. line-height: 56rpx;
  1030. }
  1031. .signupLineLName{
  1032. font-weight: 400;
  1033. color: #3C3C3C;
  1034. font-size: 26rpx;
  1035. padding-left: 16rpx;
  1036. line-height: 56rpx;
  1037. width: 150rpx;
  1038. white-space:nowrap;
  1039. overflow:hidden;
  1040. text-overflow:ellipsis;
  1041. }
  1042. .signupCont{
  1043. padding: 0 24rpx;
  1044. }
  1045. .signupLineLImg{
  1046. width: 56rpx;
  1047. height: 56rpx;
  1048. border-radius: 8rpx;
  1049. }
  1050. .signupLineL{
  1051. display: flex;
  1052. }
  1053. .signupTop{
  1054. width: 750rpx;
  1055. height: 78rpx;
  1056. background: url(http://dmsphoto.66km.com.cn/thFiles/FF582E15-1971-4C04-8AB3-F7618FFB961D.png);
  1057. background-size: 100% 100%;
  1058. text-align: center;
  1059. line-height: 78rpx;
  1060. }
  1061. .signupTops1{
  1062. color: #FF0000;font-weight: 500;
  1063. font-size: 28rpx;
  1064. }
  1065. .signupTops1{
  1066. color: #703917;font-weight: 500;
  1067. font-size: 28rpx;
  1068. }
  1069. .shopRightIcon{
  1070. width: 44rpx;
  1071. height: 44rpx;
  1072. display: block;
  1073. margin: 0 auto;
  1074. margin-bottom: 10rpx;
  1075. }
  1076. .shopName{
  1077. color: #3C3C3C;
  1078. font-size: 28rpx;
  1079. }
  1080. .shopaddress{
  1081. font-weight: 400;
  1082. color: #999999;
  1083. font-size: 24rpx;
  1084. padding-top: 10rpx;
  1085. width: 500rpx;
  1086. }
  1087. .shopRightSx{
  1088. width: 2rpx;
  1089. height: 69rpx;
  1090. background:#EEEEEE ;
  1091. margin-left: 34rpx;
  1092. margin-right: 34rpx;
  1093. margin-top: 14rpx;
  1094. }
  1095. .shopCont{
  1096. display: flex;
  1097. justify-content: space-between;
  1098. padding-top: 25rpx;
  1099. }
  1100. .shopContRight{
  1101. display: flex;
  1102. }
  1103. .shopContRightLine{
  1104. text-align: center;
  1105. color: #999999;
  1106. font-size: 24rpx;
  1107. }
  1108. .content{
  1109. min-height: 100vh;
  1110. background:#F4F5F7;
  1111. }
  1112. .detailImg{
  1113. width: 750rpx;
  1114. display: block;
  1115. }
  1116. .detailBOx{
  1117. background: #ffffff;
  1118. margin-top: 20rpx;
  1119. }
  1120. .detailTitle{
  1121. color: #222222;
  1122. font-weight: 500;
  1123. padding: 20rpx 24rpx;
  1124. font-size: 30rpx;
  1125. }
  1126. .topimg{
  1127. width: 750rpx;
  1128. }
  1129. .shopMs{
  1130. font-weight: 500;
  1131. color: #222222;
  1132. line-height: 42rpx;
  1133. font-size: 30rpx;
  1134. }
  1135. .shopBox{
  1136. background: #ffffff;
  1137. margin-top: 20rpx;
  1138. padding: 20rpx 24rpx;
  1139. }
  1140. .shopBoxTop{
  1141. display: flex;
  1142. justify-content: space-between;
  1143. }
  1144. .shopTy{
  1145. display: flex;
  1146. }
  1147. .shopTyTxt{
  1148. font-weight: 400;
  1149. color: #666666;
  1150. font-size: 24rpx;
  1151. line-height: 42rpx;
  1152. }
  1153. .shopjt{
  1154. width: 14rpx;
  1155. height: 23rpx;
  1156. margin-top: 10rpx;
  1157. margin-left: 10rpx;
  1158. }
  1159. .cont{
  1160. background: #ffffff;
  1161. border-radius: 24rpx 24rpx 0px 0px;
  1162. margin-top: -30rpx;
  1163. padding: 30rpx 24rpx;
  1164. position: relative;
  1165. }
  1166. .name{
  1167. color: #3C3C3C;
  1168. line-height: 42rpx;
  1169. font-weight: 500;
  1170. font-size: 30rpx;
  1171. }
  1172. .name2{
  1173. color: #3C3C3C;
  1174. line-height: 36rpx;
  1175. font-weight: 400;
  1176. font-size: 26rpx;
  1177. padding-top: 16rpx;
  1178. }
  1179. .name3{
  1180. color: #999999;
  1181. line-height: 36rpx;
  1182. font-weight: 400;
  1183. font-size: 26rpx;
  1184. padding-top: 16rpx;
  1185. }
  1186. .shopImg {
  1187. width: 146rpx;
  1188. height: 146rpx;
  1189. border-radius: 6rpx;
  1190. }
  1191. .shopBox2 {
  1192. padding-top: 30rpx;
  1193. display: flex;
  1194. }
  1195. .flex {
  1196. display: flex;
  1197. justify-content: space-between;
  1198. }
  1199. .shopCont2 {
  1200. padding-left: 22rpx;
  1201. width: 520rpx;
  1202. }
  1203. .shopName {
  1204. color: #333333;
  1205. font-size: 26rpx;
  1206. font-weight: 600;
  1207. }
  1208. .span1 {
  1209. color: #FF4F00;
  1210. font-size: 36rpx;
  1211. }
  1212. .span2 {
  1213. color: #FF4F00;
  1214. font-size: 22rpx;
  1215. }
  1216. .span3 {
  1217. color: #333333;
  1218. font-size: 22rpx;
  1219. padding-left: 22rpx;
  1220. }
  1221. .shopBq {
  1222. color: #FF4F00;
  1223. font-size: 22rpx;
  1224. border-radius: 4rpx;
  1225. border: 1px solid #FF4F00;
  1226. line-height: 30rpx;
  1227. height: 30rpx;
  1228. padding: 0rpx 5rpx;
  1229. margin-top: 10rpx;
  1230. }
  1231. .brandsBg {
  1232. display: flex;
  1233. height: 38rpx;
  1234. flex-wrap: wrap;
  1235. align-items: center;
  1236. overflow: hidden;
  1237. padding: 5rpx 0rpx;
  1238. }
  1239. .brands {
  1240. border-radius: 4rpx;
  1241. padding: 0 5rpx;
  1242. color: #F19D01;
  1243. height: 28rpx;
  1244. border: 1px solid #F19D01;
  1245. font-size: 20rpx;
  1246. line-height: 28rpx;
  1247. margin: 5rpx 10rpx 5rpx 0rpx;
  1248. }
  1249. .timeBg {
  1250. display: flex;
  1251. }
  1252. .shopTime {
  1253. color: #666666;
  1254. font-size: 22rpx;
  1255. }
  1256. .addressBox {
  1257. color: #666666;
  1258. font-size: 22rpx;
  1259. }
  1260. .ckshopLine{
  1261. display: flex;
  1262. padding: 20rpx 0;
  1263. border-bottom: 1px solid #EEEEEE;
  1264. }
  1265. button::after{
  1266. border: none;
  1267. }
  1268. button{
  1269. position: relative;
  1270. display: block;
  1271. margin-left: 0;
  1272. margin-right: 0;
  1273. padding-left: 0px;
  1274. padding-right: 0px;
  1275. box-sizing: border-box;
  1276. // font-size: 18px;
  1277. text-align: center;
  1278. text-decoration: none;
  1279. // line-height: 1;
  1280. line-height: 1.35;
  1281. // border-radius: 5px;
  1282. -webkit-tap-highlight-color: transparent;
  1283. overflow: hidden;
  1284. color: #000000;
  1285. background-color: #fff;
  1286. height: 100%;
  1287. }
  1288. </style>