|
@@ -25,7 +25,11 @@
|
|
|
<view class="u-flex u-row-between u-p-t-22">
|
|
<view class="u-flex u-row-between u-p-t-22">
|
|
|
<text class="u-content-color">{{detail.join_number}}已参与</text>
|
|
<text class="u-content-color">{{detail.join_number}}已参与</text>
|
|
|
<button class="share-btn u-primary-color u-font-24 line-34"
|
|
<button class="share-btn u-primary-color u-font-24 line-34"
|
|
|
- open-type="share">分享活动</button>
|
|
|
|
|
|
|
+ v-if="!userId"
|
|
|
|
|
+ @click="jumpToLogin">分享活动</button>
|
|
|
|
|
+ <button class="share-btn u-primary-color u-font-24 line-34"
|
|
|
|
|
+ open-type="share"
|
|
|
|
|
+ v-if="userId">分享活动</button>
|
|
|
</view>
|
|
</view>
|
|
|
<image v-if="platBanner"
|
|
<image v-if="platBanner"
|
|
|
:src="platBanner.img"
|
|
:src="platBanner.img"
|
|
@@ -331,26 +335,26 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- watch: {
|
|
|
|
|
- userId (e) {
|
|
|
|
|
- if (!e) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/pagesSub/other/login'
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // watch: {
|
|
|
|
|
+ // userId (e) {
|
|
|
|
|
+ // if (!e) {
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: '/pagesSub/other/login'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
onLoad (options) {
|
|
onLoad (options) {
|
|
|
this.activityId = options.id
|
|
this.activityId = options.id
|
|
|
this.recordId = options.record_id
|
|
this.recordId = options.record_id
|
|
|
},
|
|
},
|
|
|
onShow () {
|
|
onShow () {
|
|
|
- if (!this.userId) {
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/pagesSub/other/login'
|
|
|
|
|
- })
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if (!this.userId) {
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: '/pagesSub/other/login'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
this.getDetailData()
|
|
this.getDetailData()
|
|
|
this.reNowTime()
|
|
this.reNowTime()
|
|
|
},
|
|
},
|
|
@@ -385,6 +389,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ jumpToLogin () {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pagesSub/other/login'
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
onDialogOpen () {
|
|
onDialogOpen () {
|
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
|
data: this.detail.search_key ? this.detail.search_key : this.detail.shop_name
|
|
data: this.detail.search_key ? this.detail.search_key : this.detail.shop_name
|
|
@@ -394,6 +403,10 @@ export default {
|
|
|
this.openOtherApplte()
|
|
this.openOtherApplte()
|
|
|
},
|
|
},
|
|
|
onClickShare () {
|
|
onClickShare () {
|
|
|
|
|
+ if (!this.userId) {
|
|
|
|
|
+ this.jumpToLogin()
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
uni.navigateTo({ url: '/pagesSub/commission/invite' })
|
|
uni.navigateTo({ url: '/pagesSub/commission/invite' })
|
|
|
},
|
|
},
|
|
|
getShareUrl () {
|
|
getShareUrl () {
|
|
@@ -502,6 +515,10 @@ export default {
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if (!this.userId) {
|
|
|
|
|
+ this.jumpToLogin()
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
uni.requestSubscribeMessage({
|
|
uni.requestSubscribeMessage({
|
|
|
tmplIds: this.$store.state.joinTemplateIds,
|
|
tmplIds: this.$store.state.joinTemplateIds,
|
|
|
complete: () => {
|
|
complete: () => {
|