jkDetail.vue 50 KB

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