jkDetail.vue 47 KB

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