jkDetail.vue 47 KB

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