Commit 40aa6457 authored by zhangjianguo's avatar zhangjianguo

首页修改

parent cffe0f9b
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
:key="di" :key="di"
></addialog> ></addialog>
<quicknav <quicknav
v-if="d.id == 'quick-nav' && d.data.navSwitch == 1" v-if="d.id == 'quick-nav' && d.data.navSwitch == 1"
:navs="d.data" :navs="d.data"
:key="di" :key="di"
></quicknav> ></quicknav>
...@@ -67,6 +67,15 @@ ...@@ -67,6 +67,15 @@
</view> </view>
</template> </template>
<tabbar></tabbar> <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> </view>
</template> </template>
...@@ -98,7 +107,9 @@ export default { ...@@ -98,7 +107,9 @@ export default {
mainColor: "", mainColor: "",
active: 0, active: 0,
contentHeight: 0, contentHeight: 0,
pageId:0 pageId:0,
setting:{},
add_show:1,
}; };
}, },
components: { components: {
...@@ -129,6 +140,14 @@ export default { ...@@ -129,6 +140,14 @@ export default {
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);
this.init(); 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(); uni.showNavigationBarLoading();
}, },
onShow() { onShow() {
...@@ -169,6 +188,10 @@ export default { ...@@ -169,6 +188,10 @@ export default {
} }
); );
}, },
close(){
this.add_show =2;
uni.setStorageSync("add_top_app", {add_top_app_show:2});
},
changeHandler(i) { changeHandler(i) {
this.active = i; this.active = i;
}, },
...@@ -205,7 +228,29 @@ export default { ...@@ -205,7 +228,29 @@ export default {
justify-content: center; */ justify-content: center; */
padding-bottom:100rpx; 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 { /* .logo {
height: 200rpx; height: 200rpx;
width: 200rpx; width: 200rpx;
......
...@@ -224,6 +224,7 @@ console.log(wx.getStorageSync('basedata')) ...@@ -224,6 +224,7 @@ console.log(wx.getStorageSync('basedata'))
<style> <style>
.body { .body {
background: #f3f4f6; background: #f3f4f6;
min-height:100vh
} }
.userStyle .userBox { .userStyle .userBox {
height: 100%; 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