jkDetail.vue 34 KB

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