jkDetail.vue 54 KB

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