jkDetail.vue 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888
  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. uni.redirectTo({
  714. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  715. })
  716. },
  717. fail: function (err) {
  718. console.log(err)
  719. uni.showToast({
  720. title: '支付失败',
  721. icon:'none',
  722. duration: 2000
  723. });
  724. console.log(that.orderData)
  725. uni.redirectTo({
  726. url: "../user/myOrder/activityOrderDetail?id=" + that.orderData.id +"&SheetType=" + that.orderData.sheetType
  727. })
  728. }
  729. });
  730. },
  731. signUp(){
  732. this.groupOwner=0;
  733. if(this.userInfo){
  734. /* this.info.shopList.forEach(item=>{
  735. if(item.id == this.shopInfo.id){
  736. this.ckshopdata=item;
  737. this.shopName=item.shopName;
  738. }
  739. }) */
  740. this.bmShow=true;
  741. }else{
  742. this.authorizShow=true
  743. }
  744. },
  745. groupFn(){
  746. this.groupOwner=1;
  747. if(this.userInfo){
  748. this.bmShow=true;
  749. }else{
  750. this.authorizShow=true
  751. }
  752. },
  753. join(e){
  754. this.groupOwner=2;
  755. this.groupID=e.ID
  756. if(this.userInfo){
  757. this.bmShow=true;
  758. }else{
  759. this.authorizShow=true
  760. }
  761. },
  762. nobmshow(){
  763. this.bmShow=false;
  764. },
  765. ckshop(item){
  766. this.ckshopdata=item;
  767. this.shopName=item.shopName;
  768. this.ckshopShow=false;
  769. this.shopInfo=item
  770. this.useShopShow=false;
  771. },
  772. showCkshop(){
  773. console.log("选择门店")
  774. //this.ckshopShow=true;
  775. uni.navigateTo({
  776. url:'/pages/shop/ckshopList?goodsId='+this.collectingID+'&type=5'
  777. })
  778. },
  779. noShowShop(){
  780. this.ckshopShow=false;
  781. },
  782. queryActivityInfo(){
  783. uni.showLoading({
  784. title: '加载中'
  785. })
  786. this.$http('openHome/queryActivityInfo', {
  787. collectingID:this.collectingID
  788. }, 'GET').then(res => {
  789. //uni.hideLoading();
  790. this.info = res.data;
  791. console.log(this.info)
  792. this.getInfo();
  793. this.dimgList=[]
  794. if(this.info.imgList){
  795. this.info.imgList.forEach(item=>{
  796. if(item.imgType==1){
  797. this.mainImg=item.img
  798. }else{
  799. this.dimgList.push(item)
  800. }
  801. })
  802. }
  803. if (this.info.endTime < this.info.startTime) {
  804. // this.$vux.toast.text('时间设置错误')
  805. return
  806. }
  807. // this.activityNoOpen
  808. if (Number(new Date().getTime()) > (Number(new Date(this.info.startTime.replace(/-/g, '/')).getTime()) || 0)) {
  809. console.log("现在时间大于开始时间")
  810. this.activityNoOpen = false
  811. } else {
  812. this.activityNoOpen = true
  813. }
  814. if (Number(new Date().getTime()) > Number(new Date(this.info.endTime.replace(/-/g, '/')).getTime())) {
  815. console.log("现在时间大于结束时间")
  816. this.activityEnd = true
  817. } else {
  818. this.activityEnd = false
  819. }
  820. if (!this.activityNoOpen && !this.activityEnd) {
  821. this.clock()
  822. }
  823. if (this.activityNoOpen && !this.activityEnd) {
  824. this.clock2()
  825. }
  826. if(this.info.music){
  827. this.bgmMusic = uni.createInnerAudioContext();
  828. this.bgmMusic.autoplay = true;//自动播放
  829. this.bgmMusic.loop = true;//循环播放
  830. this.mp3Url='http://dmsimg.66km.com/music/sakuratears.mp3';
  831. this.bgmMusic.src ='http://dmsimg.66km.com/music/sakuratears.mp3'//, mp3Url;//背景音乐地址
  832. this.bgmMusic.onPlay(function(){
  833. console.log('背景音乐播放中');
  834. });
  835. this.bgmMusic.onError((res) => {
  836. console.log(res.errMsg);
  837. console.log(res.errCode);
  838. });
  839. }
  840. })
  841. },
  842. play2(){
  843. this.bgmMusic.play();
  844. this.payshow=false;
  845. },
  846. play(){
  847. this.payshow=true;
  848. this.bgmMusic.stop(()=>{
  849. console.log('背景音乐停止了');
  850. });
  851. },
  852. getInfo(){
  853. this.$http('openreservation/getInfo', {
  854. lat: '',
  855. lng: '',
  856. }, 'GET').then(res => {
  857. uni.hideLoading();
  858. //this.shopInfo = res.data.shopInfo
  859. var shopinfo=res.data.shopInfo;
  860. this.info.shopList.forEach(item=>{
  861. if(item.id==shopinfo.id){
  862. this.ckshopdata=shopinfo
  863. this.shopInfo=shopinfo
  864. this.shopName=this.shopInfo.shopName
  865. }
  866. })
  867. if(this.shopInfo==''){
  868. this.shopInfo=this.info.shopList[0]
  869. //this.shopName=this.shopInfo.shopName
  870. }
  871. this.beginTimer();
  872. })
  873. },
  874. call() {
  875. uni.makePhoneCall({
  876. phoneNumber: this.shopInfo.mobilePhone
  877. });
  878. },
  879. getmap() {
  880. console.log("打开地图")
  881. var that = this;
  882. if (!that.shopInfo.lat || !that.shopInfo.lng) {
  883. uni.showToast({
  884. title: '该店铺未设置定位',
  885. icon: 'none',
  886. duration: 3000
  887. });
  888. } else {
  889. uni.openLocation({
  890. latitude: Number(that.shopInfo.lat),
  891. longitude: Number(that.shopInfo.lng),
  892. name: that.shopInfo.shopName,
  893. address: that.shopInfo.provinceName + that.shopInfo.cityName + that.shopInfo.areaName + that.shopInfo.address,
  894. success: function() {
  895. console.log('success');
  896. },
  897. fail(err) {
  898. console.log(err)
  899. }
  900. });
  901. }
  902. },
  903. clock () {
  904. let _this = this
  905. let today = new Date() // 当前时间
  906. let h = today.getHours()
  907. let m = today.getMinutes()
  908. let s = today.getSeconds()
  909. let stopTime = new Date(_this.info.endTime.replace(/-/g, '/')) // 结束时间
  910. if (Number(new Date(_this.info.endTime).getTime()) < Number(new Date().getTime())) {
  911. this.activityEnd = true
  912. return
  913. }
  914. let stopH = stopTime.getHours()
  915. let stopM = stopTime.getMinutes()
  916. let stopS = stopTime.getSeconds()
  917. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  918. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  919. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  920. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  921. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  922. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  923. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  924. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  925. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  926. // setTimeout("clock()",500);
  927. this.shengyuM=shengyuM;
  928. this.shengyuD=shengyuD;
  929. this.shengyuH=shengyuH;
  930. setTimeout(_this.clock, 500)
  931. },
  932. clock2(){
  933. let _this = this
  934. let today = new Date() // 当前时间
  935. let h = today.getHours()
  936. let m = today.getMinutes()
  937. let s = today.getSeconds()
  938. let startTime = new Date(_this.info.startTime.replace(/-/g, '/')) // 结束时间
  939. if (Number(new Date(_this.info.startTime).getTime()) < Number(new Date().getTime())) {
  940. this.activityNoOpen = true
  941. return
  942. }
  943. let stopH = startTime.getHours()
  944. let stopM = startTime.getMinutes()
  945. let stopS = startTime.getSeconds()
  946. let shenyu = startTime.getTime() - today.getTime() // 倒计时毫秒数
  947. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  948. let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  949. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  950. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  951. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  952. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  953. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  954. this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  955. // setTimeout("clock()",500);
  956. this.shengyuM=shengyuM;
  957. this.shengyuD=shengyuD;
  958. this.shengyuH=shengyuH;
  959. setTimeout(_this.clock2, 500)
  960. },
  961. decryptPhoneNumber: function(e) {
  962. console.log(e);
  963. this.code=e.detail.code
  964. this.wxPhoneLogin()
  965. this.authorizShow=false;
  966. },
  967. wxPhoneLogin(){
  968. var that=this;
  969. this.$http('miniApp2/sys/wxPhoneLogin', {
  970. appId:this.ext.appId,
  971. unionId:this.ext.unionId,
  972. code:this.code,
  973. openId:this.wxOpenData.openid
  974. },'POST').then(res => {
  975. var data = res.data;
  976. if(data.loginInfo){
  977. this.userInfo=data.loginInfo.openUser;
  978. this.wxOpenData=data.loginInfo;
  979. this.$store.commit('mutationswxOpenData', data)
  980. this.$store.commit('mutationsuserInfo', this.userInfo)
  981. this.getInfo()
  982. }
  983. })
  984. },
  985. },
  986. filters: {
  987. // 拼团有效期的filter
  988. limitTimeFilter (val) {
  989. //console.log('limitTimeFilter')
  990. //https://blog.csdn.net/qq_39905409/article/details/104478623
  991. if (val) {
  992. //console.log(val)
  993. let formateLimitTimes = that.$common.formateTimeStamp(val);
  994. let txt = `${formateLimitTimes.hour} : ${formateLimitTimes.min} : ${formateLimitTimes.seconds} `;
  995. /* if (formateLimitTimes.day != '00') {
  996. txt = `${Number(formateLimitTimes.day)*24} 时 ${formateLimitTimes.min} 分 ${formateLimitTimes.seconds} 秒`;
  997. } */
  998. return txt;
  999. } else {
  1000. const twtxt = `0 : 0 : 0 `
  1001. return twtxt;
  1002. }
  1003. }
  1004. },
  1005. beforeCreate: function () {
  1006. that = this;
  1007. },
  1008. onShareAppMessage(res) {
  1009. console.log(res)
  1010. var img='';
  1011. /* if(this.info.ImgList.length>0){
  1012. img=this.info.ImgList[0].url
  1013. } */
  1014. console.log(this.info.groupType)
  1015. if(this.info.groupType){
  1016. //console.log(res.target.dataset.obj.ID)
  1017. var url= 'pages/subPack/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId+'&shareName='+this.userInfo.nickName+'&groupID='+res.target.dataset.obj.ID
  1018. }else{
  1019. var url= 'pages/activity/jkDetail?id=' + this.collectingID+'&shareId='+this.userInfo.openId
  1020. }
  1021. return {
  1022. title: this.info.activityName,
  1023. //imageUrl:this.mainImg,
  1024. imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
  1025. path:url,
  1026. success(res){
  1027. uni.showToast({
  1028. title:'分享成功'
  1029. })
  1030. },
  1031. fail(res){
  1032. uni.showToast({
  1033. title:'分享失败',
  1034. icon:'none',
  1035. duration: 3000
  1036. })
  1037. }
  1038. }
  1039. },
  1040. onShareTimeline(res) {
  1041. if(this.info.groupType){
  1042. //console.log(res.target.dataset.obj.ID)
  1043. var url= 'id=' + this.collectingID+'&shareId='+this.userInfo.openId+'&shareName='+this.userInfo.nickName//+'&groupID='+res.target.dataset.obj.ID
  1044. }else{
  1045. var url= 'id=' + this.collectingID+'&shareId='+this.userInfo.openId
  1046. }
  1047. return {
  1048. title: this.info.activityName,
  1049. query:url,
  1050. imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
  1051. }
  1052. }
  1053. }
  1054. </script>
  1055. <style scoped>
  1056. .ptNameBz{
  1057. font-weight: 500;line-height: 34rpx;
  1058. font-size: 22rpx;height: 32rpx;
  1059. color: #FD0F00;margin-top: 6rpx;margin-right: 10rpx;
  1060. background: url('http://dmsphoto.66km.com.cn/thFiles/2AF1130F-C318-45D3-B057-FA0728B41046.png') no-repeat;
  1061. background-size: 100% 100%;
  1062. padding-left: 64rpx;padding-right: 4rpx;
  1063. }
  1064. .name{
  1065. display: flex;
  1066. }
  1067. .djsCont{
  1068. width: 638rpx;
  1069. height: 50vh;
  1070. background: #fff;
  1071. margin-top: 20vh;
  1072. margin-left:56rpx ;border-radius: 15rpx;
  1073. }
  1074. .djsCont .ptLine{
  1075. border-top:0;
  1076. border-bottom: 1px solid #EEEEEE;
  1077. }
  1078. .djsCont .bmTop{
  1079. border-bottom: 1px solid #EEEEEE;
  1080. padding: 24rpx;
  1081. }
  1082. .djsLineBox{
  1083. height: calc(60vh - 120rpx);
  1084. overflow-y: scroll;
  1085. }
  1086. .ptLine{
  1087. display: flex;
  1088. justify-content: space-between;
  1089. padding: 26rpx 24rpx;border-top: 1px solid #EEEEEE;
  1090. }
  1091. .FirstMobilePhone{
  1092. font-weight: 400;
  1093. color: #222222;font-size: 28rpx;line-height: 60rpx;
  1094. }
  1095. .DiffBNumber{
  1096. font-weight: 400;text-align: right;
  1097. color: #222222;font-size: 26rpx;
  1098. }
  1099. .ptlineRight{
  1100. display: flex;
  1101. }
  1102. .ptlinexx{
  1103. padding-right: 12rpx;
  1104. }
  1105. .ptBtn{
  1106. width: 137rpx;font-weight: 400;
  1107. color: #FFFFFF;font-size: 26rpx;
  1108. height: 60rpx;text-align: center;
  1109. background: #E02E24;line-height: 60rpx;
  1110. border-radius: 6rpx;
  1111. margin-top: 4rpx;
  1112. }
  1113. .ptdjs{
  1114. font-weight: 400;
  1115. color: #666666;font-size: 24rpx;
  1116. }
  1117. .ptBox{
  1118. background: #ffffff;margin-top: 20rpx;
  1119. }
  1120. .bottomPtBox{
  1121. display: flex;padding-top: 24rpx;
  1122. }
  1123. .ptNum{
  1124. font-weight: 400;
  1125. color: #222222;font-size: 28rpx;
  1126. }
  1127. .ptBoxtop{
  1128. display: flex;justify-content: space-between;
  1129. padding: 20rpx 24rpx;
  1130. }
  1131. .ptMore{
  1132. font-weight: 400;
  1133. color: #666666;font-size: 24rpx;
  1134. }
  1135. .separate{
  1136. width: 284rpx;margin-left: 30rpx;
  1137. height: 74rpx;
  1138. background: #FFE4E2;
  1139. border-radius: 37rpx;
  1140. text-align: center;color:#D53533;
  1141. }
  1142. .separate .separateTop{
  1143. color:#D53533;
  1144. }
  1145. .separate .separateTxt{
  1146. color:#D53533;
  1147. }
  1148. .groupBtn{
  1149. width: 284rpx;text-align: center;color: #ffffff;
  1150. height: 74rpx;margin-left: 30rpx;
  1151. background: #D53533;
  1152. border-radius: 37rpx;
  1153. }
  1154. .separateTop{
  1155. font-weight: 500;font-size: 28rpx;
  1156. color: #FFFFFF;padding-top: 2rpx;
  1157. }
  1158. .separateTxt{
  1159. color: #FFFFFF;font-size: 26rpx;line-height: 26rpx;
  1160. }
  1161. .companyName{
  1162. font-size: 24rpx;
  1163. font-family: PingFangSC-Medium, PingFang SC;
  1164. font-weight: 500;
  1165. color: #666666;
  1166. line-height: 33rpx;
  1167. text-align: center;
  1168. padding: 40rpx;
  1169. }
  1170. .shareBtn{
  1171. /* width: 100rpx; */
  1172. background: #F4F5F7;
  1173. }
  1174. .shareBimg{
  1175. width: 102rpx;
  1176. height: 102rpx;
  1177. }
  1178. .bottomTxtshare{
  1179. color: #333333;
  1180. font-size: 22rpx;
  1181. padding-top: 20rpx;
  1182. }
  1183. .shareBox{
  1184. width: 100%;
  1185. height: 100vh;
  1186. background: rgba(0, 0, 0, 0.5);
  1187. position: fixed;
  1188. left: 0;
  1189. bottom: 0;
  1190. z-index: 11;
  1191. }
  1192. .shareCont{
  1193. width: 100%;
  1194. background: #F4F5F7;
  1195. position: absolute;
  1196. left: 0;
  1197. bottom: 0;
  1198. display: flex;
  1199. justify-content: space-around;
  1200. padding: 50rpx 0;
  1201. border-radius: 40rpx 40rpx 0px 0px;
  1202. }
  1203. .mp3Img{
  1204. /* transform: translate(-1584.4%, 121.5%) scale(1); */
  1205. position: fixed;
  1206. top: 40rpx;
  1207. right: 40rpx;
  1208. width: 60rpx;
  1209. height: 60rpx;
  1210. }
  1211. .ckshopBox{
  1212. z-index: 111 !important;
  1213. }
  1214. .shopline {
  1215. padding: 20rpx 0;
  1216. background-color: #FFFFFF;
  1217. border-radius: 10rpx;
  1218. display: flex;
  1219. }
  1220. .baomingBox{
  1221. width: 750rpx;
  1222. height: 100vh;
  1223. background: rgba(0, 0, 0, 0.4);
  1224. position: fixed;
  1225. top: 0;
  1226. left: 0;
  1227. z-index: 11;
  1228. /* display: flex;
  1229. align-items: center; */
  1230. }
  1231. .bmTtnBox{
  1232. width: 750rpx;
  1233. height: 120rpx;
  1234. background: #FFFFFF;
  1235. box-shadow: 0px -2px 10rpx 0px rgba(153,153,153,0.2000);
  1236. position: absolute;
  1237. left: 0;
  1238. bottom: 0;
  1239. padding-bottom: constant(safe-area-inset-bottom);
  1240. padding-bottom: env(safe-area-inset-bottom);
  1241. }
  1242. .bmBtn{
  1243. width: 690rpx;
  1244. height: 74rpx;
  1245. background: #D53533;
  1246. border-radius: 37rpx;
  1247. text-align: center;
  1248. line-height: 74rpx;
  1249. color: #ffffff;
  1250. font-size: 30rpx;
  1251. margin-top: 23rpx;
  1252. margin-left: 30rpx;
  1253. margin-top: 20rpx;
  1254. }
  1255. .bmshopjt{
  1256. width: 12rpx;
  1257. height: 20rpx;
  1258. margin-top: 10rpx;
  1259. }
  1260. .bmlineInput{
  1261. color: #333333;
  1262. font-size: 28rpx;
  1263. height: 98rpx;
  1264. line-height: 98rpx;
  1265. }
  1266. .bmshopname{
  1267. font-weight: 400;
  1268. color: #999999;
  1269. font-size: 28rpx;
  1270. line-height: 40rpx;
  1271. width: 500rpx;
  1272. white-space:nowrap;
  1273. overflow:hidden;
  1274. text-overflow:ellipsis;
  1275. }
  1276. .bmshopLine{
  1277. display: flex;
  1278. justify-content: space-between;
  1279. padding: 26rpx 0;
  1280. border-bottom: 1px solid #EEEEEE;
  1281. }
  1282. .bmLine{
  1283. border-bottom: 1px solid #EEEEEE;
  1284. }
  1285. .bmTop{
  1286. display: flex;
  1287. justify-content: space-between;
  1288. padding: 30rpx 24rpx 10rpx 24rpx;
  1289. }
  1290. .bmTitle{
  1291. font-weight: 500;
  1292. color: #3C3C3C;
  1293. font-size: 30rpx;
  1294. line-height: 36rpx;
  1295. }
  1296. .bmChimg{
  1297. width: 36rpx;
  1298. height: 36rpx;
  1299. }
  1300. .baomingCont{
  1301. position: absolute;
  1302. width: 750rpx;
  1303. /* height:850rpx; */
  1304. /* padding-bottom: constant(safe-area-inset-bottom);
  1305. padding-bottom: env(safe-area-inset-bottom); */
  1306. left: 0;
  1307. bottom: 0;
  1308. background: #ffffff;
  1309. border-radius: 24rpx 24rpx 0px 0px;
  1310. padding-bottom: 10rpx;
  1311. }
  1312. .shareIcon{
  1313. width: 48rpx;
  1314. height: 48rpx;
  1315. display: block;
  1316. }
  1317. .bottomBtnBox{
  1318. display: flex;
  1319. }
  1320. .bottomBtnBoxLeft{
  1321. padding-left: 40rpx;
  1322. padding-top: 21rpx;
  1323. }
  1324. .shareTxt{
  1325. color: #666666;font-size: 20rpx;
  1326. text-align: center;
  1327. }
  1328. .bottomBtn{
  1329. width: 598rpx;
  1330. height: 74rpx;
  1331. background: #D53533;
  1332. border-radius: 37rpx;
  1333. line-height: 74rpx;
  1334. text-align: center;
  1335. color: #ffffff;
  1336. font-size: 30rpx;
  1337. margin-top: 24rpx;
  1338. margin-left: 34rpx;
  1339. }
  1340. .bottomBtn2{
  1341. width: 598rpx;
  1342. height: 74rpx;
  1343. background: #DDDDDD;
  1344. border-radius: 37rpx;
  1345. line-height: 74rpx;
  1346. text-align: center;
  1347. color: #ffffff;
  1348. font-size: 30rpx;
  1349. margin-top: 24rpx;
  1350. margin-left: 34rpx;
  1351. }
  1352. .timeTbox{
  1353. width: 750rpx;
  1354. height: 60rpx;
  1355. background:#FFF5F0;
  1356. border-radius: 24rpx 24rpx 0px 0px;
  1357. border: 1px solid #EFE1D5;
  1358. display: flex;
  1359. justify-content: center;
  1360. font-size: 24rpx;
  1361. font-family: PingFangSC-Regular, PingFang SC;
  1362. font-weight: 400;
  1363. color: #764D49;
  1364. }
  1365. .timeviewTxt{
  1366. line-height: 41rpx;
  1367. padding-top: 10rpx;
  1368. }
  1369. .timeDivTxt{
  1370. line-height: 60rpx;
  1371. padding: 0 10rpx;
  1372. }
  1373. .timeK{
  1374. height: 41rpx;
  1375. line-height: 41rpx;
  1376. color: #FFFFFF;
  1377. width: 41rpx;
  1378. text-align: center;
  1379. background: #F03B3B;
  1380. border-radius: 6rpx;
  1381. margin-top: 9rpx;
  1382. margin-left: 15rpx;
  1383. margin-right: 15rpx;
  1384. }
  1385. .bottom{
  1386. width: 750rpx;
  1387. height: 180rpx;
  1388. background: #FFFFFF;
  1389. border-radius: 24rpx 24rpx 0px 0px;
  1390. position: fixed;
  1391. left: 0;
  1392. bottom: 0;
  1393. padding-bottom: constant(safe-area-inset-bottom);
  1394. padding-bottom: env(safe-area-inset-bottom);
  1395. }
  1396. .signupBox{
  1397. background: #ffffff;
  1398. margin-top: 20rpx;
  1399. }
  1400. .seeBox{
  1401. display: flex;
  1402. flex-wrap: wrap;
  1403. padding-left: 24rpx;
  1404. padding-bottom: 20rpx;
  1405. }
  1406. .seeLine{
  1407. padding-top: 14rpx;
  1408. padding-right: 16rpx;
  1409. }
  1410. .signupLine{
  1411. display: flex;
  1412. justify-content: space-between;
  1413. padding: 11rpx 0;
  1414. border-bottom: 1px solid #DDDDDD;
  1415. }
  1416. .signupLineM{
  1417. color: #3C3C3C;font-size: 26rpx;
  1418. line-height: 56rpx;
  1419. }
  1420. .signupLineR{
  1421. color: #999999;
  1422. font-size: 26rpx;
  1423. line-height: 56rpx;
  1424. }
  1425. .signupLineLName{
  1426. font-weight: 400;
  1427. color: #3C3C3C;
  1428. font-size: 26rpx;
  1429. padding-left: 16rpx;
  1430. line-height: 56rpx;
  1431. width: 150rpx;
  1432. white-space:nowrap;
  1433. overflow:hidden;
  1434. text-overflow:ellipsis;
  1435. }
  1436. .signupCont{
  1437. padding: 0 24rpx;
  1438. }
  1439. .signupLineLImg{
  1440. width: 56rpx;
  1441. height: 56rpx;
  1442. border-radius: 8rpx;
  1443. }
  1444. .signupLineL{
  1445. display: flex;
  1446. }
  1447. .signupTop{
  1448. width: 750rpx;
  1449. height: 78rpx;
  1450. background: url(http://dmsphoto.66km.com.cn/thFiles/FF582E15-1971-4C04-8AB3-F7618FFB961D.png);
  1451. background-size: 100% 100%;
  1452. text-align: center;
  1453. line-height: 78rpx;
  1454. }
  1455. .signupTops1{
  1456. color: #FF0000;font-weight: 500;
  1457. font-size: 28rpx;
  1458. }
  1459. .signupTops1{
  1460. color: #703917;font-weight: 500;
  1461. font-size: 28rpx;
  1462. }
  1463. .shopRightIcon{
  1464. width: 44rpx;
  1465. height: 44rpx;
  1466. display: block;
  1467. margin: 0 auto;
  1468. margin-bottom: 10rpx;
  1469. }
  1470. .shopName{
  1471. color: #3C3C3C;
  1472. font-size: 28rpx;
  1473. width: 500rpx;
  1474. }
  1475. .shopaddress{
  1476. font-weight: 400;
  1477. color: #999999;
  1478. font-size: 24rpx;
  1479. padding-top: 10rpx;
  1480. width: 500rpx;
  1481. }
  1482. .shopRightSx{
  1483. width: 2rpx;
  1484. height: 69rpx;
  1485. background:#EEEEEE ;
  1486. margin-left: 34rpx;
  1487. margin-right: 34rpx;
  1488. margin-top: 14rpx;
  1489. }
  1490. .shopCont{
  1491. display: flex;
  1492. justify-content: space-between;
  1493. padding-top: 25rpx;
  1494. }
  1495. .shopContRight{
  1496. display: flex;
  1497. }
  1498. .shopContRightLine{
  1499. text-align: center;
  1500. color: #999999;
  1501. font-size: 24rpx;
  1502. }
  1503. .content{
  1504. min-height: 100vh;
  1505. background:#F4F5F7;
  1506. }
  1507. .detailImg{
  1508. width: 750rpx;
  1509. display: block;
  1510. }
  1511. .detailBOx{
  1512. background: #ffffff;
  1513. margin-top: 20rpx;
  1514. }
  1515. .detailTitle{
  1516. color: #222222;
  1517. font-weight: 500;
  1518. padding: 20rpx 24rpx;
  1519. font-size: 30rpx;
  1520. }
  1521. .topimg{
  1522. width: 750rpx;
  1523. }
  1524. .shopMs{
  1525. font-weight: 500;
  1526. color: #222222;
  1527. line-height: 42rpx;
  1528. font-size: 30rpx;
  1529. }
  1530. .shopBox{
  1531. background: #ffffff;
  1532. margin-top: 20rpx;
  1533. padding: 20rpx 24rpx;
  1534. }
  1535. .shopBoxTop{
  1536. display: flex;
  1537. justify-content: space-between;
  1538. }
  1539. .shopTy{
  1540. display: flex;
  1541. }
  1542. .shopTyTxt{
  1543. font-weight: 400;
  1544. color: #666666;
  1545. font-size: 24rpx;
  1546. line-height: 42rpx;
  1547. }
  1548. .shopjt{
  1549. width: 14rpx;
  1550. height: 23rpx;
  1551. margin-top: 10rpx;
  1552. margin-left: 10rpx;
  1553. }
  1554. .cont{
  1555. background: #ffffff;
  1556. border-radius: 24rpx 24rpx 0px 0px;
  1557. margin-top: -30rpx;
  1558. padding: 30rpx 24rpx;
  1559. position: relative;
  1560. }
  1561. .name{
  1562. color: #3C3C3C;
  1563. line-height: 42rpx;
  1564. font-weight: 500;
  1565. font-size: 30rpx;
  1566. }
  1567. .name2{
  1568. color: #3C3C3C;
  1569. line-height: 36rpx;
  1570. font-weight: 400;
  1571. font-size: 26rpx;
  1572. padding-top: 16rpx;
  1573. }
  1574. .name3{
  1575. color: #999999;
  1576. line-height: 36rpx;
  1577. font-weight: 400;
  1578. font-size: 26rpx;
  1579. padding-top: 16rpx;
  1580. }
  1581. .shopImg {
  1582. width: 146rpx;
  1583. height: 146rpx;
  1584. border-radius: 6rpx;
  1585. }
  1586. .shopBox2 {
  1587. padding-top: 30rpx;
  1588. display: flex;
  1589. }
  1590. .flex {
  1591. display: flex;
  1592. justify-content: space-between;
  1593. }
  1594. .shopCont2 {
  1595. padding-left: 22rpx;
  1596. width: 520rpx;
  1597. }
  1598. .shopName {
  1599. color: #333333;
  1600. font-size: 26rpx;
  1601. font-weight: 600;
  1602. }
  1603. .span1 {
  1604. color: #FF4F00;
  1605. font-size: 36rpx;
  1606. }
  1607. .span2 {
  1608. color: #FF4F00;
  1609. font-size: 22rpx;
  1610. }
  1611. .span3 {
  1612. color: #333333;
  1613. font-size: 22rpx;
  1614. padding-left: 22rpx;
  1615. }
  1616. .shopBq {
  1617. color: #FF4F00;
  1618. font-size: 22rpx;
  1619. border-radius: 4rpx;
  1620. border: 1px solid #FF4F00;
  1621. line-height: 30rpx;
  1622. height: 30rpx;
  1623. padding: 0rpx 5rpx;
  1624. margin-top: 10rpx;
  1625. }
  1626. .brandsBg {
  1627. display: flex;
  1628. height: 38rpx;
  1629. flex-wrap: wrap;
  1630. align-items: center;
  1631. overflow: hidden;
  1632. padding: 5rpx 0rpx;
  1633. }
  1634. .brands {
  1635. border-radius: 4rpx;
  1636. padding: 0 5rpx;
  1637. color: #F19D01;
  1638. height: 28rpx;
  1639. border: 1px solid #F19D01;
  1640. font-size: 20rpx;
  1641. line-height: 28rpx;
  1642. margin: 5rpx 10rpx 5rpx 0rpx;
  1643. }
  1644. .timeBg {
  1645. display: flex;
  1646. }
  1647. .shopTime {
  1648. color: #666666;
  1649. font-size: 22rpx;
  1650. }
  1651. .addressBox {
  1652. color: #666666;
  1653. font-size: 22rpx;
  1654. }
  1655. .ckshopLine{
  1656. display: flex;
  1657. padding: 20rpx 0;
  1658. border-bottom: 1px solid #EEEEEE;
  1659. }
  1660. button::after{
  1661. border: none;
  1662. }
  1663. button{
  1664. position: relative;
  1665. display: block;
  1666. margin-left: 0;
  1667. margin-right: 0;
  1668. padding-left: 0px;
  1669. padding-right: 0px;
  1670. box-sizing: border-box;
  1671. text-align: center;
  1672. text-decoration: none;
  1673. line-height: 1.35;
  1674. -webkit-tap-highlight-color: transparent;
  1675. overflow: hidden;
  1676. color: #000000;
  1677. background-color: #fff;
  1678. height: 100%;
  1679. }
  1680. .authorizBox{
  1681. width: 100vw;
  1682. height: 100vh;
  1683. background: rgba(0, 0, 0, 0.5);
  1684. position: fixed;
  1685. top: 0;
  1686. left: 0;
  1687. }
  1688. .authorizCont{
  1689. margin-top: 30vh;
  1690. width: 564rpx;
  1691. height: 408rpx;
  1692. background: #FFFFFF;
  1693. border-radius: 24rpx;
  1694. margin-left: 93rpx;
  1695. position: relative;
  1696. }
  1697. .authorizCloseImg{
  1698. width: 62rpx;
  1699. height: 62rpx;
  1700. }
  1701. .sqLogoBox{
  1702. width: 180rpx;
  1703. height: 180rpx;
  1704. background: #FFFFFF;
  1705. border-radius: 90rpx;
  1706. text-align: center;
  1707. position: absolute;
  1708. top: -50rpx;
  1709. left: 192rpx;
  1710. }
  1711. .authorizName{
  1712. color: #333333;
  1713. line-height: 42rpx;
  1714. font-size: 30rpx;
  1715. text-align: center;
  1716. padding-top: 58rpx;
  1717. }
  1718. .authorizMs{
  1719. color: #999999;
  1720. line-height: 36rpx;
  1721. font-size: 26rpx;
  1722. width: 452rpx;
  1723. padding-top: 24rpx;
  1724. text-align: center;
  1725. margin-left: 56rpx;
  1726. }
  1727. .authorizContbutton{
  1728. width: 422rpx;
  1729. height: 88rpx;
  1730. background: #D53533;
  1731. border-radius: 44rpx;
  1732. line-height: 88rpx;
  1733. text-align: center;
  1734. font-size:30rpx;
  1735. color: #FFFFFF;
  1736. margin-top: 62rpx;
  1737. margin-left:71rpx;
  1738. }
  1739. .applicationTk{
  1740. height: 60vh;
  1741. }
  1742. .groupBtnTxt{
  1743. color: #FFFFFF;font-size: 26rpx;line-height: 26rpx;
  1744. }
  1745. .groupBtnTop{
  1746. font-weight: 500;font-size: 28rpx;
  1747. color: #FFFFFF;padding-top: 2rpx;
  1748. }
  1749. .couponPackageData{
  1750. background: #ffffff;
  1751. margin-top: 20rpx;
  1752. }
  1753. .couponPackageTitle{
  1754. padding-left: 24rpx;
  1755. padding-top: 30rpx;
  1756. color: #333333;
  1757. font-size: 32rpx;
  1758. line-height: 45rpx;
  1759. font-weight: 500;
  1760. }
  1761. .linecoupon{
  1762. justify-content: space-between;
  1763. }
  1764. .linecouponCont{
  1765. display: flex;
  1766. justify-content: space-between;
  1767. padding: 15rpx 24rpx;
  1768. }
  1769. .linecouponContLeft{
  1770. display: flex;
  1771. }
  1772. .couponType{
  1773. color: #FFA511;
  1774. border: 1px solid #FFA511;
  1775. border-radius: 4rpx;
  1776. font-size: 18rpx;
  1777. line-height: 26rpx;
  1778. padding: 0 8rpx;
  1779. height: 26rpx;
  1780. margin-top: 5rpx;
  1781. }
  1782. .couponName{
  1783. font-size: 26rpx;line-height: 38rpx;color: #3C3C3C;
  1784. padding-left: 20rpx;
  1785. }
  1786. .couponNum{
  1787. font-size: 26rpx;line-height: 38rpx;color: #999999;
  1788. }
  1789. </style>