Merge remote-tracking branch 'remotes/old/zmj' into old
This commit is contained in:
commit
88be55571a
@ -309,6 +309,14 @@
|
|||||||
"enablePullDownRefresh": true
|
"enablePullDownRefresh": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}, {
|
||||||
|
"path": "cloud_entrepot/indexa",
|
||||||
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
|
"navigationBarTitleText": "里海云仓",
|
||||||
|
"enablePullDownRefresh": true
|
||||||
|
}
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
"path": "teach_video/teach_video",
|
"path": "teach_video/teach_video",
|
||||||
"style": {
|
"style": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="">
|
||||||
<!-- <view class="cloud_entrepot" :style="{'min-height': winHeight + 'px'}">
|
<!-- <view class="cloud_entrepot" :style="{'min-height': winHeight + 'px'}">
|
||||||
<view class="head-wrapper"></view>
|
<view class="head-wrapper"></view>
|
||||||
<view class="town-title">{{town}}里海云仓</view>
|
<view class="town-title">{{town}}里海云仓</view>
|
||||||
<view class="body-wrapper">
|
<view class="body-wrapper">
|
||||||
@ -102,9 +102,15 @@
|
|||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="content_sift" :style="{position:pocls,top:(headtop)+'px'}" v-if="!showtit">
|
<view class="content_sift" :style="{position:pocls,top:(headtop)+'px'}" v-if="!showtit">
|
||||||
<view :class="{act:item.act}" v-for="item,index in actList" :key="index"
|
<view :class="{act:item.act,price_sift:true}" v-for="item,index in actList" :key="index"
|
||||||
@click="screenGoods(item.screen,index)">
|
@click="screenGoods(item.screen,index)">
|
||||||
{{item.tit}}
|
{{item.tit}}
|
||||||
|
<view class="" v-if="index==2" style="margin-left: 10rpx;">
|
||||||
|
<u-icon name="arrow-up" :color="item.price&&item.act?'#FF6D20':'black'"
|
||||||
|
size="10"></u-icon>
|
||||||
|
<u-icon name="arrow-down" :color="!item.price&&item.act?'#FF6D20':'black'"
|
||||||
|
size="10"></u-icon>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods_list" v-if="goodsList.length>0">
|
<view class="goods_list" v-if="goodsList.length>0">
|
||||||
@ -160,7 +166,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 100rpx;">
|
<view style="height: 100rpx;">
|
||||||
<!-- <u-loadmore :status="status" /> -->
|
<u-loadmore :status="status" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 空 -->
|
<!-- 空 -->
|
||||||
@ -291,6 +297,7 @@
|
|||||||
current: 1,
|
current: 1,
|
||||||
goodsNum: 0,
|
goodsNum: 0,
|
||||||
goodsList: [],
|
goodsList: [],
|
||||||
|
isEmpty: false,
|
||||||
winHeight: 0,
|
winHeight: 0,
|
||||||
cloudList: [],
|
cloudList: [],
|
||||||
street_code: '',
|
street_code: '',
|
||||||
@ -319,7 +326,8 @@
|
|||||||
}, {
|
}, {
|
||||||
tit: '价格',
|
tit: '价格',
|
||||||
act: "",
|
act: "",
|
||||||
screen: "price_asc"
|
screen: "price_asc",
|
||||||
|
price: true,
|
||||||
}],
|
}],
|
||||||
status: "loadmore",
|
status: "loadmore",
|
||||||
flag: false,
|
flag: false,
|
||||||
@ -339,21 +347,36 @@
|
|||||||
this.cartFn()
|
this.cartFn()
|
||||||
},
|
},
|
||||||
// 分页
|
// 分页
|
||||||
// onReachBottom() {
|
onReachBottom() {
|
||||||
// if (this.flag) return
|
if (this.flag || !this.goodsList.length) return
|
||||||
// this.status = "loading"
|
this.status = "loading"
|
||||||
// this.page_num += 1
|
this.page_num += 1
|
||||||
// this.flag = true
|
this.flag = true
|
||||||
// this.getList().then(res => {
|
cloudWarehouse({
|
||||||
// return
|
street_code: this.street_code,
|
||||||
// this.goodsList = this.goodsList.concat(res.data.data)
|
category_id: this.cloudList[this.current].category_id,
|
||||||
// this.flag = false
|
order: this.type,
|
||||||
// if (!res.data.data.length) {
|
keyword: this.keyword,
|
||||||
// this.status = "nomore"
|
page_num: this.page_num
|
||||||
// this.flag = true
|
|
||||||
// }
|
}).then(res => {
|
||||||
// })
|
// console.log(res.data.list[0].product_id, this.goodsList[0].product_id)
|
||||||
// },
|
if (res.data.list[0].product_id == this.goodsList[0].product_id) {
|
||||||
|
this.status = "nomore"
|
||||||
|
this.flag = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
// this.getList().then(res => {
|
||||||
|
// // console.log(res)
|
||||||
|
// return
|
||||||
|
// this.goodsList = this.goodsList.concat(res.data.data)
|
||||||
|
// this.flag = false
|
||||||
|
// if (!res.data.data.length) {
|
||||||
|
// this.status = "nomore"
|
||||||
|
// this.flag = true
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
@ -461,6 +484,10 @@
|
|||||||
})
|
})
|
||||||
this.actList[i].act = true
|
this.actList[i].act = true
|
||||||
this.type = type
|
this.type = type
|
||||||
|
if (i == 2) {
|
||||||
|
this.actList[i].price = !this.actList[i].price
|
||||||
|
this.type = this.actList[i].price ? 'price_asc' : ''
|
||||||
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
||||||
// console.log(this.type)
|
// console.log(this.type)
|
||||||
@ -473,12 +500,13 @@
|
|||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.showLoading = true
|
this.showLoading = true
|
||||||
|
this.status = "loading"
|
||||||
cloudWarehouse({
|
cloudWarehouse({
|
||||||
street_code: this.street_code,
|
street_code: this.street_code,
|
||||||
category_id: this.cloudList[this.current].category_id,
|
category_id: this.cloudList[this.current].category_id,
|
||||||
order: this.type,
|
order: this.type,
|
||||||
keyword: this.keyword,
|
keyword: this.keyword,
|
||||||
// page_num: this.page_num
|
page_num: this.page_num
|
||||||
|
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.goodsList = res.data.list
|
this.goodsList = res.data.list
|
||||||
@ -513,12 +541,15 @@
|
|||||||
let timer = setTimeout(() => {
|
let timer = setTimeout(() => {
|
||||||
that.trnList[i].left = 0
|
that.trnList[i].left = 0
|
||||||
that.trnList[i].bottom = 0
|
that.trnList[i].bottom = 0
|
||||||
|
that.act_cart = true
|
||||||
|
setTimeout(() => {
|
||||||
|
that.act_cart = false
|
||||||
|
}, 500)
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}).exec();
|
}).exec();
|
||||||
let res = postCartAdd({
|
let res = postCartAdd({
|
||||||
...data
|
...data
|
||||||
}).then((res, err) => {
|
}).then((res, err) => {
|
||||||
this.act_cart = true
|
|
||||||
this.cartFn()
|
this.cartFn()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "加入成功",
|
title: "加入成功",
|
||||||
@ -1097,4 +1128,9 @@
|
|||||||
/* 设置为1 */
|
/* 设置为1 */
|
||||||
// transition: 1s cubic-bezier(0.5, -0.5, 1, 1);
|
// transition: 1s cubic-bezier(0.5, -0.5, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.price_sift {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.6 KiB |
Loading…
x
Reference in New Issue
Block a user