信用积分

This commit is contained in:
花有清香月有阴
2022-02-15 18:08:33 +08:00
parent 56634faaf9
commit 326262eb57
4 changed files with 426 additions and 52 deletions

View File

@@ -2,7 +2,7 @@
<div class="service-notice" v-if="pageShow">
<h2>办理须知</h2>
<div class="service-content">
<AiWxparse :imageProp="imageProp" className="articalContent" :content="content"/>
<u-parse :imageProp="imageProp" className="articalContent" :content="content" />
<!-- <div v-html="content" class="articalContent"></div> -->
<!-- <u-parse className="articalContent" :html="content"></u-parse> -->
</div>
@@ -12,7 +12,7 @@
</template>
<script>
import {mapState} from 'vuex'
import { mapState } from 'vuex'
export default {
data() {
@@ -22,16 +22,16 @@ export default {
mode: 'widthFix',
padding: 0,
lazyLoad: false,
domain: ''
domain: '',
},
id: '',
title: '',
pageShow: false,
processType: ''
processType: '',
}
},
computed: {
...mapState(['global', 'user', 'token'])
...mapState(['global', 'user', 'token']),
},
onLoad(query) {
this.id = query.id
@@ -41,31 +41,36 @@ export default {
methods: {
getInfo(id) {
this.$loading()
this.$instance.post(`/app/approval-process-def/info-id?id=${id}`, null, {
withoutToken: true
}).then(res => {
if (res.code === 0) {
this.title = res.data.processName
this.content = res.data.needToKnow
this.processType = res.data.processType
uni.setNavigationBarTitle({
title: res.data.processName
})
this.pageShow = true
this.$hideLoading()
}
})
this.$instance
.post(`/app/approval-process-def/info-id?id=${id}`, null, {
withoutToken: true,
})
.then((res) => {
if (res.code === 0) {
this.title = res.data.processName
this.content = res.data.needToKnow
this.processType = res.data.processType
uni.setNavigationBarTitle({
title: res.data.processName,
})
this.pageShow = true
this.$hideLoading()
}
})
},
handleGoto(url, type) {
if (type) {//判断是否需要登录
if (this.token) {//判断是否登录
if (type) {
//判断是否需要登录
if (this.token) {
//判断是否登录
if (type == 'token') {
this.$linkTo(url)
}
if (type == 'idNumber') {
if (this.user.status == 0) {
if (!this.user.phone) {//判断已经绑定手机
if (!this.user.phone) {
//判断已经绑定手机
this.$linkTo('/pages/phone/bingPhoneNumber?from=auth')
} else {
this.$linkTo('/pages/auth/authenticationInfo')
@@ -92,14 +97,14 @@ export default {
toSubmit() {
this.handleGoto('./serviceForm?id=' + this.id, 'idNumber')
}
},
},
onShareAppMessage() {
return {
title: this.title,
path: `./serviceNotice?id=${this.id}`
path: `./serviceNotice?id=${this.id}`,
}
}
},
}
</script>
@@ -120,7 +125,7 @@ export default {
text-align: center;
font-size: 34px;
color: #fff;
background: #197DF0;
background: #197df0;
}
h2 {