jkDetail.vue 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517
  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="newtimeTbox" v-if="!activityEnd&&!activityNoOpen">
  8. <view class="newtimedjs" >
  9. <!-- <view class="timeviewTxt" v-if="activityNoOpen"> 距开始</view>
  10. <view class="timeviewTxt" v-if="!activityNoOpen"> 距结束</view> -->
  11. <view class="timeK">{{shengyuD}}</view>
  12. <view class="timeviewTxt" > 天</view>
  13. <view class="timeK">{{shengyuH}}</view>
  14. <view class="timeviewTxt"> 时</view>
  15. <view class="timeK">{{shengyuM}}</view>
  16. <view class="timeviewTxt" > 分</view>
  17. </view>
  18. </view>
  19. <view class="zhongjian">
  20. <view class="cont" v-if="info">
  21. <view class="name">
  22. <view class="ptNameBz" v-if="info.groupType">
  23. {{info.groupNumber}}人团
  24. </view>
  25. <view style="width: 550rpx;"> {{info.activityName}}</view>
  26. </view>
  27. <view class="name2">{{info.startTime.slice(0,10)}}~{{info.endTime.slice(0,10)}}</view>
  28. <view class="name3">{{info.activityContent}}</view>
  29. </view>
  30. <!-- 拼团 -->
  31. <view class="ptBox" v-if="info.groupList&&info.groupList.length>0">
  32. <view class="ptBoxtop">
  33. <view class="ptNum">{{info.groupList.length}}人正在拼团,可直接参与</view>
  34. <view class="ptMore" @click="ptMore">
  35. <sapn>查看更多</sapn>
  36. <img src="../../static/timg/jt2.png" alt="" class="shopjt">
  37. </view>
  38. </view>
  39. <view class="ptLine" v-for="(item,index) in info.groupList" v-if="index<3">
  40. <view class="FirstMobilePhone">{{item.FirstMobilePhone?item.FirstMobilePhone:'***'}}</view>
  41. <view class="ptlineRight">
  42. <view class="ptlinexx">
  43. <view class="DiffBNumber">还差 <span>{{item.DiffBNumber}}人</span>拼成 </view>
  44. <view class="ptdjs">剩余{{item.EndTime | limitTimeFilter }}</view><!-- | limitTimeFilter -->
  45. </view>
  46. <button open-type="share" class=" shareBtn" :data-obj="item" v-if="item.IfMyself">
  47. <view class="ptBtn" >邀请好友 </view>
  48. </button>
  49. <view class="ptBtn" @click="join(item)" v-else>去拼团 </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="couponPackageData" v-if="info.couponPackageName">
  54. <view class="couponPackageTitle">{{info.couponPackageName}}</view>
  55. <view class="linecouponCont" v-for="item in info.couponList">
  56. <view class="linecouponContLeft">
  57. <view class="couponType" v-if="item.discountType==1">满减券</view>
  58. <view class="couponType" v-if="item.discountType==2">商品券</view>
  59. <view class="couponType" v-if="item.discountType==3">服务券</view>
  60. <view class="couponName">{{item.actName}}</view>
  61. </view>
  62. <view class="couponNum">x{{item.actQty}}</view>
  63. </view>
  64. </view>
  65. <view class="shopBox">
  66. <view class="shopBoxTop">
  67. <view class="shopMs">活动门店</view>
  68. <view class="shopTy" @click="useShow">
  69. <view class="shopTyTxt">{{info.shopCount}}家门店通用</view>
  70. <img src="../../static/timg/jt2.png" alt="" class="shopjt">
  71. </view>
  72. </view>
  73. <!-- <view class="shopCont">
  74. <view class="shopContLeft">
  75. <view class="shopName">{{shopInfo.shopName}}</view>
  76. <view class="shopTime"><span v-if="shopInfo.startTime">{{shopInfo.startTime}}</span> - <span
  77. v-if="shopInfo.endTime">{{shopInfo.endTime}}</span> </view>
  78. <view class="shopaddress">{{shopInfo.address?shopInfo.address:''}}</view>
  79. </view>
  80. <view class="shopContRight">
  81. <view class="shopContRightLine" @click="getmap">
  82. <image src="../../static/timg/icon_map.png" alt="" class="shopRightIcon"></image>
  83. <view class="shopRightTxt">地图</view>
  84. </view>
  85. <view class="shopRightSx"></view>
  86. <view class="shopContRightLine" @click="call">
  87. <image src="../../static/timg/icon_phone.png" alt="" class="shopRightIcon"></image>
  88. <view class="shopRightTxt">电话</view>
  89. </view>
  90. </view>
  91. </view> -->
  92. <view class="symendinaBox">
  93. <view class="shopline" >
  94. <view class="newdistance" v-if="shopInfo.distance&&shopInfo.distance!= '0.00'">
  95. <image src="../../static/img2/dh.png" mode="" class="dhImg"></image>
  96. <view style="padding-top: 6rpx;"><span >{{shopInfo.distance}}km</span></view>
  97. </view>
  98. <view class="shoplineLeft">
  99. <image :src="shopInfo.doorImg1" mode="" class="shopImg" v-if="shopInfo.doorImg1"></image>
  100. <image :src="shopInfo.doorImg2" mode="" class="shopImg" v-else-if="shopInfo.doorImg2"></image>
  101. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  102. </view>
  103. <view class="shopright">
  104. <view style="width: 475rpx;">
  105. <view class="shopTop">
  106. <view class="shopName">{{shopInfo.shopName}}</view>
  107. </view>
  108. </view>
  109. <view class="shopTime">营业时间:<span v-if="shopInfo.startTime">{{shopInfo.startTime}}</span> - <span
  110. v-if="shopInfo.endTime">{{shopInfo.endTime}}</span> </view>
  111. <view class="shopBottomLeft">
  112. <span class="shopaddress"
  113. v-if="shopInfo.address">{{shopInfo.provinceName}}{{shopInfo.cityName}}{{shopInfo.areaName}}{{shopInfo.address}}</span>
  114. </view>
  115. <view class="shopdhBox">
  116. <view class="shopcall" @click.stop="goMap(shopInfo)">
  117. <image class="shopcallIcon" src="../../static/img2/dhjt.png" mode=""></image>
  118. <view class="shopcallTxt">导航</view>
  119. </view>
  120. <view class="shopcall" @click.stop="makePhoneCall(shopInfo.mobilePhone)">
  121. <image class="shopcallIcon" src="../../static/img2/call.png" mode=""></image>
  122. <view class="shopcallTxt">电话</view>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. <!-- 多少人报名 -->
  130. <view class="signupBox cyBox" v-if="info.signUserList.length">
  131. <!-- <view class="signupTop">
  132. <span class="signupTops1">{{info.sumNum}}</span>
  133. <span class="signupTops1">人已报名</span>
  134. </view> -->
  135. <view class="canyuBox">
  136. <view class="canyud"></view>
  137. <view class="canyuTxt">已有</view>
  138. <view class="canyuTxt2">{{info.sumNum}}</view>
  139. <view class="canyuTxt">人参与</view>
  140. <view class="canyud"></view>
  141. </view>
  142. <view class="signupCont">
  143. <view class="signupContTop">
  144. <view class="signupLineLName signupContTopView">用户</view>
  145. <view class="signupLineM signupContTopView">车牌号码</view>
  146. <view class="signupLineR signupContTopView">购买时间</view>
  147. </view>
  148. <view class="signupLine" v-for="(item,index) in info.signUserList">
  149. <view class="signupLineL">
  150. <!-- <img :src="item.headImg" alt="" class="signupLineLImg"> -->
  151. <view class="signupLineLName" v-if="item.nickName!='null'">{{item.nickName?item.nickName:'微信用户'}}</view>
  152. <view class="signupLineLName" v-else>微信用户</view>
  153. </view>
  154. <view class="signupLineM" v-if="item.plateNumber">{{item.plateNumber | maskLicensePlate}}</view>
  155. <view class="signupLineR">{{item.signTime}}</view>
  156. </view>
  157. <view class="signupMore">查看更多</view>
  158. </view>
  159. </view>
  160. <!-- 多少人报名 -->
  161. <!-- 多少人看过 -->
  162. <!-- <view class="signupBox" v-if="info.lookCount">
  163. <view class="signupTop">
  164. <span class="signupTops1">{{info.lookCount}}</span>
  165. <span class="signupTops1">人看过</span>
  166. </view> -->
  167. <!-- <view class="seeBox">
  168. <view class="seeLine" v-for="(item,index) in 15">
  169. <img src="http://dmsphoto.66km.com.cn/marketing//accompany/3885B510-6405-4A5E-BD64-B6C09CEE070E.jpg" alt="" class="signupLineLImg">
  170. </view>
  171. </view> -->
  172. <!-- </view> -->
  173. <view class="weiguanbox" v-if="info.lookCount">
  174. <view class="weiguanTxt">正在围观({{info.lookCount}}人)</view>
  175. </view>
  176. </view>
  177. <view class="detailBOx" v-if="dimgList.length>0">
  178. <view class="detailTitle">活动详情</view>
  179. <view class="detailImgBox" v-for="(item,index) in dimgList">
  180. <img :src="item.img" alt="" class="detailImg" mode="widthFix">
  181. </view>
  182. </view>
  183. <view class="companyName">©{{info.supportInfo}}</view>
  184. <view style="height: 200rpx;padding-bottom: constant(safe-area-inset-bottom);
  185. padding-bottom: env(safe-area-inset-bottom);"></view>
  186. <view class="bottom">
  187. <!-- <view class="timeTbox" v-if="!activityEnd">
  188. <view class="timeviewTxt" v-if="activityNoOpen"> 距开始</view>
  189. <view class="timeviewTxt" v-if="!activityNoOpen"> 距结束</view>
  190. <view class="timeK">{{shengyuD}}</view>
  191. <view class="timeviewTxt" > 天</view>
  192. <view class="timeK">{{shengyuH}}</view>
  193. <view class="timeviewTxt"> 时</view>
  194. <view class="timeK">{{shengyuM}}</view>
  195. <view class="timeviewTxt" > 分</view>
  196. </view> -->
  197. <view class="bottomBtnBox">
  198. <view class="bottomBtnBoxLeft" @click="shareShowzs" style="padding-left: 26rpx;">
  199. <image src="../../static/timg/share.png" alt="" class="shareIcon"></image>
  200. <view class="shareTxt">分享</view>
  201. </view>
  202. <view class="bottomBtnBoxLeft" @click="goOrder">
  203. <image src="../../static/timg/jkdingdan.png" alt="" class="shareIcon"></image>
  204. <view class="shareTxt">订单</view>
  205. </view>
  206. <view class="fxHb2" @click="gowp" v-if="info.state==2&&info.groupType==1">推广海报</view>
  207. <view v-else @click="gowp" class="fxHb">推广海报</view>
  208. <!-- <button open-type="share" class="bottomBtnBoxLeft shareBtn" >
  209. <image src="../../static/timg/share.png" mode="" class="shareIcon"></image>
  210. <view class="shareTxt">分享</view>
  211. </button> -->
  212. <!-- 状态1未开始 2进行中3已结束 -->
  213. <view class="bottomBtn commonBtn" v-if="info.state==2&&info.groupType!=1" @click="signUp" >
  214. <span v-if="info.payType==1">¥{{info.money}} &nbsp; 立即抢购</span>
  215. <span v-else>立即报名</span>
  216. </view>
  217. <view class="bottomPtBox" v-if="info.state==2&&info.groupType==1" >
  218. <view class="separate" @click="signUp">
  219. <view class="separateTop">¥{{info.money}}</view>
  220. <view class="separateTxt">单独购买</view>
  221. </view>
  222. <view class="groupBtn" @click="groupFn">
  223. <view class="groupBtnTop">¥{{info.groupMoney}}</view>
  224. <view class="groupBtnTxt">发起拼团</view>
  225. </view>
  226. </view>
  227. <view class="bottomBtn2" v-if="info.state==1">报名未开始</view>
  228. <view class="bottomBtn2" v-if="info.state==3">报名已结束</view>
  229. </view>
  230. </view>
  231. <!-- 报名弹框 -->
  232. <view class="baomingBox" v-if="bmShow" @click="nobmshow">
  233. <view class="baomingCont applicationTk" @click.stop="" :style="{bottom: jpHeight}">
  234. <view class="bmTop">
  235. <view class="bmTitle">登记信息</view>
  236. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="nobmshow"></image>
  237. </view>
  238. <view style="padding: 0 24rpx;">
  239. <!-- <view class="bmshopLine" @click="showCkshop">
  240. <view class="bmshopname" v-if="!shopName">请选择门店</view>
  241. <view class="bmshopname" style="color: #333333;">{{shopName}}</view>
  242. <image src="../../static/timg/icon_arrow_right.png" alt="" class="bmshopjt"></image>
  243. </view> -->
  244. <!-- clWhere报名凭证1,2,3,4 1手机号2车牌号3姓名4单位 -->
  245. <view class="bmLine" v-if="info.clWhere.indexOf(1)!=-1" @click="focusState1cl">
  246. <!-- :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">
  247. </view>
  248. <view class="bmLine" v-if="info.clWhere.indexOf(2)!=-1" @click="focusState2cl">
  249. <input type="text" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="plateNumber" class="bmlineInput" placeholder="输入车牌号" placeholder-style="color:#999999">
  250. </view>
  251. <view class="bmLine" v-if="info.clWhere.indexOf(3)!=-1" @click="focusState3cl">
  252. <input type="text" :hold-keyboard="true" :adjust-position="false" @blur="inputBindBlur" @focus="inputBindFocus" v-model="customerName" class="bmlineInput" placeholder="输入姓名" placeholder-style="color:#999999">
  253. </view>
  254. <view class="bmLine" v-if="info.clWhere.indexOf(4)!=-1" @click="focusState4cl">
  255. <input type="text" :adjust-position="false" :hold-keyboard="true" @blur="inputBindBlur" @focus="inputBindFocus" v-model="unit" class="bmlineInput" placeholder="输入单位" placeholder-style="color:#999999">
  256. </view>
  257. <view class="buySHop" @click="showCkshop">
  258. <view>服务门店</view>
  259. <view class="buyShopRight" >
  260. <view v-if="shopName">切换门店</view><!-- {{shopInfo.shopName}} -->
  261. <view v-else>请选择</view>
  262. <image src="../../static/timg/icon_arrow_right.png" mode="" class="buyShopRightJt"></image>
  263. </view>
  264. </view>
  265. <view class="buyShopBox"v-if="shopInfo"><!-- shopName -->
  266. <view class="buyShop">
  267. <view class="buyShopTop">
  268. <view class="buyShopTleft">
  269. <!-- <view class="shopbq">距离最近</view> -->
  270. <view class="buyshopName">{{shopInfo.shopName}}</view>
  271. </view>
  272. <view class="buyShopTRgiht">
  273. <image src="/static/timg/icon_checked@2x.png" mode="" class="duihao"></image>
  274. </view>
  275. </view>
  276. <view class="buyShopCont">
  277. <image :src="shopInfo.doorImg1" v-if="shopInfo.doorImg1" mode="" class="buyShopContImg"></image>
  278. <image :src="shopInfo.doorImg2" v-else-if="shopInfo.doorImg2" mode="" class="buyShopContImg"></image>
  279. <image src="/static/timg/noimg.png" v-else class="buyShopContImg"></image>
  280. <view class="buyShopContAdress">
  281. <span v-if="shopInfo.provinceName">{{shopInfo.provinceName}}</span>
  282. <span v-if="shopInfo.cityName">{{shopInfo.cityName}}</span>
  283. <span v-if="shopInfo.areaName">{{shopInfo.areaName}}</span>
  284. <span v-if="shopInfo.address">{{shopInfo.address}}</span>
  285. </view>
  286. <view class="buyShopJl" v-if="shopInfo.distance&&shopInfo.distance!= '0.00'">{{shopInfo.distance}}km</view>
  287. </view>
  288. </view>
  289. </view>
  290. </view>
  291. <view class="bmTtnBox">
  292. <view style="height: 1rpx;"></view>
  293. <view class="bmBtn commonBtn" @click="submitOrder" >
  294. <span v-if="groupOwner">
  295. ¥{{info.groupMoney}} &nbsp; {{groupOwner==1?'发起拼团':'立即拼团'}}
  296. </span>
  297. <span v-else>
  298. <span v-if="info.payType==1">¥{{info.money}} &nbsp; {{info.groupType==1?'单独购买':'立即抢购'}} </span>
  299. <span v-else>立即报名</span>
  300. </span>
  301. </view>
  302. </view>
  303. </view>
  304. </view>
  305. <!-- 门店弹框 -->
  306. <view class="baomingBox ckshopBox" v-if="ckshopShow">
  307. <view class="baomingCont">
  308. <view class="bmTop">
  309. <view class="bmTitle">选择门店</view>
  310. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="noShowShop"></image>
  311. </view>
  312. <view style="padding: 0 24rpx; height: 65vh;overflow-y: scroll;">
  313. <view class="ckshopLine" v-for="(item,index) in info.shopList" @click="ckshop(item)">
  314. <view class="shoplineLeft">
  315. <image :src="item.doorImg1" mode="" class="shopImg" v-if="item.doorImg1"></image>
  316. <image :src="item.doorImg2" mode="" class="shopImg" v-else-if="item.doorImg2"></image>
  317. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  318. </view>
  319. <view class="shopright" style="padding-left: 20rpx;">
  320. <view class="shopTop">
  321. <view class="shopName">{{item.shopName}}</view>
  322. </view>
  323. <!-- <view class="brandsBg" v-if="item.brands">
  324. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  325. </view> -->
  326. <view class="shopTime"><span v-if="item.startTime">{{item.startTime}}</span> - <span
  327. v-if="item.endTime">{{item.endTime}}</span> </view>
  328. <view class="shopBottomLeft">
  329. <span class="shopaddress"
  330. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  331. <!-- <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span> -->
  332. </view>
  333. </view>
  334. </view>
  335. </view>
  336. </view>
  337. </view>
  338. <!-- 适用门店 -->
  339. <view class="baomingBox ckshopBox" v-if="useShopShow" @click="noShowShop2">
  340. <view class="baomingCont" @click.stop="">
  341. <view class="bmTop">
  342. <view class="bmTitle">选择门店</view>
  343. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="noShowShop2"></image>
  344. </view>
  345. <view style="padding: 0 24rpx; height: 65vh;overflow-y: scroll;">
  346. <view class="ckshopLine" v-for="(item,index) in info.shopList" @click="ckshop(item)">
  347. <view class="newdistance" v-if="item.distance&&item.distance!= '0.00'">
  348. <image src="../../static/img2/dh.png" mode="" class="dhImg"></image>
  349. <view style="padding-top: 6rpx;"><span >{{item.distance}}km</span></view>
  350. </view>
  351. <view class="shoplineLeft">
  352. <image :src="item.doorImg1" mode="" class="shopImg" v-if="item.doorImg1"></image>
  353. <image :src="item.doorImg2" mode="" class="shopImg" v-else-if="item.doorImg2"></image>
  354. <image src="../../static/timg/noimg.png" mode="" class="shopImg" v-else></image>
  355. </view>
  356. <view class="shopright" style="padding-left: 20rpx;">
  357. <view class="shopTop">
  358. <view class="shopName">{{item.shopName}}</view>
  359. </view>
  360. <!-- <view class="brandsBg" v-if="item.brands">
  361. <view class="brands" v-for="(v,index2) in item.brands.split(',')">{{v}}</view>
  362. </view> -->
  363. <view class="shopTime"><span v-if="item.startTime">{{item.startTime}}</span> - <span
  364. v-if="item.endTime">{{item.endTime}}</span> </view>
  365. <view class="shopBottomLeft">
  366. <span class="shopaddress"
  367. v-if="item.address">{{item.provinceName}}{{item.cityName}}{{item.areaName}}{{item.address}}</span>
  368. <!-- <span v-if="item.distance&&item.distance!= '0.00'">{{item.distance}}km</span> -->
  369. </view>
  370. <view class="shopdhBox">
  371. <view class="shopcall" @click.stop="goMap(item)">
  372. <image class="shopcallIcon" src="../../static/img2/dhjt.png" mode=""></image>
  373. <view class="shopcallTxt">导航</view>
  374. </view>
  375. <view class="shopcall" @click.stop="makePhoneCall(item.mobilePhone)">
  376. <image class="shopcallIcon" src="../../static/img2/call.png" mode=""></image>
  377. <view class="shopcallTxt">电话</view>
  378. </view>
  379. <!-- <view class="shopcall"></view> -->
  380. </view>
  381. </view>
  382. </view>
  383. </view>
  384. </view>
  385. </view>
  386. <image src="../../static/timg/mp3.png" class="mp3Img" @click="play()" v-if="!payshow&mp3Url!=''"></image>
  387. <image src="../../static/timg/mp31.png" class="mp3Img" @click="play2()" id="bofang" v-if="payshow&mp3Url!=''"></image>
  388. <view class="shareBox" v-if="shareShow" @click="shareShowyc">
  389. <img :src="shareQrCode" alt=""style="width: 300rpx;height:300rpx">
  390. <view class="shareCont" >
  391. <button open-type="share" class=" shareBtn" >
  392. <image src="../../static/timg/icon_wxhy.png" mode="" class="shareBimg"></image>
  393. <view class="bottomTxtshare">分享</view>
  394. </button>
  395. <view @click="gowp">
  396. <img src="../../static/timg/icon_haibao.png" alt="" class="shareBimg">
  397. <view class="bottomTxtshare">生成海报</view>
  398. </view>
  399. </view>
  400. </view>
  401. <!-- 手机号授权 -->
  402. <view class="authorizBox" v-if="authorizShow" @click="authorizShowno">
  403. <view class="authorizCont" @click.stop="">
  404. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  405. <view class="authorizMs">未注册的手机号登录后将自动创建会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
  406. <view class="sqLine">
  407. <view class="sqRefuse" @click="authorizShowHide">拒绝</view>
  408. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  409. </view>
  410. </view>
  411. <view style="text-align: center;padding-top: 56rpx;">
  412. <image src="../../static/timg/icon_guanbi@2x.png" @click="authorizShowno" mode="" class="authorizCloseImg"></image>
  413. </view>
  414. </view>
  415. <!-- 拼单更多 -->
  416. <view class="baomingBox" v-if="djsMoreShow">
  417. <view class="djsCont">
  418. <view class="bmTop">
  419. <view class="bmTitle">{{info.groupList.length}}人正在拼团,可直接参与</view>
  420. <image src="../../static/timg/chahao.png" alt="" class="bmChimg" @click="ptMorehide"></image>
  421. </view>
  422. <view class="djsLineBox">
  423. <view class="ptLine" v-for="(item,index) in info.groupList">
  424. <view class="FirstMobilePhone">{{item.FirstMobilePhone?item.FirstMobilePhone:'***'}}</view>
  425. <view class="ptlineRight">
  426. <view class="ptlinexx">
  427. <view class="DiffBNumber">还差 <span>{{item.DiffBNumber}}人</span>拼成 </view>
  428. <view class="ptdjs">剩余{{item.EndTime | limitTimeFilter }}</view><!-- | limitTimeFilter -->
  429. </view>
  430. <button open-type="share" class=" shareBtn" :data-obj="item" v-if="item.IfMyself">
  431. <view class="ptBtn" >邀请好友 </view>
  432. </button>
  433. <view class="ptBtn" @click="join(item)" v-else>去拼团</view>
  434. </view>
  435. </view>
  436. </view>
  437. </view>
  438. </view>
  439. </view>
  440. </template>
  441. <script>
  442. import homenav from "../../components/homenav/nav.vue"
  443. let that;
  444. export default {
  445. components: {
  446. homenav
  447. },
  448. data() {
  449. return {
  450. info:'',
  451. type:'',
  452. shopNum:'',
  453. shopInfo:'',
  454. activityEnd:true,
  455. activityNoOpen:true,
  456. shengyuD:'',
  457. shengyuH:'',
  458. shengyuM:'',
  459. queryShopList:'',
  460. collectingID:'',
  461. bmShow:false,
  462. ckshopShow:false,
  463. mainImg:'',
  464. dimgList:[],
  465. shopName:'',
  466. ckshopdata:'',
  467. customerName:'',
  468. mobilePhone:'',
  469. unit:'',
  470. plateNumber:'',
  471. comment:'',
  472. userInfo:'',
  473. useShopShow:false,
  474. jpHeight:0,
  475. isPlay: false,
  476. mp3Url:'',
  477. payshow:false,
  478. jpNum:1,
  479. focusState1:false,
  480. focusState2:false,
  481. focusState3:false,
  482. focusState4:false,
  483. shareShow:false,
  484. ext:'',
  485. shareId:'',
  486. scene:'',
  487. themeColor:'',
  488. authorizShow:false,
  489. wxOpenData:'',
  490. ext:'',
  491. iStatusBarHeight:'',
  492. groupOwner:'',
  493. groupID:'',
  494. ticker: null,
  495. djsMoreShow:false,
  496. isgo:true,
  497. location: {
  498. lng: '',
  499. lat: '',
  500. },
  501. coverimg:'',
  502. photoimg:'',
  503. }
  504. },
  505. onLoad(opt) {
  506. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  507. console.log(opt)
  508. this.collectingID=opt.id;
  509. if(opt.shareId){
  510. this.shareId=opt.shareId
  511. }
  512. this.ext=this.$common.getExtStoreId();
  513. // opt.scene='10002'
  514. if(this.userInfo){
  515. this.userInfo=this.$store.state.userInfo;
  516. this.wxOpenData=this.$store.state.wxOpenData;
  517. this.themeColor = uni.getStorageSync("themeColor");
  518. this.queryGoodsLook()
  519. if(opt.scene&&opt.scene!='undefined'){
  520. this.scene=opt.scene;
  521. this.getShareParams()
  522. }else{
  523. //this.getInfo();
  524. this.queryActivityInfo();
  525. this.queryGoodsLook()
  526. }
  527. }else{
  528. this.$common.automaticlogin().then(val => {
  529. this.themeColor = uni.getStorageSync("themeColor");
  530. this.userInfo=this.$store.state.userInfo;
  531. this.wxOpenData=this.$store.state.wxOpenData;
  532. if(opt.scene&&opt.scene!='undefined'){
  533. this.scene=opt.scene;
  534. this.getShareParams()
  535. }else{
  536. //this.getInfo();
  537. this.queryActivityInfo();
  538. this.queryGoodsLook()
  539. }
  540. //this.queryActivityInfo();
  541. })
  542. }
  543. this.shopckList= uni.getStorageSync("shopckList");
  544. //this.ckmusic=uni.getStorageSync("ckmusic");
  545. //这一段是防止进入页面出去后再进来计时器重复启动
  546. if (this.ticker) {
  547. clearInterval(this.ticker);
  548. }
  549. /* uni.showShareMenu({
  550. withShareTicket: true,
  551. menus: ['shareAppMessage', 'shareTimeline'], // 自定义分享面板的菜单项
  552. }); */
  553. },
  554. onShow() {
  555. this.shopName=this.$store.state.ckshopInfo.shopName;
  556. if(this.$store.state.ckshopInfo){
  557. this.ckshopdata=this.$store.state.ckshopInfo
  558. this.shopInfo=this.$store.state.ckshopInfo
  559. }
  560. /* console.log(this.shopName)
  561. console.log(this.shopInfo) */
  562. },
  563. onPullDownRefresh(){
  564. //this.getInfo();
  565. this.queryActivityInfo();
  566. setTimeout(() => {
  567. uni.stopPullDownRefresh(); // 关闭下拉刷新
  568. }, 1000);
  569. },
  570. onHide(){
  571. this.bgmMusic.stop(()=>{
  572. console.log('背景音乐停止了');
  573. });
  574. if (this.ticker) {
  575. clearInterval(this.ticker);
  576. }
  577. },
  578. onUnload(){
  579. this.bgmMusic.stop()
  580. },
  581. methods: {
  582. ptMore(){
  583. this.djsMoreShow=true;
  584. },
  585. ptMorehide(){
  586. this.djsMoreShow=false;
  587. },
  588. beginTimer() { //这个计时器是每秒减去数组中指定字段的时间
  589. // console.log("??????????????????"+this.info.groupType)
  590. if(this.info.groupType){
  591. this.ticker = setInterval(() => {
  592. this.info.groupList= JSON.parse(JSON.stringify( this.info.groupList))
  593. /* for (let i = 0, len = this.info.groupList.length; i < len; i++) {
  594. const item = this.info.groupList[i];
  595. if (item.EndTime) {
  596. }
  597. } */
  598. }, 1000);
  599. }
  600. },
  601. setDate(time) {
  602. var t_s = Date.parse(new Date(time)); //转化为时间戳毫秒数
  603. // console.log(t_s)
  604. var newt=t_s - 1000; //设置新时间比旧时间少一秒
  605. return this.formatDate(newt)
  606. } ,
  607. formatDate(time) {
  608. let date = new Date(time);
  609. let YY = date.getFullYear();
  610. let MM = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
  611. let DD = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
  612. let hh = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  613. let mm = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  614. let ss = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
  615. // 这里可以修改返回的日期格式
  616. return YY + "-" + MM + "-" + DD + " " + hh + ":" + mm + ":" + ss;
  617. },
  618. authorizShowno(){
  619. this.authorizShow=false
  620. },
  621. getShareParams(){
  622. this.$http('openMall/getShareParams', {
  623. scene:this.scene,
  624. },'GET').then(res => {
  625. this.collectingID=res.data.goodsID;
  626. this.shareId=res.data.operatorID
  627. this.queryActivityInfo();
  628. this.queryGoodsLook()
  629. })
  630. },
  631. gowp(){
  632. var time=''
  633. if(this.info.startTime){
  634. var time = this.info.startTime.slice(0,10) + '~' +this.info.endTime.slice(0,10)
  635. }else{
  636. }
  637. var sellingPoint='';
  638. if(this.info.activityContent){
  639. sellingPoint=this.info.activityContent
  640. }
  641. //console.log(sellingPoint)
  642. this.shareShow=false;
  643. var title=''
  644. if(this.info.shareWords){
  645. title=this.info.shareWords
  646. }else{
  647. title= this.info.activityName
  648. }
  649. var img='';
  650. if(this.photoimg){
  651. img=this.photoimg
  652. }else if(this.mainImg){
  653. img=this.mainImg
  654. }else{
  655. img="http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png"
  656. }
  657. uni.navigateTo({
  658. url:'../shop/wp?img='+img+'&name='+title+'&time='+time+'&sellingPoint='+sellingPoint+'&id='+this.collectingID+'&type=2'+'&groupType='+this.info.groupType
  659. })
  660. },
  661. goOrder(){
  662. uni.navigateTo({
  663. url: '../user/myOrder/myOrder?num=0'
  664. })
  665. },
  666. shareShowyc(){
  667. this.shareShow=false;
  668. },
  669. shareShowzs(){
  670. this.shareShow=true;
  671. },
  672. focusState1cl(){
  673. this.focusState1=true;
  674. },
  675. focusState2cl(){
  676. this.focusState2=true;
  677. },
  678. focusState3cl(){
  679. this.focusState3=true;
  680. },
  681. focusState4cl(){
  682. this.focusState4=true;
  683. },
  684. inputBindFocus(e){
  685. //console.log( e.detail.height);
  686. this.jpHeight=e.detail.height+ "px";
  687. //console.log(this.jpHeight)
  688. },
  689. inputBindBlur(){
  690. //return false;
  691. uni.onKeyboardHeightChange((obj)=>{
  692. console.log("inputBindBlur"+obj.height)
  693. let _sysInfo = uni.getSystemInfoSync();
  694. let _heightDiff = _sysInfo.screenHeight - _sysInfo.windowHeight
  695. let _diff = obj.height - _heightDiff;
  696. console.log(_diff)
  697. if(_diff<0||_diff==0){
  698. this.jpHeight=0
  699. }
  700. // 键盘高度
  701. //this.jpHeight = (_diff > 0 ? _diff : 0) - 2 + "px";
  702. })
  703. if(this.jpNum==1){
  704. this.jpHeight=0
  705. }
  706. this.jpNum++;
  707. },
  708. queryGoodsLook(){
  709. this.$http('openmy/queryGoodsLook', {
  710. goodsId:this.collectingID,
  711. openId:this.userInfo.openId
  712. },'POST').then(res => {
  713. })
  714. },
  715. noShowShop2(){
  716. this.useShopShow=false;
  717. },
  718. useShow(){
  719. this.useShopShow=true;
  720. },
  721. submitOrder(){
  722. uni.hideKeyboard()
  723. var jsonArray={
  724. itemId:this.collectingID,
  725. itemName:this.info.activityName,
  726. itemQty:1,
  727. salePrice:this.info.money?this.info.money:0,
  728. totalPrice:this.info.money?this.info.money:0,
  729. }
  730. /* if(this.ckshopdata==''){
  731. uni.showToast({
  732. title: '请选择服务门店',
  733. icon: 'none',
  734. duration: 3000
  735. });
  736. return false;
  737. } */
  738. if(this.shopInfo==''){
  739. uni.showToast({
  740. title: '请选择服务门店',
  741. icon: 'none',
  742. duration: 3000
  743. });
  744. return false;
  745. }
  746. if(this.info.clWhere.indexOf(1)!=-1&&this.mobilePhone==''){
  747. uni.showToast({
  748. title: '请输入手机号',
  749. icon: 'none',
  750. duration: 3000
  751. });
  752. return false;
  753. }
  754. if(this.info.clWhere.indexOf(2)!=-1&&this.plateNumber==''){
  755. uni.showToast({
  756. title: '请输入车牌号',
  757. icon: 'none',
  758. duration: 3000
  759. });
  760. return false;
  761. }
  762. if(this.info.clWhere.indexOf(3)!=-1&&this.customerName==''){
  763. uni.showToast({
  764. title: '请输入姓名',
  765. icon: 'none',
  766. duration: 3000
  767. });
  768. return false;
  769. }
  770. if(this.info.clWhere.indexOf(4)!=-1&&this.unit==''){
  771. uni.showToast({
  772. title: '请输入单位',
  773. icon: 'none',
  774. duration: 3000
  775. });
  776. return false;
  777. }
  778. var arr=[]
  779. arr.push(jsonArray)
  780. var params={
  781. sheetType:'6',
  782. sheetContent:this.info.activityName,
  783. customerName:this.customerName,
  784. mobilePhone:this.mobilePhone,
  785. unit:this.unit,
  786. plateNumber:this.plateNumber,
  787. //carModel:this.carInfo.carModel,
  788. totalMoney:this.info.money?this.info.money:0,
  789. shopId:this.shopInfo.id,//this.ckshopdata.id,
  790. comment:this.comment,
  791. sheetDetail:JSON.stringify(arr),
  792. payType:this.info.payType,
  793. shareId:this.shareId,
  794. groupType:0,
  795. }
  796. if(this.groupOwner==1){
  797. params.groupOwner=1;
  798. params.groupType=1;
  799. params.totalMoney=this.info.groupMoney
  800. }
  801. if(this.groupOwner==2){
  802. params.groupOwner=2;
  803. params.groupType=1;
  804. params.groupID=this.groupID;
  805. params.totalMoney=this.info.groupMoney
  806. }
  807. uni.showLoading({
  808. title: '加载中'
  809. })
  810. if(!this.isgo){
  811. return false
  812. }
  813. this.isgo=false;
  814. this.$http('openMallOrder/submitOrder', params,'POST').then(res => {
  815. uni.hideLoading();
  816. this.isgo=true;
  817. if(res.code==0){
  818. this.orderData=res.data
  819. if(this.info.payType==1){
  820. this.unifiedPay(res.data)
  821. }else{
  822. uni.showToast({
  823. title: '报名成功',
  824. icon: 'none',
  825. duration: 3000
  826. });
  827. uni.redirectTo({
  828. url: "../user/myOrder/activityOrderDetail?id=" + this.orderData.id +"&SheetType=" + this.orderData.sheetType
  829. })
  830. }
  831. }else{
  832. uni.showToast({
  833. title: res.msg,
  834. icon: 'none',
  835. duration: 3000
  836. });
  837. }
  838. })
  839. },
  840. unifiedPay(res){
  841. this.$http('openMallOrder/unifiedPay', {
  842. sheetId:res.id
  843. },'POST').then(res => {
  844. if(res.code==0){
  845. this.requestPayment(res.data)
  846. }else{
  847. uni.showToast({
  848. title: res.msg,
  849. icon: 'none',
  850. duration: 3000
  851. });
  852. }
  853. })
  854. },
  855. requestPayment(res){
  856. var payInfo=res;
  857. //console.log(payInfo)
  858. //console.log(String(Date.now()))
  859. var that=this;
  860. uni.requestPayment({
  861. provider: 'wxpay',
  862. //timeStamp: String(Date.now()),
  863. timeStamp: payInfo.timeStamp,
  864. nonceStr: payInfo.nonceStr,
  865. package:payInfo.package,
  866. signType: payInfo.signType,
  867. paySign: payInfo.paySign,
  868. appid:payInfo.appId,
  869. success: function (res) {
  870. console.log('success:' + JSON.stringify(res));
  871. uni.showToast({
  872. title: '支付成功',
  873. icon:'none',
  874. duration: 2000
  875. });
  876. uni.navigateTo({
  877. url:'../subPack/paySuccess?id=' + that.orderData.id +"&SheetType=" + that.orderData.sheetType+'&sx=1'+"&orderType=jike"
  878. })
  879. /* uni.redirectTo({
  880. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType+'&sx=1'
  881. }) */
  882. },
  883. fail: function (err) {
  884. console.log(err)
  885. uni.showToast({
  886. title: '支付失败',
  887. icon:'none',
  888. duration: 2000
  889. });
  890. console.log(that.orderData)
  891. /* uni.redirectTo({
  892. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  893. }) */
  894. uni.navigateTo({
  895. url:'../subPack/paySuccess?id=' + that.orderData.id +"&SheetType=" + that.orderData.sheetType+'&sx=1'+"&orderType=jike"
  896. })
  897. }
  898. });
  899. },
  900. signUp(){
  901. this.groupOwner=0;
  902. if(this.userInfo){
  903. console.log(this.wxOpenData)
  904. /* this.info.shopList.forEach(item=>{
  905. if(item.id == this.shopInfo.id){
  906. this.ckshopdata=item;
  907. this.shopName=item.shopName;
  908. }
  909. }) */
  910. this.mobilePhone= this.userInfo.mobilePhone
  911. if(this.wxOpenData.loginInfo.customerInfo){
  912. this.customerName=this.wxOpenData.loginInfo.customerInfo.customerName
  913. }
  914. if(this.$store.state.carInfo){
  915. this.plateNumber=this.$store.state.carInfo.plateNumber;
  916. }
  917. this.bmShow=true;
  918. }else{
  919. this.authorizShow=true
  920. }
  921. },
  922. groupFn(){
  923. this.groupOwner=1;
  924. if(this.userInfo){
  925. this.bmShow=true;
  926. }else{
  927. this.authorizShow=true
  928. }
  929. },
  930. join(e){
  931. this.groupOwner=2;
  932. this.groupID=e.ID
  933. if(this.userInfo){
  934. this.bmShow=true;
  935. }else{
  936. this.authorizShow=true
  937. }
  938. },
  939. nobmshow(){
  940. this.bmShow=false;
  941. },
  942. ckshop(item){
  943. this.ckshopdata=item;
  944. this.shopName=item.shopName;
  945. this.ckshopShow=false;
  946. this.shopInfo=item
  947. this.useShopShow=false;
  948. },
  949. showCkshop(){
  950. console.log("选择门店")
  951. //this.ckshopShow=true;
  952. uni.navigateTo({
  953. url:'/pages/shop/ckshopList?goodsId='+this.collectingID+'&type=5'
  954. })
  955. },
  956. noShowShop(){
  957. this.ckshopShow=false;
  958. },
  959. queryActivityInfo(){
  960. var that=this
  961. uni.authorize({
  962. scope: 'scope.userLocation',
  963. success() {
  964. uni.getLocation({
  965. type: 'gcj02',
  966. success: function(res) {
  967. console.log(res)
  968. that.location.lat = res.latitude
  969. that.location.lng = res.longitude
  970. that.getqueryActivityInfo();
  971. },
  972. fail(err) {
  973. console.log("定位失败")
  974. that.getqueryActivityInfo();
  975. }
  976. });
  977. },
  978. fail: (err) => {
  979. console.log(err)
  980. that.getqueryActivityInfo();
  981. }})
  982. },
  983. getqueryActivityInfo(){
  984. uni.showLoading({
  985. title: '加载中'
  986. })
  987. this.$http('openHome/queryActivityInfo', {
  988. collectingID:this.collectingID,
  989. lat: this.location.lat ? this.location.lat : '',
  990. lng: this.location.lng ? this.location.lng : '',
  991. }, 'GET').then(res => {
  992. //uni.hideLoading();
  993. this.info = res.data;
  994. console.log(this.info)
  995. this.getInfo();
  996. this.dimgList=[]
  997. if(this.info.imgList){
  998. this.info.imgList.forEach(item=>{
  999. if(item.imgType==1){
  1000. this.mainImg=item.img
  1001. }else{
  1002. this.dimgList.push(item)
  1003. }
  1004. if(item.imgType==3){
  1005. this.coverimg=item.img
  1006. }
  1007. if(item.imgType==4){
  1008. this.photoimg=item.img
  1009. }
  1010. })
  1011. }
  1012. if (this.info.endTime < this.info.startTime) {
  1013. // this.$vux.toast.text('时间设置错误')
  1014. return
  1015. }
  1016. // this.activityNoOpen
  1017. if (Number(new Date().getTime()) > (Number(new Date(this.info.startTime.replace(/-/g, '/')).getTime()) || 0)) {
  1018. console.log("现在时间大于开始时间")
  1019. this.activityNoOpen = false
  1020. } else {
  1021. this.activityNoOpen = true
  1022. }
  1023. if (Number(new Date().getTime()) > Number(new Date(this.info.endTime.replace(/-/g, '/')).getTime())) {
  1024. console.log("现在时间大于结束时间")
  1025. this.activityEnd = true
  1026. } else {
  1027. this.activityEnd = false
  1028. }
  1029. if (!this.activityNoOpen && !this.activityEnd) {
  1030. this.clock()
  1031. }
  1032. if (this.activityNoOpen && !this.activityEnd) {
  1033. this.clock2()
  1034. }
  1035. if(this.info.music){
  1036. this.bgmMusic = uni.createInnerAudioContext();
  1037. this.bgmMusic.autoplay = true;//自动播放
  1038. this.bgmMusic.loop = true;//循环播放
  1039. //this.mp3Url='http://dmsimg.66km.com/music/sakuratears.mp3';
  1040. //this.bgmMusic.src ='http://dmsimg.66km.com/music/sakuratears.mp3'//, mp3Url;//背景音乐地址
  1041. this.mp3Url=this.info.music.music;
  1042. this.bgmMusic.src =this.info.music.music; //
  1043. this.bgmMusic.onPlay(function(){
  1044. console.log('背景音乐播放中');
  1045. });
  1046. this.bgmMusic.onError((res) => {
  1047. console.log(res.errMsg);
  1048. console.log(res.errCode);
  1049. });
  1050. }
  1051. })
  1052. },
  1053. play2(){
  1054. this.bgmMusic.play();
  1055. this.payshow=false;
  1056. },
  1057. play(){
  1058. this.payshow=true;
  1059. this.bgmMusic.stop(()=>{
  1060. console.log('背景音乐停止了');
  1061. });
  1062. },
  1063. getInfo(){
  1064. var that=this
  1065. that.getInfo2();
  1066. /* uni.authorize({
  1067. scope: 'scope.userLocation',
  1068. success() {
  1069. uni.getLocation({
  1070. type: 'gcj02',
  1071. success: function(res) {
  1072. console.log(res)
  1073. that.location.lat = res.latitude
  1074. that.location.lng = res.longitude
  1075. that.getInfo2();
  1076. },
  1077. fail(err) {
  1078. console.log("定位失败")
  1079. that.getInfo2();
  1080. }
  1081. });
  1082. },
  1083. fail: (err) => {
  1084. console.log(err)
  1085. that.getInfo2();
  1086. }}) */
  1087. },
  1088. getInfo2(){
  1089. this.$http('openreservation/getInfo', {
  1090. lat: this.location.lat ? this.location.lat : '',
  1091. lng: this.location.lng ? this.location.lng : '',
  1092. }, 'GET').then(res => {
  1093. uni.hideLoading();
  1094. //this.shopInfo = res.data.shopInfo
  1095. var shopinfo=res.data.shopInfo;
  1096. if(this.location.lng){
  1097. this.shopInfo=this.info.shopList[0]
  1098. }else{
  1099. this.info.shopList.forEach(item=>{
  1100. if(item.id==shopinfo.id){
  1101. this.ckshopdata=shopinfo
  1102. this.shopInfo=shopinfo
  1103. this.shopName=this.shopInfo.shopName
  1104. }
  1105. })
  1106. if(this.shopInfo==''){
  1107. this.shopInfo=this.info.shopList[0]
  1108. //this.shopName=this.shopInfo.shopName
  1109. }
  1110. }
  1111. })
  1112. this.beginTimer();
  1113. },
  1114. call() {
  1115. uni.makePhoneCall({
  1116. phoneNumber: this.shopInfo.mobilePhone
  1117. });
  1118. },
  1119. getmap() {
  1120. console.log("打开地图")
  1121. var that = this;
  1122. if (!that.shopInfo.lat || !that.shopInfo.lng) {
  1123. uni.showToast({
  1124. title: '该店铺未设置定位',
  1125. icon: 'none',
  1126. duration: 3000
  1127. });
  1128. } else {
  1129. uni.openLocation({
  1130. latitude: Number(that.shopInfo.lat),
  1131. longitude: Number(that.shopInfo.lng),
  1132. name: that.shopInfo.shopName,
  1133. address: that.shopInfo.provinceName + that.shopInfo.cityName + that.shopInfo.areaName + that.shopInfo.address,
  1134. success: function() {
  1135. console.log('success');
  1136. },
  1137. fail(err) {
  1138. console.log(err)
  1139. }
  1140. });
  1141. }
  1142. },
  1143. clock () {
  1144. let _this = this
  1145. let today = new Date() // 当前时间
  1146. let h = today.getHours()
  1147. let m = today.getMinutes()
  1148. let s = today.getSeconds()
  1149. let stopTime = new Date(_this.info.endTime.replace(/-/g, '/')) // 结束时间
  1150. if (Number(new Date(_this.info.endTime).getTime()) < Number(new Date().getTime())) {
  1151. this.activityEnd = true
  1152. return
  1153. }
  1154. let stopH = stopTime.getHours()
  1155. let stopM = stopTime.getMinutes()
  1156. let stopS = stopTime.getSeconds()
  1157. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  1158. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1159. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  1160. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  1161. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  1162. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  1163. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  1164. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  1165. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  1166. // setTimeout("clock()",500);
  1167. this.shengyuM=shengyuM;
  1168. this.shengyuD=shengyuD;
  1169. this.shengyuH=shengyuH;
  1170. setTimeout(_this.clock, 500)
  1171. },
  1172. clock2(){
  1173. let _this = this
  1174. let today = new Date() // 当前时间
  1175. let h = today.getHours()
  1176. let m = today.getMinutes()
  1177. let s = today.getSeconds()
  1178. let startTime = new Date(_this.info.startTime.replace(/-/g, '/')) // 结束时间
  1179. if (Number(new Date(_this.info.startTime).getTime()) < Number(new Date().getTime())) {
  1180. this.activityNoOpen = true
  1181. return
  1182. }
  1183. let stopH = startTime.getHours()
  1184. let stopM = startTime.getMinutes()
  1185. let stopS = startTime.getSeconds()
  1186. let shenyu = startTime.getTime() - today.getTime() // 倒计时毫秒数
  1187. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  1188. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  1189. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  1190. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  1191. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  1192. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  1193. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  1194. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  1195. // setTimeout("clock()",500);
  1196. this.shengyuM=shengyuM;
  1197. this.shengyuD=shengyuD;
  1198. this.shengyuH=shengyuH;
  1199. setTimeout(_this.clock2, 500)
  1200. },
  1201. decryptPhoneNumber: function(e) {
  1202. console.log(e);
  1203. this.code=e.detail.code
  1204. this.wxPhoneLogin()
  1205. this.authorizShow=false;
  1206. },
  1207. wxPhoneLogin(){
  1208. var that=this;
  1209. this.$http('miniApp2/sys/wxPhoneLogin', {
  1210. appId:this.ext.appId,
  1211. unionId:this.ext.unionId,
  1212. code:this.code,
  1213. openId:this.wxOpenData.openid
  1214. },'POST').then(res => {
  1215. var data = res.data;
  1216. if(data.loginInfo){
  1217. this.userInfo=data.loginInfo.openUser;
  1218. this.wxOpenData=data.loginInfo;
  1219. this.$store.commit('mutationswxOpenData', data)
  1220. this.$store.commit('mutationsuserInfo', this.userInfo)
  1221. this.getInfo()
  1222. }
  1223. })
  1224. },
  1225. makePhoneCall(num){
  1226. uni.makePhoneCall({
  1227. phoneNumber:num
  1228. });
  1229. },
  1230. goMap(item){
  1231. var that = this;
  1232. if (!item.lat || !item.lng) {
  1233. uni.showToast({
  1234. title: '该店铺未设置定位',
  1235. icon: 'none',
  1236. duration: 3000
  1237. });
  1238. } else {
  1239. uni.openLocation({
  1240. latitude: Number(item.lat),
  1241. longitude: Number(item.lng),
  1242. name: item.shopName,
  1243. address: item.provinceName + item.cityName + item.areaName +
  1244. item.address,
  1245. success: function() {
  1246. console.log('success');
  1247. },
  1248. fail(err) {
  1249. console.log(err)
  1250. }
  1251. });
  1252. }
  1253. },
  1254. },
  1255. filters: {
  1256. // 拼团有效期的filter
  1257. limitTimeFilter (val) {
  1258. //console.log('limitTimeFilter')
  1259. //https://blog.csdn.net/qq_39905409/article/details/104478623
  1260. if (val) {
  1261. //console.log(val)
  1262. let formateLimitTimes = that.$common.formateTimeStamp(val);
  1263. let txt = `${formateLimitTimes.hour} : ${formateLimitTimes.min} : ${formateLimitTimes.seconds} `;
  1264. /* if (formateLimitTimes.day != '00') {
  1265. txt = `${Number(formateLimitTimes.day)*24} 时 ${formateLimitTimes.min} 分 ${formateLimitTimes.seconds} 秒`;
  1266. } */
  1267. return txt;
  1268. } else {
  1269. const twtxt = `0 : 0 : 0 `
  1270. return twtxt;
  1271. }
  1272. },
  1273. maskLicensePlate(value) {
  1274. return value.replace(/(\w{1})(\w{3})(\w{1})/, '$1***$3');
  1275. }
  1276. },
  1277. beforeCreate: function () {
  1278. that = this;
  1279. },
  1280. onShareAppMessage(res) {
  1281. console.log(res)
  1282. var img='';
  1283. if(this.coverimg){
  1284. img=this.coverimg
  1285. }else if(this.mainImg){
  1286. img=this.mainImg
  1287. }else{
  1288. img="http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png"
  1289. }
  1290. /* if(this.info.ImgList.length>0){
  1291. img=this.info.ImgList[0].url
  1292. } */
  1293. console.log(this.info.groupType)
  1294. if(this.info.groupType){
  1295. //console.log(res.target.dataset.obj.ID)
  1296. var url= 'pages/subPack/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId+'&shareName='+this.userInfo.nickName+'&groupID='+res.target.dataset.obj.ID
  1297. }else{
  1298. var url= 'pages/activity/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId
  1299. }
  1300. var title=''
  1301. if(this.info.shareWords){
  1302. title=this.info.shareWords
  1303. }else{
  1304. title= this.info.activityName
  1305. }
  1306. return {
  1307. title: title,
  1308. imageUrl:img,
  1309. //imageUrl:this.mainImg,
  1310. //imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
  1311. path:url,
  1312. success(res){
  1313. uni.showToast({
  1314. title:'分享成功'
  1315. })
  1316. },
  1317. fail(res){
  1318. uni.showToast({
  1319. title:'分享失败',
  1320. icon:'none',
  1321. duration: 3000
  1322. })
  1323. }
  1324. }
  1325. },
  1326. onShareTimeline(res) {
  1327. if(this.info.groupType){
  1328. //console.log(res.target.dataset.obj.ID)
  1329. var url= 'id=' + this.collectingID+'&shareId='+this.userInfo.openId+'&shareName='+this.userInfo.nickName//+'&groupID='+res.target.dataset.obj.ID
  1330. }else{
  1331. var url= 'id=' + this.collectingID+'&shareId='+this.userInfo.openId
  1332. }
  1333. var title=''
  1334. if(this.info.shareWords){
  1335. title=this.info.shareWords
  1336. }else{
  1337. title= this.info.activityName
  1338. }
  1339. var img='';
  1340. if(this.coverimg){
  1341. img=this.coverimg
  1342. }else if(this.mainImg){
  1343. img=this.mainImg
  1344. }else{
  1345. img="http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png"
  1346. }
  1347. return {
  1348. title: title,
  1349. query:url,
  1350. imageUrl:img,
  1351. }
  1352. }
  1353. }
  1354. </script>
  1355. <style scoped>
  1356. .ptNameBz{
  1357. font-weight: 500;line-height: 34rpx;
  1358. font-size: 22rpx;height: 32rpx;
  1359. color: #FD0F00;margin-top: 6rpx;margin-right: 10rpx;
  1360. background: url('http://dmsphoto.66km.com.cn/thFiles/2AF1130F-C318-45D3-B057-FA0728B41046.png') no-repeat;
  1361. background-size: 100% 100%;
  1362. padding-left: 64rpx;padding-right: 4rpx;
  1363. }
  1364. .name{
  1365. display: flex;
  1366. }
  1367. .djsCont{
  1368. width: 638rpx;
  1369. height: 50vh;
  1370. background: #fff;
  1371. margin-top: 20vh;
  1372. margin-left:56rpx ;border-radius: 15rpx;
  1373. }
  1374. .djsCont .ptLine{
  1375. border-top:0;
  1376. border-bottom: 1px solid #EEEEEE;
  1377. }
  1378. .djsCont .bmTop{
  1379. border-bottom: 1px solid #EEEEEE;
  1380. padding: 24rpx;
  1381. }
  1382. .djsLineBox{
  1383. height: calc(60vh - 120rpx);
  1384. overflow-y: scroll;
  1385. }
  1386. .ptLine{
  1387. display: flex;
  1388. justify-content: space-between;
  1389. padding: 26rpx 24rpx;border-top: 1px solid #EEEEEE;
  1390. }
  1391. .FirstMobilePhone{
  1392. font-weight: 400;
  1393. color: #222222;font-size: 28rpx;line-height: 60rpx;
  1394. }
  1395. .DiffBNumber{
  1396. font-weight: 400;text-align: right;
  1397. color: #222222;font-size: 26rpx;
  1398. }
  1399. .ptlineRight{
  1400. display: flex;
  1401. }
  1402. .ptlinexx{
  1403. padding-right: 12rpx;
  1404. }
  1405. .ptBtn{
  1406. width: 137rpx;font-weight: 400;
  1407. color: #FFFFFF;font-size: 26rpx;
  1408. height: 60rpx;text-align: center;
  1409. background: #E02E24;line-height: 60rpx;
  1410. border-radius: 6rpx;
  1411. margin-top: 4rpx;
  1412. }
  1413. .ptdjs{
  1414. font-weight: 400;
  1415. color: #666666;font-size: 24rpx;
  1416. }
  1417. .ptBox{
  1418. background: #ffffff;margin-top: 20rpx;
  1419. border-radius: 20rpx;
  1420. }
  1421. .bottomPtBox{
  1422. display: flex;margin-top: 24rpx;
  1423. padding-left: 20rpx;
  1424. }
  1425. .ptNum{
  1426. font-weight: 400;
  1427. color: #222222;font-size: 28rpx;
  1428. }
  1429. .ptBoxtop{
  1430. display: flex;justify-content: space-between;
  1431. padding: 20rpx 24rpx;
  1432. }
  1433. .ptMore{
  1434. font-weight: 400;
  1435. color: #666666;font-size: 24rpx;
  1436. }
  1437. .separate{
  1438. width: 182rpx;
  1439. height: 84rpx;
  1440. text-align: center;color:#EC0F0A;
  1441. border: 2rpx solid #EC0F0A;
  1442. border-radius: 16rpx 0rpx 0rpx 16rpx;
  1443. }
  1444. .separate .separateTop{
  1445. color:#EC0F0A;
  1446. }
  1447. .separate .separateTxt{
  1448. color:#EC0F0A;
  1449. }
  1450. .groupBtn{
  1451. width: 182rpx;
  1452. height: 88rpx;text-align: center;color: #ffffff;
  1453. background: #EC0F0A;
  1454. border-radius: 0rpx 16rpx 16rpx 0rpx;
  1455. }
  1456. .separateTop{
  1457. font-weight: 500;font-size: 28rpx;
  1458. color: #FFFFFF;padding-top: 10rpx;
  1459. }
  1460. .separateTxt{
  1461. color: #FFFFFF;font-size: 26rpx;line-height: 26rpx;
  1462. }
  1463. .companyName{
  1464. font-size: 24rpx;
  1465. font-family: PingFangSC-Medium, PingFang SC;
  1466. font-weight: 500;
  1467. color: #666666;
  1468. line-height: 33rpx;
  1469. text-align: center;
  1470. padding: 40rpx;
  1471. }
  1472. .shareBtn{
  1473. /* width: 100rpx; */
  1474. background: #F4F5F7;
  1475. }
  1476. .shareBimg{
  1477. width: 102rpx;
  1478. height: 102rpx;
  1479. }
  1480. .bottomTxtshare{
  1481. color: #333333;
  1482. font-size: 22rpx;
  1483. padding-top: 20rpx;
  1484. }
  1485. .shareBox{
  1486. width: 100%;
  1487. height: 100vh;
  1488. background: rgba(0, 0, 0, 0.5);
  1489. position: fixed;
  1490. left: 0;
  1491. bottom: 0;
  1492. z-index: 11;
  1493. }
  1494. .shareCont{
  1495. width: 100%;
  1496. background: #F4F5F7;
  1497. position: absolute;
  1498. left: 0;
  1499. bottom: 0;
  1500. display: flex;
  1501. justify-content: space-around;
  1502. padding: 50rpx 0;
  1503. border-radius: 40rpx 40rpx 0px 0px;
  1504. }
  1505. .mp3Img{
  1506. /* transform: translate(-1584.4%, 121.5%) scale(1); */
  1507. position: fixed;
  1508. top:200rpx;
  1509. right: 40rpx;
  1510. width: 60rpx;
  1511. height: 60rpx;
  1512. z-index: 111;
  1513. }
  1514. .ckshopBox{
  1515. z-index: 111 !important;
  1516. }
  1517. .shopline {
  1518. padding: 20rpx 0;
  1519. background-color: #FFFFFF;
  1520. border-radius: 10rpx;
  1521. display: flex;
  1522. }
  1523. .baomingBox{
  1524. width: 750rpx;
  1525. height: 100vh;
  1526. background: rgba(0, 0, 0, 0.4);
  1527. position: fixed;
  1528. top: 0;
  1529. left: 0;
  1530. z-index: 11;
  1531. /* display: flex;
  1532. align-items: center; */
  1533. }
  1534. .bmTtnBox{
  1535. width: 750rpx;
  1536. height: 120rpx;
  1537. background: #FFFFFF;
  1538. box-shadow: 0px -2px 10rpx 0px rgba(153,153,153,0.2000);
  1539. position: absolute;
  1540. left: 0;
  1541. bottom: 0;
  1542. padding-bottom: constant(safe-area-inset-bottom);
  1543. padding-bottom: env(safe-area-inset-bottom);
  1544. }
  1545. .bmBtn{
  1546. width: 690rpx;
  1547. height: 70rpx;
  1548. background: #EC0F0A;
  1549. border-radius: 37rpx;
  1550. text-align: center;
  1551. line-height: 74rpx;
  1552. color: #ffffff;
  1553. font-size: 30rpx;
  1554. margin-top: 23rpx;
  1555. margin-left: 30rpx;
  1556. margin-top: 20rpx;
  1557. /* border: 2rpx solid #EC0F0A; */
  1558. }
  1559. .bmshopjt{
  1560. width: 12rpx;
  1561. height: 20rpx;
  1562. margin-top: 10rpx;
  1563. }
  1564. .bmlineInput{
  1565. color: #333333;
  1566. font-size: 28rpx;
  1567. height: 98rpx;
  1568. line-height: 98rpx;
  1569. }
  1570. .bmshopname{
  1571. font-weight: 400;
  1572. color: #999999;
  1573. font-size: 28rpx;
  1574. line-height: 40rpx;
  1575. width: 500rpx;
  1576. white-space:nowrap;
  1577. overflow:hidden;
  1578. text-overflow:ellipsis;
  1579. }
  1580. .bmshopLine{
  1581. display: flex;
  1582. justify-content: space-between;
  1583. padding: 26rpx 0;
  1584. border-bottom: 1px solid #EEEEEE;
  1585. }
  1586. .bmLine{
  1587. border-bottom: 1px solid #EEEEEE;
  1588. }
  1589. .bmTop{
  1590. display: flex;
  1591. justify-content: space-between;
  1592. padding: 30rpx 24rpx 10rpx 24rpx;
  1593. }
  1594. .bmTitle{
  1595. font-weight: 500;
  1596. color: #3C3C3C;
  1597. font-size: 30rpx;
  1598. line-height: 36rpx;
  1599. }
  1600. .bmChimg{
  1601. width: 36rpx;
  1602. height: 36rpx;
  1603. }
  1604. .baomingCont{
  1605. position: absolute;
  1606. width: 750rpx;
  1607. /* height:850rpx; */
  1608. /* padding-bottom: constant(safe-area-inset-bottom);
  1609. padding-bottom: env(safe-area-inset-bottom); */
  1610. left: 0;
  1611. bottom: 0;
  1612. background: #ffffff;
  1613. border-radius: 24rpx 24rpx 0px 0px;
  1614. padding-bottom: 10rpx;
  1615. }
  1616. .shareIcon{
  1617. width: 48rpx;
  1618. height: 48rpx;
  1619. display: block;
  1620. }
  1621. .bottomBtnBox{
  1622. display: flex;
  1623. }
  1624. .bottomBtnBoxLeft{
  1625. padding-left: 40rpx;
  1626. padding-top: 21rpx;
  1627. }
  1628. .shareTxt{
  1629. color: #666666;font-size: 20rpx;
  1630. text-align: center;
  1631. }
  1632. .bottomBtn{
  1633. width: 259rpx;
  1634. height: 88rpx;
  1635. background: linear-gradient( 136deg, #FE7C58 0%, #FF415C 100%), #EC0F0A;
  1636. border-radius: 16rpx;
  1637. line-height: 88rpx;
  1638. text-align: center;
  1639. color: #ffffff;
  1640. font-size: 30rpx;
  1641. margin-top: 24rpx;
  1642. margin-left: 24rpx;
  1643. }
  1644. .bottomBtn2{
  1645. width: 259rpx;
  1646. height: 88rpx;
  1647. background: #DDDDDD;
  1648. border-radius: 37rpx;
  1649. line-height: 88rpx;
  1650. text-align: center;
  1651. color: #ffffff;
  1652. font-size: 30rpx;
  1653. margin-top: 24rpx;
  1654. margin-left: 34rpx;
  1655. }
  1656. .timeTbox{
  1657. width: 750rpx;
  1658. height: 60rpx;
  1659. background:#FFF5F0;
  1660. border-radius: 24rpx 24rpx 0px 0px;
  1661. border: 1px solid #EFE1D5;
  1662. display: flex;
  1663. justify-content: center;
  1664. font-size: 24rpx;
  1665. font-family: PingFangSC-Regular, PingFang SC;
  1666. font-weight: 400;
  1667. color: #764D49;
  1668. }
  1669. .timeviewTxt{
  1670. line-height: 41rpx;
  1671. padding-top: 10rpx;
  1672. }
  1673. .timeDivTxt{
  1674. line-height: 60rpx;
  1675. padding: 0 10rpx;
  1676. }
  1677. .timeK{
  1678. height: 41rpx;
  1679. line-height: 41rpx;
  1680. color: #FFFFFF;
  1681. width: 41rpx;
  1682. text-align: center;
  1683. background: #EC0F0A;
  1684. border-radius: 6rpx;
  1685. margin-top: 9rpx;
  1686. margin-left: 15rpx;
  1687. margin-right: 15rpx;
  1688. }
  1689. .bottom{
  1690. width: 750rpx;
  1691. height: 90rpx;
  1692. background: #FFFFFF;
  1693. border-radius: 24rpx 24rpx 0px 0px;
  1694. position: fixed;
  1695. left: 0;
  1696. bottom: 0;
  1697. padding-bottom: constant(safe-area-inset-bottom);
  1698. padding-bottom: env(safe-area-inset-bottom);
  1699. }
  1700. .signupBox{
  1701. background: #ffffff;
  1702. margin-top: 20rpx;
  1703. }
  1704. .seeBox{
  1705. display: flex;
  1706. flex-wrap: wrap;
  1707. padding-left: 24rpx;
  1708. padding-bottom: 20rpx;
  1709. }
  1710. .seeLine{
  1711. padding-top: 14rpx;
  1712. padding-right: 16rpx;
  1713. }
  1714. .signupLine{
  1715. display: flex;
  1716. justify-content: space-between;
  1717. padding: 11rpx 24rpx;
  1718. /* border-bottom: 1px solid #DDDDDD; */
  1719. }
  1720. .signupLine:nth-child(even){
  1721. background: #FDFAF8;
  1722. }
  1723. .signupLineM{
  1724. color: #3C3C3C;font-size: 26rpx;
  1725. line-height: 56rpx;
  1726. }
  1727. .signupLineR{
  1728. color: #999999;
  1729. font-size: 26rpx;
  1730. line-height: 56rpx;
  1731. }
  1732. .signupLineLName{
  1733. font-weight: 400;
  1734. color: #3C3C3C;
  1735. font-size: 26rpx;
  1736. padding-left: 16rpx;
  1737. line-height: 56rpx;
  1738. width: 150rpx;
  1739. white-space:nowrap;
  1740. overflow:hidden;
  1741. text-overflow:ellipsis;
  1742. }
  1743. .signupCont{
  1744. /* padding: 0 24rpx; */
  1745. }
  1746. .signupLineLImg{
  1747. width: 56rpx;
  1748. height: 56rpx;
  1749. border-radius: 8rpx;
  1750. }
  1751. .signupLineL{
  1752. display: flex;
  1753. }
  1754. .signupTop{
  1755. width: 750rpx;
  1756. height: 78rpx;
  1757. background: url(http://dmsphoto.66km.com.cn/thFiles/FF582E15-1971-4C04-8AB3-F7618FFB961D.png);
  1758. background-size: 100% 100%;
  1759. text-align: center;
  1760. line-height: 78rpx;
  1761. }
  1762. .signupTops1{
  1763. color: #EC0F0A;font-weight: 500;
  1764. font-size: 28rpx;
  1765. }
  1766. .signupTops1{
  1767. color: #703917;font-weight: 500;
  1768. font-size: 28rpx;
  1769. }
  1770. .shopRightIcon{
  1771. width: 44rpx;
  1772. height: 44rpx;
  1773. display: block;
  1774. margin: 0 auto;
  1775. margin-bottom: 10rpx;
  1776. }
  1777. .shopaddress{
  1778. font-weight: 400;
  1779. color: #999999;
  1780. font-size: 24rpx;
  1781. padding-top: 10rpx;
  1782. width: 500rpx;
  1783. }
  1784. .shopRightSx{
  1785. width: 2rpx;
  1786. height: 69rpx;
  1787. background:#EEEEEE ;
  1788. margin-left: 34rpx;
  1789. margin-right: 34rpx;
  1790. margin-top: 14rpx;
  1791. }
  1792. .shopCont{
  1793. display: flex;
  1794. justify-content: space-between;
  1795. padding-top: 25rpx;
  1796. }
  1797. .shopContRight{
  1798. display: flex;
  1799. }
  1800. .shopContRightLine{
  1801. text-align: center;
  1802. color: #999999;
  1803. font-size: 24rpx;
  1804. }
  1805. .content{
  1806. min-height: 100vh;
  1807. background:#F4F5F7;
  1808. }
  1809. .detailImg{
  1810. width: 750rpx;
  1811. display: block;
  1812. }
  1813. .detailBOx{
  1814. background: #ffffff;
  1815. margin-top: 20rpx;
  1816. }
  1817. .detailTitle{
  1818. color: #222222;
  1819. font-weight: 500;
  1820. padding: 20rpx 24rpx;
  1821. font-size: 30rpx;
  1822. }
  1823. .topimg{
  1824. width: 750rpx;
  1825. }
  1826. .shopMs{
  1827. font-weight: 500;
  1828. color: #222222;
  1829. line-height: 42rpx;
  1830. font-size: 30rpx;
  1831. }
  1832. .shopBox{
  1833. background: #ffffff;
  1834. margin-top: 20rpx;
  1835. padding: 20rpx 24rpx;
  1836. border-radius: 20rpx;
  1837. }
  1838. .shopBoxTop{
  1839. display: flex;
  1840. justify-content: space-between;
  1841. }
  1842. .shopTy{
  1843. display: flex;
  1844. }
  1845. .shopTyTxt{
  1846. font-weight: 400;
  1847. color: #666666;
  1848. font-size: 24rpx;
  1849. line-height: 42rpx;
  1850. }
  1851. .shopjt{
  1852. width: 14rpx;
  1853. height: 23rpx;
  1854. margin-top: 10rpx;
  1855. margin-left: 10rpx;
  1856. }
  1857. .cont{
  1858. background: #ffffff;
  1859. /* border-radius: 24rpx 24rpx 0px 0px; */
  1860. /* margin-top: -30rpx; */
  1861. padding: 30rpx 24rpx;
  1862. position: relative;
  1863. border-radius: 20rpx;
  1864. }
  1865. .name{
  1866. color: #3C3C3C;
  1867. line-height: 42rpx;
  1868. font-weight: 500;
  1869. font-size: 30rpx;
  1870. }
  1871. .name2{
  1872. color: #3C3C3C;
  1873. line-height: 36rpx;
  1874. font-weight: 400;
  1875. font-size: 26rpx;
  1876. padding-top: 16rpx;
  1877. }
  1878. .name3{
  1879. color: #999999;
  1880. line-height: 36rpx;
  1881. font-weight: 400;
  1882. font-size: 26rpx;
  1883. padding-top: 16rpx;
  1884. }
  1885. .shopImg {
  1886. width: 146rpx;
  1887. height: 146rpx;
  1888. border-radius: 6rpx;
  1889. }
  1890. .shopBox2 {
  1891. padding-top: 30rpx;
  1892. display: flex;
  1893. }
  1894. .flex {
  1895. display: flex;
  1896. justify-content: space-between;
  1897. }
  1898. .shopCont2 {
  1899. padding-left: 22rpx;
  1900. width: 520rpx;
  1901. }
  1902. .shopName {
  1903. color: #333333;
  1904. font-size: 32rpx;
  1905. font-weight: 600;
  1906. }
  1907. .span1 {
  1908. color: #FF4F00;
  1909. font-size: 36rpx;
  1910. }
  1911. .span2 {
  1912. color: #FF4F00;
  1913. font-size: 22rpx;
  1914. }
  1915. .span3 {
  1916. color: #333333;
  1917. font-size: 22rpx;
  1918. padding-left: 22rpx;
  1919. }
  1920. .shopBq {
  1921. color: #FF4F00;
  1922. font-size: 22rpx;
  1923. border-radius: 4rpx;
  1924. border: 1px solid #FF4F00;
  1925. line-height: 30rpx;
  1926. height: 30rpx;
  1927. padding: 0rpx 5rpx;
  1928. margin-top: 10rpx;
  1929. }
  1930. .brandsBg {
  1931. display: flex;
  1932. height: 38rpx;
  1933. flex-wrap: wrap;
  1934. align-items: center;
  1935. overflow: hidden;
  1936. padding: 5rpx 0rpx;
  1937. }
  1938. .brands {
  1939. border-radius: 4rpx;
  1940. padding: 0 5rpx;
  1941. color: #F19D01;
  1942. height: 28rpx;
  1943. border: 1px solid #F19D01;
  1944. font-size: 20rpx;
  1945. line-height: 28rpx;
  1946. margin: 5rpx 10rpx 5rpx 0rpx;
  1947. }
  1948. .timeBg {
  1949. display: flex;
  1950. }
  1951. .shopTime {
  1952. color: #666666;
  1953. font-size: 22rpx;
  1954. }
  1955. .addressBox {
  1956. color: #666666;
  1957. font-size: 22rpx;
  1958. }
  1959. .ckshopLine{
  1960. display: flex;
  1961. padding: 24rpx 0;
  1962. border-bottom: 1px solid #EEEEEE;
  1963. position: relative;
  1964. }
  1965. button::after{
  1966. border: none;
  1967. }
  1968. button{
  1969. position: relative;
  1970. display: block;
  1971. margin-left: 0;
  1972. margin-right: 0;
  1973. padding-left: 0px;
  1974. padding-right: 0px;
  1975. box-sizing: border-box;
  1976. text-align: center;
  1977. text-decoration: none;
  1978. line-height: 1.35;
  1979. -webkit-tap-highlight-color: transparent;
  1980. overflow: hidden;
  1981. color: #000000;
  1982. background-color: #fff;
  1983. height: 100%;
  1984. }
  1985. .authorizBox{
  1986. width: 100vw;
  1987. height: 100vh;
  1988. background: rgba(0, 0, 0, 0.5);
  1989. position: fixed;
  1990. top: 0;
  1991. left: 0;
  1992. }
  1993. .authorizCont{
  1994. margin-top: 30vh;
  1995. width: 564rpx;
  1996. height: 408rpx;
  1997. background: #FFFFFF;
  1998. border-radius: 24rpx;
  1999. margin-left: 93rpx;
  2000. position: relative;
  2001. }
  2002. .authorizCloseImg{
  2003. width: 62rpx;
  2004. height: 62rpx;
  2005. }
  2006. .sqLogoBox{
  2007. width: 180rpx;
  2008. height: 180rpx;
  2009. background: #FFFFFF;
  2010. border-radius: 90rpx;
  2011. text-align: center;
  2012. position: absolute;
  2013. top: -50rpx;
  2014. left: 192rpx;
  2015. }
  2016. .authorizName{
  2017. color: #333333;
  2018. line-height: 42rpx;
  2019. font-size: 30rpx;
  2020. text-align: center;
  2021. padding-top: 58rpx;
  2022. }
  2023. .authorizMs{
  2024. color: #999999;
  2025. line-height: 36rpx;
  2026. font-size: 26rpx;
  2027. width: 452rpx;
  2028. padding-top: 24rpx;
  2029. text-align: center;
  2030. margin-left: 56rpx;
  2031. }
  2032. .authorizContbutton{
  2033. width: 210rpx;
  2034. height: 66rpx;
  2035. background: #EC0F0A;
  2036. border-radius: 44rpx;
  2037. line-height: 66rpx;
  2038. text-align: center;
  2039. font-size:30rpx;
  2040. color: #FFFFFF;
  2041. margin-right: 40rpx;
  2042. }
  2043. .sqRefuse{
  2044. width: 210rpx;
  2045. height: 66rpx;
  2046. border: 1px solid #eaeaea;
  2047. line-height: 66rpx;
  2048. border-radius: 36rpx;
  2049. text-align: center;
  2050. font-size:30rpx;
  2051. margin-left:40rpx;
  2052. color: #999999;
  2053. }
  2054. .sqLine{
  2055. margin-top: 62rpx;
  2056. display: flex;
  2057. justify-content: space-between;
  2058. }
  2059. .applicationTk{
  2060. height: 60vh;
  2061. }
  2062. .groupBtnTxt{
  2063. color: #FFFFFF;font-size: 26rpx;line-height: 26rpx;
  2064. }
  2065. .groupBtnTop{
  2066. font-weight: 500;font-size: 28rpx;
  2067. color: #FFFFFF;padding-top: 10rpx;
  2068. }
  2069. .couponPackageData{
  2070. background: #ffffff;
  2071. margin-top: 20rpx;
  2072. }
  2073. .couponPackageTitle{
  2074. padding-left: 24rpx;
  2075. padding-top: 30rpx;
  2076. color: #333333;
  2077. font-size: 32rpx;
  2078. line-height: 45rpx;
  2079. font-weight: 500;
  2080. }
  2081. .linecoupon{
  2082. justify-content: space-between;
  2083. }
  2084. .linecouponCont{
  2085. display: flex;
  2086. justify-content: space-between;
  2087. padding: 15rpx 24rpx;
  2088. }
  2089. .linecouponContLeft{
  2090. display: flex;
  2091. }
  2092. .couponType{
  2093. color: #FFA511;
  2094. border: 1px solid #FFA511;
  2095. border-radius: 4rpx;
  2096. font-size: 18rpx;
  2097. line-height: 26rpx;
  2098. padding: 0 8rpx;
  2099. height: 26rpx;
  2100. margin-top: 5rpx;
  2101. }
  2102. .couponName{
  2103. font-size: 26rpx;line-height: 38rpx;color: #3C3C3C;
  2104. padding-left: 20rpx;
  2105. }
  2106. .couponNum{
  2107. font-size: 26rpx;line-height: 38rpx;color: #999999;
  2108. }
  2109. .buySHop{
  2110. display: flex;
  2111. justify-content: space-between;
  2112. font-size:28rpx ;
  2113. color: #666666;
  2114. padding-top: 30rpx;
  2115. }
  2116. .buyShopBox{
  2117. /* padding: 0 24rpx; */
  2118. padding-top: 20rpx;
  2119. }
  2120. .nobuyShopBox{
  2121. height: 220rpx;
  2122. }
  2123. .duihao{
  2124. width: 28rpx;height: 28rpx;
  2125. }
  2126. .buyShopTRgiht{
  2127. display: flex;
  2128. align-items: center;
  2129. }
  2130. .buyShop{
  2131. background: #F9F9F9;
  2132. border-radius:6rpx;
  2133. overflow: hidden;
  2134. }
  2135. .buyShopTop{
  2136. display: flex;justify-content: space-between;
  2137. padding: 16rpx 22rpx;
  2138. background: #F9EFF0;
  2139. }
  2140. .shopbq{
  2141. color: #FF063A;font-size: 22rpx;
  2142. border-radius: 6rpx;
  2143. border: 1rpx solid #FF063A;
  2144. padding: 0rpx 6rpx;
  2145. height: 30rpx;line-height: 30rpx;
  2146. margin-top: 4rpx;
  2147. }
  2148. .buyShopTleft{
  2149. display: flex;
  2150. }
  2151. .buyshopName{
  2152. font-size: 26rpx;
  2153. color: #222222;
  2154. line-height: 37rpx;
  2155. /* padding-left: 8rpx; */
  2156. }
  2157. .buyShopCont{
  2158. display: flex;
  2159. padding: 22rpx;
  2160. }
  2161. .buyShopContImg{
  2162. width: 102rpx;
  2163. height: 102rpx;
  2164. border-radius: 6rpx;
  2165. }
  2166. .buyShopContAdress{
  2167. font-weight: 400;
  2168. font-size: 22rpx;
  2169. color: #666E80;
  2170. line-height: 34rpx;
  2171. width: 440rpx;
  2172. padding-left: 12rpx;
  2173. }
  2174. .buyShopJl{
  2175. font-size: 22rpx;
  2176. color: #666E80; line-height: 34rpx;
  2177. width: 110rpx;
  2178. text-align: right;
  2179. }
  2180. .buyNumlineActive{
  2181. border-radius: 25rpx;
  2182. border: 1rpx solid #FF0035;
  2183. color: #FF0035;
  2184. background: #ffffff;
  2185. height: 48rpx;
  2186. line-height: 48rpx;width: 147rpx;
  2187. }
  2188. .buyShopRightJt{
  2189. width: 12rpx;
  2190. height: 20rpx;
  2191. margin-top: 8rpx;
  2192. margin-left: 10rpx;
  2193. }
  2194. .buyShopRight{
  2195. display: flex;
  2196. }
  2197. .bugNUm{
  2198. border-top: 1px solid #EEEEEE;
  2199. border-Bottom: 1px solid #EEEEEE;
  2200. padding: 28rpx 0;
  2201. display: flex;
  2202. justify-content: space-between;
  2203. }
  2204. .buyXg{
  2205. min-width: 110rpx;
  2206. height: 36rpx;
  2207. border-radius: 4rpx;
  2208. border: 1px solid #F19D01;
  2209. text-align: center;
  2210. line-height: 36rpx;
  2211. color: #F19D01;
  2212. font-size: 24rpx;
  2213. }
  2214. .dhImg{
  2215. width: 35rpx;height: 35rpx;border-radius: 6rpx;
  2216. }
  2217. .newdistance{
  2218. position: absolute;top: 22rpx;right: 10rpx;
  2219. text-align: center;
  2220. font-size: 22rpx;
  2221. color: #666666;
  2222. }
  2223. .shopdhBox{
  2224. display: flex;padding-top: 20rpx;
  2225. justify-content: space-between;
  2226. }
  2227. .shopcall{
  2228. display: flex;
  2229. }
  2230. .shopcallIcon{
  2231. width: 26rpx;height: 26rpx;margin-top: 2rpx;
  2232. }
  2233. .shopcallTxt{
  2234. font-size: 24rpx;
  2235. color: #222222;
  2236. line-height: 33rpx;padding-left: 8rpx;
  2237. }
  2238. .shopright{
  2239. width: 530rpx;
  2240. }
  2241. .shopright {
  2242. padding-left: 20rpx;
  2243. }
  2244. .symendinaBox .shopline {
  2245. position: relative;
  2246. }
  2247. .shopTop .shopName {
  2248. width: 450rpx;
  2249. white-space: nowrap;
  2250. overflow: hidden;
  2251. text-overflow: ellipsis;
  2252. }
  2253. .canyuBox{
  2254. display: flex;
  2255. justify-content: center;
  2256. align-items: center;
  2257. }
  2258. .cyBox{
  2259. border-radius: 20rpx;
  2260. }
  2261. .canyud{
  2262. width: 6rpx;
  2263. height: 6rpx;
  2264. background: #9A2300;
  2265. border-radius: 3rpx;
  2266. margin-top: 2rpx;
  2267. }
  2268. .canyuTxt{
  2269. font-size: 30rpx;
  2270. color: #9A2300;
  2271. padding: 0 10rpx;
  2272. }
  2273. .canyuTxt2{
  2274. font-weight: 600;
  2275. font-size: 52rpx;
  2276. color: #EC0F0A;
  2277. /* padding: 0 10rpx; */
  2278. }
  2279. .signupContTop{
  2280. display: flex;justify-content: space-between;
  2281. padding-bottom: 20rpx;
  2282. padding-left: 24rpx;
  2283. padding-right: 24rpx;
  2284. }
  2285. .signupContTop .signupContTopView{
  2286. font-weight: 400;
  2287. font-size: 24rpx;
  2288. color: #999999;
  2289. line-height: 33rpx;
  2290. }
  2291. .signupContTop .signupLineR{
  2292. width: 260rpx;
  2293. text-align: right;
  2294. }
  2295. .signupMore{
  2296. width: 300rpx;
  2297. height: 64rpx;
  2298. border-radius: 10rpx;
  2299. border: 2rpx solid #9A2300;
  2300. font-size: 28rpx;
  2301. color: #9A2300;
  2302. text-align: center;
  2303. line-height: 64rpx;
  2304. margin: 0 auto;
  2305. margin-top: 20rpx;
  2306. }
  2307. .cyBox{
  2308. padding-bottom: 30rpx;
  2309. }
  2310. .weiguanbox{
  2311. background: #ffffff;
  2312. margin-top: 20rpx;
  2313. padding: 28rpx 24rpx;
  2314. border-radius: 20rpx;
  2315. }
  2316. .zhongjian{
  2317. padding: 20rpx 24rpx;
  2318. }
  2319. .newtimeTbox{
  2320. width: 100%;
  2321. height: 102rpx;
  2322. background: url('http://dmsphoto.66km.com.cn/thFiles/8F583E30-E4E0-43EB-8C4B-1A9A240F1F89.png');
  2323. background-size: 100% 100%;
  2324. }
  2325. .newtimedjs{
  2326. display: flex;
  2327. padding-left: 510rpx;
  2328. padding-top: 34rpx;
  2329. }
  2330. .newtimedjs .timeK{
  2331. width: 46rpx;
  2332. height: 44rpx;
  2333. background: #303030;
  2334. border-radius: 9rpx;
  2335. text-align: center;
  2336. line-height: 44rpx;
  2337. margin-left: 2rpx;
  2338. margin-right: 10rpx;
  2339. }
  2340. .newtimedjs .timeviewTxt{
  2341. font-weight: 400;
  2342. font-size: 20rpx;
  2343. color: #E96A4F;
  2344. padding-top: 18rpx;
  2345. }
  2346. .fxHb{
  2347. width: 259rpx;
  2348. height: 88rpx;
  2349. background: #FEDFCB;
  2350. border-radius: 16rpx;
  2351. font-weight: 500;
  2352. font-size: 30rpx;
  2353. color: #9A2300;
  2354. text-align: center;
  2355. line-height: 88rpx;
  2356. margin-left: 25rpx;
  2357. margin-top: 24rpx;
  2358. }
  2359. .fxHb2{
  2360. width: 154rpx;
  2361. height: 88rpx;
  2362. background: #FEDFCB;
  2363. border-radius: 16rpx;
  2364. font-weight: 500;
  2365. font-size: 30rpx;
  2366. color: #9A2300;
  2367. text-align: center;
  2368. line-height: 88rpx;
  2369. margin-left: 25rpx;
  2370. margin-top: 24rpx;
  2371. }
  2372. </style>