我的订单 + 积分申请
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
<img src="./imgs/points.png" alt="">
|
||||
</div>
|
||||
<h3>申请记录</h3>
|
||||
|
||||
<div class="card" v-for="(item,index) in list" :key="index">
|
||||
<!-- @click="toEdit(item)" -->
|
||||
<div class="card" v-for="(item,index) in list" :key="index" >
|
||||
<div class="top">
|
||||
<div class="top_title">{{ item.applyItem }}</div>
|
||||
<div><span class="top_status" :class="item.status==0? 'status0' : item.status==1? 'status1': 'status2'">{{ $dict.getLabel('integralApplyStatus',item.status) }}</span></div>
|
||||
@@ -37,6 +37,13 @@ export default {
|
||||
toAdd() {
|
||||
uni.navigateTo({url: './addPoints'})
|
||||
},
|
||||
toEdit(item) {
|
||||
if(item.status == '1') {
|
||||
// 审核通过停留此页面
|
||||
} else {
|
||||
uni.navigateTo({url: `./addPoints?id=${item.id}`})
|
||||
}
|
||||
},
|
||||
getPointsList() {
|
||||
this.$http.post(`/app/appintegralmemberapply/listByGirdMember`, null, {
|
||||
params: {
|
||||
|
||||
@@ -36,10 +36,24 @@ export default {
|
||||
flag: false,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onLoad(opt) {
|
||||
|
||||
if(opt) {
|
||||
console.log(opt);
|
||||
this.getDetail(opt.id)
|
||||
}
|
||||
document.title = '积分申请'
|
||||
},
|
||||
methods: {
|
||||
getDetail(id) {
|
||||
this.$http.post(`/app/appintegralmemberapply/queryDetailById?id=${id}`).then(res=> {
|
||||
if(res?.data) {
|
||||
// console.log(res);
|
||||
this.form = res.data
|
||||
this.form.files = [res.data.voucherImageUrl]
|
||||
}
|
||||
})
|
||||
},
|
||||
submit() {
|
||||
if(this.flag) return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user