Commit f39e26dd authored by 黄媛媛's avatar 黄媛媛

1

parent f966f330
<template> <template>
<view class="shareindexStyle" :style="{'height':contentHeight}"> <view class="shareindexStyle" :style="{'height':contentHeight}">
<view
class="headStatus"
v-if=""
:style="[headStyle]"
>
<view class="arrow" @click="redirectPrev">
<u-icon name="arrow-left" size="48" color="#000"></u-icon>
</view>
<view class="title">{{pageTitle}}</view>
</view>
<view class="shareadd" v-if=" sharestatus.Status==1"> <view class="shareadd" v-if=" sharestatus.Status==1">
<u-empty text=" " mode="data"></u-empty> <u-empty text=" " mode="data"></u-empty>
<Text style='margin: 10px 0;'>{{sharestatus.Msg}}</Text> <Text style='margin: 10px 0;'>{{sharestatus.Msg}}</Text>
...@@ -7,7 +17,7 @@ ...@@ -7,7 +17,7 @@
<Text>{{sharestatus.ApplyForName}}</Text> <Text>{{sharestatus.ApplyForName}}</Text>
</view> </view>
</view> </view>
<view v-if="sharestatus.Status==2" style="width: 100%;display: flex;flex-direction: column;align-items: center;"> <view v-if="sharestatus.Status==3" style="width: 100%;display: flex;flex-direction: column;align-items: center;">
<image src="../../../static/images/icon/img-share-status.png" style="width: 100%;height: 165px;"></image> <image src="../../../static/images/icon/img-share-status.png" style="width: 100%;height: 165px;"></image>
<Text style='margin-top: 70px;'>谢谢您的支持,请等待审核</Text> <Text style='margin-top: 70px;'>谢谢您的支持,请等待审核</Text>
<view style="display: flex;align-items: center;justify-content: center;margin-top: 60rpx;"> <view style="display: flex;align-items: center;justify-content: center;margin-top: 60rpx;">
...@@ -21,7 +31,7 @@ ...@@ -21,7 +31,7 @@
<u-button shape="circle" type="error" size="medium" @click='goshoping'>去商城逛逛</u-button> <u-button shape="circle" type="error" size="medium" @click='goshoping'>去商城逛逛</u-button>
</view> --> </view> -->
</view> </view>
<view style="width: 100%;height: 100%;" v-if="sharestatus.Status==3"> <view style="width: 100%;height: 100%;" v-if="sharestatus.Status==4">
<view class="sharebox_top" :style="{background:mainColor}"> <view class="sharebox_top" :style="{background:mainColor}">
<view class="sharebox_top_t"> <view class="sharebox_top_t">
<view class="top_t_l"> <view class="top_t_l">
...@@ -121,15 +131,17 @@ ...@@ -121,15 +131,17 @@
userinfo:{}, userinfo:{},
sharedata:{}, sharedata:{},
showAuth:false showAuth:false,
nav:0,
headStyle:{}
} }
}, },
created(){ created(){
this.contentHeight = this.$utils.calcContentHeight(-40)+'px'; this.contentHeight = this.$utils.calcContentHeight(-40)+'px';
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.nav = uni.getMenuButtonBoundingClientRect().top+'px';
this.headStyle.paddingTop = this.nav ;
}, },
mounted() { mounted() {
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
...@@ -232,6 +244,14 @@ ...@@ -232,6 +244,14 @@
} }
}, },
redirectPrev() {
if (this.prevPage != "") {
uni.navigateBack({
delta: 1,
});
}
},
goUrl(url){ goUrl(url){
console.log(url) console.log(url)
uni.navigateTo({ uni.navigateTo({
...@@ -326,4 +346,32 @@ ...@@ -326,4 +346,32 @@
font-size: 13px; font-size: 13px;
margin: 5px 0; margin: 5px 0;
} }
.shareindexStyle .headStatus {
overflow: hidden;
position: relative;
width: 140vw;
padding-right: 40vw;
padding-bottom: 10px;
position: fixed;
left: 0;
right: 0;
top: 0;
display: flex;
background: #FFFFFF;
}
.shareindexStyle .headStatus .arrow {
height: 24px;
margin: 5px 10px;
width: 24px;
}
.shareindexStyle .headStatus .title {
font-size: 18px;
color: #000;
flex: 1;
width: 1px;
margin-left: 10px;
line-height: 34px;
/* text-align: center; */
}
</style> </style>
This diff is collapsed.
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