测试微信分享

This commit is contained in:
mengxiaolong
2020-08-04 14:50:06 +08:00
parent fecb34f337
commit 7e70d62258
2 changed files with 7 additions and 6 deletions

View File

@@ -81,7 +81,7 @@
<span>投保人/监护人亲笔签名</span> <span>投保人/监护人亲笔签名</span>
<van-button type="danger" size="small" @click="autograph(0)">{{ policyholderSigned ? '已签名' : '签名' }}</van-button> <van-button type="danger" size="small" @click="autograph(0)">{{ policyholderSigned ? '已签名' : '签名' }}</van-button>
</div> </div>
<div class="list" v-if="problemDetail.receiveType === '1'"> <div class="list" v-if="$route.query.receiveType === '1'">
<span>被投保人亲笔签名</span> <span>被投保人亲笔签名</span>
<van-button type="danger" size="small" @click="autograph(1)">{{ insurantSigned ? '已签名' : '签名' }}</van-button> <van-button type="danger" size="small" @click="autograph(1)">{{ insurantSigned ? '已签名' : '签名' }}</van-button>
</div> </div>
@@ -282,7 +282,7 @@ export default {
extra: { extra: {
title: title, title: title,
content: this.shareContent, content: this.shareContent,
url: `${location.origin}/#/questions/detail/${this.problemDetail.id}/${this.problemDetail.receiveType}?&token=${localStorage.token}`, url: `${location.origin}/#/questions/detail/${this.problemDetail.id}/${this.problemDetail.issueType}?&token=${localStorage.token}&receiveType=${this.problemDetail.receiveType}`,
img: this.$assetsUrl + 'images/logo.png' img: this.$assetsUrl + 'images/logo.png'
} }
}) })
@@ -329,9 +329,9 @@ export default {
// 转账失败问题件不用签名 // 转账失败问题件不用签名
if (this.issueType !== '818901') { if (this.issueType !== '818901') {
// 校验签名 // 校验签名
if (this.problemDetail.receiveType === '0') { if (this.$route.query.receiveType === '0') {
if (!this.policyholderSigned) return this.$toast('请完成签名后继续操作') if (!this.policyholderSigned) return this.$toast('请完成签名后继续操作')
} else { } else if (this.$route.query.receiveType === '1') {
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作') if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('请完成签名后继续操作')
} }
} }
@@ -444,6 +444,7 @@ export default {
} }
this.getBankList() this.getBankList()
this.getQuestionDetail() this.getQuestionDetail()
console.log(this.$route.params)
}, },
mounted() { mounted() {
setTimeout(() => { setTimeout(() => {

View File

@@ -138,10 +138,10 @@ export default {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: `${window.location.origin}/#/questions/detail/${item.id}/${item.businessType}` url: `${window.location.origin}/#/questions/detail/${item.id}/${item.businessType}?receiveType=${item.receiveType}`
}, },
routerInfo: { routerInfo: {
path: `/questions/detail/${item.id}/${item.businessType}` path: `/questions/detail/${item.id}/${item.businessType}?receiveType=${item.receiveType}`
} }
}) })
}, },