jkDetail.vue 37 KB

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