jkDetail.vue 46 KB

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