|
@@ -340,8 +340,7 @@
|
|
|
el: '#app',
|
|
|
data: {
|
|
|
isshow: false,
|
|
|
- token: GetRequest().token ? GetRequest().token :'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyYW5kb20iOiI3MTI4MSIsImNsaWVudCI6IjAiLCJleHAiOjE2NDAyOTkzNjksInVzZXJuYW1lIjoiYWRtaW4ifQ.RFjJ1f-TlgSWmF5M94n2AxHhGUZWrul244hIxr6jyOQ',
|
|
|
- topic: {},
|
|
|
+ token: GetRequest().token ? GetRequest().token :'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJyYW5kb20iOiI3MTY0OCIsImNsaWVudCI6IjAiLCJleHAiOjE2NDAzMTk5NTIsInVzZXJuYW1lIjoiYWRtaW4ifQ.PAV3biqh1JjiTHB5nyOlBjVMOk5II3Q8o4_OuYAMVCg',
|
|
|
rewardList: [],
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
@@ -362,6 +361,7 @@
|
|
|
this.getAwardPage(); //获取奖励列表
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.getActDetailList();//获取活动上下架
|
|
|
this.getActDetail();
|
|
|
this.getMarquee(); //跑马灯
|
|
|
|
|
@@ -379,6 +379,7 @@
|
|
|
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) {
|
|
@@ -388,17 +389,25 @@
|
|
|
standarImg(id) {
|
|
|
return `${fileCenterApi}/file-center/fileOperate/getImage?id=${id}`;
|
|
|
},
|
|
|
- getActDetail() { //获取活动状态
|
|
|
+ getActDetail(){
|
|
|
+ getActDetail(this.token).then(res => {
|
|
|
+ if (res.status === 0) {
|
|
|
+ this.actStatus = res.data.actStatus;
|
|
|
+ } else {
|
|
|
+ this.$toast(res.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getActDetailList(){ //获取活动状态
|
|
|
this.$toast.loading({
|
|
|
duration: 0,
|
|
|
message: '加载中...',
|
|
|
forbidClick: true,
|
|
|
loadingType: 'spinner',
|
|
|
});
|
|
|
- getActDetail().then(res => {
|
|
|
+ getActDetailList(this.token).then(res => {
|
|
|
this.$toast.clear();
|
|
|
if (res.status === 0) {
|
|
|
- this.actStatus = res.data.actStatus;
|
|
|
this.shareInfo = res.data;
|
|
|
} else {
|
|
|
this.$toast(res.msg);
|