积分超市
This commit is contained in:
@@ -90,10 +90,12 @@
|
|||||||
})
|
})
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
uni.navigateTo({url: `./Success?status=1`})
|
||||||
} else {
|
} else {
|
||||||
|
uni.navigateTo({url: `./Success?status=0`})
|
||||||
}
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
uni.navigateTo({url: `./Success?status=0`})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="success">
|
<div class="success">
|
||||||
<img src="./components/img/success.png" alt="" v-if="status">
|
<img src="./components/img/success.png" alt="" v-if="status == 1">
|
||||||
<img src="./components/img/fail.png" alt="" v-else>
|
<img src="./components/img/fail.png" alt="" v-else>
|
||||||
<p>{{status ? '上报成功!' : '上报失败!'}}</p>
|
<p>{{status == 1 ? '领取成功!' : '领取失败!请联系管理员处理'}}</p>
|
||||||
<div class="footer" @click="back">{{status ? '确定' : '我知道了'}}</div>
|
<div class="footer" @click="back">{{status == 1 ? '确定' : '我知道了'}}</div>
|
||||||
|
<AiBack @click="back" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -17,14 +17,15 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '健康上报'
|
document.title = '结算提交'
|
||||||
},
|
},
|
||||||
onLoad(option) {
|
onLoad(option) {
|
||||||
|
console.log(option)
|
||||||
this.status = option.status
|
this.status = option.status
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
back() {
|
back() {
|
||||||
uni.navigateBack()
|
uni.navigateBack({delta: 2})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user