jkDetail.vue 38 KB

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