BUG 27628
This commit is contained in:
@@ -112,7 +112,7 @@ export default {
|
||||
})
|
||||
})
|
||||
uni.navigateTo({
|
||||
url: "/pages/supermarket/balance?category=" + JSON.stringify(filter)
|
||||
url: "./balance?category=" + JSON.stringify(filter)
|
||||
})
|
||||
},
|
||||
active(key) {
|
||||
@@ -255,7 +255,6 @@ uni-page-body {
|
||||
.less {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
font-size: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
@@ -109,12 +109,12 @@ export default {
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/supermarket/components/resultPage/resultPage'
|
||||
url: './resultPage'
|
||||
})
|
||||
} else {
|
||||
uni.navigateTo({
|
||||
url:
|
||||
'/pages/supermarket/components/resultPage/resultPage?flag=' +
|
||||
'./resultPage?flag=' +
|
||||
false
|
||||
})
|
||||
}
|
||||
@@ -128,7 +128,7 @@ export default {
|
||||
},
|
||||
handleSelect() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/supermarket/search'
|
||||
url: './search'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
69
src/mods/AppSupermarket/resultPage.vue
Normal file
69
src/mods/AppSupermarket/resultPage.vue
Normal file
@@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<div class="result-page">
|
||||
<img :src="imgSrc" alt="">
|
||||
<text>{{ text }}</text>
|
||||
<u-button type="primary" :custom-style="{width:'100%',borderRadius:'4px',marginTop:'48px'}" @click="goBack">
|
||||
{{ btnText }}
|
||||
</u-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "result-page",
|
||||
data() {
|
||||
return {
|
||||
flag: true
|
||||
}
|
||||
},
|
||||
onLoad(val) {
|
||||
if (val.flag) {
|
||||
this.flag = val.flag
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goBack() {
|
||||
uni.navigateBack({
|
||||
delta: 3
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
text() {
|
||||
return this.flag ? '领取成功!' : '领取失败!请联系管理员处理'
|
||||
},
|
||||
btnText() {
|
||||
return this.flag ? '确定' : '我知道了'
|
||||
},
|
||||
imgSrc() {
|
||||
return this.flag ? (this.$cdn + 'other/' + 'kztcg.png') : (this.$cdn + 'other/' + 'kztsb.png')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.result-page {
|
||||
min-height: 100%;
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 96px;
|
||||
|
||||
img {
|
||||
width: 192px;
|
||||
height: 192px;
|
||||
}
|
||||
|
||||
text {
|
||||
font-size: 36px;
|
||||
font-weight: 800;
|
||||
color: #333333;
|
||||
line-height: 50px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user