jkDetail.vue 49 KB

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