index.vue 41 KB

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