jkDetail.vue 34 KB

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