mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 05:26:44 +08:00
问题件详情页面分享按钮测试
This commit is contained in:
@@ -105,7 +105,6 @@ import { getBankList, uploadImg } from '@/api/ebiz/sale/sale'
|
||||
import { getQuestionDetail } from '@/api/ebiz/questions'
|
||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||
import ShortMessage from '@/components/ebiz/question/ShortMessage.vue'
|
||||
import shareIcon from '@/assets/images/share@3x.png'
|
||||
export default {
|
||||
name: 'QuestionsDetail',
|
||||
components: {
|
||||
@@ -166,11 +165,11 @@ export default {
|
||||
async autograph() {
|
||||
// eslint-disable-next-line
|
||||
const result = await EWebBridge.webCallAppInJs('ca_sign', {
|
||||
name: 'likai',
|
||||
name: '李凯',
|
||||
type: '1',
|
||||
number: '142727199301063550',
|
||||
keyword: '签字签字',
|
||||
pageNo: '4',
|
||||
pageNo: '1',
|
||||
index: 1,
|
||||
offset: 20,
|
||||
pos: 3
|
||||
@@ -194,25 +193,17 @@ export default {
|
||||
})
|
||||
).content
|
||||
},
|
||||
async setTopRightBtn() {
|
||||
// eslint-disable-next-line
|
||||
await EWebBridge.webCallAppInJs('webview_right_button', {
|
||||
btns: [{ img: shareIcon }]
|
||||
}).catch(() => {})
|
||||
console.log(123123123)
|
||||
},
|
||||
shareConfig() {
|
||||
window.appCallBack = async ({ trigger }) => {
|
||||
if (trigger === 'right_button_click')
|
||||
// eslint-disable-next-line
|
||||
await EWebBridge.webCallAppInJs('bridge', {
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'right_button_click') {
|
||||
let token = window.localStorage.getItem('token')
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('bridge', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: '测测试试',
|
||||
content: '测试测试',
|
||||
shareType: 0,
|
||||
img: '',
|
||||
url: window.location.href
|
||||
title: '国富人寿欢迎您!',
|
||||
content: this.shareContent,
|
||||
url: `${location.origin}/#/manpower/increaseStaffTools/PdfShare?&token=${token}`,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -242,12 +233,6 @@ export default {
|
||||
console.log(type, data)
|
||||
},
|
||||
async getQuestionDetail() {
|
||||
// if (!this.$route.query.id)
|
||||
// // eslint-disable-next-line
|
||||
// return EWebBridge.webCallAppInJs('goBack',{
|
||||
// refresh: '0',
|
||||
// index: '-1'
|
||||
// })
|
||||
const rs = await getQuestionDetail({
|
||||
id: this.$route.query.id
|
||||
})
|
||||
@@ -256,10 +241,18 @@ export default {
|
||||
},
|
||||
async created() {
|
||||
this.issueType = this.$route.query.type
|
||||
this.setTopRightBtn()
|
||||
this.shareConfig()
|
||||
this.getBankList()
|
||||
this.getQuestionDetail()
|
||||
},
|
||||
mounted() {
|
||||
window.EWebBridge.webCallAppInJs('webview_right_button', {
|
||||
btns: [
|
||||
{
|
||||
img: this.$assetsUrl + 'images/share@3x.png'
|
||||
}
|
||||
]
|
||||
})
|
||||
window['appCallBack'] = this.appCallBack
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="header">
|
||||
<van-search show-action @cancel="searchCancel" v-model="searchValue" placeholder="请输入投保人/被保人/险种名称/问题件类型关键字">
|
||||
<template #action>
|
||||
<div>搜索</div>
|
||||
<div @click="searchProblems">搜索</div>
|
||||
</template>
|
||||
</van-search>
|
||||
<van-tabs v-model="active" @change="changeProblemList">
|
||||
@@ -127,7 +127,8 @@ export default {
|
||||
processedList: [],
|
||||
searchValue: '',
|
||||
currentPage: 1,
|
||||
pageSize: 10
|
||||
pageSize: 10,
|
||||
searchCurrentPage: 1
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -150,7 +151,8 @@ export default {
|
||||
type: this.active,
|
||||
pageInfo: {
|
||||
pageNum: this.currentPage,
|
||||
pageSize: this.pageSize
|
||||
pageSize: this.pageSize,
|
||||
keyword: this.searchValue ? this.searchValue : ''
|
||||
}
|
||||
})
|
||||
if (rs && rs.result === '0') {
|
||||
@@ -186,6 +188,15 @@ export default {
|
||||
this.processedListLoading = true
|
||||
}
|
||||
this.loadMore()
|
||||
},
|
||||
async searchProblems() {
|
||||
this.currentPage = 1
|
||||
if (this.active === 0) {
|
||||
this.pendingList.splice(0)
|
||||
} else {
|
||||
this.processedList.splice(0)
|
||||
}
|
||||
this.loadMore()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
Reference in New Issue
Block a user