mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 03:06:43 +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,27 +193,19 @@ 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', {
|
||||
flag: 'share',
|
||||
extra: {
|
||||
title: '测测试试',
|
||||
content: '测试测试',
|
||||
shareType: 0,
|
||||
img: '',
|
||||
url: window.location.href
|
||||
}
|
||||
})
|
||||
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: this.shareContent,
|
||||
url: `${location.origin}/#/manpower/increaseStaffTools/PdfShare?&token=${token}`,
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
modeChange(mode) {
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user