Commit 213e2929 authored by youjie's avatar youjie

续约大红包

parent 67311605
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
:style="[item.formatStyle]" :style="[item.formatStyle]"
@click="clickHandler(item.link[0].new_link_url)" @click="clickHandler(item.link[0].new_link_url)"
> >
<img :src="item.pic_url" mode="widthFix"/> <img :src="item.pic_url" mode="widthFix" style="display: block;"/>
</view> </view>
<view class="hots" v-for="(x, i) in hotspots" :key="i" :style="[x.formatStyle]" @click="clickHots(x.link)">&nbsp;</view> <view class="hots" v-for="(x, i) in hotspots" :key="i" :style="[x.formatStyle]" @click="clickHots(x.link)">&nbsp;</view>
</view> </view>
......
...@@ -48,9 +48,12 @@ ...@@ -48,9 +48,12 @@
<view v-if="item.Status==1" class="bigRedEnvLCRBut" @click.stop="goDetails(item,2)"> <view v-if="item.Status==1" class="bigRedEnvLCRBut" @click.stop="goDetails(item,2)">
查看进度 查看进度
</view> </view>
<view v-if="item.Status==0||item.Status==3" class="bigRedEnvLCRBut" @click.stop="goDetails(item,1)"> <view v-if="item.ContractId&&(item.Status==0||item.Status==3)" class="bigRedEnvLCRBut" @click.stop="goDetails(item,1)">
重新填写 重新填写
</view> </view>
<view v-if="!item.ContractId" class="bigRedEnvLCRBut" @click.stop="goUrl">
立即续约
</view>
</view> </view>
</view> </view>
<view class="bigRedEnvLiYou" v-if="item.Status==3&&item.AuditContractReason"> <view class="bigRedEnvLiYou" v-if="item.Status==3&&item.AuditContractReason">
...@@ -63,7 +66,7 @@ ...@@ -63,7 +66,7 @@
--> -->
</view> </view>
</scroll-view> </scroll-view>
<view class="bigRedEnvLRule" @click="goUrl"> <view class="bigRedEnvLRule" @click="goUrl(1)">
<text>大红包规则</text> <text>大红包规则</text>
</view> </view>
<view style="height: 112rpx;"></view> <view style="height: 112rpx;"></view>
...@@ -179,6 +182,17 @@ export default { ...@@ -179,6 +182,17 @@ export default {
this.Details = res.data; this.Details = res.data;
this.dataList = res.data.ContractList; this.dataList = res.data.ContractList;
if(this.Details.IsRenewalContract==1) this.goUrl() if(this.Details.IsRenewalContract==1) this.goUrl()
if(this.Details.IsRenewalContract==2) {
let year = Number(res.data.ContractList[0].EndTime.slice(0,4))
year = year+1
let obj = {
ContractId: 0,
ContractStatus: 0,
Status: 0,
C_ProductName: year+'年度大红包',
}
this.dataList.unshift(obj)
}
uni.hideLoading() uni.hideLoading()
} }
...@@ -186,9 +200,20 @@ export default { ...@@ -186,9 +200,20 @@ export default {
uni.hideLoading() uni.hideLoading()
}) })
}, },
goUrl(){ goUrl(type){
// /pages/bigredrnvelope/rule?IsRenewalContract=${this.Details.IsRenewalContract}
let page_id // 2680 签约 2681 查看 2682 续约
if(type==1){
if(this.Details.IsRenewalContract==1) page_id = 2680
else if(this.Details.IsRenewalContract==2) page_id = 2682
else page_id = 2681
} else{
if(this.Details.IsRenewalContract==1) page_id = 2680
else if(this.Details.IsRenewalContract==2) page_id = 2682
else page_id = 2681
}
uni.navigateTo({ uni.navigateTo({
url: `/pages/bigredrnvelope/rule?IsRenewalContract=${this.Details.IsRenewalContract}` url: `/pages/index/index?page_id=${page_id}&hidetabs=1&hideheader=1`
}) })
}, },
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<view class="content" :style="{ <view class="content" :style="{
'padding-bottom':(pageId==0?'calc(57px + env(safe-area-inset-bottom))':'0px'), 'padding-bottom':(pageId==0?'calc(57px + env(safe-area-inset-bottom))':'0px'),
}"> }">
<view :style="{opacity:`${pageId!=0?100:(scrollTop-20)}%`}"> <view v-if="showheader" :style="{opacity:`${pageId!=0?100:(scrollTop-20)}%`}">
<view class="index-title" :class="{ MainTopLeft: pageTitleStr.length > 10 }" :style="[ <view class="index-title" :class="{ MainTopLeft: pageTitleStr.length > 10 }" :style="[
myPageData.home_pages.navs[active].templateBg, myPageData.home_pages.navs[active].templateBg,
titleStyle, titleStyle,
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
</view> </view>
</view> </view>
</view> </view>
<!--大红包规则返回头-->
<view v-else class="bigRedEnvRuleHeadIN">
<headers></headers>
</view>
<u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name" <u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name"
:list="myPageData.home_pages.navs" :is-scroll="true" :active-color="mainColor" :current="active" :list="myPageData.home_pages.navs" :is-scroll="true" :active-color="mainColor" :current="active"
:bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs> :bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs>
...@@ -91,6 +95,7 @@ ...@@ -91,6 +95,7 @@
import coupon from "@/components/coupons/coupons"; import coupon from "@/components/coupons/coupons";
import shopinfo from "@/components/shopinfo/shopinfo"; import shopinfo from "@/components/shopinfo/shopinfo";
import auth from "@/components/auth/index.vue"; import auth from "@/components/auth/index.vue";
import headers from "@/components/header/header";
const innerAudioContext = uni.createInnerAudioContext(); const innerAudioContext = uni.createInnerAudioContext();
export default { export default {
...@@ -102,6 +107,7 @@ ...@@ -102,6 +107,7 @@
pageId: 0, pageId: 0,
setting: {}, setting: {},
showtabs: true, showtabs: true,
showheader: true,
showCoupons: false, showCoupons: false,
couponMessage: "", couponMessage: "",
pageTitleStr: "", pageTitleStr: "",
...@@ -138,9 +144,12 @@ ...@@ -138,9 +144,12 @@
quicknav, quicknav,
coupon, coupon,
shopinfo, shopinfo,
auth auth,
headers,
}, },
onLoad(options) { onLoad(options) {
this.showtabs = options.hidetabs? false : true;
this.showheader = options.hideheader? false : true;
let that = this; let that = this;
let c = this.$uiConfig.is_bang ? 78 : 50; let c = this.$uiConfig.is_bang ? 78 : 50;
this.contentHeight = this.$utils.calcContentHeight(c); this.contentHeight = this.$utils.calcContentHeight(c);
...@@ -397,6 +406,12 @@ ...@@ -397,6 +406,12 @@
</script> </script>
<style> <style>
.bigRedEnvRuleHeadIN{
position: fixed;
left: 0;
top: 0;
z-index: 1;
}
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment