清理多余的cdn

This commit is contained in:
aixianling
2021-11-17 17:53:55 +08:00
parent d7029c24fb
commit 455ae34b2a
9 changed files with 63 additions and 64 deletions

View File

@@ -1,69 +1,73 @@
<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>
<text>{{ text }}</text>
<u-button type="primary" :custom-style="{width:'100%',borderRadius:'4px',marginTop:'48px'}" @click="goBack">
{{ btnText }}
</u-button>
<back></back>
</div>
</template>
<script>
import Back from "../../../../components/AiBack"
export default {
name: "handlePage",
components: {Back},
data() {
return {
flag: true
}
import Back from "../../../../components/AiBack"
export default {
name: "handlePage",
components: {Back},
data() {
return {
flag: true
}
},
onLoad(val) {
if (val.flag) {
this.flag = val.flag
}
},
methods: {
goBack() {
uni.navigateBack({
delta: 2
})
}
},
computed: {
text() {
return this.flag ? '处理成功!' : '处理失败'
},
onLoad(val) {
if (val.flag) {
this.flag = val.flag
}
btnText() {
return this.flag ? '查看详情' : '我知道了'
},
methods: {
goBack() {
uni.navigateBack({
delta:2
})
}
},
computed: {
text(){
return this.flag ? '处理成功!' : '处理失败'
},
btnText(){
return this.flag ? '查看详情' : '我知道了'
},
imgSrc(){
return this.flag ? (this.imgOtherUrl + 'kztcg.png') : (this.imgOtherUrl + 'kztsb.png')
}
imgSrc() {
let {$cdn, flag} = this
return `${$cdn}other/${flag ? 'kztcg' : '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 ;
.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;
}
img {
width: 192px;
height: 192px;
}
text {
font-size: 36px;
font-weight: 800;
color: #333333;
line-height: 50px;
display: flex;
justify-content: center;
}
}
</style>