| | |
| | | <view class="typeIcon-content defIcon"> |
| | | <image :src="items.labelImg" mode="heightFix"></image> |
| | | </view> |
| | | <view class="goodsText"> |
| | | <view style="white-space: inherit;" class="goodsText"> |
| | | {{items.dtitle}} |
| | | </view> |
| | | </view> |
| | |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <view class="centerSwiper-container colCenCen borderBox" v-if="singleLineList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="5000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in singleLineList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <view class="cardsList-container rowCenBet borderBox" v-if="doubleLineList.length>0"> |
| | | <block v-for="(items,index) in doubleLineList" :key='index'> |
| | | <view class="card-items defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFill" lazy-load="true"></image> |
| | | </view> |
| | | </block> |
| | | </view> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- éååº --> |
| | | <view class="navslider-box" v-if="navbarShowList.length > 0"> |
| | | <swiper class="swiper-type swiper-nav" |
| | |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <!--ååå¾ç--> |
| | | <view class="centerSwiper-container colCenCen borderBox" v-if="singleLineList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="5000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in singleLineList" :key='index'> |
| | | <view class="swiper-item defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFit"></image> |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | </view> |
| | | |
| | | <!--ååå¾ç--> |
| | | <view class="cardsList-container rowCenBet borderBox" v-if="doubleLineList.length>0"> |
| | | <block v-for="(items,index) in doubleLineList" :key='index'> |
| | | <view class="card-items defIcon" @click="goUrl(items)"> |
| | | <image :src="items.image" mode="aspectFill" lazy-load="true"></image> |
| | | </view> |
| | | </block> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="pagebottomBody-container colCen borderBox"> |
| | | |
| | | |
| | | <view class="bottomSwiper-container colCenCen borderBox" v-if="bottomBannerList.length>0"> |
| | | <swiper class="swiper-box" :autoplay="true" :interval="3000" :duration="300" circular> |
| | | <swiper-item v-for="(items,index) in bottomBannerList" :key='index'> |
| | |
| | | </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> |
| | | </view> |
| | | <!-- 大家é½å¨ä¹° --> |
| | | <view class="everysBuying-container colCen" v-if="zdmList.length>0"> |
| | | <!-- <view class="everysBuying-container colCen" v-if="zdmList.length>0"> |
| | | <view class="box-bar-content rowCen"> |
| | | <view class="title-text"> |
| | | æ¯æ¥å¿
ä¹° |
| | |
| | | </scroll-view> |
| | | </view> |
| | | |
| | | <!-- <view class="progress"> |
| | | åé¢å¤ç |
| | | |
| | | </view> --> |
| | | </view> |
| | | <view class="goodsFalling-container colCen" v-if="fallingList.length>0"> |
| | | <!-- <view class="goodsFalling-container colCen" v-if="fallingList.length>0"> |
| | | <view class="box-bar-content rowCen"> |
| | | <view class="title-text"> |
| | | 好货ç´é |
| | |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <!-- ç¦å©æ¢è´ --> |
| | | <view class="welfare-container colCen"> |
| | | <!-- <view class="welfare-container colCen"> |
| | | <view class="titlebar-container rowCenBet"> |
| | | <view class="left-content rowCen"> |
| | | <view class="titletext"> |
| | |
| | | </view> |
| | | </block> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <!-- 宿¶ç¯æ¢æ¦ --> |
| | | |
| | |
| | | type: 2 |
| | | }, |
| | | { |
| | | mainTitle: 'æé³', |
| | | subTitle: 'å¥½ç©æ¢è´', |
| | | type: 6 |
| | | }, |
| | | { |
| | | mainTitle: 'æ¼å¤å¤', |
| | | subTitle: 'ç¾äº¿è¡¥è´´', |
| | | type: 3 |
| | |
| | | type: 1 |
| | | }; |
| | | var open_like_recommend = uni.getStorageSync('open_like_recommend'); |
| | | if(this.typedataList.length == 4)this.typedataList.shift() |
| | | if(this.typedataList.length == 5)this.typedataList.shift() |
| | | if(open_like_recommend == 1){ |
| | | this.typedataList.unshift(tmp_2); |
| | | this.bottomType = tmp_2.type; |
| | |
| | | pageSize: 10, |
| | | type: type |
| | | }).then(e => { |
| | | console.log(e) |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | var res = e.data.list; |
| | | if (res.length < 10) { |
| | |
| | | "name" : "大è¿å®", |
| | | "appid" : "__UNI__FC8858A", |
| | | "description" : "大è¿å®app", |
| | | "versionName" : "1.0.5", |
| | | "versionCode" : 105, |
| | | "versionName" : "1.0.7", |
| | | "versionCode" : 107, |
| | | "transformPx" : false, |
| | | /* 5+Appç¹æç¸å
³ */ |
| | | "app-plus" : { |
| | |
| | | "enablePullDownRefresh": true, |
| | | "onReachBottomDistance": 300 |
| | | }, |
| | | // tméååº |
| | | { |
| | | "path": "pages/active/tmsearch", |
| | | "navigationStyle": "custom", |
| | | "app-plus": { |
| | | "titleNView": false, |
| | | "pullToRefresh": { |
| | | "support": true |
| | | } |
| | | }, |
| | | "style": { |
| | | "enablePullDownRefresh": true |
| | | }, |
| | | "enablePullDownRefresh": true, |
| | | "onReachBottomDistance": 300 |
| | | }, |
| | | // åç详æ
|
| | | { |
| | | "path": "pages/active/brandList", |
| | |
| | | "navigationBarTextStyle": "black" |
| | | } |
| | | }, |
| | | // è¶
级åç±» |
| | | // ç¯æ¢æ¦ |
| | | { |
| | | "path": "pages/classify/classify", |
| | | "path": "pages/rankinglist/fengqiang", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "app-plus": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | // è¶
级åç±» |
| | | /* { |
| | | "path": "pages/classify/classify", |
| | | "style": { |
| | | "navigationStyle": "custom", |
| | | "app-plus": { |
| | | "titleNView": false |
| | | } |
| | | } |
| | | }, */ |
| | | // æç订å |
| | | { |
| | | "path": "pages/mine/myOrder", |
| | |
| | | "text": " é¦é¡µ" |
| | | }, |
| | | { |
| | | "pagePath": "pages/classify/classify", |
| | | "pagePath": "pages/rankinglist/fengqiang", |
| | | "iconPath": "static/images/tabBar/classify.png", |
| | | "selectedIconPath": "static/images/tabBar/classifyActive.png", |
| | | "text": "è¶
级åç±»" |
| | | "text": "ç¯æ¢æ¦" |
| | | }, |
| | | { |
| | | "pagePath": "pages/find/find", |
| | |
| | | <view class="rangeList-container rowCen" :class="scrollTop>fiexdtop?'tofixed':''" :style="'top:'+(scrollTop>fiexdtop?fiexdHeight:'0')+'px;'"> |
| | | <scroll-view class="scrollview-content" scroll-x scroll-with-animation="true"> |
| | | <block v-for="(items,index) in navList" :key="index"> |
| | | <view class="rangeItem" :class="nowCurrent==items.cid?'rangeItem-active':''" @tap="changeRange(items.cid)"> |
| | | <view class="rangeItem" :class="nowCurrent==items.cat_id?'rangeItem-active':''" @tap="changeRange(items.cat_id)"> |
| | | <view class="boxcontent colCenCen"> |
| | | <view class="nameBox"> |
| | | {{items.cname}} |
| | | {{items.cat_name}} |
| | | </view> |
| | | <view class="border"></view> |
| | | </view> |
| | |
| | | methods: { |
| | | getNav() { |
| | | var that = this; |
| | | that.getData(); |
| | | /* this.$u.api.getTopCalss({ctype:3}).then(e => { |
| | | this.$u.api.getHdkCategoryList({type:4}).then(e => { |
| | | console.log(e); |
| | | if(e.code != 0)return that.$alert(e.msg) |
| | | that.navList = e.data.list; |
| | | that.nowCurrent = that.navList[0].cid |
| | | that.nowCurrent = that.navList[0].cat_id |
| | | that.getData() |
| | | }).catch(function (err) { |
| | | }) */ |
| | | }) |
| | | }, |
| | | getData() { |
| | | var that = this; |
| | | console.log(this.nowCurrent); |
| | | this.$u.api.goodsSearch({ |
| | | type: 'dy', |
| | | pageId: this.pageCurrent, |
| | | pageSize: 10, |
| | | sort: 0, |
| | | catid:this.nowCurrent, |
| | | //owner: this.selfsupport ? 'g' : '', |
| | | //selectCoupon: this.selectCoupon == true ? 1 : 0 |
| | | }).then(e => { |
| | |
| | | var res = e.data; |
| | | uni.stopPullDownRefresh(); |
| | | var res = e.data.list; |
| | | console.log(res); |
| | | |
| | | if (res.length < 10) { |
| | | that.pageCurrent ++ |
| | | that.canloadmore = false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="pddsearch-wrapper wrapperLayer borderBox"> |
| | | <view class="topbarbox"></view> |
| | | <view class="fixed-container colCen"> |
| | | <view class="topbarbox"></view> |
| | | <view class="headerBar-container rowCenBet"> |
| | | <view class="iconfont backicon" @tap="goback()"> |
| | |  |
| | | </view> |
| | | <view class="titleBox rowCen" :style="'color:'+ (scrollTop<fiexdtop?'#DD2425;':'#ffffff;')"> |
| | | å¤©ç« |
| | | </view> |
| | | <view class="rightEmpty"> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="pageContent-container colCen"> |
| | | <view class="search-region colCen"> |
| | | <view class="pageTitle-bar rowCenCen"> |
| | | <view class="leftIcon defIcon"> |
| | | <image src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/tmlogo.png" mode="aspectFill"></image> |
| | | </view> |
| | | <view class="titleInfo colSta"> |
| | | <view class="topfont"> |
| | | 天ç«ä¼æ å¸å¤§æ¾é |
| | | </view> |
| | | <view class="bottomfont"> |
| | | å
é¢å¸ åè´ç© çåå
|
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="searchContent rowCenBet" @tap="gosearch()"> |
| | | <view class="leftcontent rowCen"> |
| | | <view class="search-icon iconfont"> |
| | |  |
| | | </view> |
| | | <view class="tipsfont"> |
| | | è¾å
¥åååç§°æç²è´´å®è´æ é¢æç´¢ |
| | | </view> |
| | | </view> |
| | | <view class="right-btn rowCenCen"> |
| | | <view>æç´¢</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="emptybar" :style="'width:100%;height:'+(scrollTop>fiexdtop?'90':'0')+'rpx;'"> |
| | | </view> |
| | | |
| | | <view class="rangeList-container rowCen" :class="scrollTop>fiexdtop?'tofixed':''" :style="'top:'+(scrollTop>fiexdtop?fiexdHeight:'0')+'px;'"> |
| | | <scroll-view class="scrollview-content" scroll-x scroll-with-animation="true"> |
| | | <block v-for="(items,index) in navList" :key="index"> |
| | | <view class="rangeItem" :class="nowCurrent==items.cid?'rangeItem-active':''" @tap="changeRange(items.cid)"> |
| | | <view class="boxcontent colCenCen"> |
| | | <view class="nameBox"> |
| | | {{items.cname}} |
| | | </view> |
| | | <view class="border"></view> |
| | | </view> |
| | | </view> |
| | | </block> |
| | | </scroll-view> |
| | | </view> |
| | | |
| | | <view class="goodsList-container colCen borderBox"> |
| | | <view class="goods-content rowStaBet"> |
| | | <view class="goods-items borderBox colCen" v-for="(items,index) in goodsList" :key='index' @click="goDetail(items)"> |
| | | <colGoods :items="items"></colGoods> |
| | | </view> |
| | | <aLoadMore :status="loadstatus" mode="loading3" :showTitle='true' color="#999999"></aLoadMore> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import colGoods from '../../components/colGoods.vue' |
| | | export default { |
| | | components:{ |
| | | colGoods |
| | | }, |
| | | data() { |
| | | return { |
| | | pageTop: 0, |
| | | nowCurrent: 0, |
| | | scrollTop: 0, |
| | | navList: [], |
| | | |
| | | fiexdHeight: '', |
| | | fiexdtop: '', |
| | | goodsList: [], |
| | | pageCurrent: 1, |
| | | canloadmore: false, |
| | | loadstatus: 'loading' |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getNav() |
| | | }, |
| | | onPageScroll(e) { |
| | | this.scrollTop = e.scrollTop |
| | | }, |
| | | onReachBottom() { |
| | | if (this.canloadmore) { |
| | | this.getData() |
| | | } |
| | | }, |
| | | mounted() { |
| | | uni.createSelectorQuery().in(this).select('.fixed-container').boundingClientRect(data => { |
| | | console.log(data.top); |
| | | this.fiexdHeight = data.height |
| | | }).exec(); |
| | | uni.createSelectorQuery().in(this).select('.rangeList-container').boundingClientRect(data => { |
| | | console.log(data.top); |
| | | this.fiexdtop = data.top - this.fiexdHeight |
| | | }).exec(); |
| | | }, |
| | | methods: { |
| | | getNav() { |
| | | var that = this; |
| | | this.$u.api.getTopCalss({ctype:1,parentId:0}).then(e => { |
| | | console.log(e); |
| | | if(e.code != 0)return that.$alert(e.msg) |
| | | e.data.list.unshift({cid:"0",cname:"å
¨é¨",ctype:"1"}); |
| | | that.navList = e.data.list; |
| | | that.nowCurrent = that.navList[0].cid |
| | | that.getData() |
| | | }).catch(function (err) { |
| | | }) |
| | | }, |
| | | getData() { |
| | | var that = this; |
| | | var cateid=that.nowCurrent=="0"?"":that.nowCurrent; |
| | | this.$u.api.getTbGoodsList({ |
| | | cateId: cateid, |
| | | page: this.pageCurrent, |
| | | pageSize: 10 |
| | | }).then(e => { |
| | | console.log(e); |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | var res = e.data; |
| | | uni.stopPullDownRefresh(); |
| | | var res = e.data.list; |
| | | |
| | | if (res.length < 10) { |
| | | that.pageCurrent ++ |
| | | that.canloadmore = false |
| | | that.loadstatus = 'nomarl' |
| | | } else { |
| | | that.canloadmore = true |
| | | that.loadstatus = 'loading' |
| | | that.pageCurrent ++ |
| | | } |
| | | that.goodsList = that.goodsList.concat(res) |
| | | }).catch(function(err) {}) |
| | | }, |
| | | changeRange(id) { |
| | | this.pageCurrent = 1 |
| | | this.canloadmore = false |
| | | this.nowCurrent = id |
| | | this.loadstatus = 'loading' |
| | | this.goodsList = [] |
| | | this.getData() |
| | | }, |
| | | |
| | | goDetail(info) { |
| | | uni.navigateTo({ |
| | | url: '../goods/goodsDetail?info=' + encodeURIComponent(JSON.stringify(info)) |
| | | }) |
| | | }, |
| | | |
| | | goback() { |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }) |
| | | }, |
| | | |
| | | gosearch() { |
| | | uni.navigateTo({ |
| | | url: '../search/search?type=0' |
| | | }) |
| | | } |
| | | }, |
| | | onPullDownRefresh() { |
| | | this.pageCurrent = 1; |
| | | this.canloadmore = false; |
| | | this.goodsList = []; |
| | | this.loadstatus = 'loading'; |
| | | this.getData() |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | .pddsearch-wrapper { |
| | | width: 100%; |
| | | |
| | | .fixed-container { |
| | | width: 100%; |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | z-index: 110; |
| | | background: linear-gradient(266deg, #E7251C, #E7251C); |
| | | |
| | | .headerBar-container { |
| | | width: 100%; |
| | | height: 90rpx; |
| | | padding: 0 32rpx; |
| | | |
| | | .backicon { |
| | | font-size: 30rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .titleBox { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | z-index: 10; |
| | | transition: all 0.5s; |
| | | } |
| | | |
| | | .rightEmpty { |
| | | width: 32rpx; |
| | | height: 32rpx; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .pageContent-container { |
| | | width: 100%; |
| | | |
| | | .search-region { |
| | | width: 100%; |
| | | height: 340rpx; |
| | | padding: 0 75rpx; |
| | | background: linear-gradient(266deg, #E7251C, #E7251C); |
| | | |
| | | .pageTitle-bar { |
| | | width: 100%; |
| | | margin-top: 110rpx; |
| | | |
| | | .leftIcon { |
| | | width: 75rpx; |
| | | height: 75rpx; |
| | | } |
| | | |
| | | .titleInfo { |
| | | margin-left: 15rpx; |
| | | |
| | | .topfont { |
| | | font-size: 36rpx; |
| | | font-weight: 800; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | .bottomfont { |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .searchContent { |
| | | width: 100%; |
| | | height: 80rpx; |
| | | border-radius: 40rpx; |
| | | background-color: #FFFFFF; |
| | | margin-top: 40rpx; |
| | | padding: 0 10rpx; |
| | | |
| | | .leftcontent { |
| | | margin-left: 25rpx; |
| | | |
| | | .search-icon { |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #999999; |
| | | margin-right: 25rpx; |
| | | } |
| | | |
| | | .tipsfont { |
| | | font-size: 26rpx; |
| | | font-weight: 500; |
| | | color: #999999; |
| | | } |
| | | } |
| | | |
| | | .right-btn { |
| | | width: 116rpx; |
| | | height: 60rpx; |
| | | background: linear-gradient(266deg, #FF012E, #FF1017); |
| | | border-radius: 30rpx; |
| | | font-size: 24rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .rangeList-container { |
| | | width: 100%; |
| | | height: 80rpx; |
| | | padding-left: 32rpx; |
| | | z-index: 101; |
| | | |
| | | .scrollview-content { |
| | | width: 100%; |
| | | height: 100%; |
| | | white-space: nowrap; |
| | | |
| | | .rangeItem { |
| | | display: inline-flex; |
| | | margin-right: 45rpx; |
| | | height: 100%; |
| | | |
| | | .boxcontent { |
| | | height: 100%; |
| | | |
| | | .nameBox { |
| | | font-size: 30rpx; |
| | | font-weight: 500; |
| | | color: #333333; |
| | | } |
| | | |
| | | .border { |
| | | width: 60%; |
| | | height: 2rpx; |
| | | background: transparent; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .rangeItem-active { |
| | | .boxcontent { |
| | | .nameBox { |
| | | font-size: 32rpx; |
| | | } |
| | | |
| | | .border { |
| | | background: #FF012E; |
| | | margin-top: 8rpx; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .tofixed { |
| | | position: fixed; |
| | | z-index: 100; |
| | | background-color: #FFFFFF; |
| | | } |
| | | |
| | | .goodsList-container { |
| | | z-index: 1; |
| | | width: 100%; |
| | | padding: 0 32rpx; |
| | | margin-top: 10rpx; |
| | | |
| | | .goods-content { |
| | | width: 100%; |
| | | flex-wrap: wrap; |
| | | |
| | | .goods-items { |
| | | width: 336rpx; |
| | | height: 526rpx; |
| | | margin-bottom: 20rpx; |
| | | |
| | | .items-container { |
| | | width: 336rpx; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | border-radius: 8rpx; |
| | | background-color: #FFFFFF; |
| | | |
| | | .image-container { |
| | | width: 100%; |
| | | height: 336rpx; |
| | | } |
| | | |
| | | .goodsInfo { |
| | | width: 100%; |
| | | height: 190rpx; |
| | | margin-top: 10rpx; |
| | | padding: 0 10rpx 10rpx 10rpx; |
| | | |
| | | .topgoodsname-box { |
| | | width: 100%; |
| | | |
| | | .goodsName-box { |
| | | width: 100%; |
| | | |
| | | .typeIcon-content { |
| | | width: 60rpx; |
| | | height: 24rpx; |
| | | margin-right: 5rpx; |
| | | } |
| | | |
| | | .goodsText { |
| | | width: 250rpx; |
| | | font-size: 28rpx; |
| | | line-height: 34rpx; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | white-space: nowrap; |
| | | overflow-x: hidden; |
| | | text-overflow: ellipsis; |
| | | } |
| | | } |
| | | |
| | | .couponInfo-bar { |
| | | width: 100%; |
| | | margin-top: 20rpx; |
| | | |
| | | .couponbox { |
| | | width: 100rpx; |
| | | height: 30rpx; |
| | | line-height: 30rpx; |
| | | text-align: center; |
| | | background: url(../../static/images/goods/couponbac.png)no-repeat; |
| | | background-size: 100% 100%; |
| | | font-size: 20rpx; |
| | | font-weight: 500; |
| | | color: #FF4242; |
| | | margin-right: 10rpx; |
| | | } |
| | | |
| | | .backPrice { |
| | | width: 100rpx; |
| | | height: 30rpx; |
| | | background: linear-gradient(-90deg, #7619EC, #A429F3); |
| | | border-radius: 5rpx; |
| | | font-size: 20rpx; |
| | | font-weight: 500; |
| | | text-align: center; |
| | | line-height: 30rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .goodsPrice-goodSale { |
| | | width: 100%; |
| | | |
| | | .goods-price { |
| | | width: 100%; |
| | | font-size: 20rpx; |
| | | font-weight: 500; |
| | | color: #999999; |
| | | line-height: 34rpx; |
| | | |
| | | .font { |
| | | font-weight: 500; |
| | | color: #999999; |
| | | line-height: 32rpx; |
| | | margin-right: 10rpx; |
| | | } |
| | | |
| | | .rmb { |
| | | font-weight: bold; |
| | | color: #FF4242; |
| | | line-height: 32rpx; |
| | | } |
| | | |
| | | .price { |
| | | color: #FF4242; |
| | | font-weight: 500; |
| | | font-size: 28rpx; |
| | | } |
| | | } |
| | | |
| | | .saleNum-box { |
| | | width: 100%; |
| | | font-size: 20rpx; |
| | | font-weight: 400; |
| | | line-height: 34rpx; |
| | | color: #999999; |
| | | } |
| | | |
| | | .shopinfo-box { |
| | | width: 100%; |
| | | font-size: 20rpx; |
| | | font-weight: 400; |
| | | line-height: 34rpx; |
| | | color: #999999; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | |
| | | async makeCode() { |
| | | var globalData = util.getCacheSync('appInfo') |
| | | console.log(globalData) |
| | | //var txt = globalData.appAndroidDownUrl |
| | | var txt = globalData.invite_url + "?code="+this.user.invitation_code |
| | | console.log(txt) |
| | |
| | | </swiper> |
| | | </view> |
| | | |
| | | <view style="justify-content:end;padding-left:10px" class="matter-tranform-container rowCenCen" v-if="wuLiaoList.length>0"> |
| | | <!-- <view class="pushing-matter rowCen" @tap="goUrl(wuLiaoList[0])"> |
| | | <!-- <view style="justify-content:end;padding-left:10px" class="matter-tranform-container rowCenCen" v-if="wuLiaoList.length>0"> |
| | | <view class="pushing-matter rowCen" @tap="goUrl(wuLiaoList[0])"> |
| | | <view class="leftIteminfo"> |
| | | <view class="itemName"> |
| | | {{wuLiaoList[0].mname}} |
| | |
| | | <image :src="wuLiaoList[0].image" mode="aspectFill"></image> |
| | | </view> |
| | | </view> |
| | | <view class="centerBorder"></view> --> |
| | | <view class="centerBorder"></view> |
| | | <view class="pushing-matter rowCen" @tap="goUrl(wuLiaoList[1])"> |
| | | <view class="leftIteminfo"> |
| | | <view class="itemName"> |
| | |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view>--> |
| | | |
| | | <view class="commonFunctions-container" v-if="cygnList.length>0"> |
| | | <view class="card-title"> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <web-view :webview-styles="webviewStyles" :src="webviewUrl" @message='received'></web-view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | var wv |
| | | export default { |
| | | data() { |
| | | return { |
| | | webviewUrl: '', |
| | | webviewStyles: { |
| | | progress: { |
| | | color: '#EE1B14' |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | //console.log(options); |
| | | const value = uni.getStorageSync('userInfo'); |
| | | console.log(value.token); |
| | | this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token); |
| | | }, |
| | | onReady() { |
| | | this.clearMuiBack(); |
| | | }, |
| | | methods: { |
| | | received(e) { |
| | | console.log(e.detail.data[0].type) |
| | | if(e.detail.data[0].type=='getToken'){ |
| | | const token = uni.getStorageSync('userInfo').token; |
| | | var currentWebview = this.$scope.$getAppWebview() |
| | | var wv = currentWebview.children()[0] |
| | | wv.evalJS('localStorage.setItem("ZZTOKEN",' + JSON.stringify(token) + ')'); |
| | | } |
| | | }, |
| | | |
| | | // å
³émuiè¿å |
| | | clearMuiBack() { |
| | | // #ifdef APP-PLUS |
| | | var currentWebview = this.$scope.$getAppWebview().children()[0]; |
| | | //ç嬿³¨å
¥çjs |
| | | currentWebview.addEventListener("loaded", function() { |
| | | currentWebview.evalJS("mui.init({keyEventBind: {backbutton: false }});"); |
| | | }); |
| | | // #endif |
| | | }, |
| | | |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | | // #ifdef APP-PLUS |
| | | const currentWebview = this.$scope.$getAppWebview(); //æ¤å¯¹è±¡ç¸å½äºhtml5pluséçplus.webview.currentWebview()ãå¨uni-appévue页é¢ç´æ¥ä½¿ç¨plus.webview.currentWebview()æ æï¼év3ç¼è¯æ¨¡å¼ä½¿ç¨this.$mp.page.$getAppWebview() |
| | | var wv = currentWebview.children()[0] |
| | | wv.reload(); |
| | | // #endif |
| | | console.log(JSON.stringify(e)) |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |
| | |
| | | let getDyGoodsDetailUrl = 'api/taoke/get_dy_detail'; |
| | | let getPrivilegeShareLinkUrl = "api/taoke/get_privilege_share_link"; |
| | | let eleStoreListUrl = "api/taoke/ele_store_list"; |
| | | let getHdkCategoryListUrl="/api/taoke/get_hdk_category_list"; |
| | | |
| | | // æ¤å¤ç¬¬äºä¸ªåæ°vmï¼å°±æ¯æä»¬å¨é¡µé¢ä½¿ç¨çthisï¼ä½ å¯ä»¥éè¿vmè·åvuexçæä½ï¼æ´å¤å
容详è§uViewå¯¹æ¦æªå¨çä»ç»é¨åï¼ |
| | | // https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F |
| | |
| | | let getDyGoodsDetail = (params = {}) => vm.$u.post(getDyGoodsDetailUrl, params); //æé³è¯¦æ
|
| | | let getPrivilegeShareLink = (params = {}) => vm.$u.post(getPrivilegeShareLinkUrl, params); |
| | | let eleStoreList = (params = {}) => vm.$u.post(eleStoreListUrl, params); |
| | | let getHdkCategoryList= (params = {}) => vm.$u.post(getHdkCategoryListUrl, params); |
| | | // å°å个å®ä¹çæ¥å£åç§°ï¼ç»ä¸æ¾è¿å¯¹è±¡æè½½å°vm.$u.api(å 为vmå°±æ¯thisï¼ä¹å³this.$u.api)ä¸ |
| | | vm.$u.api = {eleStoreList,getPrivilegeShareLink,getDyGoodsDetail,bindMobileLogin,getTopMessId,changePwd,comminInt,wxapplogin,getTopCalss,getBanner,getHomeMenu,getSuperClass,getMQD,getGoodThing,login,sendSms,mobileLogin,setPwd,getUserInfo,getTalentInfo,getMessageList,getGoodsDetail,getPrivilegeLink,getSimilerGoods,getJdsDetail,getPddDetail,getM,getWphGoodsDetail,addCollect,delCollect,hotKey,suggestion,goodsSearch,activityLink,unionAct,singlePageLink,checkPddAuth,getPddAuth,getPineGoods,jdGoodsList,optimusMaterial,pddGoodsList,brandList,brandInfo,wphGoodsList,meituanAct,eleAct,eleShangjin,userHomemenu,getAppVersion,userBrowse,delBrowse,activitySingle,userCollect,bdHomemenu,getCity,coordinate,cityCate,searchDeals,getCityId,seckillShowinfo,seckillList,identifyGoods,changeMobile,bindInvitation,getInviteInfo,getEstimateAmount,fansList,getFansCount,getHelpType,getHelpList,getHelpDetail,getWpanurl,getChainTurning,superDiscountGoods,getHistory,getTbGoodsList,cateRankList,getUpgradeInfo,getEquityCard,levelApply,orderList,userProfit,bindZfb,withdraw,getBalanceLog,getPublisher,getAlbum,likeAlbum,albumDetail,anchorFollow,myFollowAlbum,feedback,userCancel,profile,bindWechat,unboundWechat}; |
| | | vm.$u.api = {getHdkCategoryList,eleStoreList,getPrivilegeShareLink,getDyGoodsDetail,bindMobileLogin,getTopMessId,changePwd,comminInt,wxapplogin,getTopCalss,getBanner,getHomeMenu,getSuperClass,getMQD,getGoodThing,login,sendSms,mobileLogin,setPwd,getUserInfo,getTalentInfo,getMessageList,getGoodsDetail,getPrivilegeLink,getSimilerGoods,getJdsDetail,getPddDetail,getM,getWphGoodsDetail,addCollect,delCollect,hotKey,suggestion,goodsSearch,activityLink,unionAct,singlePageLink,checkPddAuth,getPddAuth,getPineGoods,jdGoodsList,optimusMaterial,pddGoodsList,brandList,brandInfo,wphGoodsList,meituanAct,eleAct,eleShangjin,userHomemenu,getAppVersion,userBrowse,delBrowse,activitySingle,userCollect,bdHomemenu,getCity,coordinate,cityCate,searchDeals,getCityId,seckillShowinfo,seckillList,identifyGoods,changeMobile,bindInvitation,getInviteInfo,getEstimateAmount,fansList,getFansCount,getHelpType,getHelpList,getHelpDetail,getWpanurl,getChainTurning,superDiscountGoods,getHistory,getTbGoodsList,cateRankList,getUpgradeInfo,getEquityCard,levelApply,orderList,userProfit,bindZfb,withdraw,getBalanceLog,getPublisher,getAlbum,likeAlbum,albumDetail,anchorFollow,myFollowAlbum,feedback,userCancel,profile,bindWechat,unboundWechat}; |
| | | } |
| | | |
| | | export default { |