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