jkDetail.vue 45 KB

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