|
@@ -23,8 +23,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
- <image class="hbImg" :src="`${constant.imgUrl}/icon/hb128.png`" mode="widthFix" @click="invite()"></image>
|
|
|
|
|
- <view class="hbInfo" @click="invite()">邀请得红包</view>
|
|
|
|
|
|
|
+ <image v-if="tjFl == 1" class="hbImg" :src="`${constant.imgUrl}/icon/hb128.png`" mode="widthFix" @click="invite()"></image>
|
|
|
|
|
+ <view v-if="tjFl == 1" class="hbInfo" @click="invite()">邀请得红包</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="input-wrap" >
|
|
<view class="input-wrap" >
|
|
@@ -99,13 +99,13 @@
|
|
|
</template>
|
|
</template>
|
|
|
</modal-module>
|
|
</modal-module>
|
|
|
|
|
|
|
|
- <modal-module :show="showInvite" color="#333" :size="32" padding="60rpx 30rpx" width="94%" :button="[]">
|
|
|
|
|
|
|
+ <modal-module :show="showInvite" color="#333" :size="32" padding="60rpx 30rpx" width="98%" :button="[]">
|
|
|
<template slot="customContent">
|
|
<template slot="customContent">
|
|
|
<view>
|
|
<view>
|
|
|
- <view style="margin-bottom:60rpx;margin-top:20rpx;font-size:30rpx;">邀新人下单,您得30元红包,新人得100元红包</view>
|
|
|
|
|
|
|
+ <view style="margin-bottom:60rpx;margin-top:20rpx;font-size:30rpx;">邀请新朋友下单,您得<text style="color:red;font-weight:bold;">{{parseFloat(ghsInfo.tjFlAmount)}}元</text>红包<text v-if="ghsInfo.xrFl==1">,朋友得<text style="color:red;font-weight:bold;">{{parseFloat(ghsInfo.xrFlAmount)}}元</text>红包</text></view>
|
|
|
<view>
|
|
<view>
|
|
|
- <button style="padding-left:85rpx;padding-right:85rpx;" class="admin-button-com default big" @click="closeInvite()">取消</button>
|
|
|
|
|
- <button style="padding-left:150rpx;padding-right:150rpx;margin-left:30rpx;" class="admin-button-com blue big" @click="closeInvite()" open-type="share">邀请</button>
|
|
|
|
|
|
|
+ <button style="padding-left:88rpx;padding-right:88rpx;" class="admin-button-com default big" @click="closeInvite()">取消</button>
|
|
|
|
|
+ <button style="padding-left:160rpx;padding-right:160rpx;margin-left:30rpx;" class="admin-button-com blue big" @click="closeInvite()" open-type="share">邀请</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -191,7 +191,9 @@ export default {
|
|
|
ghsId:0,
|
|
ghsId:0,
|
|
|
newCustomGift:{amount:100,miniCost:500,validTime:'2021-12-05'},
|
|
newCustomGift:{amount:100,miniCost:500,validTime:'2021-12-05'},
|
|
|
isNewCustom:false,
|
|
isNewCustom:false,
|
|
|
- showInvite:false
|
|
|
|
|
|
|
+ showInvite:false,
|
|
|
|
|
+ //推荐新人福利
|
|
|
|
|
+ tjFl:0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
@@ -371,6 +373,7 @@ export default {
|
|
|
}else{
|
|
}else{
|
|
|
this.isNewCustom = true
|
|
this.isNewCustom = true
|
|
|
}
|
|
}
|
|
|
|
|
+ this.tjFl = res.data.tjFl
|
|
|
}
|
|
}
|
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
this.option.id = res.data.id;
|
|
this.option.id = res.data.id;
|
|
@@ -390,6 +393,7 @@ export default {
|
|
|
}else{
|
|
}else{
|
|
|
this.isNewCustom = true
|
|
this.isNewCustom = true
|
|
|
}
|
|
}
|
|
|
|
|
+ this.tjFl = res.data.tjFl
|
|
|
}).catch(err => {})
|
|
}).catch(err => {})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|