jkDetail.vue 47 KB

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