|
@@ -7,7 +7,7 @@
|
|
|
<meta name="description" content="活动">
|
|
|
<title>免费领机</title>
|
|
|
<link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
|
|
|
- <link rel="stylesheet" href="../static/css/index.css?v=1.0.0.5">
|
|
|
+ <link rel="stylesheet" href="../static/css/index.css?v=1.0.0.6">
|
|
|
<link rel="stylesheet" href="../static/css/vant.css" />
|
|
|
<script src="../static/js/vender/vue/vue.min.js"></script>
|
|
|
<script src="../static/js/vender/vue/vant.min.js"></script>
|
|
@@ -342,7 +342,7 @@
|
|
|
data: {
|
|
|
isshow: false,
|
|
|
token: GetRequest().token ? GetRequest().token :
|
|
|
- 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyYW5kb20iOiI3ODM0NyIsImNsaWVudCI6IjUiLCJleHAiOjE2NDA4NDkxMjUsInVzZXJuYW1lX2FwcGxldCI6Iko4VENqMTYzODk0MTc2MyJ9.J4vY-mSQnxh0K9DxNVKbelL1IXMx0GGVTClRKqfbyLo',
|
|
|
+ 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyYW5kb20iOiIxNzU4NCIsImNsaWVudCI6IjUiLCJleHAiOjE2NDA5MzEwOTcsInVzZXJuYW1lX2FwcGxldCI6IlJtSWhvMTYzOTEyODEwOCJ9.vA1yHns6KLFyK_ZmQgC6-4O7vGbs08DBVAaveO6yBFo',
|
|
|
rewardList: [],
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -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) {
|