@@ -389,6 +389,14 @@
imageUrl: 'https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/free_draw_bkg.jpeg',
}
},
+ //分享朋友圈
+ onShareTimeline() {
+ return {
+ title: '一起来刮盲票吧',
+ path: `/packageOperate/activity/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }&userId=${ this.userInfo.userId }&type=1`,
+ imageUrl: 'https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/free_draw_bkg.jpeg',
+ }
</script>
@@ -94,6 +94,9 @@
this.getBaseInfo()
onShow() {
+ if(uni.getStorageSync('token')) {
+ this.getBaseInfo()
this.pageList()
methods: {
@@ -230,10 +230,10 @@
this.getExclusive()
this.getClassify()
this.getSwiper()
- this.getBaseInfo()
if(uni.getStorageSync('token')) {
this.getBean()
@@ -196,11 +196,14 @@
let num = Math.round(100 / this.list.length)
this.percentage = num
+
this.getList()
onShow(opthios) {
this.loginState = uni.getStorageSync('token') ? true : false
+ if (this.loginState) {
this.getPrizeNews()
this.getActivityList()
@@ -119,11 +119,6 @@
userInfo: '',
};
-
- onLoad() {
- },
if (this.loginState) {
@@ -231,15 +226,6 @@
})
// #endif
- getBaseInfo() {
- $http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
- uni.hideLoading();
- if (res.code == 0) {
- this.userInfo = res.data
- }
- })
//分享好友
onShareAppMessage(res) {