jkDetail.vue 38 KB

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