123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863 |
- <template>
- <view class="content">
- <view class="indexTop" :style="{background:'#'+themeColor}" v-if="getwxLoing">
- <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
- <view class="indexnav">{{wxOpenData.unionName}}</view>
- </view>
- <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
- <view style="height: 43px;"></view>
- <view class="topBox" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
- <view class="yuanhu" :style="{background:'#'+themeColor}" v-if="getwxLoing"></view>
- <view class="shoptopbox2" v-if="!userInfo&&getwxLoing">
- <view class="carinfoBox2">
- <view class="carinfoBoxNocar" @click="addCar">
- <!-- <img src="../../static/timg/addcar.png" alt="" class="carinfonocarIcon">
- <view class="carinfoBoxNocarRight">
- <view class="carinfoBoxNocarRightTitle">添加我的爱车</view>
- <view class="carinfoBoxNocarRightMS">按照车型推荐合适的商品</view>
- </view> -->
- <image src="../../static/timg/pic_def_ava@2x.png" mode="" class="carinfonocarIcon"></image>
- <view class="loginTitle">请先登录</view>
- <view>{{userInfo}}</view>
- </view>
-
- </view>
- </view>
- <view class="shoptopbox" v-if="userInfo&&getwxLoing">
- <view class="carinfoBox" v-if="carInfo" >
- <view class="carinfoBoxTop">
- <img :src="carInfo.brandLogo" alt="" class="carLogo" v-if="carInfo.brandLogo">
- <img src="../../static/timg/nocar.png" alt="" class="carLogo" v-else>
- <view class="carinfoBoxTopCont">
- <view class="carinfoBoxTopContTop">
- <view class="carInfoplateNumber">{{carInfo.plateNumber}}</view>
- <view class="carTnfomilage" v-if="carInfo.milage">{{carInfo.milage}}km</view>
- </view>
- <view class="carInfocarModel" v-if="carInfo.carModel">{{carInfo.carModel}}</view>
- <view class="carInfocarModel" v-else>暂无</view>
- </view>
- <view class="carinfoBoxTopRight" @click="changeCar">
- <img src="../../static/timg/icon_change@2x.png" alt="" class="carinfoBoxTopRightIcon">
- <view class="huancheBtn">换车</view>
- </view>
- </view>
- <!-- <view class="carInfoBottom">
- <view class="carInfoBottomLine">
- <view class="carInfoBottomLineTitle">下次保养里程</view>
- <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}</view>
- <view class="carInfoBottomLineTxt" v-else>暂无</view>
- </view>
- <view class="carInfoBottomLine">
- <view class="carInfoBottomLineTitle">下次保养日期</view>
- <view class="carInfoBottomLineTxt" v-if="carInfo.nextCareDate">{{carInfo.nextCareDate.slice(0,10)}}</view>
- <view class="carInfoBottomLineTxt" v-else>暂无</view>
- </view>
- <view class="carInfoBottomLine">
- <view class="carInfoBottomLineTitle">保养手册</view>
- <view class="carInfoBottomLineTxt" @click="information">点击查看</view>
- </view>
- </view> -->
- <view class="bxBox">
- <view class="bxline bxline1">
- <img src="../../static/timg/car1.png" alt="" class="bxlineIcon">
- <view class="bxlineTitle">保险</view>
- <view class="bxlineMs1" v-if="carInfo.insuranceExpireDate">{{InsuranceExpireDate}}天到期</view>
- <view class="bxlineMs2" v-else>--</view>
- </view>
- <view class="bxline bxline2">
- <img src="../../static/timg/car2.png" alt="" class="bxlineIcon" >
- <view class="bxlineTitle">下次保养</view>
- <view class="bxlineMs1" v-if="carInfo.nextCareDate||carInfo.nextCareMilage">
- <span v-if="NextCareDate||NextCareDate===0">{{NextCareDate}}天后</span>
- <span v-if="NextCareDate===0&&carInfo.nextCareMilage">或</span>
- <span v-if="carInfo.nextCareMilage&&NextCareDate">或</span>
- <span v-if="carInfo.nextCareMilage">{{carInfo.nextCareMilage}}km</span>
- </view>
- <view class="bxlineMs2" v-else>--</view>
- </view>
- <view class="bxline bxline1">
- <img src="../../static/timg/car3.png" alt="" class="bxlineIcon" >
- <view class="bxlineTitle">年审</view>
- <view class="bxlineMs1" v-if="carInfo.nextAuditDate">{{NextAuditDate}}天到期</view>
- <view class="bxlineMs2" v-else>--</view>
- </view>
- <view class="bxline bxline2" v-if="homeCardList.openMCar.showType==1">
- <img src="../../static/timg/car4.png" alt="" class="bxlineIcon" >
- <view class="bxlineTitle">保养手册</view>
- <view class="bxlineMs2" @click="information">点击查看</view>
- </view>
- </view>
- </view>
- </view>
-
- <!-- 服务顾问 -->
- <view v-if="homeCardList.openMUsers">
- <view class="adviser" v-if="homeCardList.openMUsers.showType!=2&&managerInfo" @click="goMUsers()">
- <view class="adviserLeft">
- <img v-if="managerInfo.avatar" :src="managerInfo.avatar" alt="" class="advisertx">
- <img v-else src="../../static/timg/pic_def_ava@2x.png" alt="" class="advisertx">
- <view class="adviserNema">{{managerInfo.name}}</view>
- <view class="adviserms" :style="{border:'1px solid #'+themeColor,color:'#'+themeColor}">服务顾问</view>
- </view>
- <img src="../../static/timg/icon_arrow_right.png" alt="" class="adviserJt">
- </view>
- </view>
-
- <!-- 中间功能应用模块 -->
- <view class="modular" v-if="homeCardList.application.length>0">
- <view class="swiper-item">
- <view class="itemLine" @click="goRoter(item)" v-for="(item,index) in homeCardList.application">
- <view><img :src="item.icon" alt="" class="itemImg"></view>
- <view class="Menusline">{{item.name}}</view>
- </view>
- </view>
- </view>
-
- <view class="advertisement" v-if="homeCardList.ad1.length>0">
- <swiper class="swiper2" circular :autoplay="true" :interval="interval"
- :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
- <swiper-item v-for="(item,index) in homeCardList.ad1">
- <view class="swiper-item2" @click="goRoter(item)">
- <image class="swiper-item2Img" :src="item.icon" mode=""></image>
- </view>
- </swiper-item>
- </swiper>
- </view>
- <view class="advertisement" v-if="homeCardList.ad2.length>0">
- <swiper class="swiper2" circular :autoplay="true" :interval="interval"
- :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
- <swiper-item v-for="(item,index) in homeCardList.ad2">
- <view class="swiper-item2" @click="goRoter(item)">
- <image class="swiper-item2Img" :src="item.icon" mode=""></image>
- </view>
- </swiper-item>
- </swiper>
- </view>
- <view class="advertisement" v-if="homeCardList.ad3.length>0">
- <swiper class="swiper2" circular :autoplay="true" :interval="interval"
- :duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
- <swiper-item v-for="(item,index) in homeCardList.ad3">
- <view class="swiper-item2" @click="goRoter(item)">
- <image class="swiper-item2Img" :src="item.icon" mode=""></image>
- </view>
- </swiper-item>
- </swiper>
- </view>
- <!-- 热门活动 -->
- <view v-if="homeCardList.openMActivity&&homeCardList.openMActivity.openCollectingList">
- <view class="Hot" v-if="homeCardList.openMActivity.openCollectingList.length>0">
- <view class="hotTop">
- <view class="hotLeft">
- <view class="hotSx" :style="{background:'#'+themeColor}"></view>
- <view class="hottitle">{{homeCardList.openMActivity.showTitle?homeCardList.openMActivity.showTitle:'热门活动'}}</view>
- </view>
- <view class="hotRight" @click="moreJk">
- <view class="hotMore">更多</view>
- <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
- </view>
- </view>
- <view class="hotLine" @click="goJk(item)" v-for="(item,index) in homeCardList.openMActivity.openCollectingList" v-if="index<homeCardList.openMActivity.showCount">
- <view class="hotLineTop">
- <image class="hotLineTopImg" :src="item.img" mode=""></image>
- <view class="hotlineTimebox">
- <!-- <view class="hotlinestate1" v-if="item.state==2">进行中</view>
- <view class="hotlinestate2" v-if="item.state==1">未开始</view> -->
- <image class="jkStateImg" v-if="item.state==2" src="http://dmsphoto.66km.com.cn/thFiles/85EAAA7F-01A6-41A6-B25B-72FAD3E451AC.png" mode="" ></image>
- <image class="jkStateImg" v-if="item.state==1" src="http://dmsphoto.66km.com.cn/thFiles/EB46639B-85C9-4246-A3E3-EA87944DFC36.png" mode="" ></image>
- <view class="hotTime">{{item.startTime.slice(0,10)}}-{{item.endTime.slice(0,10)}}</view>
- </view>
- </view>
- <view class="hotName">{{item.activityName}}</view>
- <view class="groupType" v-if="item.groupType">拼团</view>
- </view>
-
- </view>
- </view>
-
- <!-- 热门商品 -->
- <view v-if="homeCardList.openMGoods">
- <view class="" v-if="homeCardList.openMGoods.goodsList&&homeCardList.openMGoods.goodsList.length>0">
- <view class="Hot" v-if="homeCardList.openMGoods.showType==1">
- <view class="hotTop">
- <view class="hotLeft">
- <view class="hotSx" :style="{background:'#'+themeColor}"></view>
- <view class="hottitle">{{homeCardList.openMGoods.showTitle?homeCardList.openMGoods.showTitle:'热门商品'}}</view>
- </view>
- <view class="hotRight" @click="goShop">
- <view class="hotMore">更多</view>
- <img src="../../static/timg/icon_arrow_right.png" alt="" class="hotMoreJt">
- </view>
- </view>
- <view v-if="homeCardList.openMGoods.showLayout==1">
- <view class="hotGoodsLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
- <view>
- <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
- </view>
- <view class="hotGoodsLineRIght">
- <view class="goodsName">{{item.name}}</view>
- <view class="Sold">
- <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
- 已售 {{item.saleQty>0?item.saleQty:0}}
- </view>
- </view>
- <view class="goodsPrice">
- <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
- <view class="goodsPrice2" >¥</view>
- <view class="goodsPrice3" >{{item.salePrice}}
- <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
- </view>
- <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
- </view>
- </view>
- </view>
- </view>
-
-
- <!-- 俩列的 -->
- <div class="goodsTwo" v-if="homeCardList.openMGoods.showLayout==2">
- <div class="goodsTwoLine" v-for="(item,index) in homeCardList.openMGoods.goodsList" @click="goGoods(item)" v-if="index<homeCardList.openMGoods.showCount">
- <div class="goodsTwoImg">
- <image :src="item.url" mode="" class="hotGoodsLineImg"></image>
- </div>
- <div class="goodsTwoName">{{item.name}}</div>
- <view class="Sold">
- <view v-if="item.showLabel&&item.showLabel.indexOf('3')!=-1">
- 已售 {{item.saleQty>0?item.saleQty:0}}
- </view>
- </view>
- <view class="goodsPrice">
- <view class="goodsPrice1" >{{item.saleLabel}}</view><!-- :style="{color:'#'+themeColor}" -->
- <view class="goodsPrice2" >¥</view>
- <view class="goodsPrice3" >{{item.salePrice}}
- <span v-if="item.categoryIds=='7B97D114-C419-42B2-9C1E-0B4CA284CDA0'">万</span>
- </view>
- <view class="goodsPrice4" v-if="item.showLabel&&item.scribingPrice&&item.showLabel.indexOf('1')!=-1">¥{{item.scribingPrice}}</view>
- </view>
- </div>
- </div>
- </view>
- </view>
- </view>
-
-
-
-
- <view style="height: 60rpx;"></view>
- <!-- 手机号授权 -->
- <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide">
- <view class="authorizCont" @click.stop="">
- <view class="authorizName">{{wxOpenData.miniAppName}}</view>
- <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
- <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
- </view>
- <view style="text-align: center;padding-top: 56rpx;">
- <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
- </view>
- </view>
-
-
- <!-- <view @getphonenumber="decryptPhoneNumber" >shopId:{{shopId}}</view>
-
- -->
-
- <view class="qrBox" v-if="qrSHow">
- <view class="qrimgBox">
- <view class="qrTitle">微信绑定
- <image src="../../static/timg/chahao.png" mode="" class="qrimgchahao" @click="qrclose"></image>
- </view>
- <view class="qrms">扫描/长按下方二维码进行绑定</view>
- <view class="qrms2">绑定后可接收微信消息通知</view>
- <view style="text-align: center;padding-top: 30rpx;">
- <image :src="qrimg" mode="" class="qrimg" :show-menu-by-longpress='true'></image>
- </view>
-
- <view class="qrBtn" @click="qrclose">我知道了</view>
- </view>
- </view>
-
- </view>
- </template>
- <script>
-
- export default {
-
- data() {
- return {
- shopId: '',
- url:'',
- wxOpenData:'',
- code:'',
- carInfo:'',
- homeCardList:'',
- authorizShow:false,
- miniAppName:'',
- iStatusBarHeight:'',
- managerInfo:'',
- unionId:'',
- ext:'',
- duration:500,
- interval:3000,
- InsuranceExpireDate:'',
- NextCareDate:'',
- NextAuditDate:'',
- themeColor:'',
- getwxLoing:false,
- shareID:'',
- discount:'',
- bizUserId:'',
- coCouponsMsg:'',
- coNoNewCustMsg:'',
- qrimg:'',
- qrSHow:false,
- customerInfo:'',
- userInfo:'',
- exitNum:'',
- }
- },
- onLoad(opt) {
- this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
- var that=this;
- //this.$common.getExtStoreId()
- var ext=this.$common.getExtStoreId();
- this.ext=ext
- console.log("ext--themeColor")
- console.log(ext)
- //console.log( String(Date.now()))
- this.shopId=ext.shopId;
- this.url=ext.url;
- this.unionId=ext.unionId;
- var shareID = opt.scene //'F16E7299-6850-4015-ABCE-A9F2794B45B5'
-
- if (shareID) {
- this.shareID = shareID
- console.log('this.shareID==='+this.shareID)
- //this.$store.commit('mutationsshareID', shareID)
- }
- //this.shareID='F16E7299-6850-4015-ABCE-A9F2794B45B5'
- //this.shareID='1BF04FAEC8844ECE9C40E880C3B13721'
-
- //this.unionId="26A1039A-DB10-4D0E-BBA2-541C06274EED";
- //this.ext.appId="wxffd2502e67d37908"
- // uni.setStorage({
- // key: 'extdata',
- // data: {
- // shopId:'E37BB296-5A08-4534-859D-B351BA611AF9',
- // },
- // success: function () {
- // that.uniLogin()
-
- // }
- // });
- //this.userInfo = uni.getStorageSync("userInfo");
- this.userInfo=this.$store.state.userInfo
- if(this.userInfo){
- //this.wxOpenData = uni.getStorageSync("wxOpenData");
- this.getCarList();
- this.queryHomeCardList()
- this.queryManagerInfo()
- }else{
- this.uniLogin()
-
- }
- //版本更新
- this.UpdateManager();
-
- },
- onShow() {
-
- this.userInfo=this.$store.state.userInfo;
- this.wxOpenData=this.$store.state.wxOpenData;
- var indexaddcar = uni.getStorageSync("indexaddcar");
- var themeColor = uni.getStorageSync("themeColor");
- if(themeColor){
- this.themeColor=themeColor
- }
- this.getwxLoing=true;
-
- this.exitNum=this.$store.state.exitNum;
- if(this.exitNum==1){
- this.carInfo=''
- }else{
- if(this.userInfo){
- if(indexaddcar==1){
- uni.removeStorageSync('indexaddcar');
- this.getCarList();
- }else{
- this.carInfo=this.$store.state.carInfo;
- console.log("车辆信息")
- console.log(this.carInfo)
- if(!this.carInfo){
- this.getCarList();
- }
- this.jsTime()
- }
- }
- }
-
-
-
-
- },
- onPullDownRefresh(){
- this.getCarList();
- this.queryHomeCardList()
- this.queryManagerInfo()
- setTimeout(() => {
- uni.stopPullDownRefresh(); // 关闭下拉刷新
- }, 1000);
- },
- methods: {
- seeQr(){
- // this.authorizShow = true;
- // return false;
- if (this.userInfo) {
-
- } else {
- this.authorizShow = true;
- return false;
- }
- uni.showLoading({
- title: '加载中'
- })
- this.$request.httpBinary('wxV2/createQrCode', {
- type:'bindWx',
- customerId:this.customerInfo.id,
- unionID:this.customerInfo.unionID,
- }, 'GET').then(res => {
- uni.hideLoading();
- this.qrimg = 'data:image/png;base64,'+uni.arrayBufferToBase64(res);
- this.qrSHow=true;
- //this.img= uni.arrayBufferToBase64(res)
- //console.log('list+=', this.queryShopList);
-
- })
- },
- qrclose(){
- this.qrSHow=false;
- },
- authorizShowHide(){
- this.authorizShow=false
- },
- UpdateManager(){
- const updateManager = uni.getUpdateManager();
- updateManager.onCheckForUpdate(function (res) {
- // 请求完新版本信息的回调
- console.log(res.hasUpdate);
- });
-
- updateManager.onUpdateReady(function (res) {
- uni.showModal({
- title: '更新提示',
- content: '新版本已经准备好,是否重启应用?',
- success(res) {
- if (res.confirm) {
- // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
- updateManager.applyUpdate();
- }
- }
- });
-
- });
-
- updateManager.onUpdateFailed(function (res) {
- // 新的版本下载失败
- uni.showToast({
- title: '新的版本下载失败',
- icon:'none',
- duration: 3000
- });
- });
- },
- addCar(){
- if(!this.userInfo){
- if(this.exitNum!=1){
- this.authorizShow=true;
- }else{
- this.$common.automaticlogin().then(val => {
- this.userInfo=this.$store.state.userInfo;
- this.wxOpenData=this.$store.state.wxOpenData;
- /* uni.navigateTo({
- url:'../user/addCar/addCar?type=1'
- }) */
- this.exitNum=''
- this.$store.commit('mutationsexitNum', '')
- this.getCarList();
- uni.navigateTo({
- url:'../user/addCar/cailist'
- })
- })
- }
-
- }else{
- uni.navigateTo({
- url:'../user/addCar/addCar?type=1'
- })
- }
- },
- goShop(){
-
- uni.switchTab({
- url:'../shop/shop'
- })
- },
- moreJk(){
- uni.switchTab({
- url:'../activity/activity'
- })
- },
- information(){
- console.log('车辆信息--',this.carInfo);
- uni.navigateTo({
- url:'handbook?mileage='+this.carInfo.milage+'&liyangId='+this.carInfo.nLevelID
- })
- },
- changeCar(){
- /* uni.scanCode({
- success: function (res) {
- console.log('条码类型:' + res.scanType);
- console.log( res);
- }
- });
- return false; */
- uni.navigateTo({
- url:'../user/addCar/cailist'
- })
- },
- goMUsers(){
- if(!this.userInfo){
- this.authorizShow=true;
-
- }else{
- var managerInfo={
- name:this.managerInfo.name,
- shopInfo:{
- shopName:this.managerInfo.shopInfo.shopName,
- provinceName:this.managerInfo.shopInfo.provinceName,
- cityName:this.managerInfo.shopInfo.cityName,
- areaName:this.managerInfo.shopInfo.areaName,
- Address:this.managerInfo.shopInfo.Address,
-
- },
- avatar:this.managerInfo.avatar,
- phone:this.managerInfo.phone,
- shopID:this.managerInfo.shopInfo.id
- }
- uni.navigateTo({
- url:'../index/personalCard?adInfo='+JSON.stringify(managerInfo)
- })
- }
- },
- goGoods(item){
- if(!this.userInfo){
- if(this.exitNum!=1){
- this.authorizShow=true;
- }else{
- this.$common.automaticlogin().then(val => {
- this.userInfo=this.$store.state.userInfo;
- this.wxOpenData=this.$store.state.wxOpenData;
- this.exitNum=''
- this.$store.commit('mutationsexitNum', '')
- uni.navigateTo({
- url:'../shop/goodsDetail?id='+item.id
- })
- })
- }
- }else{
- uni.navigateTo({
- url:'../shop/goodsDetail?id='+item.id
- })
- }
- /* if(!this.userInfo){
- this.authorizShow=true;
- }else{
- uni.navigateTo({
- url:'../shop/goodsDetail?id='+item.id
- })
- } */
- },
- goJk(item){
- /* if(!this.userInfo){
- this.authorizShow=true;
- }else{
- uni.navigateTo({
- url:'../activity/jkDetail?id='+item.id
- })
- } */
- if(!this.userInfo){
- if(this.exitNum!=1){
- this.authorizShow=true;
- }else{
- this.$common.automaticlogin().then(val => {
- this.userInfo=this.$store.state.userInfo;
- this.wxOpenData=this.$store.state.wxOpenData;
- this.exitNum=''
- this.$store.commit('mutationsexitNum', '')
- uni.navigateTo({
- url:'../activity/jkDetail?id='+item.id
- })
- })
- }
- }else{
- uni.navigateTo({
- url:'../activity/jkDetail?id='+item.id
- })
- }
-
- },
- goRoter(item){
- if(item.bizType==7){ //7门店列表
- uni.navigateTo({
- url:'shopList'
- })
- }else if(item.bizType==1){ //紧急救援
- uni.navigateTo({
- url:'rescue'
- })
- /* uni.showToast({
- title: '敬请期待',
- icon:'none',
- duration: 3000
- }); */
-
- }else
- if(!this.userInfo){
- if(this.exitNum!=1){
- this.authorizShow=true;
- }else{
- this.$common.automaticlogin().then(val => {
- this.userInfo=this.$store.state.userInfo;
- this.wxOpenData=this.$store.state.wxOpenData;
- this.exitNum=''
- this.$store.commit('mutationsexitNum', '')
- this.goRoter2(item)
- })
- }
- }else{
- this.goRoter2(item)
- }
-
- },
- goRoter2(item){
- console.log(item)
-
- if(!this.userInfo){
- //this.authorizShow=true;
-
- }else{
- if(item.bizType==0){
- if(item.name=='新车'){ //
- uni.navigateTo({
- url:'newCar'
- })
- }else if(item.name=='二手车'){
- uni.navigateTo({
- url:'usedCar'
- })
- }else if(item.name=='爱车估价'){
- uni.navigateTo({
- url:'evaluation'
- })
- }else if(item.sortId==18){ //领券中心
- uni.navigateTo({
- url:'receiveCoupon'
- })
- }else if(item.sortId==19){ //救援测试
-
- uni.navigateTo({
- url:'rescue'
- })
- }
-
- else{
- uni.showToast({
- title: '敬请期待',
- icon:'none',
- duration: 3000
- });
- }
- }else if(item.bizType==2){ //钣金喷漆
- uni.navigateTo({
- url:'paint'
- })
- /* uni.navigateTo({
- url:'receiveCoupon'
- }) */
- }else if(item.bizType==3){ //保养
- uni.navigateTo({
- url:'maintain'
- })
- }else if(item.bizType==4){ //在线预约
- uni.navigateTo({
- url:'onlineBooking?naShopId='+item.naShopId
- })
- }else if(item.bizType==5){ //导航
-
- this.getShopinfo(5,item.reShopId)
- }else if(item.bizType==6){ //联系本店
- this.getShopinfo(6,item.orShopId)
-
- }else if(item.bizType==8){ //我的会员卡
- uni.navigateTo({
- url:'vipCard'
- })
- }else if(item.bizType==9){ //我的优惠券
- uni.navigateTo({
- url:'discountCard'
- })
- }else if(item.bizType==10){ //我的订单
- uni.navigateTo({
- url:'../user/myOrder/myOrder'
- })
- }else if(item.bizType==11){ //我的预约
- uni.navigateTo({
- url:'../user/myBespeak'
- })
- }else if(item.bizType==12){ //历史消费
- uni.navigateTo({
- url:'../user/historySpend'
- })
- }else if(item.bizType==12){ //历史消费
- uni.navigateTo({
- url:'../user/historySpend'
- })
- }else if(item.bizType==13){ //车检报告
- uni.navigateTo({
- url:'../user/checkReport'
- })
- }else if(item.bizType==14){ //指定商品分类
- uni.setStorage({
- key: 'shopcategoryID',
- data: item.bizId,
- success: function () {
- getApp().globalData.shopcategoryID=item.bizId;
- uni.switchTab({
- url:'../shop/shop?shopcategoryID='+ item.bizId
- })
- }
- });
-
- }else if(item.bizType==15){ //商品详情
- uni.navigateTo({
- url:'../shop/goodsDetail?id='+item.bizId
- })
- }else if(item.bizType==16){ //积分商城
- uni.navigateTo({
- url:'../integral/integral'
- })
- }else if(item.bizType==17){ //公司介绍
- uni.navigateTo({
- url:'aboutUS?unionID='+this.userInfo.unionId
- })
- }else if(item.bizType==18){ //领券中心
- uni.navigateTo({
- url:'receiveCoupon'
- })
- /* uni.navigateTo({
- url:'rescue'
- }) */
- }else if(item.bizType==19){
- //我的车库pages/user/addCar/cailist
-
- uni.navigateTo({
- url:'../user/addCar/cailist'
- })
- }
-
-
- // uni.navigateTo({
- // url:url
- // })
- }
-
- },
- decryptPhoneNumber: function(e) {
- console.log(e);
- this.code=e.detail.code
- this.wxPhoneLogin()
- this.authorizShow=false;
- },
- wxgologin(){
- var that=this;
- uni.getUserProfile({
- lang:'zh_CN',
- desc:'登录',
- success:(res)=>{
- console.log(res);
- that.wxdata=res;
- uni.setStorage({
- key: 'wxdata',
- data: res,
- success: function () {
- that.uniLogin()
-
- }
- });
- },
- fail:(res)=>{
- console.log(res)
- }
- });
- },
- uniLogin(){
- var that=this;
- uni.login({
- provider: 'weixin',
- success: function (loginRes) {
- console.log(loginRes);
- that.getWxOpenID(loginRes)
- }
- });
- },
- getWxOpenID(e){
- var that=this;
- // uni.showLoading({
- // title: '加载中'
- // })
- this.$http('miniApp2/sys/getWxOpenID', {
- code:e.code,
- unionId:this.unionId,
- shareId:this.shareID
- },'GET').then(res => {
- console.log(res.code);
- console.log("授权信息")
- console.log(res)
- //uni.hideLoading();
- if(res.code!=0){
- //uni.hideLoading();
- var msg=res.msg
- if(!msg){
- msg='授权失败'
- }
- console.log(msg);
- // uni.showModal({
- // title: '提示',
- // content: msg,
- // success: function(resTK) {
- // if (resTK.confirm) {
-
- // }
- // }
- // });
- // uni.showToast({
- // title:msg,
- // icon: 'none',
- // duration: 3000
- // });
- //return false
- }
- this.wxOpenData=res.data;
- this.themeColor=res.data.themeColor
- //this.themeColor='FFFFFF'
- this.getwxLoing=true;
- uni.setNavigationBarTitle({
- title:this.wxOpenData.miniAppName
- })
- if(this.themeColor=='6F2BE8'){
- var backgroundImage='/static/tabimg/index6F2BE8.png'
- }
- if(this.themeColor=='1677FF'){
- var backgroundImage='/static/tabimg/index1677FF.png'
- }
- if(this.themeColor=='FF4F00'){
- var backgroundImage='/static/tabimg/indexFF4F00.png'
- }
- if(this.themeColor=='D53533'){
- var backgroundImage='/static/tabimg/index1.png'
- }
- uni.setTabBarStyle({
- // color: '#FF0000',
- selectedColor: '#'+this.themeColor,
- })
- uni.setTabBarItem({
- index: 0,
- text: '首页',
- selectedIconPath: backgroundImage
- })
- if(res.code==0){
- that.queryHomeCardList()
- }
-
- //that.wxPhoneLogin()
- this.$store.commit('mutationswxOpenData', that.wxOpenData)
- uni.setStorage({
- key: 'wxOpenData',
- data: that.wxOpenData,
- success: function () {
- // that.uniLogin()
-
- }
- });
- uni.setStorage({
- key: 'themeColor',
- data: that.themeColor,
- success: function () {
- // that.uniLogin()
- console.log("themeColor=="+that.themeColor)
- }
- });
- if(this.wxOpenData.loginInfo){
- this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
- this.userInfo=that.wxOpenData.loginInfo.openUser
- console.log("this.userInfo")
- console.log(this.userInfo)
- that.queryManagerInfo()
- uni.setStorage({
- key: 'userInfo',
- data: that.wxOpenData.loginInfo.openUser,
- success: function () {
- that.getCarList()
- }
- });
- }else{
- //this.authorizShow=true;
- }
- if(res.data.loginInfo.discount){
- that.discount=res.data.loginInfo.discount;
- if(that.discount==2){
- that.bizUserId=res.data.loginInfo.bizUserId;
- }
- if(that.shareID){
- that.getCouponList()
- }
- }
- if(res.data.loginInfo.coNoNewCustMsg){ //车主合伙人二维码提示
- uni.showModal({
- title: '提示',
- content:res.data.loginInfo.coNoNewCustMsg,
- success: function(resTKk) {
-
- }
- });
- }
-
- //console.log("优惠券")
-
-
-
-
-
- })
- },
- wxPhoneLogin(){
- var that=this;
- this.$http('miniApp2/sys/wxPhoneLogin', {
- appId:this.ext.appId,
- unionId:this.unionId,
- code:this.code,
- openId:this.wxOpenData.openid,
- shareId:this.shareID
- },'POST').then(res => {
- var data = res.data;
- if(data.newCustomer){
- uni.showModal({
- title: '提示',
- content: data.newCustomerMsg,
- success: function(resTK) {
-
- }
- });
-
- var token=res.data.token
- data.loginInfo={}
- data.loginInfo.token=token
- this.$store.commit('mutationswxOpenData', data);
- return false;
- }
- if(data.loginInfo){
- this.userInfo=data.loginInfo.openUser;
- this.customerInfo=data.loginInfo.customerInfo
- this.$store.commit('mutationsuserInfo', this.userInfo);
- this.$store.commit('mutationswxOpenData', data);
-
- uni.setStorage({
- key: 'userInfo',
- data: data.loginInfo.openUser,
- success: function () {
- that.getCarList()
- that.queryHomeCardList()
- that.queryManagerInfo();
- if(data.loginInfo.coCouponsMsg){
- uni.hideLoading()
- that.coCouponsMsg =data.loginInfo.coCouponsMsg;
- that.ownerCoupon()
- }
- if(data.loginInfo.coNoNewCustMsg){
- //console.log(data.loginInfo.coNoNewCustMsg)
- uni.hideLoading()
- that.coNoNewCustMsg =data.loginInfo.coNoNewCustMsg;
- that.coNoNewCust()
- }
- if(data.loginInfo.discount){
- that.discount=data.loginInfo.discount;
-
- if(that.discount==2){
- that.bizUserId=data.loginInfo.bizUserId;
- }
- if(that.shareID&&that.discount==2){
- that.getCouponList()
- }
- }
-
-
-
- }
- });
-
-
- if(!this.customerInfo.wxMiniV2OpenID){
- this.seeQr()
- }
- }
-
- })
- },
- coNoNewCust(){
- console.log(111111)
- var that=this;
- uni.showModal({
- title: '提示',
- content: that.coNoNewCustMsg,
- success: function(resTK) {
-
- }
- });
- },
- ownerCoupon(){
- console.log(22222)
- var that=this;
- uni.showModal({
- title: '提示',
- content: that.coCouponsMsg,
- cancelText:'回到首页',
- confirmText:'查看',
- success: function(resTK) {
- if (resTK.confirm) {
- uni.navigateTo({
- url:'discountCard'
- })
- }
- }
- });
- },
- getCouponList(){
-
- if(this.discount!=2){
- var params={
- discount:this.discount
- }
- }else{
- var params={
- discount:this.discount,
- bizId:this.bizUserId
- }
- }
- var that=this;
- this.$http('opencoupon/getCouponList', params, 'GET').then(res => {
- var list = res.data;
- if(list.length>0){
- uni.showModal({
- title: '提示',
- content: '您有优惠券待领取',
- cancelText:'回到首页',
- confirmText:'查看',
- success: function(resTK) {
- if (resTK.confirm) {
- uni.navigateTo({
- url:'discountDlq?bizUserId='+that.bizUserId+'&discount='+that.discount
- })
- }
- }
- });
- }
-
-
- })
- },
- getCarList(){
- this.$http('opencarOwnerHome/queryCarInfoList', {
-
- },'GET').then(res => {
- if(res.code==401){
- // this.uniLogin()
- this.carInfo=''
- this.$store.commit('mutationscarInfo', '')
- }else{
- this.carInfo=res.data[0]
- //this.carInfo=[]
- this.$store.commit('mutationscarInfo', this.carInfo)
- /* this.carInfo.insuranceExpireDate='2022-11-11';
- this.carInfo.nextAuditDate='2022-08-13'; */
- //this.carInfo.nextCareDate='2022-08-11';
- //this.carInfo.nextCareMilage=11
- this.jsTime()
- }
-
- })
- },
- jsTime(){
- if(this.carInfo.insuranceExpireDate){
- if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.insuranceExpireDate.replace(/-/g, '/')).getTime()) || 0)) {
- console.log("现在时间大于开始时间")
- this.InsuranceExpireDate = 0
- } else {
- this.clock()
- }
- }else{
- this.InsuranceExpireDate=''
- }
- if(this.carInfo.nextCareDate){
- if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextCareDate.replace(/-/g, '/')).getTime()) || 0)) {
- this.NextCareDate = 0
- } else {
- this.clock2()
- }
- }else{
- this.NextCareDate = ''
- }
- if(this.carInfo.nextAuditDate){
- if (Number(new Date().getTime()) > (Number(new Date(this.carInfo.nextAuditDate.replace(/-/g, '/')).getTime()) || 0)) {
- this.NextAuditDate = 0
- } else {
- this.clock3()
- }
- }else{
- this.NextAuditDate=''
- }
-
- },
- clock () {
- let _this = this
- let today = new Date() // 当前时间
- let h = today.getHours()
- let m = today.getMinutes()
- let s = today.getSeconds()
- let stopTime = new Date(_this.carInfo.insuranceExpireDate.replace(/-/g, '/')) // 结束时间
- let stopH = stopTime.getHours()
- let stopM = stopTime.getMinutes()
- let stopS = stopTime.getSeconds()
- let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
- let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
- this.InsuranceExpireDate=shengyuD+1;
-
- // setTimeout(_this.clock, 500)
- },
- clock2 () {
- let _this = this
- let today = new Date() // 当前时间
- let stopTime = new Date(_this.carInfo.nextCareDate.replace(/-/g, '/')) // 结束时间
- let stopH = stopTime.getHours()
- let stopM = stopTime.getMinutes()
- let stopS = stopTime.getSeconds()
- let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
- let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
- this.NextCareDate=shengyuD+1;
-
- // setTimeout(_this.clock, 500)
- },
- clock3 () {
- let _this = this
- let today = new Date() // 当前时间
- let stopTime = new Date(_this.carInfo.nextAuditDate.replace(/-/g, '/')) // 结束时间
- let shenyu = stopTime.getTime() - today.getTime() // 倒计时毫秒数
- let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
- this.NextAuditDate=shengyuD+1;
-
- // setTimeout(_this.clock, 500)
- },
- queryManagerInfo(){
- console.log("11")
- this.$http('openHome/queryManagerInfo', {
-
- },'GET').then(res => {
- this.managerInfo=res.data
-
- })
- },
- queryHomeCardList(){
- //console.log(this.wxOpenData)
- var that=this;
- uni.showLoading({
- title: '加载中'
- })
- this.$http('openHome/queryHomeCardList', {
- unionId:this.unionId
- },'GET').then(res => {
- uni.hideLoading();
- this.homeCardList=res.data;
- uni.setStorage({
- key: 'openMCar',
- data: res.data.openMCar,
- success: function () {
- that.getCarList()
- }
- });
-
- })
- },
- getShopinfo(num,shopId){
- var that=this;
- uni.showLoading({
- title: '加载中'
- })
- if(!shopId){
- shopId=''
- }
- this.$http('openmy/getShopinfo', {
- shopId:shopId
- },'GET').then(res => {
- uni.hideLoading();
- var res=res.data
- if(num==5){
- uni.openLocation({
- latitude:Number(res.lat),
- longitude:Number(res.lng),
- name: res.shopName,
- address: res.address,
- success: function() {
- console.log('success');
- },
- fail(err) {
- console.log(err)
- }
- });
- }else{
- uni.makePhoneCall({
- phoneNumber: res.mobilePhone
- });
- }
- })
- }
-
- },
- onShareAppMessage(){
-
- }
- }
- </script>
- <style scoped>
- .qrBox{
- position: fixed;
- width: 100vw;
- height: 100vh;
- background: rgba(0,0,0,0.5);
- left: 0;
- top: 0;
- z-index: 11;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- }
- .qrimgBox{
- width: 562rpx;
- height: 704rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
- }
- .qrTitle{
- font-size: 30rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #333333;
- border-bottom: 1px solid #EEEEEE;
- text-align: center;
- line-height: 90rpx;
- position: relative;
- }
- .qrimgchahao{
- width: 38rpx;
- height: 38rpx;
- position: absolute;
- top: 26rpx;
- right: 20rpx;
- }
- .qrms{
- font-weight: 400;
- color: #999999;
- line-height: 37rpx;
- font-size: 26rpx;
- padding-top: 23rpx;
- text-align: center;
- }
- .qrms2{
- font-weight: 400;
- color: #999999;
- line-height: 37rpx;
- font-size: 26rpx;
- text-align: center;
- }
- .qrimg{
- width: 328rpx;
- height: 328rpx;
- }
- .qrBtn{
- width: 292rpx;
- height: 64rpx;
- background: #D53533;
- border-radius: 32rpx;
- color: #FFFFFF;
- line-height: 64rpx;
- text-align: center;
- margin: 0 auto;
- margin-top:40rpx;
- }
-
- .goodsTwo{
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- }
- .goodsTwoLine{
- background: #FFFFFF;width: 341rpx;
- margin-top: 20rpx;
- padding-bottom: 20rpx;
- border-radius: 16rpx;
- overflow: hidden;
- }
- .goodsTwoImg .hotGoodsLineImg{
- margin: 0 auto;
- width: 100%;
- height: 340rpx;
- border-radius: 0;
- border: none;
- }
- .goodsTwoLine .Sold{
- padding-left: 20rpx;
- }
- .goodsTwoLine .goodsPrice{
- padding-left: 20rpx;
- }
-
- .goodsTwoImg{
- padding-bottom: 30rpx;
- }
- .goodsTwoName{
- font-weight: 400;
- color: #333333;
- font-size: 26rpx;
- line-height: 38rpx;
- padding: 0 20rpx;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
-
- }
- .bxBox{
- display: flex;
- flex-wrap: wrap;
- }
- .bxline{
- display: flex;
-
- padding-top: 22rpx;
- }
- .bxline1{
- width: 40%;
- }
- .bxline2{
- width: 60%;
- }
- .bxlineTitle{
- color: #333333;
- font-size: 26rpx;
- line-height: 37rpx;
- padding-left: 10rpx;
- }
- .bxlineMs1{
- line-height: 37rpx;
- color: #D53533;
- font-size: 26rpx;
- padding-left: 12rpx;
- }
- .bxlineMs2{
- line-height: 37rpx;
- color: #999999;
- font-size: 24rpx;
- padding-left: 12rpx;
- }
- .bxlineIcon{
- width: 34rpx;
- height: 34rpx;
- margin-left: 24rpx;
- }
- .indexTop{
- /* background: #D53533; */
- width: 750rpx;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 11;
- }
- .indexnav{
- height: 44px;
- line-height: 44px;
- text-align: center;
- font-size: 36rpx;
- color: #FFFFFF;
- }
- .authorizBox{
- width: 100vw;
- height: 100vh;
- background: rgba(0, 0, 0, 0.5);
- position: fixed;
- top: 0;
- left: 0;
- }
- .authorizCont{
- margin-top: 30vh;
- width: 564rpx;
- height: 408rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
- margin-left: 93rpx;
- position: relative;
- }
- .authorizCloseImg{
- width: 62rpx;
- height: 62rpx;
- }
- .sqLogoBox{
- width: 180rpx;
- height: 180rpx;
- background: #FFFFFF;
- border-radius: 90rpx;
- text-align: center;
- position: absolute;
- top: -50rpx;
- left: 192rpx;
- }
- .authorizName{
- color: #333333;
- line-height: 42rpx;
- font-size: 30rpx;
- text-align: center;
- padding-top: 58rpx;
- }
- .authorizMs{
- color: #999999;
- line-height: 36rpx;
- font-size: 26rpx;
- width: 452rpx;
- padding-top: 24rpx;
- text-align: center;
- margin-left: 56rpx;
- }
- .authorizContbutton{
- width: 422rpx;
- height: 88rpx;
- background: #D53533;
- border-radius: 44rpx;
- line-height: 88rpx;
- text-align: center;
- font-size:30rpx;
- color: #FFFFFF;
- margin-top: 62rpx;
- margin-left:71rpx;
- }
- .content{
- min-height: 100vh;
- background: #F4F5F7;
- }
- .topBox{
- width: 750rpx;
- height: 150rpx;
- /* background: #D53533; */
- }
- .yuanhu{
- width: 750rpx;
- height: 50rpx;
- /* background: #D53533; */
- border-radius: 0 0 100% 100%;
- }
- .carinfoBox{
- width: 702rpx;
- /* height: 250rpx; */
- background: #FFFFFF;
- border-radius: 10rpx;
- margin-left: 24rpx;
- overflow: hidden;
- height: 270rpx;
-
- }
- .carinfoBox2{
- width: 702rpx;
- height: 180rpx;
- background: #FFFFFF;
- border-radius: 10rpx;
- margin-left: 24rpx;
- overflow: hidden;
-
- }
- .carinfoBox2{
-
- }
- .carinfoBox .carLogo{
- width: 60rpx;height: 60rpx;
- margin-top: 6rpx;
- }
- .carinfoBoxTop{
- display: flex;
- justify-content: space-between;
- padding-top: 29rpx;
- padding-left: 24rpx;
- padding-right: 20rpx;
- padding-bottom: 24rpx;
- border: 1px solid #EEEEEE;
- }
- .carinfoBoxTopCont{
- width: 454rpx;
- }
- .carinfoBoxTopContTop{
- display: flex;
- }
- .carInfoplateNumber{
- font-weight: 500;
- color: #3C3C3C;
- font-size: 30rpx;
- line-height: 42rpx;
- padding-right: 16rpx;
- }
- .carTnfomilage{
- color: #F19D01;
- font-size: 22rpx;
- padding: 0rpx 10rpx;
- border-radius: 4rpx;
- border: 1px solid #F19D01;
- height: 32rpx;
- line-height: 34rpx;
- margin-top: 2rpx;
- margin-left: 2rpx;
- }
- .carInfocarModel{
- width: 454rpx;
- color: #666666;
- font-size: 26rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .carinfoBoxTopRight{
- display: flex;padding-top: 25rpx;
- }
- .carinfoBoxTopRightIcon{
- width: 29rpx;
- height: 31rpx;
- }
- .huancheBtn{
- color: #666666; font-size: 26rpx;line-height: 31rpx;
- padding-left: 10rpx;
- }
- .carInfoBottom{
- display: flex;
- justify-content: space-around;
- }
- .carInfoBottomLineTitle{
- color: #999999;font-size: 24rpx;
- text-align: center;
- padding-top: 24rpx;
- }
- .carInfoBottomLineTxt{
- color: #3C3C3C;
- font-size: 26rpx;
- padding-top: 5rpx;
- text-align: center;
- }
- .carinfonocarIcon{
- width: 72rpx;
- height: 72rpx;
- }
- .carinfoBoxNocar{
- display: flex;
- padding-top: 50rpx;
- padding-left: 20rpx;
- }
- .carinfoBoxNocarRightTitle{
- font-weight: 500;
- color: #3C3C3C;
- font-size: 30rpx;
- }
- .loginTitle{
- font-weight: 600;
- color: #3C3C3C;
- font-size: 30rpx;
- padding-left: 20rpx;
- line-height: 72rpx;
- }
- .carinfoBoxNocarRightMS{
- color: #666666;
- font-size: 26rpx;
- }
- .carinfoBoxNocarRight{
- padding-left: 24rpx;
- }
- .shoptopbox{
- margin-top: -170rpx;
- }
- .shoptopbox2{
- margin-top: -170rpx;
- }
- .adviser{
- width: 662rpx;
- margin-left: 24rpx;
- background: #FFFFFF;
- border-radius: 10px;
- display: flex;
- justify-content: space-between;
- padding: 18rpx 20rpx;
- margin-top: 20rpx;
- }
- .adviserLeft{
- display: flex;
- }
- .advisertx{
- width: 62rpx;height: 62rpx;
- }
- .adviserNema{
- color: #333333;font-size: 30rpx;
- line-height: 62rpx;padding-left: 24rpx;
- }
- .adviserms{
- width: 118rpx;
- height: 36rpx;
- border-radius: 4rpx;
- border: 1px solid #D53533;
- line-height: 36rpx;
- text-align: center;
- margin-top: 12rpx;
- margin-left: 20rpx;
- color: #D53533;
- font-size: 24rpx;
- }
- .adviserJt{
- width: 12rpx;
- height: 20rpx;
- margin-top: 20rpx;
- }
- .modular{
- width: 702rpx;
- /* height: 313rpx; */
- background: #FFFFFF;
- border-radius: 10px;
- margin-top: 20rpx;
- margin-left: 24rpx;
- padding-bottom: 40rpx;
- }
- .swiper-item{
- display: flex;
- flex-wrap: wrap;
- }
- .itemImg{
- width: 46rpx;
- height: 46rpx;
- }
- .Menusline{
- font-size: 24rpx;
- color: #333333;
- }
- .itemLine{
- width: 20%;
- text-align: center;
- padding-top: 40rpx;
- }
- .advertisement{
- width: 702rpx;
- height: 280rpx;
- margin-top: 20rpx;
- margin-left: 24rpx;
- border-radius: 20rpx;
- }
- .swiper-item2{
- width: 702rpx;
- height: 280px;
- }
- .swiper-item2Img{
- width: 702rpx;
- height: 280rpx;
- }
- .hotMoreJt{
- width: 12rpx;
- height: 20rpx;
- margin-top: 6rpx;
- }
- .Hot{
- width: 702rpx;
- margin-top: 20rpx;
- margin-left: 24rpx;
- }
- .hotTop{
- display: flex;
- justify-content: space-between;
- padding: 6rpx 0;
- }
- .hotSx{
- width: 8rpx;
- height: 30rpx;
- background: #FF0000;
- border-radius: 5rpx;
- }
- .hotLeft{
- display: flex;
- }
- .hottitle{
- font-weight: 500;
- color: #333333;
- font-size: 30rpx;
- line-height: 30rpx;
- margin-left: 16rpx;
- }
- .hotRight{
- display: flex;
- }
- .hotMore{
- line-height: 30rpx;color: #666666;font-size: 24rpx;
- margin-right: 16rpx;
- }
- .hotLineTopImg{
- width: 702rpx;
- height: 280rpx;
- display: block;
- }
- .hotLineTop{
- position: relative;
- height: 280rpx;
- }
- .hotLine{
- margin-top: 20rpx;
- border-radius: 10rpx;
- background: #FFFFFF;
- overflow: hidden;
- position: relative;
- }
- .groupType{
- width: 76rpx;color: #FFFFFF;
- height: 36rpx;line-height: 36rpx;text-align: center;
- background: linear-gradient(109deg, #FD5A04 0%, #FD0900 100%);
- border-radius: 0rpx 10rpx 0rpx 10rpx;
- position: absolute;font-weight: 500;
- top: 0;right: 0;font-size: 24rpx;
- }
- .hotlinestate1{
- width: 102rpx;
- height: 44rpx;
- background:#FBBF00 ;
- line-height: 44rpx;
- font-weight: 500;
- color: #333333;
- font-size: 24rpx;
- text-align: center;
- }
- .hotlinestate2{
- width: 102rpx;
- height: 44rpx;
- background:#FF0000 ;
- line-height: 44rpx;
- font-weight: 500;
- color: #FFFFFF;
- font-size: 24rpx;
- text-align: center;
- }
- .hotlineTimebox{
- position: absolute;
- left: 0;
- bottom: 0;
-
- display: flex;
- align-items: flex-end;
- }
- .hotTime{
- background: rgba(0, 0, 0, 0.5);
- font-weight: 400;
- color: #FFFFFF;
- font-size: 24rpx;
- /* line-height: 44rpx; */
- padding: 5rpx 20rpx;
- margin-top: 9rpx;
- margin-left: -8rpx;
- border-radius: 0px 10rpx 0px 0px;
- }
- .hotName{
- padding: 24rpx 20rpx;
- color: #333333;
- line-height: 40rpx;
- font-size: 28rpx;
- }
- .hotGoodsLine{
- margin-top: 30rpx;
- padding: 20rpx;
- background: #FFFFFF;
- border-radius: 16rpx;
- display: flex;
- }
- .hotGoodsLineImg{
- width: 208rpx;
- height: 194rpx;
- border-radius: 16rpx;
- border: 1px solid #EEEEEE;
- display: block;
- }
- .goodsName{
- font-size: 28rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #333333;
- line-height: 40rpx;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .hotGoodsLineRIght{
- padding-left: 24rpx;
- }
- .goodsPrice{
- display: flex;
- padding-top: 10rpx;
- }
- .goodsPrice1{
- font-size: 24rpx;
- font-weight: 400;
- color: #FF0000;
- padding-top: 8rpx;
- }
- .goodsPrice2{
- font-size: 22rpx;
- font-weight: 400;
- color: #FF0000;
- padding-top: 10rpx;
- }
- .goodsPrice3{
- font-size: 32rpx;
- font-weight: 500;
- color: #FF0000;
- }
-
- .goodsPrice4{
- font-size: 24rpx;
- font-weight: 400;
- color: #999999;
- padding-top: 8rpx;
- padding-left: 10rpx;
- text-decoration:line-through;
- }
- .Sold{
- font-weight: 400;
- color: #999999;
- font-size: 24rpx;
- padding-top: 8rpx;
- }
- .jkStateImg{
- width: 102rpx;
- height: 53rpx;
- position: relative;
- }
- </style>
|