+
暂无数据
@@ -44,27 +44,23 @@ export default {
},
appCallBack(data) {
if (data.trigger == 'left_button_click') {
- if (!this.isPrevShow) {
- if (this.isFromService) {
- this.$jump({
- flag: 'service'
- })
- } else {
- this.$jump({
- flag: 'h5',
- extra: {
- title: '开门红专区',
- forbidSwipeBack: 1,
- url: location.origin + `/#/goodStart/prefecture`
- },
- routerInfo: {
- path: `/goodStart/prefecture/prefecture`,
- type: '1'
- }
- })
- }
+ if (this.isFromService) {
+ this.$jump({
+ flag: 'service'
+ })
} else {
- this.isPrevShow = false
+ this.$jump({
+ flag: 'h5',
+ extra: {
+ title: '开门红专区',
+ forbidSwipeBack: 1,
+ url: location.origin + `/#/goodStart/prefecture`
+ },
+ routerInfo: {
+ path: `/goodStart/prefecture/prefecture`,
+ type: '1'
+ }
+ })
}
}
},
@@ -86,12 +82,31 @@ export default {
img: this.pics
}
})
+ },
+ // 原生下载图片的方法
+ downLoadImagesFunc() {
+ if (this.pics) {
+ // eslint-disable-next-line no-undef
+ EWebBridge.webCallAppInJs('download', {
+ name: '开门红实时贺报.png',
+ url: this.pics
+ }).then(() => {
+ console.log('下载完成')
+ }).catch(() => {
+ this.$toast.fail('贺报下载失败,请重新下载!')
+ })
+ } else {
+ this.$toast.fail('贺报下载失败,请重新下载!')
+ }
}
}
}