jkDetail.vue 42 KB

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