| xqd
@@ -81,7 +81,7 @@
|
|
|
|
|
|
<movable-area class="movableArea">
|
|
|
<movable-view class="movableView" direction="all" x="630rpx" y="700rpx">
|
|
|
- <view class="img-IHg" @click="goJoin">
|
|
|
+ <view class="img-IHg" @click="goJoinActivity">
|
|
|
<image style="width: 84rpx; height: 84rpx;border-radius: 50%; " :src="indexVipImg" mode=""></image>
|
|
|
</view>
|
|
|
</movable-view>
|
| xqd
@@ -139,7 +139,7 @@
|
|
|
@click="isVoteNum?goVote(activity_project_id,true):closeVote()">
|
|
|
<text>{{isVoteNum?'再次投票':'关闭'}}</text>
|
|
|
</view>
|
|
|
- <view v-if="is_prize==0" class="download" @click="isVoteNum||is_vip?goOtherItem():goJoinActivity()">
|
|
|
+ <view v-if="is_prize==0" class="download" @click="isVoteNum||is_vip?goOtherItem():goJoin()">
|
|
|
<text>{{isVoteNum||is_vip||!vipRewardTicketNum?'其他项目':'加入IHG会员' }}</text>
|
|
|
</view>
|
|
|
|
| xqd
@@ -454,15 +454,17 @@
|
|
|
|
|
|
// 跳转其他小程序
|
|
|
goJoinActivity(){
|
|
|
+ let type = 1
|
|
|
let _this = this
|
|
|
- this.jumpHAppID(this.jump_type_vip_Activity, this.jump_config_vip_Activity)
|
|
|
+ this.jumpHAppID(this.jump_type_vip_Activity, this.jump_config_vip_Activity,type)
|
|
|
},
|
|
|
goJoin() {
|
|
|
+ let type = 2
|
|
|
let _this = this
|
|
|
- this.jumpHAppID(this.jump_type_vip, this.jump_config_vip)
|
|
|
+ this.jumpHAppID(this.jump_type_vip, this.jump_config_vip,type)
|
|
|
},
|
|
|
// 跳转其他小程序
|
|
|
- jumpHAppID(id, urls) {
|
|
|
+ jumpHAppID(id, urls,type) {
|
|
|
if (id == 1) {
|
|
|
const url = urls; // 跳转的外链
|
|
|
const navtitle = 'H5'; // 这个标题是你自己可以设置的
|
| xqd
@@ -490,29 +492,43 @@
|
|
|
success(res) {
|
|
|
const page = _this.getPageUrl()
|
|
|
let user_id = ''
|
|
|
- if (_this.admin != null) {
|
|
|
- user_id = _this.admin.id
|
|
|
- } else {
|
|
|
- user_id = 0
|
|
|
- }
|
|
|
- _this.$api.my.userMemberAdd({
|
|
|
- user_id,
|
|
|
- page,
|
|
|
- })
|
|
|
- //增加票数
|
|
|
- _this.$api.my.userJoinVip({
|
|
|
- source_type: 1,
|
|
|
- source_id: _this.sourceId
|
|
|
- }).then(res => {
|
|
|
- if(res.code == 0){
|
|
|
- uni.setStorage({
|
|
|
- key: `is_vip_${_this.voteDetail.id}`,
|
|
|
- data: 1,
|
|
|
- });
|
|
|
- _this.is_vip = true
|
|
|
- _this.closeVote()
|
|
|
+ if(type == 2){
|
|
|
+ let pageUrl = `${page}?type=${type}`
|
|
|
+ console.log(pageUrl,'---->pageUrl');
|
|
|
+ if (_this.admin != null) {
|
|
|
+ user_id = _this.admin.id
|
|
|
+ } else {
|
|
|
+ user_id = 0
|
|
|
}
|
|
|
- })
|
|
|
+ _this.$api.my.userMemberAdd({
|
|
|
+ user_id,
|
|
|
+ page:pageUrl,
|
|
|
+ })
|
|
|
+ //增加票数
|
|
|
+ _this.$api.my.userJoinVip({
|
|
|
+ source_type: 1,
|
|
|
+ source_id: _this.sourceId
|
|
|
+ }).then(res => {
|
|
|
+ if(res.code == 0){
|
|
|
+ uni.setStorage({
|
|
|
+ key: `is_vip_${_this.voteDetail.id}`,
|
|
|
+ data: 1,
|
|
|
+ });
|
|
|
+ _this.is_vip = true
|
|
|
+ _this.closeVote()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ if (_this.admin != null) {
|
|
|
+ user_id = _this.admin.id
|
|
|
+ } else {
|
|
|
+ user_id = 0
|
|
|
+ }
|
|
|
+ _this.$api.my.userMemberAdd({
|
|
|
+ user_id,
|
|
|
+ page,
|
|
|
+ })
|
|
|
+ }
|
|
|
// 打开成功
|
|
|
},
|
|
|
fail(e) {
|