jkDetail.vue 60 KB

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