细节修改

version/0412
fanfan 9 months ago
parent 22d3edd68b
commit 0447290af0
  1. 20
      pages/news/user/index.vue

@ -25,7 +25,7 @@
<view class="user-order" @click="goJump()">
<view class="a">关联订单</view>
<view class="b">
<view class="num" v-show="total>0">{{total}}</view>
<view class="num" v-show="form.order_num>0">{{form.order_num}}</view>
<u-icon name="arrow-right"></u-icon>
</view>
</view>
@ -120,6 +120,7 @@
last_login_time: null,
mobile: "",
nick_name: "",
order_num:'',
pay_money: "",
platform: "",
points: null,
@ -179,26 +180,11 @@
},
},
async onLoad(option) {
console.log(option)
console.log(JSON.parse(option.item))
this.form = Object.assign({},this.form,JSON.parse(option.item))
this.form.is_allow_promotion = this.form.is_allow_promotion==1?true:false
this.form.status = this.form.status==1?true:false;
this.title = option.title;
if(this.title=='会员管理'){
let {
status,
message,
data
} = await newFunApi.shopOrderList({
dataType: 'all',
page: 1,
});
if (status == 200) {
this.total = data.list.total
}
}else{
this.total=0
}
}
}

Loading…
Cancel
Save