积分bug
This commit is contained in:
@@ -31,9 +31,9 @@
|
|||||||
<div class="fill">兑换人:{{ row.createUserName }}</div>
|
<div class="fill">兑换人:{{ row.createUserName }}</div>
|
||||||
<div v-text="row.createTime"/>
|
<div v-text="row.createTime"/>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="row.orderStatus==0" flex class="flexEnd">
|
<div v-if="row.orderStatus==0 || row.orderStatus==3" flex class="flexEnd">
|
||||||
<div class="btn" @click="handleCancel(row.id)">取消订单</div>
|
<div class="btn" v-if="row.orderStatus==0 || row.orderStatus==3" @click="handleCancel(row.id)">取消订单</div>
|
||||||
<div class="btn confirm" @click="handleConfirm(row.id)">确认兑换</div>
|
<div class="btn confirm" v-if="row.orderStatus==0" @click="handleConfirm(row.id)">确认兑换</div>
|
||||||
</div>
|
</div>
|
||||||
<u-gap height="1"/>
|
<u-gap height="1"/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ export default {
|
|||||||
this.current++;
|
this.current++;
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
})
|
})
|
||||||
|
uni.$on('updateIntegral', () => {
|
||||||
|
this.getInfo()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 积分排行
|
// 积分排行
|
||||||
|
|||||||
@@ -64,8 +64,11 @@ export default {
|
|||||||
params: {...this.form}
|
params: {...this.form}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
|
uni.$emit("updateIntegral")
|
||||||
this.$u.toast("提交成功!")
|
this.$u.toast("提交成功!")
|
||||||
uni.navigateBack({})
|
uni.navigateBack({})
|
||||||
|
}else {
|
||||||
|
this.$u.toast(res.msg)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user