|
|
@@ -372,44 +372,67 @@
|
|
|
},
|
|
|
methods: {
|
|
|
goReward() {
|
|
|
- this.getActDetailList();
|
|
|
- if (this.actStatus != 1) {
|
|
|
- return
|
|
|
- }
|
|
|
- this.stopManyClick(() => {
|
|
|
- systemBuriedPoint({
|
|
|
- pointName: 'dt_裂变_h5_分享攻略'
|
|
|
- }).then(res => {
|
|
|
-
|
|
|
- })
|
|
|
- const {
|
|
|
- title,
|
|
|
- content,
|
|
|
- gotoUrl,
|
|
|
- shareImg
|
|
|
- } = this.shareInfo;
|
|
|
- console.log({
|
|
|
- title: title,
|
|
|
- content: content,
|
|
|
- gotoUrl: gotoUrl,
|
|
|
- shareImg: shareImg
|
|
|
- });
|
|
|
- if (isAndroid) {
|
|
|
- window.native.share(title, content, gotoUrl, shareImg)
|
|
|
- } else if (isIOS) {
|
|
|
- window.webkit.messageHandlers.share.postMessage({
|
|
|
- title: title,
|
|
|
- content: content,
|
|
|
- gotoUrl: gotoUrl,
|
|
|
- shareImg: shareImg
|
|
|
- });
|
|
|
+
|
|
|
+ this.$toast.loading({
|
|
|
+ duration: 0,
|
|
|
+ message: '加载中...',
|
|
|
+ forbidClick: true,
|
|
|
+ loadingType: 'spinner',
|
|
|
+ });
|
|
|
+ getActDetailList(this.token).then(res => {
|
|
|
+ this.$toast.clear();
|
|
|
+ if (res.status === 0) {
|
|
|
+ this.actStatus = res.data.actStatus;
|
|
|
+ this.shareInfo = res.data;
|
|
|
+ if (this.actStatus != 1) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // this.stopManyClick(() => {
|
|
|
+ this.getShare();
|
|
|
+ // })
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
standarImg(id) {
|
|
|
return `${fileCenterApi}/file-center/fileOperate/getImage?id=${id}`;
|
|
|
},
|
|
|
+ getShare() {
|
|
|
+
|
|
|
+ systemBuriedPoint({
|
|
|
+ pointName: 'dt_裂变_h5_分享攻略'
|
|
|
+ }).then(res => {
|
|
|
+
|
|
|
+ })
|
|
|
+ const {
|
|
|
+ title,
|
|
|
+ content,
|
|
|
+ gotoUrl,
|
|
|
+ shareImg
|
|
|
+ } = this.shareInfo;
|
|
|
+ console.log({
|
|
|
+ title: title,
|
|
|
+ content: content,
|
|
|
+ gotoUrl: gotoUrl,
|
|
|
+ shareImg: shareImg
|
|
|
+ });
|
|
|
+ if (isAndroid) {
|
|
|
+ window.native.share(title, content, gotoUrl, shareImg)
|
|
|
+ } else if (isIOS) {
|
|
|
+ window.webkit.messageHandlers.share.postMessage({
|
|
|
+ title: title,
|
|
|
+ content: content,
|
|
|
+ gotoUrl: gotoUrl,
|
|
|
+ shareImg: shareImg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
getActDetailList() { //获取活动状态
|
|
|
this.$toast.loading({
|
|
|
duration: 0,
|
|
|
@@ -427,7 +450,6 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
getAwardPage() { //获取活动列表
|
|
|
getAwardPage(this.token, this.queryParams).then(res => {
|
|
|
if (res.status == 0) {
|