jkDetail.vue 37 KB

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