index.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586
  1. <template>
  2. <view class="content">
  3. <view class="indexTop" :style="{background:'#'+themeColor}" v-if="getwxLoing">
  4. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  5. <view class="indexnav">{{wxOpenData.unionName}}</view>
  6. </view>
  7. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  8. <view style="height: 43px;"></view>
  9. <view class="topBox" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  10. <view class="yuanhu" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
  11. <view class="shoptopbox2" v-if="!carInfo">
  12. <view class="carinfoBox2">
  13. <view class="carinfoBoxNocar" @click="addCar">
  14. <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
  15. <view class="carinfoBoxNocarRight">
  16. <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
  17. <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="shoptopbox" v-if="carInfo">
  23. <view class="carinfoBox" >
  24. <view class="carinfoBoxTop">
  25. <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
  26. <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
  27. <view class="carinfoBoxTopCont">
  28. <view class="carinfoBoxTopContTop">
  29. <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
  30. <view class="carTnfomilage" v-if="carInfo.milage">{{carInfo.milage}}km</view>
  31. </view>
  32. <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
  33. <view class="carInfocarModel" v-else>暂无</view>
  34. </view>
  35. <view class="carinfoBoxTopRight" @click="changeCar">
  36. <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
  37. <view class="huancheBtn">换车</view>
  38. </view>
  39. </view>
  40. <!-- <view class="carInfoBottom">
  41. <view class="carInfoBottomLine">
  42. <view class="carInfoBottomLineTitle">下次保养里程</view>
  43. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
  44. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  45. </view>
  46. <view class="carInfoBottomLine">
  47. <view class="carInfoBottomLineTitle">下次保养日期</view>
  48. <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
  49. <view class="carInfoBottomLineTxt" v-else>暂无</view>
  50. </view>
  51. <view class="carInfoBottomLine">
  52. <view class="carInfoBottomLineTitle">保养手册</view>
  53. <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
  54. </view>
  55. </view> -->
  56. <view class="bxBox">
  57. <view class="bxline bxline1">
  58. <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
  59. <view class="bxlineTitle">保险</view>
  60. <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{InsuranceExpireDate}}天到期</view>
  61. <view class="bxlineMs2" v-else>--</view>
  62. </view>
  63. <view class="bxline bxline2">
  64. <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
  65. <view class="bxlineTitle">下次保养</view>
  66. <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
  67. <span v-if="NextCareDate||NextCareDate===0">{{NextCareDate}}天后</span>
  68. <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
  69. <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
  70. <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
  71. </view>
  72. <view class="bxlineMs2" v-else>--</view>
  73. </view>
  74. <view class="bxline bxline1">
  75. <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
  76. <view class="bxlineTitle">年审</view>
  77. <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{NextAuditDate}}天到期</view>
  78. <view class="bxlineMs2" v-else>--</view>
  79. </view>
  80. <view class="bxline bxline2" v-if="homeCardList.openMCar.showType==1">
  81. <img src="../../static/timg/car4.png" alt="" class="bxlineIcon" >
  82. <view class="bxlineTitle">保养手册</view>
  83. <view class="bxlineMs2" @click="information">点击查看</view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 服务顾问 -->
  89. <view v-if="homeCardList.openMUsers">
  90. <view class="adviser" v-if="homeCardList.openMUsers.showType!=2&&managerInfo" @click="goMUsers()">
  91. <view class="adviserLeft">
  92. <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
  93. <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
  94. <view class="adviserNema">{{managerInfo.name}}</view>
  95. <view class="adviserms" :style="{border:'1px solid #'+themeColor,color:'#'+themeColor}">服务顾问</view>
  96. </view>
  97. <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
  98. </view>
  99. </view>
  100. <!-- 中间功能应用模块 -->
  101. <view class="modular" v-if="homeCardList.application.length>0">
  102. <view class="swiper-item">
  103. <view class="itemLine" @click="goRoter(item)" v-for="(item,index) in homeCardList.application">
  104. <view><img :src="item.icon" alt="" class="itemImg"></view>
  105. <view class="Menusline">{{item.name}}</view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="advertisement" v-if="homeCardList.ad1.length>0">
  110. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  111. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  112. <swiper-item v-for="(item,index) in homeCardList.ad1">
  113. <view class="swiper-item2" @click="goRoter(item)">
  114. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  115. </view>
  116. </swiper-item>
  117. </swiper>
  118. </view>
  119. <view class="advertisement" v-if="homeCardList.ad2.length>0">
  120. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  121. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  122. <swiper-item v-for="(item,index) in homeCardList.ad2">
  123. <view class="swiper-item2" @click="goRoter(item)">
  124. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  125. </view>
  126. </swiper-item>
  127. </swiper>
  128. </view>
  129. <view class="advertisement" v-if="homeCardList.ad3.length>0">
  130. <swiper class="swiper2" circular :autoplay="true" :interval="interval"
  131. :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
  132. <swiper-item v-for="(item,index) in homeCardList.ad3">
  133. <view class="swiper-item2" @click="goRoter(item)">
  134. <image class="swiper-item2Img" :src="item.icon" mode=""></image>
  135. </view>
  136. </swiper-item>
  137. </swiper>
  138. </view>
  139. <!-- 热门活动 -->
  140. <view v-if="homeCardList.openMActivity">
  141. <view class="Hot" v-if="homeCardList.openMActivity.openCollectingList.length>0">
  142. <view class="hotTop">
  143. <view class="hotLeft">
  144. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  145. <view class="hottitle">{{homeCardList.openMActivity.showTitle?homeCardList.openMActivity.showTitle:'热门活动'}}</view>
  146. </view>
  147. <view class="hotRight" @click="moreJk">
  148. <view class="hotMore">更多</view>
  149. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  150. </view>
  151. </view>
  152. <view class="hotLine" @click="goJk(item)" v-for="(item,index) in homeCardList.openMActivity.openCollectingList" v-if="index<homeCardList.openMActivity.showCount">
  153. <view class="hotLineTop">
  154. <image class="hotLineTopImg" :src="item.img" mode=""></image>
  155. <view class="hotlineTimebox">
  156. <!-- <view class="hotlinestate1" v-if="item.state==2">进行中</view>
  157. <view class="hotlinestate2" v-if="item.state==1">未开始</view> -->
  158. <image class="jkStateImg" v-if="item.state==2" src="http://dmsphoto.66km.com.cn/thFiles/85EAAA7F-01A6-41A6-B25B-72FAD3E451AC.png" mode="" ></image>
  159. <image class="jkStateImg" v-if="item.state==1" src="http://dmsphoto.66km.com.cn/thFiles/EB46639B-85C9-4246-A3E3-EA87944DFC36.png" mode="" ></image>
  160. <view class="hotTime">{{item.startTime.slice(0,10)}}-{{item.endTime.slice(0,10)}}</view>
  161. </view>
  162. </view>
  163. <view class="hotName">{{item.activityName}}</view>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- 热门商品 -->
  168. <view v-if="homeCardList.openMGoods">
  169. <view class="" v-if="homeCardList.openMGoods.goodsList.length>0">
  170. <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
  171. <view class="hotTop">
  172. <view class="hotLeft">
  173. <view class="hotSx" :style="{background:'#'+themeColor}"></view>
  174. <view class="hottitle">{{homeCardList.openMGoods.showTitle?homeCardList.openMGoods.showTitle:'热门商品'}}</view>
  175. </view>
  176. <view class="hotRight" @click="goShop">
  177. <view class="hotMore">更多</view>
  178. <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
  179. </view>
  180. </view>
  181. <view v-if="homeCardList.openMGoods.showLayout==1">
  182. <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  183. <view>
  184. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  185. </view>
  186. <view class="hotGoodsLineRIght">
  187. <view class="goodsName">{{item.name}}</view>
  188. <view class="Sold">
  189. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  190. 已售 {{item.saleQty>0?item.saleQty:0}}
  191. </view>
  192. </view>
  193. <view class="goodsPrice">
  194. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  195. <view class="goodsPrice2" >¥</view>
  196. <view class="goodsPrice3" >{{item.salePrice}}
  197. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  198. </view>
  199. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. <!-- 俩列的 -->
  205. <div class="goodsTwo" v-if="homeCardList.openMGoods.showLayout==2">
  206. <div class="goodsTwoLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
  207. <div class="goodsTwoImg">
  208. <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
  209. </div>
  210. <div class="goodsTwoName">{{item.name}}</div>
  211. <view class="Sold">
  212. <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
  213. 已售 {{item.saleQty>0?item.saleQty:0}}
  214. </view>
  215. </view>
  216. <view class="goodsPrice">
  217. <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
  218. <view class="goodsPrice2" >¥</view>
  219. <view class="goodsPrice3" >{{item.salePrice}}
  220. <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
  221. </view>
  222. <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
  223. </view>
  224. </div>
  225. </div>
  226. </view>
  227. </view>
  228. </view>
  229. <view style="height: 60rpx;"></view>
  230. <!-- 手机号授权 -->
  231. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  232. <view class="authorizCont" @click.stop="">
  233. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  234. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  235. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  236. </view>
  237. <view style="text-align: center;padding-top: 56rpx;">
  238. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  239. </view>
  240. </view>
  241. <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
  242. -->
  243. </view>
  244. </template>
  245. <script>
  246. export default {
  247. data() {
  248. return {
  249. shopId: '',
  250. url:'',
  251. wxOpenData:'',
  252. code:'',
  253. carInfo:'',
  254. homeCardList:'',
  255. authorizShow:false,
  256. miniAppName:'',
  257. iStatusBarHeight:'',
  258. managerInfo:'',
  259. unionId:'',
  260. ext:'',
  261. duration:500,
  262. interval:3000,
  263. InsuranceExpireDate:'',
  264. NextCareDate:'',
  265. NextAuditDate:'',
  266. themeColor:'',
  267. getwxLoing:false,
  268. shareID:'',
  269. discount:'',
  270. bizUserId:'',
  271. coCouponsMsg:'',
  272. coNoNewCustMsg:'',
  273. }
  274. },
  275. onLoad(opt) {
  276. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  277. var that=this;
  278. //this.$common.getExtStoreId()
  279. var ext=this.$common.getExtStoreId();
  280. this.ext=ext
  281. console.log(ext)
  282. //console.log( String(Date.now()))
  283. this.shopId=ext.shopId;
  284. this.url=ext.url;
  285. this.unionId=ext.unionId;
  286. var shareID = opt.scene //'F16E7299-6850-4015-ABCE-A9F2794B45B5'
  287. if (shareID) {
  288. this.shareID = shareID
  289. //this.$store.commit('mutationsshareID', shareID)
  290. }
  291. //this.shareID='C01DF9DA51A341888754DE0C4ADB29D9'
  292. //this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
  293. //this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
  294. //this.ext.appId="wxffd2502e67d37908"
  295. // uni.setStorage({
  296. // key: 'extdata',
  297. // data: {
  298. // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
  299. // },
  300. // success: function () {
  301. // that.uniLogin()
  302. // }
  303. // });
  304. //this.userInfo = uni.getStorageSync("userInfo");
  305. this.userInfo=this.$store.state.userInfo
  306. if(this.userInfo){
  307. //this.wxOpenData = uni.getStorageSync("wxOpenData");
  308. this.getCarList();
  309. this.queryHomeCardList()
  310. this.queryManagerInfo()
  311. }else{
  312. this.uniLogin()
  313. }
  314. //版本更新
  315. this.UpdateManager()
  316. },
  317. onShow() {
  318. this.userInfo=this.$store.state.userInfo;
  319. this.wxOpenData=this.$store.state.wxOpenData;
  320. var indexaddcar = uni.getStorageSync("indexaddcar");
  321. this.getwxLoing=true;
  322. if(indexaddcar==1){
  323. uni.removeStorageSync('indexaddcar');
  324. this.getCarList();
  325. }else{
  326. this.carInfo=this.$store.state.carInfo;
  327. this.jsTime()
  328. }
  329. },
  330. onPullDownRefresh(){
  331. this.getCarList();
  332. this.queryHomeCardList()
  333. this.queryManagerInfo()
  334. setTimeout(() => {
  335. uni.stopPullDownRefresh(); // 关闭下拉刷新
  336. }, 1000);
  337. },
  338. methods: {
  339. UpdateManager(){
  340. const updateManager = uni.getUpdateManager();
  341. updateManager.onCheckForUpdate(function (res) {
  342. // 请求完新版本信息的回调
  343. console.log(res.hasUpdate);
  344. });
  345. updateManager.onUpdateReady(function (res) {
  346. uni.showModal({
  347. title: '更新提示',
  348. content: '新版本已经准备好,是否重启应用?',
  349. success(res) {
  350. if (res.confirm) {
  351. // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
  352. updateManager.applyUpdate();
  353. }
  354. }
  355. });
  356. });
  357. updateManager.onUpdateFailed(function (res) {
  358. // 新的版本下载失败
  359. uni.showToast({
  360. title: '新的版本下载失败',
  361. icon:'none',
  362. duration: 3000
  363. });
  364. });
  365. },
  366. addCar(){
  367. if(!this.userInfo){
  368. this.authorizShow=true;
  369. }else{
  370. uni.navigateTo({
  371. url:'../user/addCar/addCar?type=1'
  372. })
  373. }
  374. },
  375. goShop(){
  376. uni.switchTab({
  377. url:'../shop/shop'
  378. })
  379. },
  380. moreJk(){
  381. uni.switchTab({
  382. url:'../activity/activity'
  383. })
  384. },
  385. information(){
  386. console.log('车辆信息--',this.carInfo);
  387. uni.navigateTo({
  388. url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
  389. })
  390. },
  391. changeCar(){
  392. /* uni.scanCode({
  393. success: function (res) {
  394. console.log('条码类型:' + res.scanType);
  395. console.log( res);
  396. }
  397. });
  398. return false; */
  399. uni.navigateTo({
  400. url:'../user/addCar/cailist'
  401. })
  402. },
  403. goMUsers(){
  404. if(!this.userInfo){
  405. this.authorizShow=true;
  406. }else{
  407. var managerInfo={
  408. name:this.managerInfo.name,
  409. shopInfo:{
  410. shopName:this.managerInfo.shopInfo.shopName,
  411. provinceName:this.managerInfo.shopInfo.provinceName,
  412. cityName:this.managerInfo.shopInfo.cityName,
  413. areaName:this.managerInfo.shopInfo.areaName,
  414. Address:this.managerInfo.shopInfo.Address,
  415. },
  416. avatar:this.managerInfo.avatar,
  417. phone:this.managerInfo.phone,
  418. shopID:this.managerInfo.shopInfo.id
  419. }
  420. uni.navigateTo({
  421. url:'../index/personalCard?adInfo='+JSON.stringify(managerInfo)
  422. })
  423. }
  424. },
  425. goGoods(item){
  426. if(!this.userInfo){
  427. this.authorizShow=true;
  428. }else{
  429. uni.navigateTo({
  430. url:'../shop/goodsDetail?id='+item.id
  431. })
  432. }
  433. },
  434. goJk(item){
  435. if(!this.userInfo){
  436. this.authorizShow=true;
  437. }else{
  438. uni.navigateTo({
  439. url:'../activity/jkDetail?id='+item.id
  440. })
  441. }
  442. },
  443. goRoter(item){
  444. console.log(item)
  445. if(!this.userInfo){
  446. this.authorizShow=true;
  447. }else{
  448. if(item.bizType==0){
  449. if(item.name=='新车'){ //
  450. uni.navigateTo({
  451. url:'newCar'
  452. })
  453. }else if(item.name=='二手车'){
  454. uni.navigateTo({
  455. url:'usedCar'
  456. })
  457. }else if(item.name=='爱车估价'){
  458. uni.navigateTo({
  459. url:'evaluation'
  460. })
  461. }else if(item.sortId==18){ //领券中心
  462. uni.navigateTo({
  463. url:'receiveCoupon'
  464. })
  465. }
  466. else{
  467. uni.showToast({
  468. title: '敬请期待',
  469. icon:'none',
  470. duration: 3000
  471. });
  472. }
  473. }else if(item.bizType==1){ //紧急救援
  474. // uni.navigateTo({
  475. // url:'rescue'
  476. // })
  477. uni.showToast({
  478. title: '敬请期待',
  479. icon:'none',
  480. duration: 3000
  481. });
  482. }else if(item.bizType==2){ //钣金喷漆
  483. uni.navigateTo({
  484. url:'paint'
  485. })
  486. /* uni.navigateTo({
  487. url:'receiveCoupon'
  488. }) */
  489. }else if(item.bizType==3){ //保养
  490. uni.navigateTo({
  491. url:'maintain'
  492. })
  493. }else if(item.bizType==4){ //在线预约
  494. uni.navigateTo({
  495. url:'onlineBooking?naShopId='+item.naShopId
  496. })
  497. }else if(item.bizType==5){ //导航
  498. this.getShopinfo(5,item.reShopId)
  499. }else if(item.bizType==6){ //联系本店
  500. this.getShopinfo(6,item.orShopId)
  501. }else if(item.bizType==7){ //7门店列表
  502. uni.navigateTo({
  503. url:'shopList'
  504. })
  505. }else if(item.bizType==8){ //我的会员卡
  506. uni.navigateTo({
  507. url:'vipCard'
  508. })
  509. }else if(item.bizType==9){ //我的优惠券
  510. uni.navigateTo({
  511. url:'discountCard'
  512. })
  513. }else if(item.bizType==10){ //我的订单
  514. uni.navigateTo({
  515. url:'../user/myOrder/myOrder'
  516. })
  517. }else if(item.bizType==11){ //我的预约
  518. uni.navigateTo({
  519. url:'../user/myBespeak'
  520. })
  521. }else if(item.bizType==12){ //历史消费
  522. uni.navigateTo({
  523. url:'../user/historySpend'
  524. })
  525. }else if(item.bizType==12){ //历史消费
  526. uni.navigateTo({
  527. url:'../user/historySpend'
  528. })
  529. }else if(item.bizType==13){ //车检报告
  530. uni.navigateTo({
  531. url:'../user/checkReport'
  532. })
  533. }else if(item.bizType==14){ //指定商品分类
  534. uni.setStorage({
  535. key: 'shopcategoryID',
  536. data: item.bizId,
  537. success: function () {
  538. getApp().globalData.shopcategoryID=item.bizId;
  539. uni.switchTab({
  540. url:'../shop/shop?shopcategoryID='+ item.bizId
  541. })
  542. }
  543. });
  544. }else if(item.bizType==15){ //商品详情
  545. uni.navigateTo({
  546. url:'../shop/goodsDetail?id='+item.bizId
  547. })
  548. }else if(item.bizType==16){ //积分商城
  549. uni.navigateTo({
  550. url:'../integral/integral'
  551. })
  552. }else if(item.bizType==17){ //公司介绍
  553. uni.navigateTo({
  554. url:'aboutUS?unionID='+this.userInfo.unionId
  555. })
  556. }else if(item.bizType==18){ //领券中心
  557. uni.navigateTo({
  558. url:'receiveCoupon'
  559. })
  560. }
  561. // uni.navigateTo({
  562. // url:url
  563. // })
  564. }
  565. },
  566. decryptPhoneNumber: function(e) {
  567. console.log(e);
  568. this.code=e.detail.code
  569. this.wxPhoneLogin()
  570. this.authorizShow=false;
  571. },
  572. wxgologin(){
  573. var that=this;
  574. uni.getUserProfile({
  575. lang:'zh_CN',
  576. desc:'登录',
  577. success:(res)=>{
  578. console.log(res);
  579. that.wxdata=res;
  580. uni.setStorage({
  581. key: 'wxdata',
  582. data: res,
  583. success: function () {
  584. that.uniLogin()
  585. }
  586. });
  587. },
  588. fail:(res)=>{
  589. console.log(res)
  590. }
  591. });
  592. },
  593. uniLogin(){
  594. var that=this;
  595. uni.login({
  596. provider: 'weixin',
  597. success: function (loginRes) {
  598. console.log(loginRes);
  599. that.getWxOpenID(loginRes)
  600. }
  601. });
  602. },
  603. getWxOpenID(e){
  604. var that=this;
  605. // uni.showLoading({
  606. // title: '加载中'
  607. // })
  608. this.$http('miniApp2/sys/getWxOpenID', {
  609. code:e.code,
  610. unionId:this.unionId,
  611. shareId:this.shareID
  612. },'GET').then(res => {
  613. console.log(res.code);
  614. console.log("授权信息")
  615. console.log(res)
  616. //uni.hideLoading();
  617. if(res.code!=0){
  618. //uni.hideLoading();
  619. var msg=res.msg
  620. if(!msg){
  621. msg='授权失败'
  622. }
  623. console.log(msg);
  624. // uni.showModal({
  625. // title: '提示',
  626. // content: msg,
  627. // success: function(resTK) {
  628. // if (resTK.confirm) {
  629. // }
  630. // }
  631. // });
  632. // uni.showToast({
  633. // title:msg,
  634. // icon: 'none',
  635. // duration: 3000
  636. // });
  637. //return false
  638. }
  639. this.wxOpenData=res.data;
  640. this.themeColor=res.data.themeColor
  641. //this.themeColor='FFFFFF'
  642. this.getwxLoing=true;
  643. uni.setNavigationBarTitle({
  644. title:this.wxOpenData.miniAppName
  645. })
  646. if(this.themeColor=='6F2BE8'){
  647. var backgroundImage='/static/tabimg/index6F2BE8.png'
  648. }
  649. if(this.themeColor=='1677FF'){
  650. var backgroundImage='/static/tabimg/index1677FF.png'
  651. }
  652. if(this.themeColor=='FF4F00'){
  653. var backgroundImage='/static/tabimg/indexFF4F00.png'
  654. }
  655. if(this.themeColor=='D53533'){
  656. var backgroundImage='/static/tabimg/index1.png'
  657. }
  658. uni.setTabBarStyle({
  659. // color: '#FF0000',
  660. selectedColor: '#'+this.themeColor,
  661. })
  662. uni.setTabBarItem({
  663. index: 0,
  664. text: '首页',
  665. selectedIconPath: backgroundImage
  666. })
  667. if(res.code==0){
  668. that.queryHomeCardList()
  669. }
  670. //that.wxPhoneLogin()
  671. this.$store.commit('mutationswxOpenData', that.wxOpenData)
  672. uni.setStorage({
  673. key: 'wxOpenData',
  674. data: that.wxOpenData,
  675. success: function () {
  676. // that.uniLogin()
  677. }
  678. });
  679. uni.setStorage({
  680. key: 'themeColor',
  681. data: that.themeColor,
  682. success: function () {
  683. // that.uniLogin()
  684. }
  685. });
  686. if(this.wxOpenData.loginInfo){
  687. this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
  688. this.userInfo=that.wxOpenData.loginInfo.openUser
  689. that.queryManagerInfo()
  690. uni.setStorage({
  691. key: 'userInfo',
  692. data: that.wxOpenData.loginInfo.openUser,
  693. success: function () {
  694. that.getCarList()
  695. }
  696. });
  697. }else{
  698. //this.authorizShow=true;
  699. }
  700. if(res.data.loginInfo.discount){
  701. that.discount=res.data.loginInfo.discount;
  702. if(that.discount==2){
  703. that.bizUserId=res.data.loginInfo.bizUserId;
  704. }
  705. if(that.shareID){
  706. that.getCouponList()
  707. }
  708. }
  709. if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
  710. uni.showModal({
  711. title: '提示',
  712. content:res.data.loginInfo.coNoNewCustMsg,
  713. success: function(resTKk) {
  714. }
  715. });
  716. }
  717. //console.log("优惠券")
  718. })
  719. },
  720. wxPhoneLogin(){
  721. var that=this;
  722. this.$http('miniApp2/sys/wxPhoneLogin', {
  723. appId:this.ext.appId,
  724. unionId:this.unionId,
  725. code:this.code,
  726. openId:this.wxOpenData.openid,
  727. shareId:this.shareID
  728. },'POST').then(res => {
  729. var data = res.data;
  730. if(data.loginInfo){
  731. this.userInfo=data.loginInfo.openUser;
  732. this.$store.commit('mutationsuserInfo', this.userInfo);
  733. this.$store.commit('mutationswxOpenData', data);
  734. uni.setStorage({
  735. key: 'userInfo',
  736. data: data.loginInfo.openUser,
  737. success: function () {
  738. that.getCarList()
  739. that.queryHomeCardList()
  740. that.queryManagerInfo();
  741. if(data.loginInfo.coCouponsMsg){
  742. uni.hideLoading()
  743. that.coCouponsMsg =data.loginInfo.coCouponsMsg;
  744. that.ownerCoupon()
  745. }
  746. if(data.loginInfo.coNoNewCustMsg){
  747. //console.log(data.loginInfo.coNoNewCustMsg)
  748. uni.hideLoading()
  749. that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
  750. that.coNoNewCust()
  751. }
  752. if(data.loginInfo.discount){
  753. that.discount=data.loginInfo.discount;
  754. if(that.discount==2){
  755. that.bizUserId=data.loginInfo.bizUserId;
  756. }
  757. if(that.shareID&&that.discount==2){
  758. that.getCouponList()
  759. }
  760. }
  761. }
  762. });
  763. }
  764. })
  765. },
  766. coNoNewCust(){
  767. console.log(111111)
  768. var that=this;
  769. uni.showModal({
  770. title: '提示',
  771. content: that.coNoNewCustMsg,
  772. success: function(resTK) {
  773. }
  774. });
  775. },
  776. ownerCoupon(){
  777. console.log(22222)
  778. var that=this;
  779. uni.showModal({
  780. title: '提示',
  781. content: that.coCouponsMsg,
  782. cancelText:'回到首页',
  783. confirmText:'查看',
  784. success: function(resTK) {
  785. if (resTK.confirm) {
  786. uni.navigateTo({
  787. url:'discountCard'
  788. })
  789. }
  790. }
  791. });
  792. },
  793. getCouponList(){
  794. if(this.discount!=2){
  795. var params={
  796. discount:this.discount
  797. }
  798. }else{
  799. var params={
  800. discount:this.discount,
  801. bizId:this.bizUserId
  802. }
  803. }
  804. var that=this;
  805. this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
  806. var list = res.data;
  807. if(list.length>0){
  808. uni.showModal({
  809. title: '提示',
  810. content: '您有优惠券待领取',
  811. cancelText:'回到首页',
  812. confirmText:'查看',
  813. success: function(resTK) {
  814. if (resTK.confirm) {
  815. uni.navigateTo({
  816. url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
  817. })
  818. }
  819. }
  820. });
  821. }
  822. })
  823. },
  824. getCarList(){
  825. this.$http('opencarOwnerHome/queryCarInfoList', {
  826. },'GET').then(res => {
  827. if(res.code==401){
  828. this.uniLogin()
  829. }else{
  830. this.carInfo=res.data[0]
  831. //this.carInfo=[]
  832. this.$store.commit('mutationscarInfo', this.carInfo)
  833. /* this.carInfo.insuranceExpireDate='2022-11-11';
  834. this.carInfo.nextAuditDate='2022-08-13'; */
  835. //this.carInfo.nextCareDate='2022-08-11';
  836. //this.carInfo.nextCareMilage=11
  837. this.jsTime()
  838. }
  839. })
  840. },
  841. jsTime(){
  842. if(this.carInfo.insuranceExpireDate){
  843. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
  844. console.log("现在时间大于开始时间")
  845. this.InsuranceExpireDate = 0
  846. } else {
  847. this.clock()
  848. }
  849. }else{
  850. this.InsuranceExpireDate=''
  851. }
  852. if(this.carInfo.nextCareDate){
  853. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
  854. this.NextCareDate = 0
  855. } else {
  856. this.clock2()
  857. }
  858. }else{
  859. this.NextCareDate = ''
  860. }
  861. if(this.carInfo.nextAuditDate){
  862. if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
  863. this.NextAuditDate = 0
  864. } else {
  865. this.clock3()
  866. }
  867. }else{
  868. this.NextAuditDate=''
  869. }
  870. },
  871. clock () {
  872. let _this = this
  873. let today = new Date() // 当前时间
  874. let h = today.getHours()
  875. let m = today.getMinutes()
  876. let s = today.getSeconds()
  877. let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
  878. let stopH = stopTime.getHours()
  879. let stopM = stopTime.getMinutes()
  880. let stopS = stopTime.getSeconds()
  881. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  882. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  883. this.InsuranceExpireDate=shengyuD+1;
  884. // setTimeout(_this.clock, 500)
  885. },
  886. clock2 () {
  887. let _this = this
  888. let today = new Date() // 当前时间
  889. let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
  890. let stopH = stopTime.getHours()
  891. let stopM = stopTime.getMinutes()
  892. let stopS = stopTime.getSeconds()
  893. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  894. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  895. this.NextCareDate=shengyuD+1;
  896. // setTimeout(_this.clock, 500)
  897. },
  898. clock3 () {
  899. let _this = this
  900. let today = new Date() // 当前时间
  901. let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
  902. let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
  903. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  904. this.NextAuditDate=shengyuD+1;
  905. // setTimeout(_this.clock, 500)
  906. },
  907. queryManagerInfo(){
  908. console.log("11")
  909. this.$http('openHome/queryManagerInfo', {
  910. },'GET').then(res => {
  911. this.managerInfo=res.data
  912. })
  913. },
  914. queryHomeCardList(){
  915. //console.log(this.wxOpenData)
  916. uni.showLoading({
  917. title: '加载中'
  918. })
  919. this.$http('openHome/queryHomeCardList', {
  920. unionId:this.unionId
  921. },'GET').then(res => {
  922. uni.hideLoading();
  923. this.homeCardList=res.data;
  924. uni.setStorage({
  925. key: 'openMCar',
  926. data: res.data.openMCar,
  927. success: function () {
  928. that.getCarList()
  929. }
  930. });
  931. })
  932. },
  933. getShopinfo(num,shopId){
  934. var that=this;
  935. uni.showLoading({
  936. title: '加载中'
  937. })
  938. if(!shopId){
  939. shopId=''
  940. }
  941. this.$http('openmy/getShopinfo', {
  942. shopId:shopId
  943. },'GET').then(res => {
  944. uni.hideLoading();
  945. var res=res.data
  946. if(num==5){
  947. uni.openLocation({
  948. latitude:Number(res.lat),
  949. longitude:Number(res.lng),
  950. name: res.shopName,
  951. address: res.address,
  952. success: function() {
  953. console.log('success');
  954. },
  955. fail(err) {
  956. console.log(err)
  957. }
  958. });
  959. }else{
  960. uni.makePhoneCall({
  961. phoneNumber: res.mobilePhone
  962. });
  963. }
  964. })
  965. }
  966. },
  967. onShareAppMessage(){
  968. }
  969. }
  970. </script>
  971. <style scoped>
  972. .goodsTwo{
  973. display: flex;
  974. justify-content: space-between;
  975. flex-wrap: wrap;
  976. }
  977. .goodsTwoLine{
  978. background: #FFFFFF;width: 341rpx;
  979. margin-top: 20rpx;
  980. padding-bottom: 20rpx;
  981. border-radius: 16rpx;
  982. overflow: hidden;
  983. }
  984. .goodsTwoImg .hotGoodsLineImg{
  985. margin: 0 auto;
  986. width: 100%;
  987. height: 340rpx;
  988. border-radius: 0;
  989. border: none;
  990. }
  991. .goodsTwoLine .Sold{
  992. padding-left: 20rpx;
  993. }
  994. .goodsTwoLine .goodsPrice{
  995. padding-left: 20rpx;
  996. }
  997. .goodsTwoImg{
  998. padding-bottom: 30rpx;
  999. }
  1000. .goodsTwoName{
  1001. font-weight: 400;
  1002. color: #333333;
  1003. font-size: 26rpx;
  1004. line-height: 38rpx;
  1005. padding: 0 20rpx;
  1006. text-overflow: -o-ellipsis-lastline;
  1007. overflow: hidden;
  1008. text-overflow: ellipsis;
  1009. display: -webkit-box;
  1010. -webkit-line-clamp: 2;
  1011. line-clamp: 2;
  1012. -webkit-box-orient: vertical;
  1013. }
  1014. .bxBox{
  1015. display: flex;
  1016. flex-wrap: wrap;
  1017. }
  1018. .bxline{
  1019. display: flex;
  1020. padding-top: 22rpx;
  1021. }
  1022. .bxline1{
  1023. width: 40%;
  1024. }
  1025. .bxline2{
  1026. width: 60%;
  1027. }
  1028. .bxlineTitle{
  1029. color: #333333;
  1030. font-size: 26rpx;
  1031. line-height: 37rpx;
  1032. padding-left: 10rpx;
  1033. }
  1034. .bxlineMs1{
  1035. line-height: 37rpx;
  1036. color: #D53533;
  1037. font-size: 26rpx;
  1038. padding-left: 12rpx;
  1039. }
  1040. .bxlineMs2{
  1041. line-height: 37rpx;
  1042. color: #999999;
  1043. font-size: 24rpx;
  1044. padding-left: 12rpx;
  1045. }
  1046. .bxlineIcon{
  1047. width: 34rpx;
  1048. height: 34rpx;
  1049. margin-left: 24rpx;
  1050. }
  1051. .indexTop{
  1052. background: #D53533;
  1053. width: 750rpx;
  1054. position: fixed;
  1055. top: 0;
  1056. left: 0;
  1057. z-index: 11;
  1058. }
  1059. .indexnav{
  1060. height: 44px;
  1061. line-height: 44px;
  1062. text-align: center;
  1063. font-size: 36rpx;
  1064. color: #FFFFFF;
  1065. }
  1066. .authorizBox{
  1067. width: 100vw;
  1068. height: 100vh;
  1069. background: rgba(0, 0, 0, 0.5);
  1070. position: fixed;
  1071. top: 0;
  1072. left: 0;
  1073. }
  1074. .authorizCont{
  1075. margin-top: 30vh;
  1076. width: 564rpx;
  1077. height: 408rpx;
  1078. background: #FFFFFF;
  1079. border-radius: 24rpx;
  1080. margin-left: 93rpx;
  1081. position: relative;
  1082. }
  1083. .authorizCloseImg{
  1084. width: 62rpx;
  1085. height: 62rpx;
  1086. }
  1087. .sqLogoBox{
  1088. width: 180rpx;
  1089. height: 180rpx;
  1090. background: #FFFFFF;
  1091. border-radius: 90rpx;
  1092. text-align: center;
  1093. position: absolute;
  1094. top: -50rpx;
  1095. left: 192rpx;
  1096. }
  1097. .authorizName{
  1098. color: #333333;
  1099. line-height: 42rpx;
  1100. font-size: 30rpx;
  1101. text-align: center;
  1102. padding-top: 58rpx;
  1103. }
  1104. .authorizMs{
  1105. color: #999999;
  1106. line-height: 36rpx;
  1107. font-size: 26rpx;
  1108. width: 452rpx;
  1109. padding-top: 24rpx;
  1110. text-align: center;
  1111. margin-left: 56rpx;
  1112. }
  1113. .authorizContbutton{
  1114. width: 422rpx;
  1115. height: 88rpx;
  1116. background: #D53533;
  1117. border-radius: 44rpx;
  1118. line-height: 88rpx;
  1119. text-align: center;
  1120. font-size:30rpx;
  1121. color: #FFFFFF;
  1122. margin-top: 62rpx;
  1123. margin-left:71rpx;
  1124. }
  1125. .content{
  1126. min-height: 100vh;
  1127. background: #F4F5F7;
  1128. }
  1129. .topBox{
  1130. width: 750rpx;
  1131. height: 150rpx;
  1132. background: #D53533;
  1133. }
  1134. .yuanhu{
  1135. width: 750rpx;
  1136. height: 50rpx;
  1137. background: #D53533;
  1138. border-radius: 0 0 100% 100%;
  1139. }
  1140. .carinfoBox{
  1141. width: 702rpx;
  1142. /* height: 250rpx; */
  1143. background: #FFFFFF;
  1144. border-radius: 10rpx;
  1145. margin-left: 24rpx;
  1146. overflow: hidden;
  1147. height: 270rpx;
  1148. }
  1149. .carinfoBox2{
  1150. width: 702rpx;
  1151. height: 180rpx;
  1152. background: #FFFFFF;
  1153. border-radius: 10rpx;
  1154. margin-left: 24rpx;
  1155. overflow: hidden;
  1156. }
  1157. .carinfoBox2{
  1158. }
  1159. .carinfoBox .carLogo{
  1160. width: 60rpx;height: 60rpx;
  1161. margin-top: 6rpx;
  1162. }
  1163. .carinfoBoxTop{
  1164. display: flex;
  1165. justify-content: space-between;
  1166. padding-top: 29rpx;
  1167. padding-left: 24rpx;
  1168. padding-right: 20rpx;
  1169. padding-bottom: 24rpx;
  1170. border: 1px solid #EEEEEE;
  1171. }
  1172. .carinfoBoxTopCont{
  1173. width: 454rpx;
  1174. }
  1175. .carinfoBoxTopContTop{
  1176. display: flex;
  1177. }
  1178. .carInfoplateNumber{
  1179. font-weight: 500;
  1180. color: #3C3C3C;
  1181. font-size: 30rpx;
  1182. line-height: 42rpx;
  1183. padding-right: 16rpx;
  1184. }
  1185. .carTnfomilage{
  1186. color: #F19D01;
  1187. font-size: 22rpx;
  1188. padding: 0rpx 10rpx;
  1189. border-radius: 4rpx;
  1190. border: 1px solid #F19D01;
  1191. height: 32rpx;
  1192. line-height: 34rpx;
  1193. margin-top: 2rpx;
  1194. margin-left: 2rpx;
  1195. }
  1196. .carInfocarModel{
  1197. width: 454rpx;
  1198. color: #666666;
  1199. font-size: 26rpx;
  1200. white-space: nowrap;
  1201. overflow: hidden;
  1202. text-overflow: ellipsis;
  1203. }
  1204. .carinfoBoxTopRight{
  1205. display: flex;padding-top: 25rpx;
  1206. }
  1207. .carinfoBoxTopRightIcon{
  1208. width: 29rpx;
  1209. height: 31rpx;
  1210. }
  1211. .huancheBtn{
  1212. color: #666666; font-size: 26rpx;line-height: 31rpx;
  1213. padding-left: 10rpx;
  1214. }
  1215. .carInfoBottom{
  1216. display: flex;
  1217. justify-content: space-around;
  1218. }
  1219. .carInfoBottomLineTitle{
  1220. color: #999999;font-size: 24rpx;
  1221. text-align: center;
  1222. padding-top: 24rpx;
  1223. }
  1224. .carInfoBottomLineTxt{
  1225. color: #3C3C3C;
  1226. font-size: 26rpx;
  1227. padding-top: 5rpx;
  1228. text-align: center;
  1229. }
  1230. .carinfonocarIcon{
  1231. width: 72rpx;
  1232. height: 72rpx;
  1233. }
  1234. .carinfoBoxNocar{
  1235. display: flex;
  1236. padding-top: 50rpx;
  1237. padding-left: 20rpx;
  1238. }
  1239. .carinfoBoxNocarRightTitle{
  1240. font-weight: 500;
  1241. color: #3C3C3C;
  1242. font-size: 30rpx;
  1243. }
  1244. .carinfoBoxNocarRightMS{
  1245. color: #666666;
  1246. font-size: 26rpx;
  1247. }
  1248. .carinfoBoxNocarRight{
  1249. padding-left: 24rpx;
  1250. }
  1251. .shoptopbox{
  1252. margin-top: -170rpx;
  1253. }
  1254. .shoptopbox2{
  1255. margin-top: -170rpx;
  1256. }
  1257. .adviser{
  1258. width: 662rpx;
  1259. margin-left: 24rpx;
  1260. background: #FFFFFF;
  1261. border-radius: 10px;
  1262. display: flex;
  1263. justify-content: space-between;
  1264. padding: 18rpx 20rpx;
  1265. margin-top: 20rpx;
  1266. }
  1267. .adviserLeft{
  1268. display: flex;
  1269. }
  1270. .advisertx{
  1271. width: 62rpx;height: 62rpx;
  1272. }
  1273. .adviserNema{
  1274. color: #333333;font-size: 30rpx;
  1275. line-height: 62rpx;padding-left: 24rpx;
  1276. }
  1277. .adviserms{
  1278. width: 118rpx;
  1279. height: 36rpx;
  1280. border-radius: 4rpx;
  1281. border: 1px solid #D53533;
  1282. line-height: 36rpx;
  1283. text-align: center;
  1284. margin-top: 12rpx;
  1285. margin-left: 20rpx;
  1286. color: #D53533;
  1287. font-size: 24rpx;
  1288. }
  1289. .adviserJt{
  1290. width: 12rpx;
  1291. height: 20rpx;
  1292. margin-top: 20rpx;
  1293. }
  1294. .modular{
  1295. width: 702rpx;
  1296. /* height: 313rpx; */
  1297. background: #FFFFFF;
  1298. border-radius: 10px;
  1299. margin-top: 20rpx;
  1300. margin-left: 24rpx;
  1301. padding-bottom: 40rpx;
  1302. }
  1303. .swiper-item{
  1304. display: flex;
  1305. flex-wrap: wrap;
  1306. }
  1307. .itemImg{
  1308. width: 46rpx;
  1309. height: 46rpx;
  1310. }
  1311. .Menusline{
  1312. font-size: 24rpx;
  1313. color: #333333;
  1314. }
  1315. .itemLine{
  1316. width: 20%;
  1317. text-align: center;
  1318. padding-top: 40rpx;
  1319. }
  1320. .advertisement{
  1321. width: 702rpx;
  1322. height: 280rpx;
  1323. margin-top: 20rpx;
  1324. margin-left: 24rpx;
  1325. border-radius: 20rpx;
  1326. }
  1327. .swiper-item2{
  1328. width: 702rpx;
  1329. height: 280px;
  1330. }
  1331. .swiper-item2Img{
  1332. width: 702rpx;
  1333. height: 280rpx;
  1334. }
  1335. .hotMoreJt{
  1336. width: 12rpx;
  1337. height: 20rpx;
  1338. margin-top: 6rpx;
  1339. }
  1340. .Hot{
  1341. width: 702rpx;
  1342. margin-top: 20rpx;
  1343. margin-left: 24rpx;
  1344. }
  1345. .hotTop{
  1346. display: flex;
  1347. justify-content: space-between;
  1348. padding: 6rpx 0;
  1349. }
  1350. .hotSx{
  1351. width: 8rpx;
  1352. height: 30rpx;
  1353. background: #FF0000;
  1354. border-radius: 5rpx;
  1355. }
  1356. .hotLeft{
  1357. display: flex;
  1358. }
  1359. .hottitle{
  1360. font-weight: 500;
  1361. color: #333333;
  1362. font-size: 30rpx;
  1363. line-height: 30rpx;
  1364. margin-left: 16rpx;
  1365. }
  1366. .hotRight{
  1367. display: flex;
  1368. }
  1369. .hotMore{
  1370. line-height: 30rpx;color: #666666;font-size: 24rpx;
  1371. margin-right: 16rpx;
  1372. }
  1373. .hotLineTopImg{
  1374. width: 702rpx;
  1375. height: 280rpx;
  1376. display: block;
  1377. }
  1378. .hotLineTop{
  1379. position: relative;
  1380. height: 280rpx;
  1381. }
  1382. .hotLine{
  1383. margin-top: 20rpx;
  1384. border-radius: 10rpx;
  1385. background: #FFFFFF;
  1386. overflow: hidden;
  1387. }
  1388. .hotlinestate1{
  1389. width: 102rpx;
  1390. height: 44rpx;
  1391. background:#FBBF00 ;
  1392. line-height: 44rpx;
  1393. font-weight: 500;
  1394. color: #333333;
  1395. font-size: 24rpx;
  1396. text-align: center;
  1397. }
  1398. .hotlinestate2{
  1399. width: 102rpx;
  1400. height: 44rpx;
  1401. background:#FF0000 ;
  1402. line-height: 44rpx;
  1403. font-weight: 500;
  1404. color: #FFFFFF;
  1405. font-size: 24rpx;
  1406. text-align: center;
  1407. }
  1408. .hotlineTimebox{
  1409. position: absolute;
  1410. left: 0;
  1411. bottom: 0;
  1412. display: flex;
  1413. align-items: flex-end;
  1414. }
  1415. .hotTime{
  1416. background: rgba(0, 0, 0, 0.5);
  1417. font-weight: 400;
  1418. color: #FFFFFF;
  1419. font-size: 24rpx;
  1420. /* line-height: 44rpx; */
  1421. padding: 5rpx 20rpx;
  1422. margin-top: 9rpx;
  1423. margin-left: -8rpx;
  1424. border-radius: 0px 10rpx 0px 0px;
  1425. }
  1426. .hotName{
  1427. padding: 24rpx 20rpx;
  1428. color: #333333;
  1429. line-height: 40rpx;
  1430. font-size: 28rpx;
  1431. }
  1432. .hotGoodsLine{
  1433. margin-top: 30rpx;
  1434. padding: 20rpx;
  1435. background: #FFFFFF;
  1436. border-radius: 16rpx;
  1437. display: flex;
  1438. }
  1439. .hotGoodsLineImg{
  1440. width: 208rpx;
  1441. height: 194rpx;
  1442. border-radius: 16rpx;
  1443. border: 1px solid #EEEEEE;
  1444. display: block;
  1445. }
  1446. .goodsName{
  1447. font-size: 28rpx;
  1448. font-family: PingFangSC-Regular, PingFang SC;
  1449. font-weight: 400;
  1450. color: #333333;
  1451. line-height: 40rpx;
  1452. text-overflow: -o-ellipsis-lastline;
  1453. overflow: hidden;
  1454. text-overflow: ellipsis;
  1455. display: -webkit-box;
  1456. -webkit-line-clamp: 2;
  1457. line-clamp: 2;
  1458. -webkit-box-orient: vertical;
  1459. }
  1460. .hotGoodsLineRIght{
  1461. padding-left: 24rpx;
  1462. }
  1463. .goodsPrice{
  1464. display: flex;
  1465. padding-top: 10rpx;
  1466. }
  1467. .goodsPrice1{
  1468. font-size: 24rpx;
  1469. font-weight: 400;
  1470. color: #FF0000;
  1471. padding-top: 8rpx;
  1472. }
  1473. .goodsPrice2{
  1474. font-size: 22rpx;
  1475. font-weight: 400;
  1476. color: #FF0000;
  1477. padding-top: 10rpx;
  1478. }
  1479. .goodsPrice3{
  1480. font-size: 32rpx;
  1481. font-weight: 500;
  1482. color: #FF0000;
  1483. }
  1484. .goodsPrice4{
  1485. font-size: 24rpx;
  1486. font-weight: 400;
  1487. color: #999999;
  1488. padding-top: 8rpx;
  1489. padding-left: 10rpx;
  1490. text-decoration:line-through;
  1491. }
  1492. .Sold{
  1493. font-weight: 400;
  1494. color: #999999;
  1495. font-size: 24rpx;
  1496. padding-top: 8rpx;
  1497. }
  1498. .jkStateImg{
  1499. width: 102rpx;
  1500. height: 53rpx;
  1501. position: relative;
  1502. }
  1503. </style>