jkDetail.vue 60 KB

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