From 4a29244fd31cc4e64a53dd67ea0806277a1c09ec Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期日, 18 六月 2023 23:31:42 +0800 Subject: [PATCH] no message --- uniapp/components/sh_page/indexCont.vue | 309 ++++----------------------------------------------- 1 files changed, 25 insertions(+), 284 deletions(-) diff --git a/uniapp/components/sh_page/indexCont.vue b/uniapp/components/sh_page/indexCont.vue index de56fa5..a57fc73 100644 --- a/uniapp/components/sh_page/indexCont.vue +++ b/uniapp/components/sh_page/indexCont.vue @@ -16,19 +16,20 @@ </view> <view class="pageBody-container colCen borderBox"> <view class="column-container"> - <!-- <view class="bannerSwiper-container colCenCen borderBox" v-if="topBannerList.length>0"> - <swiper class="swiper-box" :current="swpidx - " @change="changeColor" :autoplay="true" :interval="3000" :duration="500" :indicator-dots="true" - :indicator-active-color="'#fff'" circular> - <swiper-item v-for="(items,index) in topBannerList" :key='index'> - <view class="swiper-item defIcon" @click="goUrl(items)"> - <image :src="items.image" mode="aspectFit"></image> - </view> - - - </swiper-item> - </swiper> - </view> --> + <view class="bannerSwiper-container colCenCen borderBox" v-if="topBannerList.length>0"> + <swiper class="swiper-box" :current="swpidx + " @change="changeColor" :autoplay="true" :interval="3000" :duration="500" :indicator-dots="true" + :indicator-active-color="'#fff'" circular> + <swiper-item v-for="(items,index) in topBannerList" :key='index'> + <view class="swiper-item defIcon" @click="goUrl(items)"> + <image :src="items.image" mode="aspectFit"></image> + </view> + + + </swiper-item> + </swiper> + </view> + <!-- 閲戝垰鍖� --> <view class="navslider-box" v-if="navbarShowList.length > 0"> @@ -58,11 +59,11 @@ </swiper> </view> --> <!--蹇嵎鍏ュ彛鍥炬爣--> - <!-- <view class="c-loading-img rowCenCen"> + <view class="c-loading-img rowCenCen"> <view class="imgbox defIcon" v-for="(eitem,index) in fastenter" :key="index" @click="goUrl(eitem)"> <image :src="eitem.image"></image> </view> - </view> --> + </view> <!--宸﹁疆鎾紝鍙充袱琛�--> <view class="centerflex f_contant"> <view class="f_centerSwiper-container swiper-box swiper-item f_left"> @@ -107,266 +108,6 @@ </swiper-item> </swiper> </view> - <!--鍏ㄧ綉鐑攢--> - <!-- <view class="van-row"> - <view class="van-col van-col--12" style="padding-right: 10rpx;"> - <view class="home-row" @click="gorxb()"> - <view class="title"><text class="name">鍏ㄧ綉鐑攢姒�</text> - <view class="tag"> - <image - src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAAAXNSR0IArs4c6QAAASJJREFUOE+V08suBFEQxvHfGZcFVgQrli6ReBEh8RJsWHgSCzY8hsSLSMRlZ6xIWBkLl2mpntPSaY1MJ93pc6rqX199JydpPAWdRL9gCyc5vJs4q2L1ktQExLpgDBdYyfFrrCfem/mpIKWypvxU3SfwiMlc0MN8olfPj1ipoGA8L97yug0wl3jN8bIuGoeCTRxiBHuJ84IpPCBA8UThbADqPpRqCrpYyIm3WDVQ9NQGaCoOQH8whQ5i1pkMe24AwoOXgg0c4xMHFaDyI6RO/wIIcHh0haWccx+A6B5vGPMXoALHaHE6obz0YFhANVp59MOM0BytFVA3sZIajdr2vwF3WMym3GAt/19i+Z/9boywjSOMYicuTT7rH5eptn+KD+x/Adlpb2CRJ4eqAAAAAElFTkSuQmCC"> - </image> - <text>瀹炴椂濂借揣</text> - </view> - </view> - <view class="g-row"> - <view v-for="(items,index) in rqList.fqbGoods" :key='index'> - <view class="pic"><text class="num">{{index+1}}</text> - <view class="van-image"> - <image class="van-image__img" :src="items.mainPic"> - </image> - </view> - </view> - <view class="time">2灏忔椂鎶{items.twoHoursSales}}</view> - <view class="my">楼{{items.actualPrice}}</view> - </view> - </view> - </view> - </view> - <view class="van-col van-col--12" style="padding-left: 6rpx;"> - <view class="home-row two" @click="goddq()"> - <view class="title"><text class="name">闄愭椂绉掓潃</text> - <view class="tagg" style="opacity: 1;"> - <text class="ddq" style="white-space: nowrap;">{{rqList.ddqTime}} 鐐瑰満 </text> - <view class="van-count-down">鐤姠涓�</view> - </view> - </view> - <view class="g-row"> - <view v-for="(items,index) in rqList.ddqGoods" :key='index'> - <view class="pic"> - <view class="van-image"> - <image :src="items.mainPic" alt="" class="van-image__img"></image> - </view> - </view> - <view class="time" style="opacity: 1;"> - {{items.specialText[0] ? items.specialText[0]:'宸叉姠'+items.monthSales+'浠�' }} - </view> - <view class="my">楼{{items.actualPrice}}</view> - </view> - </view> - </view> - </view> - </view> --> - <!-- 澶у閮藉湪涔� --> - <!-- <view class="everysBuying-container colCen" v-if="zdmList.length>0"> - <view class="box-bar-content rowCen"> - <view class="title-text"> - 姣忔棩蹇呬拱 - </view> - <view class="tips-txt rowCenCen"> - <view>绮鹃�夌垎娆�</view> - </view> - </view> - <view class="goodsScroll-container rowCen"> - <scroll-view class="scrollgoods-box" scroll-x scroll-with-animation> - <view class="scrollList-content"> - <view class="goods-items" v-for="(items,index) in zdmList" :key="index" - @tap="goDetails(items)"> - <view class="items-container colCen"> - <view class="image-content defIcon"> - <image :src="items.mainPic" mode="aspectFill" :lazy-load="true"></image> - </view> - - <view class="goodsinfo-content colCen borderBox"> - <view class="goodsName-box"> - {{items.dtitle}} - </view> - <view class="coupons-container rowCen"> - <view class="couponbac-content rowCen"> - <view class="textsTip"> - 鐖嗘 - </view> - <view class="coupons-value"> - {{items.couponPrice}}鍏冨埜 - </view> - </view> - </view> - <view class="price-info-container rowEnd"> - <view class="nowPrice-content rowEnd"> - <view class="rmbicon"> - 锟� - </view> - <view class="nowprice"> - {{items.actualPrice}} - </view> - </view> - <view class="oldPrice-content rowEnd"> - <view class="oldprice"> - 锟{items.originalPrice}} - </view> - </view> - </view> - </view> - </view> - </view> - </view> - </scroll-view> - </view> - - - </view> --> - <!-- <view class="goodsFalling-container colCen" v-if="fallingList.length>0"> - <view class="box-bar-content rowCen"> - <view class="title-text"> - 濂借揣鐩撮檷 - </view> - <view class="tips-txt rowCenCen"> - <view>浣庤繃鑱氬垝绠�.鐪佽繃娣樻姠璐�</view> - </view> - </view> - <view class="goodsScroll-container rowCen"> - <scroll-view class="scrollgoods-box" scroll-x scroll-with-animation> - <view class="scrollList-content"> - <view class="goods-items" v-for="(items,index) in fallingList" :key="index" - @tap="goDetails(items,true)"> - <view class="items-container colCen"> - <view class="image-content defIcon"> - <image style="border-radius: 8rpx;" :src="items.mainPic" - mode="aspectFill" :lazy-load="true"></image> - <view class="spec-box rowCenCen" v-if="items.specialText.length>0"> - <view>{{items.specialText[0]}}</view> - </view> - </view> - - <view class="goodsinfo-content colCen borderBox"> - <view class="goodsName-box"> - {{items.dtitle}} - </view> - <view class="price-info-container rowEnd"> - <view class="nowPrice-content rowEnd"> - <view class="rmbicon"> - 锟� - </view> - <view class="nowprice"> - {{items.actualPrice}} - </view> - </view> - <view class="oldPrice-content rowEnd"> - <view class="oldprice"> - 锟{items.originalPrice}} - </view> - </view> - </view> - <view class="saleNum-container rowCen"> - <view class="content-box rowCen"> - <view class="txt-tips rowCenBet"> - 鐖嗘 - </view> - <view class="salenum rowCenCen"> - <view>{{items.monthSales}}浠�</view> - </view> - </view> - </view> - <view class="likeNum-container rowCen"> - <view class="like-num"> - {{items.twoHoursSales}} - </view> - <view class="txt"> - 浜烘兂涔� - </view> - </view> - </view> - </view> - </view> - </view> - </scroll-view> - </view> - </view> --> - - <!-- 绂忓埄鎶㈣喘 --> - <!-- <view class="welfare-container colCen"> - <view class="titlebar-container rowCenBet"> - <view class="left-content rowCen"> - <view class="titletext"> - 绂忓埄鎶㈣喘 - </view> - </view> - </view> - - <view class="goodsList-container colCen"> - <block v-for="(items,index) in phbList.slice(0,4)" :key="index"> - <view class="goods-items-container rowCen borderBox" @click="goDetails(items)"> - <view class="left-imagecontent defIcon"> - <image style="border-radius: 8rpx;" :src="items.mainPic" mode="aspectFill"> - </image> - </view> - - <view class="right-goodsinfo-container colCenBet borderBox"> - <view class="top-content-box colCen"> - <view class="goodsnameinfo-content rowSta"> - <view class="typeIcon-content defIcon"> - <image :src="items.labelImg" mode="heightFix"></image> - </view> - <view class="tradename"> - {{items.dtitle}} - </view> - </view> - - <view class="desc-box"> - {{items.desc}} - </view> - </view> - - <view class="btm-content-box colCen"> - <view class="discounts-container rowCen borderBox"> - <view class="coupon-box rowCenCen"> - <view> - {{items.couponPrice}}鍏冨埜 - </view> - </view> - - - <view class="back-box rowCenCen"> - <view> - 杩攞{items.fanli}}鍏� - </view> - </view> - </view> - - <view class="price-saleNums-container rowEndBet"> - <view class="left-price-box rowEnd"> - <view class="nowpirce rowEnd"> - <view class="rmb"> - 锟� - </view> - <view class="num"> - {{items.actualPrice}} - </view> - </view> - - <s class="original-price"> - 锟{items.originalPrice}} - </s> - </view> - - <view class="saleNum-content"> - 鐖嗗崠{{items.monthSales}}浠� - </view> - </view> - </view> - </view> - </view> - </block> - </view> - </view> --> - - <!-- 瀹炴椂鐤姠姒� --> - - - - <!-- 鎶栧ソ鐗� --> - - </view> @@ -377,11 +118,11 @@ <view class="type-items-container colCenCen" @click="switchtype(items,index)" :class="bottomCurrent==index?'type-container-active':''"> <view class="mainTitle"> - 濂界墿鎺ㄨ崘 + {{items.mainTitle}} </view> - <!-- <view class="subtitle rowCenCen"> + <view class="subtitle rowCenCen"> <view>{{items.subTitle}}</view> - </view> --> + </view> </view> </block> </view> @@ -404,7 +145,6 @@ <slideTop v-if="scrollTop>1000" @toTop='scrolltoTops'></slideTop> </view> </template> - <script> import utils from '@/utils/utils.js' import slideTop from '@/components/slideTop.vue' @@ -452,7 +192,7 @@ dyList: [], rqList: [], typedataList: [ - /* { + { mainTitle: '浜笢', subTitle: '瀹樻柟淇濋殰', type: 2 @@ -471,7 +211,7 @@ mainTitle: '鍞搧浼�', subTitle: '澶х墝绮鹃��', type: 4 - } */ + } ], bottomType: 1, bottomCurrent: 0, @@ -626,10 +366,11 @@ }).then(e => { if (e.code == 1) return that.$alert(e.msg); var res = e.data.info; + console.log(res); if(res.topBannerList&&res.topBannerList.length>0) { that.topBannerList = res.topBannerList; - that.headerColor = that.topBannerList[0].colour; + //that.headerColor = that.topBannerList[0].colour; } that.singleLineList = res.singleLineList; that.doubleLineList = res.doubleLineList; @@ -2056,11 +1797,11 @@ .type-container-active { .mainTitle { - color: #FE3738; + color: #FE6C03; } .subtitle { - background: #FE3738; + background: #FE6C03; color: #FFFFFF; } } -- Gitblit v1.9.3