upgrade 9.4 #112
@ -25,7 +25,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-btn" v-if="[1, 2, 3, 4, 8].indexOf(order.view_type) >= 0">
|
<view class="order-btn" v-if="[1, 2, 3, 4, 8].indexOf(order.view_type) >= 0">
|
||||||
<!-- @click="toOtherPage('RefundOrder')" -->
|
<!-- @click="toOtherPage('RefundOrder')" -->
|
||||||
<view class="cancel" v-if="order.view_type == 3 || order.view_type == 2">申请退款</view>
|
<view class="cancel" v-if="order.view_type == 3 || order.view_type == 2">申请退款</view>
|
||||||
<view class="cancel" v-if="order.view_type == 3" @click="toOtherPage('Logistics')">查看物流</view>
|
<view class="cancel" v-if="order.view_type == 3" @click="toOtherPage('Logistics')">查看物流</view>
|
||||||
<view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view>
|
<view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view>
|
||||||
|
@ -93,7 +93,8 @@ export default {
|
|||||||
},
|
},
|
||||||
setSwiperHeight() {
|
setSwiperHeight() {
|
||||||
// height: 230px, margin-bottom: 13
|
// height: 230px, margin-bottom: 13
|
||||||
this.swiperHeight = Math.ceil(this.goodsList.length / 2) * (230 + 13) + 'px';
|
const height = Math.ceil(this.goodsList.length / 2) * (230 + 13);
|
||||||
|
this.swiperHeight = height == 0 ? '230px' : height + 'px';
|
||||||
},
|
},
|
||||||
// tabs通知swiper切换
|
// tabs通知swiper切换
|
||||||
tabsChange(index) {
|
tabsChange(index) {
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<view class="item" @click="toDetailsPage">
|
<view class="item" @click="toDetailsPage">
|
||||||
<image :src="info.goods_image" class="img"></image>
|
<image :src="info.goods_image" class="img"></image>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<text class="title u-line-1">{{ info.goods_name }}</text>
|
<text class="title u-line-2">{{ info.goods_name }}</text>
|
||||||
<text class="jianjie u-line-2">{{ info.goods_advword }}</text>
|
<text class="jianjie u-line-1">{{ info.goods_advword }}</text>
|
||||||
<text class="price">¥{{ info.goods_price }}</text>
|
<text class="price">¥{{ info.goods_price }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -62,6 +62,7 @@ export default {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
.title{
|
.title{
|
||||||
|
line-height: 34rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin-bottom: 13rpx;
|
margin-bottom: 13rpx;
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
<view class="evaluation" :class="{ 'current' : current == 2 }" @click="switchCurrent(2)">好评</view>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
<scroll-view scroll-y class="goods-container" :style="{ height: scrollHeight }" @scrolltolower="loadMore">
|
||||||
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item">
|
<view v-for="goods in goodsList" :key="goods.goods_id" class="goods-item" @click="toDetailsPage(goods.goods_id)">
|
||||||
<image :src="goods.goods_image"></image>
|
<image :src="goods.goods_image"></image>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<view class="name u-line-1">{{ goods.goods_name }}</view>
|
<view class="name u-line-1">{{ goods.goods_name }}</view>
|
||||||
@ -112,6 +112,12 @@ export default {
|
|||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: title
|
title: title
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
toDetailsPage(id) {
|
||||||
|
this.$u.route('/pageB/sdetails/index', {
|
||||||
|
id: id,
|
||||||
|
type: 1 // 商品详情 商品类型 1普通 2拼团 3秒杀 4优惠券
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -49,6 +49,12 @@
|
|||||||
onReady() {
|
onReady() {
|
||||||
this.getMenuItemTop()
|
this.getMenuItemTop()
|
||||||
},
|
},
|
||||||
|
onNavigationBarButtonTap(e) {
|
||||||
|
if(e.index == 0) this.$u.route('/pageB/search/index');
|
||||||
|
},
|
||||||
|
onNavigationBarSearchInputClicked() {
|
||||||
|
this.$u.route('/pageB/search/index');
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toSearchPage() {
|
toSearchPage() {
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<view class="status" v-if="orderstate">
|
<view class="status" v-if="orderstate">
|
||||||
<view class="text">
|
<view class="text">
|
||||||
<view class="status-text">{{ s_object[orderstate].text }}</view>
|
<view class="status-text">{{ s_object[orderstate].text }}</view>
|
||||||
<view class="time" v-if="orderInfo.view_type == 1">距离结束:{{ countdown }}</view>
|
<view class="time" v-if="orderInfo.view_type == 1 || orderInfo.view_type == 9">距离结束:{{ countdown }}</view>
|
||||||
</view>
|
</view>
|
||||||
<image :src="s_object[orderstate].image"></image>
|
<image :src="s_object[orderstate].image"></image>
|
||||||
</view>
|
</view>
|
||||||
@ -175,7 +175,7 @@ export default {
|
|||||||
// console.log(spikeTime);
|
// console.log(spikeTime);
|
||||||
if(spikeTime <= 0) {
|
if(spikeTime <= 0) {
|
||||||
this.isSpike = true;
|
this.isSpike = true;
|
||||||
this.spikeTime = '00:00:00'
|
this.countdown = '00:00:00'
|
||||||
clearInterval(this.timer);
|
clearInterval(this.timer);
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
@ -204,9 +204,10 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.errCode == 0) {
|
if(res.errCode == 0) {
|
||||||
this.orderInfo = res.data;
|
this.orderInfo = res.data;
|
||||||
this.setSpikeTime(res.data.end_time);
|
|
||||||
this.viewState(this.orderInfo.view_type);
|
this.viewState(this.orderInfo.view_type);
|
||||||
this.setTitle(this.orderInfo.view_type);
|
this.setTitle(this.orderInfo.view_type);
|
||||||
|
if(res.data.view_type == 1) this.setSpikeTime(res.data.end_time);
|
||||||
|
else if(res.data.view_type == 9) this.setSpikeTime(res.data.pintuangroup_endtime);
|
||||||
}
|
}
|
||||||
uni.stopPullDownRefresh(); // 结束刷新
|
uni.stopPullDownRefresh(); // 结束刷新
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user