jkDetail.vue 50 KB

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