小程序端页面调整
This commit is contained in:
@@ -36,7 +36,9 @@
|
||||
</view>
|
||||
<view class="total">
|
||||
<text class="total-price">
|
||||
<text class="decimal">现价:¥{{ res.totalAmount }} 原价:¥{{ res.originalTotalAmount }}</text>
|
||||
<text class="decimal">现价:¥{{ res.totalAmount }}
|
||||
原价:¥{{ res.originalTotalAmount }}
|
||||
</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
@@ -45,6 +47,7 @@
|
||||
</view>
|
||||
<view class="logistics btn">查看物流</view>
|
||||
<view class="exchange btn">卖了换钱</view>
|
||||
<button class="evaluate btn" @click="getOrderInfo(res.id)">订单详情</button>
|
||||
<view class="evaluate btn">评价</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -63,14 +66,19 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
// 订单列表
|
||||
orderList: [[], [], [], [], []],
|
||||
orderList: [
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[],
|
||||
[]
|
||||
],
|
||||
// 订单类型、状态与数量
|
||||
list: [
|
||||
{
|
||||
name: '待付款',
|
||||
orderStatus: 'UNPAID',
|
||||
count: 0
|
||||
},
|
||||
list: [{
|
||||
name: '待付款',
|
||||
orderStatus: 'UNPAID',
|
||||
count: 0
|
||||
},
|
||||
{
|
||||
name: '待发货',
|
||||
orderStatus: 'WAITING_DELEVER',
|
||||
@@ -159,6 +167,9 @@ export default {
|
||||
this.loadStatus.splice(idx, 1, 'nomore');
|
||||
}
|
||||
},
|
||||
async getOrderInfo(id) {
|
||||
this.$u.route(`/pagesOrder/getOrderInfo/getOrderInfo?orderId=${id}`);
|
||||
},
|
||||
// tab栏切换
|
||||
change(index) {
|
||||
this.swiperCurrent = index;
|
||||
|
Reference in New Issue
Block a user