Browse Source

上传

master
前端-胡立永 5 months ago
parent
commit
0b5f893f2a
2 changed files with 16 additions and 3 deletions
  1. +3
    -1
      pages/index/center.vue
  2. +13
    -2
      pages/index/order.vue

+ 3
- 1
pages/index/center.vue View File

@ -34,7 +34,9 @@
我的用户
</view>
<view class="list">
<view class="item" v-for="(item, index) in userList" :key="index">
<view class="item"
@click="$utils.navigateTo('/index/order?uid=' + item.id)"
v-for="(item, index) in userList" :key="index">
<view class="name">
客户{{ item.name }}
</view>


+ 13
- 2
pages/index/order.vue View File

@ -2,7 +2,9 @@
<view class="page">
<navbar
title="订单中心"
:title="uid ? '用户订单信息' : '订单中心'"
:leftClick="uid"
@leftClick="$utils.navigateBack"
/>
<uv-tabs :list="tabs"
@ -98,7 +100,7 @@
</view>
</view>
<tabber select="2"/>
<tabber select="2" v-if="!uid"/>
</view>
</template>
@ -150,8 +152,12 @@
total : 0,
},
type : -1,
uid : 0,
}
},
onLoad(args) {
this.uid = args.uid
},
onShow() {
this.orderPage()
},
@ -170,6 +176,11 @@
if(this.type != -1){
queryParams.type = this.type
}
//
if(this.uid != 0){
queryParams.uid = this.uid
}
this.$api('orderPage', queryParams, res => {
if(res.code == 200){
this.orderList = res.result


Loading…
Cancel
Save