Commit 40aa6457 authored by zhangjianguo's avatar zhangjianguo

首页修改

parent cffe0f9b
......@@ -67,6 +67,15 @@
</view>
</template>
<tabbar></tabbar>
<view class="tips" v-if="add_show==1&& JSON.stringify(setting) != '{}' " :style="{
'border-radius':setting.add_app_bg_radius+'rpx',
'opacity':setting.add_app_bg_transparency/100
}">
<u-icon name="cross" color="#fff" @click="close"></u-icon>
<view style="width: 1px;height: 20px;margin:0 10px;background: #fff;"></view>
<Text style='color: #fff;'>{{setting.add_app_text}}</Text>
<view class="triangle-up"></view>
</view>
</view>
</template>
......@@ -98,7 +107,9 @@ export default {
mainColor: "",
active: 0,
contentHeight: 0,
pageId:0
pageId:0,
setting:{},
add_show:1,
};
},
components: {
......@@ -129,6 +140,14 @@ export default {
let c = this.$uiConfig.is_bang ? 78 : 50;
this.contentHeight = this.$utils.calcContentHeight(c);
this.init();
let set = uni.getStorageSync("basedata")? uni.getStorageSync("basedata").mall.setting:{};
if(!uni.getStorageSync("add_top_app")){
uni.setStorageSync("add_top_app", {add_top_app_show:1});
}
this.add_show = uni.getStorageSync("add_top_app")?uni.getStorageSync("add_top_app").add_top_app_show:1;
this.setting =set;
console.log(this.setting)
uni.showNavigationBarLoading();
},
onShow() {
......@@ -169,6 +188,10 @@ export default {
}
);
},
close(){
this.add_show =2;
uni.setStorageSync("add_top_app", {add_top_app_show:2});
},
changeHandler(i) {
this.active = i;
},
......@@ -205,7 +228,29 @@ export default {
justify-content: center; */
padding-bottom:100rpx;
}
.content .tips{
position: fixed;
top:8px;
right: 6px;
height: 36px;
background: #000000;
display: flex;
flex-direction: row;
align-items: center;
padding: 0 10px;
font-size: 12px;
}
.triangle-up{
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid black;
position: fixed;
right: 65px;
top:0px
}
/* .logo {
height: 200rpx;
width: 200rpx;
......
......@@ -224,6 +224,7 @@ console.log(wx.getStorageSync('basedata'))
<style>
.body {
background: #f3f4f6;
min-height:100vh
}
.userStyle .userBox {
height: 100%;
......
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