去除状态栏高度缓存,新增状态机状态栏高度设置

master
chen 2022-04-11 10:12:11 +08:00
parent 70595f6ac3
commit 66ca6b388a
80 changed files with 264 additions and 180 deletions

View File

@ -13,8 +13,6 @@
this.autoUpdate();
//
toolAll.tools.currentContext();
//
uni.setStorageSync('electric_nav_height',uni.getSystemInfoSync().statusBarHeight + 54);
toolAll.tools.isVedio();
},
onShow: function() {

View File

@ -53,7 +53,8 @@
const query = wx.createSelectorQuery().in(this)
query.select('.statusHNH').boundingClientRect((rect) => {
// console.log('+',rect.height);
uni.setStorageSync('statusHNH',rect.height)
uni.setStorageSync('statusHNH',rect.height);
this.$store.commit('updateHeightEv',rect.height)
}).exec()
//
@ -63,7 +64,7 @@
// console.log(currentPage.$page.fullPath,'');
uni.setStorageSync('url',`/${currentPage.route}`);
uni.setStorageSync('paramsUrl',currentPage.$page.fullPath);
console.log(uni.getStorageSync('paramsUrl'),66);
// console.log(uni.getStorageSync('paramsUrl'),66);
// console.log(uni.getStorageSync('url'),64);
},
data() {

View File

@ -66,8 +66,6 @@
//
this.$toolAll.tools.currentContext();
this.setLogo();
//
uni.setStorageSync('electric_nav_height',uni.getSystemInfoSync().statusBarHeight + 54);
this.$toolAll.tools.isVedio();
// let ya = this;
// // ,

View File

@ -1,7 +1,7 @@
<template>
<view>
<status-nav :titleVal="'用户协议及隐私声明'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="mar20 line-h50 fon30">
<view :style="{paddingTop: statusHeight+'px'}" class="mar20 line-h50 fon30">
<!-- <rich-text :nodes="content"></rich-text> -->
<view class="text2">本协议为您与本小程序管理者之间所订立的契约具有合同的法律效力请您仔细阅读</view>
<view>本协议内容生效变更本协议内容包括协议正文及所有本小程序已经发布的或将来可能发布的各类规则所有规则为本协议不可分割的组成部分与协议正文具有同等法律效力如您对协议有任何疑问应向本小程序咨询您在同意所有协议条款并完成注册程序才能成为本站的正式用户您登录即代表同意用户服务协议本协议即生效对双方产生约束力只要您使用本小程序平台服务则本协议即对您产生约束届时您不应以未阅读本协议的内容或者未获得本小程序对您问询的解答等理由主张本协议无效或要求撤销本协议您确认本协议条款是处理双方权利义务的契约始终有效法律另有强制性规定或双方另有特别约定的依其规定 您承诺接受并遵守本协议的约定如果您不同意本协议的约定您应立即停止注册程序或停止使用本小程序平台服务本小程序有权根据需要不定期地制订修改本协议及/或各类规则并在本小程序平台公示不再另行单独通知用户变更后的协议和规则一经在网站公布立即生效如您不同意相关变更应当立即停止使用本小程序平台服务您继续使用本小程序平台服务的即表明您接受修订后的协议和规则</view>
@ -34,7 +34,12 @@
export default {
data(){
return {
statusHNH:uni.getStorageSync('statusHNH')
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onLoad() {

View File

@ -2,9 +2,9 @@
<view>
<!-- 状态栏 -->
<status-nav :statusBack="false" :titleVal="'分类'" :statusTitle="true"></status-nav>
<view class="disje mar-zy20" :style="{paddingTop: (statusHNH+10)+'px'}">
<view class="disje mar-zy20" :style="{paddingTop: (statusHeight+10)+'px'}">
<template v-if="cateList.length!=0">
<view class="cate-box" :style="{paddingTop:statusHNH+'px'}" style="overflow: hidden;overflow-y: scroll;">
<view class="cate-box" :style="{paddingTop:statusHeight+'px'}" style="overflow: hidden;overflow-y: scroll;">
<view class="fon26">
<view class="mar-s20 flexs" :style="{color : ccurrent==indexc ? publicColor:''}"
:class="ccurrent==indexc?'bold cateActive':'catemo'"
@ -151,7 +151,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
ccurrent:0,
cateList:[],
cateListTwo:[//
@ -191,6 +190,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -9,9 +9,9 @@
</view>
</view>
<template v-if="isNet">
<!-- <status-nav :titleVal="'首页'" :backgroudColor="publicColor" :tabcolor="'#FFFFFF'" :statusBack="false" :statusTitle="true"></status-nav> -->
<status-nav :titleVal="'首页'" :backgroudColor="publicColor" :tabcolor="'#FFFFFF'" :statusBack="false" :statusTitle="true" style="opacity: 0;"></status-nav>
<!-- 输入框 -->
<view class="input-box posiszy" :style="{top: statusHNH+'px',background:publicColor}" style="height: 60px;display: flex;align-items: center;">
<view class="input-box posiszy" :style="{top: statusHeight+'px',background:publicColor}" style="height: 60px;display: flex;align-items: center;">
<view class="disac width100">
<image class="searchImg flexs" src="/static/public/search.png" mode="aspectFill"></image>
<!-- 输入框 -->
@ -24,7 +24,7 @@
</view>
<view class="pad-x180">
<!-- 自定义轮播 -->
<view :style="{marginTop: (statusHNH+60)+'px'}">
<view :style="{marginTop: (statusHeight+60)+'px'}">
<swiper-pu :bannerList="bannerList" :isplay="isAutoPlay"></swiper-pu>
</view>
<!-- 宫格 -->
@ -95,7 +95,6 @@
data() {
return {
statusBarHeight:uni.getSystemInfoSync().statusBarHeight,
statusHNH:uni.getStorageSync('statusHNH'),
searchVal:'',//
//
gonggList:[],
@ -142,6 +141,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {
@ -225,12 +227,6 @@
} else if(uni.getStorageSync('token')=='' || uni.getStorageSync('phone_active')==0 && uni.getStorageSync('is_active')==0){
this.loginEv(options);
}
const query = wx.createSelectorQuery()
query.select('.statusHNH').boundingClientRect((rect) => {
// log('+',rect.height);
uni.setStorageSync('statusHNH',rect.height)
this.statusHNH = rect.height
}).exec()
this.checkBCate();//
this.checkKey();//
this.checkSwi();//

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'商城'" :statusBack="false" :statusTitle="true"></status-nav>
<view class="bacf shop-nav-box" :style="{marginTop:statusHNH+'px'}">
<view class="bacf shop-nav-box" :style="{marginTop:statusHeight+'px'}">
<view class="disac pad-zy30 mar-sx20 pad-s20">
<!-- 输入框 -->
<input class="width100 fon34 radius10" type="text" @confirm="searchEv" v-model="searchVal" placeholder="请输入商品名称"/>
@ -13,7 +13,7 @@
<swiper-pu :bannerList="bannerList" :isplay="isAutoPlay"></swiper-pu>
</view>
<!-- 搜索输入框 -->
<view class="search-input-box bacf shop-nav-box" :style="{top: statusHNH+'px',position:positionMode}" style="padding-top: 10rpx;left: 0;right: 0;z-index: 3;">
<view class="search-input-box bacf shop-nav-box" :style="{top: statusHeight+'px',position:positionMode}" style="padding-top: 10rpx;left: 0;right: 0;z-index: 3;">
<!-- 分类标题 -->
<view style="background: #FFFFFF;font-size: 24rpx;" class="disjbac pad-zy20 pad-s20">
<view v-for="(item,index) in shopCate" @tap="chooseShopCate(index)" :class="activeIndex==index?'activecate':'shopMo'" :style="{background:activeIndex==index?publicColor:'#F2F2F2'}" :key="index"><span>{{item}}</span></view>
@ -172,7 +172,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
activeIndex:'-1',
shopCate:['全部分类','全部医生','全部活动'],
cateTitle:'',
@ -218,6 +217,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onHide() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'活动任务'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy32 pad-x20">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy32 pad-x20">
<!-- 签到领积分 -->
<view v-for="(item,index) in activityList" :key="index" class="bacf radius20 pad20 mar-s20">
<view class="bold col3 disjbac">
@ -76,7 +76,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
isScreenshot:false,
upImg:'',
chooseIndex:0,
@ -92,6 +91,11 @@
this.checkList();
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onLoad() {},
methods: {
btnEv(index){

View File

@ -2,11 +2,11 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'优惠券'" :statusTitle="true"></status-nav>
<view id="daoh" class="bacf pad-zy40 pad-sx20 isTopf fon28 col3 disjbac" :style="{top:statusHNH+'px'}">
<view id="daoh" class="bacf pad-zy40 pad-sx20 isTopf fon28 col3 disjbac" :style="{top:statusHeight+'px'}">
<view @tap="chooseNav(indexn)" :class="isStatus==indexn?'isWen bold':''" class="posir" v-for="(itemn,indexn) in navList" :key="indexn">{{itemn}}</view>
</view>
<!-- 列表 -->
<view :style="{paddingTop: (statusHNH+chuTop+15)+'px'}" class="pad-zy32">
<view :style="{paddingTop: (statusHeight+chuTop+15)+'px'}" class="pad-zy32">
<view class="pad-x30">
<view v-if="dataList.length!=0" class="mar-x20 animated fadeInLeft" v-for="(item,index) in dataList" :key="index">
<view style="height: 200rpx;" class="disjbac posir">
@ -57,7 +57,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
chuTop:'',
navList:['未使用','已使用','可领取','已过期'],
isStatus:0,
@ -78,6 +77,11 @@
secret:''
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {
this.$toolAll.tools.isLogin()
},

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'购物车'" :statusTitle="true"></status-nav>
<view v-if="loading" :style="{paddingTop: statusHNH+'px'}" class="pad-zy30" style="padding-bottom: 150rpx;">
<view v-if="loading" :style="{paddingTop: statusHeight+'px'}" class="pad-zy30" style="padding-bottom: 150rpx;">
<view class="bacf radius20 mar-s20 disjbac pad-sx27-zy20">
<view class="bold">配送方式</view>
<view class="fon26 col3 disac">
@ -146,7 +146,7 @@
</view>
</view>
<!-- 支付成功 -->
<view v-if="isSuccess" class="posAll" :style="{top:statusHNH+'px'}" style="z-index: 3;background-color: #F5F5F5;">
<view v-if="isSuccess" class="posAll" :style="{top:statusHeight+'px'}" style="z-index: 3;background-color: #F5F5F5;">
<view class="bacf radius20 mar-s20 mar-zy20 success-box">
<image src="/static/public/pay-success.png" mode=""></image>
<view class="fon28 col3 pad-s20 pad-x40">支付成功</view>
@ -178,7 +178,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
isExpress:false,
switchQuan:true,
showQuan:false,//
@ -230,6 +229,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'积分管理'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30 fon28 col3">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30 fon28 col3">
<view class="mar-s20 bacf pad20 radius20 bold">
<view class="mar-x30">当前积分</view>
<view style="font-size: 56rpx;">{{dangScore}}</view>
@ -56,7 +56,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
activeJF:true,
dataList:[
// {title:'',time:'2021.09.06 10:30:10',num:'1'},
@ -74,6 +73,11 @@
isHave:false,
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() {
if(this.total!=this.dataList.length){
this.page++

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'自主预约'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view v-if="isLoading" :style="{paddingTop: statusHNH+'px'}" class="pad-zy30" style="padding-bottom: 160rpx;">
<view v-if="isLoading" :style="{paddingTop: statusHeight+'px'}" class="pad-zy30" style="padding-bottom: 160rpx;">
<view v-if="dataList.length!=0" class="mar-s30 bacf pad20" v-for="(item,index) in dataList" :key="index" style="border-radius: 28rpx;">
<view class="disjbac">
<view class="disac">
@ -46,7 +46,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
failColor:'#CCCCCC',//
ingColor:'#FFBE4D',//
quColor:'#FF4D4D',//
@ -69,6 +68,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() {

View File

@ -3,7 +3,7 @@
<!-- 状态栏 -->
<status-nav :backgroudColor="publicColor" :tabcolor="publicColor" :statusTitle="true" :backColor="1"></status-nav>
<image src="/static/public/member-head.png" style="position: absolute;top: 0;left: 0;right: 0;height: 436rpx;width: 100%;"></image>
<view class="mar-zy32 posir" :style="{paddingTop:statusHNH+26+'px'}">
<view class="mar-zy32 posir" :style="{paddingTop:statusHeight+26+'px'}">
<view class="radius30 posir gao mar-zy40 fon24 pad-x20" style="box-shadow: 0px 16rpx 30rpx rgba(141, 141, 141, 0.26);">
<view class="posir pad-zy20" style="z-index: 2;">
<view class="disjb">
@ -56,7 +56,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
huiList:[
{src:'/static/public/ru-hui50.png',title:'入会权益',ntype:'membership_interests'},
{src:'/static/public/birthday50.png',title:'生日礼物',ntype:'birthday'},
@ -73,6 +72,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'写日记'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy20">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy20">
<view class="mar-s30 bacf pad20" style="border-radius: 20rpx 20rpx 0 0;">
<!-- 日记标题 -->
<view class="disac mar-s20">
@ -88,7 +88,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
optionObj:'',
diary_title:'',//
diary_content:'',//
@ -111,6 +110,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'我的日记'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30" style="padding-bottom: 160rpx;">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30" style="padding-bottom: 160rpx;">
<view v-if="dataList.length!=0" class="mar-s30 bacf pad20" v-for="(item,index) in dataList" :key="index" style="border-radius: 28rpx;">
<view class="clips1">{{item.title}}</view>
<view class="mar-s20 fon24 col9">{{item.content}}</view>
@ -37,7 +37,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
optionObj:'',
dataList:[],
page:1,
@ -50,6 +49,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'地址管理'" :statusTitle="true"></status-nav>
<view :style="{paddingTop:statusHNH+'px'}" class="mar-sx20 pad-zy32" style="padding-bottom: 150rpx;">
<view :style="{paddingTop:statusHeight+'px'}" class="mar-sx20 pad-zy32" style="padding-bottom: 150rpx;">
<view v-if="loading">
<view @tap="goBack(index)" v-for="(item,index) in dataList" :key="index" class="bacf radius20 pad20 mar-x20">
<view class="pad-y20 disjbac">
@ -94,7 +94,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
dataList:[],
idEdit:false,
userName:'',
@ -114,6 +113,11 @@
isMo:0
}
},
computed: {
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {
//
this.$toolAll.tools.disableShareEv();

View File

@ -3,14 +3,14 @@
<!-- 状态栏 -->
<status-nav :titleVal="'订单管理'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<view class="isTopf bacf pad-zy30" :style="{top:statusHNH+'px'}">
<view class="isTopf bacf pad-zy30" :style="{top:statusHeight+'px'}">
<scroll-view scroll-x>
<view id="daoh" class="disjbac pad-s20">
<view @tap="chooseNav(indexn)" class="posir pad-s20 pad-zy20 pad-x30 flexs mar-y10" style="text-align: center;" :class="activeIndex==indexn?'activeD':''" :style="{color:activeIndex==indexn?'#3875F6':'#000000'}" v-for="(itemn,indexn) in statusList" :key="indexn">{{itemn}}</view>
</view>
</scroll-view>
</view>
<view :style="{paddingTop:(statusHNH+12+chuTop)+'px'}" class="pad-sx20 pad-zy32 pad-x180">
<view :style="{paddingTop:(statusHeight+12+chuTop)+'px'}" class="pad-sx20 pad-zy32 pad-x180">
<view v-if="orderList.length!=0" v-for="(item,index) in orderList" :key="index" class="radius20 bacf pad20 mar-x20 order-item-box">
<view @tap="goDetail(item.id)" class="bbot disjbac pad-x20 mar-x20"><view class="fon28 col3 bold">{{item.isShop==0?'商城订单':'积分商城订单'}}</view>
<view v-if="item.is_only==0 && item.open_one==1 && item.is_group_make==1 && item.open_one_success==0" class="fon24 col9">{{item.group_make_end_at}}</view>
@ -118,7 +118,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
chuTop:'',//
activeIndex:'',
statusList:['全部','待付款','待发货','待核验','待收货','已完成'],
@ -161,6 +160,9 @@
imgList() {
return this.$store.state.imgList
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShareAppMessage(res) {
  return false;

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'修改资料'" :whereCome="whereCome" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="fon28 pad-x20">
<view :style="{paddingTop: statusHeight+'px'}" class="fon28 pad-x20">
<view v-for="(itemd,indexd) in dataList" :key="indexd"
class="disjbac borbot mar-zy40" :class="(indexd!=1 && indexd!=5 && indexd!=6) ? 'pad-sx40':''">
<!-- 标题 -->
@ -74,7 +74,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
moHead:'/static/public/logo.png',
dataList:[
{title:'用户头像',content:'',imgSrc:'',fcon:''},
@ -115,6 +114,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'孔雀币管理'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30 fon28 col3 pad-x180">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30 fon28 col3 pad-x180">
<view class="mar-s20 bacf pad20 radius20">
<view class="mar-x30">当前孔雀币</view>
<view class="disjbac">
@ -62,7 +62,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
activeJF:true,
kNum:'',//
dataList:[
@ -87,6 +86,11 @@
limit_price:0//
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() {
if(this.total!=this.dataList.length){
this.page++

View File

@ -3,7 +3,7 @@
<!-- 状态栏 -->
<status-nav :titleVal="'积分商城'" :statusTitle="true"></status-nav>
<!-- 搜索输入框 -->
<view class="search-input-box bacf poszy jf-input-box" :style="{top: statusHNH+'px'}">
<view class="search-input-box bacf poszy jf-input-box" :style="{top: statusHeight+'px'}">
<view class="disac pad-zy30 mar-s20">
<!-- 输入框 -->
<input class="width100 fon34 radius10" @confirm="searchKey" type="text" v-model="searchVal" placeholder="请输入商品名称"/>
@ -22,7 +22,7 @@
</view>
</view>
<!-- 数据列表 -->
<view :style="{marginTop:statusHNH+titleHeight+'px'}">
<view :style="{marginTop:statusHeight+titleHeight+'px'}">
<score-list id="myComponent" :dataList="dataList" v-if="dataList.length!=0"></score-list>
<nothing-page v-if="dataList.length==0" :content="`暂无更多${searchVal}积分商品`"></nothing-page>
</view>
@ -50,7 +50,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
activeIndex:0,
shopCate:['综合','最新','兑换量','积分'],
titleHeight:'',//
@ -75,6 +74,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'自主预约'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy20">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy20">
<view class="bacf mar-s25 pad-zy20 radius20 fon28 col3 pad-x40">
<view class="disac pad-s32">
<view class="flexs mar-y20">预约类别</view>
@ -85,7 +85,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
timeCurrent:0,
dataList:[],//
dataTD:[],//
@ -114,6 +113,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'购物车'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30 pad-x160">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30 pad-x160">
<view class="bacf radius20 mar-s20 pad20" v-if="cartList.length!=0">
<view class="fon28 col3 disjbac" style="height: 43rpx;">
<view class="bold">订单信息</view>
@ -64,7 +64,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
showDel:false,
startX:'',//
endX:'',//
@ -84,6 +83,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,8 +2,8 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'签到管理'" :statusTitle="true"></status-nav>
<view v-if="loading" :style="{paddingTop: statusHNH+'px'}" class=" fon28 col3">
<view style="position: sticky;z-index: 3;background: #FFFFFF;padding-bottom: 20rpx;" :style="{top:statusHNH+'px'}">
<view v-if="loading" :style="{paddingTop: statusHeight+'px'}" class=" fon28 col3">
<view style="position: sticky;z-index: 3;background: #FFFFFF;padding-bottom: 20rpx;" :style="{top:statusHeight+'px'}">
<view class="posir">
<image lazy-load class="posia width100" src="/static/public/sign-01.png" mode="widthFix"></image>
<view class="posir tc pad-sx20" style="z-index: 5;">
@ -52,7 +52,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
timeList:[],
dataList:[
// {title:'',time:'2021.09.06 10:30:10',num:'1'},
@ -66,6 +65,11 @@
loading:false,
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() {//
if(this.total!=this.dataList.length){
this.page++

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'投诉与建议'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy20">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy20">
<view class="bacf mar-s25 pad-zy20 radius20 fon28 col3 pad-x40">
<!-- 问题类型 -->
<view class="disac pad-s32">
@ -76,7 +76,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
isShowT:false,
category:'',
tname:'',//
@ -101,6 +100,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'关于我们'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy32 pad-x180">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy32 pad-x180">
<!-- 自定义轮播 -->
<view class="mar-s20">
<swiper-pu :isplay="isAutoPlay" :bannerList="bannerList" :newHeight="'200'" :newRadius="'10'" :newBottom="'5'"></swiper-pu>
@ -50,7 +50,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
cateListTwo:[
// {title:''},
// {title:''},
@ -81,6 +80,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'详情'" :statusTitle="true"></status-nav>
<view v-if="isLoading" :style="{paddingTop: statusHNH+'px'}" class="pad-zy32 pad-x180">
<view v-if="isLoading" :style="{paddingTop: statusHeight+'px'}" class="pad-zy32 pad-x180">
<view class="fon36 col3 bold mar-sx20" style="line-height: 50rpx;">{{detailObj.title}}</view>
<view class="disac mar-x20">
<image :src="headImg" style="width: 60rpx;height: 60rpx;border-radius: 100%;" mode="widthFix"></image>
@ -66,7 +66,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
headImg:'/static/public/like.png',
name:'恒美植发',
time:'2021-07-14 08:22',
@ -91,6 +90,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShareAppMessage(res) {

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'我的二维码'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy32">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy32">
<image :src="imgSrc" class="mar-s32" style="width: 100%;" mode="widthFix"></image>
<view v-if="isBtn" @tap="sendImg" class="fon40 bold colf mar-z10 radius20 tc" style="height: 90rpx;margin: 80rpx;background-color: #38CE51;line-height: 90rpx;"></view>
</view>
@ -18,11 +18,15 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
imgSrc:'',
isBtn:false
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onShow() {
this.$toolAll.tools.isLogin()
},

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'客服查询'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30">
<view class="radius20 fon28 col3 mar-sx20">
<view class="disac">
<view class="disjbac width100 radius10 pad-zy20 xialak bacf">
@ -48,7 +48,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
dataList:[],//
showTop:false,//
keyword:'',//
@ -63,6 +62,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'客户列表'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30 pad-x20">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30 pad-x20">
<view class="radius20 fon28 col3 mar-sx20">
<view class="disac">
<view @tap="openXial" class="disjbac width100 radius10 pad-zy20 xialak posir">
@ -107,7 +107,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
category:'',
dataList:[],
showTop:false,
@ -141,6 +140,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'医生'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30">
<view class="radius20 fon28 col3 mar-s20">
<view class="disac">
<view class="disjbac width100 radius10 pad-zy20 xialak bacf posir">
@ -53,7 +53,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
dataList:[
// {imgSrc:'/static/public/doctor.png',name:'',cyear:'16',bmen:'',zcheng:'',goodAt:''},
// {imgSrc:'/static/public/doctor.png',name:'',cyear:'16',bmen:'',zcheng:'',goodAt:''},
@ -75,6 +74,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -4,13 +4,13 @@
<status-nav :titleVal="'医生'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class=" pad-x180">
<view :style="{paddingTop: statusHeight+'px'}" class=" pad-x180">
<view v-if="isLoading" class="bacf mar-s20 pad-s20 pad-x40">
<view class="pad-zy20">
<rich-text class="fon26 col3" :nodes="detailInfo"></rich-text>
</view>
</view>
<view id="daoh" :class="isTop?'isTop':''" class="isTops" :style="{top:(statusHNH-10)+'px'}">
<view id="daoh" :class="isTop?'isTop':''" class="isTops" :style="{top:(statusHeight-10)+'px'}">
<view class="bacf pad-zy32 mar-s20 pad-sx20">
<cate-pu :isaaaa="1" :newCurrent="newCurrent*1" :activeb="publicColor" @choosecateEv="chooseTwo" :newbmo="'#F2F2F2'" :isCenter="false" :newcateList="cateList"></cate-pu>
</view>
@ -38,7 +38,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('statusHNH'),
cateList:[],
dataList:[],
newCurrent:0,
@ -61,6 +60,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShareAppMessage() {

View File

@ -2,12 +2,12 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'消息'" :whereCome="comeNum" :statusTitle="true"></status-nav>
<view id="daoh" class="bacf pad-zy30 pad-sx20 isTopf fon28 col3 disja" :style="{top:statusHNH+'px'}">
<view id="daoh" class="bacf pad-zy30 pad-sx20 isTopf fon28 col3 disja" :style="{top:statusHeight+'px'}">
<view @tap="switchEv(true)" :class="isWen?'isWen bold':'col9'" class="posir">日程提醒</view>
<view @tap="switchEv(false)" :class="!isWen?'isWen bold':'col9'" class="posir">消息中心</view>
</view>
<!-- 列表 -->
<view :style="{paddingTop: (statusHNH+chuTop+15)+'px'}" class="pad-zy32">
<view :style="{paddingTop: (statusHeight+chuTop+15)+'px'}" class="pad-zy32">
<view v-if="dataList.length!=0">
<view v-for="(item,index) in dataList" :key="index">
<view class="fon24 col6 tc mar-sx50">{{item.time}}</view>
@ -38,7 +38,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('statusHNH'),
searchVal:'',//
dataList:[],
showTop:false,//
@ -52,6 +51,11 @@
comeNum:0
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {
e.scrollTop > 360 ? this.showTop = true : this.showTop = false
},

View File

@ -5,11 +5,11 @@
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view>
<view id="daoh" class="bacf pad-zy30 pad-sx20 isTopf fon28 col3 disja" :style="{top:statusHNH+'px'}">
<view id="daoh" class="bacf pad-zy30 pad-sx20 isTopf fon28 col3 disja" :style="{top:statusHeight+'px'}">
<view @tap="shopCollection(0)" :class="isWen?'isWen':''" class="posir">文章收藏</view>
<view @tap="shopCollection(1)" :class="!isWen?'isWen':''" class="posir">商品收藏</view>
</view>
<view :style="{paddingTop:(statusHNH+chuTop+15)+'px'}">
<view :style="{paddingTop:(statusHeight+chuTop+15)+'px'}">
<view v-if="isWen">
<view class="pad-zy32 mar-x20">
<cate-pu :newCurrent="newCurrent*1" :activeb="publicColor" :isCenter="false" :newbmo="'#F2F2F2'" @choosecateEv="chooseTwo" :newcateList="cateList"></cate-pu>
@ -134,7 +134,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('statusHNH'),
dataList:[],
showTop:false,//
newCurrent:0,
@ -160,6 +159,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -2,12 +2,12 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'我的分享人'" :statusTitle="true"></status-nav>
<view class="bacf posiszy navHeight" :style="{paddingTop: statusHNH+'px'}">
<view class="bacf posiszy navHeight" :style="{paddingTop: statusHeight+'px'}">
<view class="disja pad-sx30">
<view @tap="chooseye(indexye)" :style="{color:flag==indexye?publicColor:''}" v-for="(itemye,indexye) in cateList" :key="indexye">{{itemye.title}}({{itemye.num}})</view>
</view>
</view>
<view :style="{paddingTop: navH+'px'}">
<view :style="{paddingTop: (statusHeight*1+53)+'px'}">
<view v-if="dataList[flag].length!=0">
<view class="disjbac bbot pad-sx40 mar-zy50" v-for="(iteml,indexl) in dataList[flag]" :key="indexl">
<view class="disac">
@ -44,7 +44,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('statusHNH'),
flag:0,
cateList:[
{title:'一级',num:0,grade:'first'},
@ -55,7 +54,6 @@
[],
[],
],
navH:uni.getStorageSync('electric_nav_height') + 53,
page:1,
size:20,
total:'',//
@ -66,6 +64,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {
@ -86,13 +87,6 @@
this.$toolAll.tools.isLogin()
},
onLoad(options) {
if(uni.getStorageSync('navHeight')==''){
const query = wx.createSelectorQuery()
query.select('.navHeight').boundingClientRect((rect) => {
uni.setStorageSync('navHeight',rect.height)
this.navH = rect.height
}).exec()
}
this.checkShare()//
this.checkPeople()//
},

View File

@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<status-nav :titleVal="'订单详情'" :statusTitle="true"></status-nav>
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30" style="padding-bottom: 150rpx;">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30" style="padding-bottom: 150rpx;">
<!-- 订单类型 -->
<block v-if="loading">
<view class="bacf radius20 mar-s20 fon28" style="padding: 27rpx 20rpx;">
@ -120,7 +120,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
loading:false,
isExpress:true,
switchQuan:true,
@ -143,6 +142,11 @@
timerDao:null,
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onUnload() {
this.closeEv();
},

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'二维码海报'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy20 pad-x180">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy20 pad-x180">
<view class="tc mar-s20 col6 fon28">请选择海报背景后分享</view>
<view v-if="imgList.length!=0">
<view class="mar-s20 disjbac fw">
@ -43,7 +43,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
isShowT:true,
imgList:uni.getStorageSync('imgSrcList'),
imgSrc:'',
@ -61,6 +60,9 @@
tabimgList() {
return this.$store.state.imgList
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onLoad(options) {
if(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){

View File

@ -10,13 +10,13 @@
</view>
</view>
<!-- 列表 -->
<view :style="{top: statusHNH+'px'}" class="posiszy" style="height: 50px;">
<view :style="{top: statusHeight+'px'}" class="posiszy" style="height: 50px;">
<view class="bacf pad-zy32 pad-sx20">
<cate-pu @choosecateEv="choosecateEv" :activeb="invite_code!=''?'#3875F6':publicColor"
:newCurrent="cateCurrent*1" :newbmo="'#F2F2F2'" :isCenter="false" :newcateList="cateList"></cate-pu>
</view>
</view>
<view class="pad-x180" :style="{paddingTop: (statusHNH+50)+'px'}">
<view class="pad-x180" :style="{paddingTop: (statusHeight+50)+'px'}">
<view v-if="isLoading" class="pad-s30">
<view v-show="cateCurrent==isNum">
<view class="pad-zy32">
@ -122,7 +122,6 @@
return {
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
isLoading: false,
statusHNH: uni.getStorageSync('statusHNH'),
cateCurrent: 0,
cateList: [],
bannerList: [], //
@ -164,6 +163,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {
@ -299,14 +301,6 @@
this.newHeight = '200';
}
}
if (this.invite_code != '' && this.invite_code != undefined) {
const query = wx.createSelectorQuery()
query.select('.statusHNH').boundingClientRect((rect) => {
// console.log('+',rect);
this.statusHNH = rect.height
// console.log(this.statusHNH );
}).exec()
}
//
this.detailObj = res.data.detail;
if (this.detailObj.published_headimgurl != '') {

View File

@ -3,7 +3,7 @@
<!-- 状态栏 -->
<status-nav :titleVal="titleStr" :statusTitle="true"></status-nav>
<!-- 输入框 -->
<view class="search-input-box bacf" :style="{paddingTop: statusHNH+'px'}">
<view class="search-input-box bacf" :style="{paddingTop: statusHeight+'px'}">
<view class="disac pad-zy30 mar-s20">
<!-- 输入框 -->
<input @confirm="searchEv" @input="inputEv" class="width100 fon34 radius10 problem-input" type="text" v-model="searchVal" placeholder="请输入内容..."/>
@ -42,7 +42,6 @@
data() {
return {
titleStr:'',//
statusHNH:uni.getStorageSync('electric_nav_height'),
searchVal:'',//
isShowT:false,//
cateList:[//
@ -72,6 +71,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() {//

View File

@ -3,7 +3,7 @@
<!-- 状态栏 -->
<status-nav :titleVal="'搜索'" :statusTitle="true"></status-nav>
<!-- 输入框 -->
<view class="search-input-box bacf" :style="{paddingTop: statusHNH+'px'}">
<view class="search-input-box bacf" :style="{paddingTop: statusHeight+'px'}">
<view class="disac pad-zy30 mar-s20">
<!-- 输入框 -->
<input @confirm="searchEv" style="border: 2rpx solid #E0E0E0;padding: 0rpx 20rpx;height: 80rpx;line-height: 80rpx;" class="width100 fon34 radius10" type="text" v-model="searchVal" placeholder="请输入问题/病种/医生姓名"/>
@ -47,7 +47,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
searchVal:'',//
reSearchList:[//
{
@ -88,6 +87,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'分享中心'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy32">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy32">
<view class="radius20 pad20 bacf mar-s20 col3">
<view class="fon28 bold mar-x40 pad-z10">我的分享</view>
<view class="disja">
@ -39,7 +39,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
isShowT:false,
imgSrc:'/static/public/shareh.png',
dataList:[
@ -60,6 +59,9 @@
imgList() {
return this.$store.state.imgList
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onShareAppMessage(options) {
var ya = this;

View File

@ -10,13 +10,13 @@
</view>
</view>
<!-- 列表 -->
<view :style="{top: statusHNH+'px'}" v-if="isNei!=3" class="posiszy" style="height: 50px;">
<view :style="{top: statusHeight+'px'}" v-if="isNei!=3" class="posiszy" style="height: 50px;">
<view class="bacf pad-zy32 pad-sx20">
<cate-pu @choosecateEv="choosecateEv" :activeb="invite_code!=''?'#3875F6':publicColor" :newCurrent="cateCurrent*1" :newbmo="'#F2F2F2'" :isCenter="false" :newcateList="cateList"></cate-pu>
</view>
</view>
<view :style="{top: statusHNH+'px'}" v-else class="posiszy" style="height: 50px;"></view>
<view class="pad-x180" :style="{paddingTop: isNei!=3?(statusHNH+60)+'px':statusHNH+'px'}">
<view :style="{top: statusHeight+'px'}" v-else class="posiszy" style="height: 50px;"></view>
<view class="pad-x180" :style="{paddingTop: isNei!=3?(statusHeight+60)+'px':statusHeight+'px'}">
<!-- 自定义轮播 -->
<view v-if="isLoading">
<swiper-pu v-if="cateCurrent==0" :isplay="isAutoPlay" :browseP="true" :bannerList="bannerList" :newHeight="swiperHeight" :newRadius="'0'" :newBottom="'5'"></swiper-pu>
@ -177,8 +177,8 @@
<image @tap="backHome" class="posia backH" src="/static/public/back-home-02.png" mode="aspectFit"></image>
</view>
<view class="disac fon26 colf">
<view @tap="tuneUp" class="disjcac lianShare addCart-btn"><span v-if="isNei!=1"></span><span v-else></span></view>
<view @tap="tuneUp" class="disjcac lianShare mai-btn"><span v-if="isNei!=1"></span><span v-else></span></view>
<view @tap="tuneUp(0)" class="disjcac lianShare addCart-btn"><span v-if="isNei!=1"></span><span v-else></span></view>
<view @tap="tuneUp(1)" class="disjcac lianShare mai-btn"><span v-if="isNei!=1"></span><span v-else></span></view>
</view>
</view>
<!-- 分享 -->
@ -250,13 +250,11 @@
</view>
<!-- 单独购买立即拼团 -->
<view v-else class="disjbac pad-zy30 colf fon32 mar-x50">
<view @tap.stop="goGetReadyDan(2)" class="ev-btn" style="background: #C8C8C8;">单独购买</view>
<view @tap.stop="goGetReadyDan(0)" class="ev-btn bcf8">发起拼团</view>
<view @tap.stop="goGetReadyDan(2)" class="ev-btn" :style="{backgroundColor: ifAlone ? '#F85050' : '#C8C8C8'}">单独购买</view>
<view @tap.stop="goGetReadyDan(0)" class="ev-btn bcf8" :style="{backgroundColor: ifAlone ? '#C8C8C8' : ''}">发起拼团</view>
</view>
</view>
</view>
<!-- 返回顶部 -->
<!-- <back-top :showTop="showTop" @backTop="backTop"></back-top> -->
<!-- 用户信息授权手机号授权 -->
<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>
</view>
@ -279,7 +277,6 @@
return {
statusBarHeight:uni.getSystemInfoSync().statusBarHeight,
isLoading:false,
statusHNH:uni.getStorageSync('statusHNH'),
cateCurrent:0,
swiperHeight:uni.getSystemInfoSync().windowWidth,
cateList:[{
@ -345,13 +342,17 @@
orderId:'',//id
timeout:null,
shareId:'',
shareFlag:true
shareFlag:true,
ifAlone:false
}
},
computed: {
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onReachBottom() { //
@ -444,7 +445,16 @@
} else {this.$toolAll.tools.showToast('请勿重复点击');}
},
//
tuneUp(){
tuneUp(index){
if(this.isNei!=1) {
} else {
if(index==1) {
this.ifAlone = false;
} else {
this.ifAlone = true;
}
}
if(this.detailObj.is_close==0){
this.showTK = true;
} else {
@ -704,14 +714,6 @@
// if(this.category_id==item.id) this.isNum = index
})
}
if(this.invite_code!='' && this.invite_code!=undefined){
const query = wx.createSelectorQuery()
query.select('.statusHNH').boundingClientRect((rect) => {
// console.log('+',rect);
this.statusHNH = rect.height
// console.log(this.statusHNH );
}).exec()
}
//
this.detailObj = res.data.data.detail;
//

View File

@ -3,7 +3,7 @@
<!-- 状态栏 -->
<status-nav :titleVal="'商品搜索'" :statusTitle="true"></status-nav>
<!-- 输入框 -->
<view class="search-input-box bacf poszy shop-nav-box" :style="{top: statusHNH+'px'}">
<view class="search-input-box bacf poszy shop-nav-box" :style="{top: statusHeight+'px'}">
<view class="disac pad-zy30 mar-s20">
<!-- 输入框 -->
<input @confirm="checkShopList" style="border: 2rpx solid #E0E0E0;padding: 0rpx 20rpx;height: 80rpx;line-height: 80rpx;" class="width100 fon34 radius10" type="text" v-model="searchVal" placeholder="请输入商品名称"/>
@ -16,7 +16,7 @@
</view>
</view>
<!-- 数据列表 -->
<view v-if="search_result" :style="{marginTop:statusHNH+titleHeight+10+45+'px'}">
<view v-if="search_result" :style="{marginTop:statusHeight+titleHeight+10+45+'px'}">
<view v-if="dataList.length!=0" style="margin-top: -20rpx;">
<view class="pad20">
<view style="width: 48.6%;float: left;">
@ -102,7 +102,7 @@
<nothing-page v-if="dataList.length==0" :content="`暂无更多商品列表`"></nothing-page>
</view>
<!-- 历史搜索和热门搜索 -->
<view v-if="!search_result" class="pad-z30 mar-s30" :style="{marginTop:statusHNH+titleHeight+10+'px'}">
<view v-if="!search_result" class="pad-z30 mar-s30" :style="{marginTop:statusHeight+titleHeight+10+'px'}">
<cate-tu :list="reSearchList" @delev='delev'></cate-tu>
</view>
<!-- 购物车 -->
@ -132,7 +132,6 @@
},
data() {
return {
statusHNH:uni.getStorageSync('statusHNH'),
searchVal:'',//
reSearchList:[//
{
@ -184,6 +183,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -4,7 +4,7 @@
<status-nav :titleVal="'用户足迹'" :statusTitle="true"></status-nav>
<!-- 自定义二级分类 -->
<!-- 列表 -->
<view :style="{paddingTop: statusHNH+'px'}" class="pad-zy30">
<view :style="{paddingTop: statusHeight+'px'}" class="pad-zy30">
<view class="radius20 fon28 col3 mar-sx20">
<view class="disac">
<view class="disjbac width100 radius10 pad-zy20 xialak bacf">
@ -41,7 +41,6 @@
export default {
data() {
return {
statusHNH:uni.getStorageSync('electric_nav_height'),
dataList:[],//
showTop:false,//
customer_id:'',//ID
@ -56,6 +55,9 @@
//
publicColor() {
return this.$store.state.publicColor
},
statusHeight() {
return this.$store.state.statusHeight
}
},
onPageScroll(e) {

View File

@ -1,6 +1,6 @@
<template>
<div style="width:100%;overflow-x:hidden;">
<image class="" @tap="backEv" :style="{top:statusHNH/2+'px'}" src="/static/public/videoBack.png" style="width: 33rpx;height: 33rpx;position: fixed;z-index: 10;left: 20rpx;" mode="aspectFill"></image>
<image class="" @tap="backEv" :style="{top:statusHeight/2+'px'}" src="/static/public/videoBack.png" style="width: 33rpx;height: 33rpx;position: fixed;z-index: 10;left: 20rpx;" mode="aspectFill"></image>
<video id="myVideo" style="width: 100%;" :style="{height:newHeight+'px'}" autoplay="true"
:src="videoSrc" :enable-play-gesture="dans" :poster="posterSrc"
:controls="isControls" :show-center-play-btn="isCenterImg" :show-play-btn="isBottomImg" :show-fullscreen-btn="isFull"
@ -15,7 +15,6 @@
export default {
data(){
return {
statusHNH:uni.getStorageSync('statusHNH'),
newHeight:uni.getSystemInfoSync().windowHeight,
videoSrc:'',
isPlayImg:false,
@ -30,6 +29,11 @@
isFull:true//是否显示全屏按钮
}
},
computed:{
statusHeight() {
return this.$store.state.statusHeight
}
},
onReady: function (res) {
this.videoContext = uni.createVideoContext('myVideo', this)
},

View File

@ -9,9 +9,13 @@ const store = new Vuex.Store({
state:{//存放状态
'titleList':[],
'imgList':[],
'publicColor':''
'publicColor':'',
statusHeight:0
},
mutations: {
updateHeightEv(state, str) {
state.statusHeight = str;
},
updateState(state, payload) {
// 变更状态
state.titleList = payload.titleList;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long