diff --git a/src/assets/images/goodStart/top.png b/src/assets/images/goodStart/top.png index 9218a9fbe..d17575ecf 100644 Binary files a/src/assets/images/goodStart/top.png and b/src/assets/images/goodStart/top.png differ diff --git a/src/views/ebiz/goodStart/GoodStartScheme.vue b/src/views/ebiz/goodStart/GoodStartScheme.vue index 2c45b1819..def713c12 100644 --- a/src/views/ebiz/goodStart/GoodStartScheme.vue +++ b/src/views/ebiz/goodStart/GoodStartScheme.vue @@ -6,7 +6,11 @@ - 分享 + +
+ 分享 + 下载 +
@@ -112,6 +116,22 @@ export default { img: this.images[this.currentPage] } }) + }, + // 原生下载图片的方法 + downLoadImagesFunc() { + if (this.images[this.currentPage]) { + // eslint-disable-next-line no-undef + EWebBridge.webCallAppInJs('download', { + name: '开门红方案.png', + url: this.images[this.currentPage] + }).then(() => { + console.log('下载完成') + }).catch(() => { + this.$toast.fail('图片下载失败,请重新下载!') + }) + } else { + this.$toast.fail('图片下载失败,请重新下载!') + } } } } @@ -151,4 +171,14 @@ export default { left: 0; right: 0; } + +.border-color { + z-index: 9999; + border: 2px solid; + border-image: radial-gradient(circle, rgba(255, 233, 124, 1), rgba(222, 144, 34, 1)) 2 2; +} +/deep/ .van-button--danger { + background: linear-gradient(to right, #f26e43, #ac0209) !important; /*设置按钮为渐变颜色*/ + border: none !important; +} diff --git a/src/views/ebiz/goodStart/IssueList.vue b/src/views/ebiz/goodStart/IssueList.vue index e69de29bb..9ec3de2ff 100644 --- a/src/views/ebiz/goodStart/IssueList.vue +++ b/src/views/ebiz/goodStart/IssueList.vue @@ -0,0 +1,208 @@ + + + + + diff --git a/src/views/ebiz/goodStart/NewsPaper.vue b/src/views/ebiz/goodStart/NewsPaper.vue index 38bfb1065..86ca661f4 100644 --- a/src/views/ebiz/goodStart/NewsPaper.vue +++ b/src/views/ebiz/goodStart/NewsPaper.vue @@ -2,12 +2,12 @@
-
- 分享 - 下载 +
+ 分享 + 下载
-
+
暂无数据
@@ -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('贺报下载失败,请重新下载!') + } } } }