master
chen 2021-09-03 15:12:07 +08:00
parent b41f15c2b1
commit a5f42a925e
26 changed files with 46 additions and 37 deletions

View File

@ -2,12 +2,12 @@
<view>
<view style="height: 56px;font-size: 10px;border-top: 1rpx solid #FFFFFF;background-color: #FFFFFF;
position: fixed;bottom: 0;left: 0;right: 0;display: flex;justify-content: space-around;align-items: center;z-index: 10;">
<view v-if="user_type=='personal' && index!=2" :style="{width:(user_type=='personal')?'33.3%':'25%'}" @tap="choosefoot(index)" v-for="(item,index) in tabArr" :key="index" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
<view v-if="userType=='personal' && index!=2" :style="{width:(userType=='personal')?'33.3%':'25%'}" @tap="choosefoot(index)" v-for="(item,index) in tabArr" :key="index" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
<image v-if="current==index" :src="item.selectedIconPath" style="width: 22px;height: 22px;"></image>
<image v-else :src="item.iconPath" style="width: 22px;height: 22px;"></image>
<view :class="current==index?'footactive':'footmo'" style="margin-top: 4px;">{{item.text}}</view>
</view>
<view v-if="user_type!='personal'" @tap="choosefoot(index)" v-for="(item,index) in tabArr" :key="index" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
<view v-if="userType!='personal'" @tap="choosefoot(index)" v-for="(item,index) in tabArr" :key="index" style="display: flex;justify-content: center;flex-direction: column;align-items: center;">
<image v-if="current==index" :src="item.selectedIconPath" style="width: 22px;height: 22px;"></image>
<image v-else :src="item.iconPath" style="width: 22px;height: 22px;"></image>
<view :class="current==index?'footactive':'footmo'" style="margin-top: 4px;">{{item.text}}</view>
@ -22,6 +22,10 @@
current:{
type:Number,
default:0
},
userType:{
type:String,
default:uni.getStorageSync('user_type')
}
},
data() {
@ -53,7 +57,6 @@
},
],
// current:0
user_type:uni.getStorageSync('user_type')
};
},
methods:{

View File

@ -145,7 +145,7 @@
uni.setStorageSync('is_active',res.data.is_active)//
uni.setStorageSync('user_type',res.data.user_type)//
setTimeout(()=>{
uni.switchTab({
uni.reLaunch({
url:'/pages/tabbar/homePage/homePage'
})
_this.$toolAll.tools.showToast('登录成功','success')

View File

@ -33,7 +33,7 @@
</swiper>
</view>
<!-- 公告 -->
<view class="margin-sx20 disac zIn4" style="position: relative;">
<view v-if="user_type!='personal'" class="margin-sx20 disac zIn4" style="position: relative;">
<view class="disac flexs">
<image class="gimg" src="/static/img/pageh/gonggao.png" mode=""></image>
<view class="fon26 gtitle margin-z10"><i>小程序公告:</i></view>
@ -49,17 +49,17 @@
</view>
<!-- 热门产品限时补贴 -->
<view class="discc width100 textc" style="background: url(https://s3.jpg.cm/2021/07/22/I6P1IW.png) no-repeat;background-size: 100% 100%;">
<view class="fon36 colorb bold margin-s40 disbcac">
<view v-if="user_type!='personal'" class="fon36 colorb bold margin-s40 disbcac">
<image class="reba" src="/static/img/pageh/rebefore.png"></image>
<view class="margin-zy20">厂家送红包 购100送70</view>
<image class="reba" src="/static/img/pageh/reaffter.png"></image>
</view>
<view class="fon24 colorb margin-sx20 discc">
<view v-if="user_type!='personal'" class="fon24 colorb margin-s20 discc">
<view class="zIn1">红包可提现也可分次购货</view>
<view class="tiao"></view>
</view>
<view class="fon24 margin-x20" style="color: rgba(255,255,255,.7);">商城产品低于市场价70%红包可选择长期分红更划</view>
<view class="reboxre margin-zy20 margin-x20" style="width: 94%;" v-for="(itemre,indexre) in zanReArrImg" :key="indexre">
<view v-if="user_type!='personal'" class="fon24 margin-s20" style="color: rgba(255,255,255,.7);">70%</view>
<view class="reboxre margin-zy20 margin-sx20" style="width: 94%;" v-for="(itemre,indexre) in zanReArrImg" :key="indexre">
<image class="radius10" @tap="goReDetail(itemre.link)" style="width: 100%;height: 342rpx;" mode="aspectFill" :src="itemre.src"></image>
</view>
<!-- <view class="radius10 disba rebox margin-zy20 margin-x20" v-for="(itemre,indexre) in reArr" :key="indexre">
@ -94,7 +94,7 @@
<backTop :showTop="showTop" @backTop="backTop"></backTop>
<!-- <footTab></footTab> -->
</view>
<foot-tab></foot-tab>
<foot-tab :userType="user_type"></foot-tab>
</view>
</template>
@ -140,6 +140,7 @@
isZanw:true,
statusHNH:uni.getStorageSync('statusHNH'),
pageShow:false,
user_type:uni.getStorageSync('user_type')
};
},
onReachBottom() {
@ -171,6 +172,7 @@
uni.setStorageSync('expire',res.data.expire)//
uni.setStorageSync('is_active',res.data.is_active)//
uni.setStorageSync('user_type',res.data.user_type)//
this.user_type = res.data.user_type
this.checkList()//
}
} else {

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

View File

@ -64,6 +64,5 @@
"usingComponents": {
"status-nav": "/components/status-nav",
"foot-tab": "/components/footTab"
},
"sitemapLocation": "sitemap.json"
}
}

View File

@ -137,7 +137,11 @@ var _default =
props: {
current: {
type: Number,
default: 0 } },
default: 0 },
userType: {
type: String,
default: uni.getStorageSync('user_type') } },
data: function data() {
@ -165,12 +169,11 @@ var _default =
'pagePath': 'pages/tabbar/my/my',
'iconPath': '../static/img/tabbar/mym.png',
'selectedIconPath': '../static/img/tabbar/my.png',
'text': '我的' }],
'text': '我的' }]
// current:0
user_type: uni.getStorageSync('user_type') };
};
},
methods: {
choosefoot: function choosefoot(index) {

View File

@ -1 +1 @@
<view><view style="height:56px;font-size:10px;border-top:1rpx solid #FFFFFF;background-color:#FFFFFF;position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;z-index:10;"><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{user_type=='personal'&&index!=2}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="{{'display:flex;justify-content:center;flex-direction:column;align-items:center;'+('width:'+(user_type=='personal'?'33.3%':'25%')+';')}}" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{user_type!='personal'}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="display:flex;justify-content:center;flex-direction:column;align-items:center;" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block></view></view>
<view><view style="height:56px;font-size:10px;border-top:1rpx solid #FFFFFF;background-color:#FFFFFF;position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;z-index:10;"><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{userType=='personal'&&index!=2}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="{{'display:flex;justify-content:center;flex-direction:column;align-items:center;'+('width:'+(userType=='personal'?'33.3%':'25%')+';')}}" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block><block wx:for="{{tabArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{userType!='personal'}}"><view data-event-opts="{{[['tap',[['choosefoot',[index]]]]]}}" style="display:flex;justify-content:center;flex-direction:column;align-items:center;" bindtap="__e"><block wx:if="{{current==index}}"><image style="width:22px;height:22px;" src="{{item.selectedIconPath}}"></image></block><block wx:else><image style="width:22px;height:22px;" src="{{item.iconPath}}"></image></block><view class="{{[current==index?'footactive':'footmo']}}" style="margin-top:4px;">{{item.text}}</view></view></block></block></view></view>

View File

@ -277,7 +277,7 @@ var _default =
uni.setStorageSync('is_active', res.data.is_active); //是否第一次授权
uni.setStorageSync('user_type', res.data.user_type); //权限
setTimeout(function () {
uni.switchTab({
uni.reLaunch({
url: '/pages/tabbar/homePage/homePage' });
_this.$toolAll.tools.showToast('登录成功', 'success');

View File

@ -277,7 +277,8 @@ __webpack_require__.r(__webpack_exports__);
total: '',
isZanw: true,
statusHNH: uni.getStorageSync('statusHNH'),
pageShow: false };
pageShow: false,
user_type: uni.getStorageSync('user_type') };
},
onReachBottom: function onReachBottom() {
@ -309,6 +310,7 @@ __webpack_require__.r(__webpack_exports__);
uni.setStorageSync('expire', res.data.expire); //缓存失效时间(时间戳格式)
uni.setStorageSync('is_active', res.data.is_active); //是否第一次授权
uni.setStorageSync('user_type', res.data.user_type); //权限
_this2.user_type = res.data.user_type;
_this2.checkList(); //商品列表查询事件
}
} else {

View File

@ -1 +1 @@
<view><view class="posir"><image class="posia" style="width:100%;" src="/static/img/pageh/headb.png"></image><view class="posi-tzy zIn5 statusHNH" style="background:url(https://s3.jpg.cm/2021/07/22/I6PtxL.png) fixed top;background-size:100%;"><view style="{{'height:'+(statusBarHeight+'px')+';'}}"></view><view class="padding-z20 disac width100 navBarH" style="{{'background:'+(backgroudColor)+';'}}"><view class="tab-title titlec" style="color:#ffffff;">登锐商城</view></view></view><view class="margin-zy20 disba" style="{{'padding-top:'+(statusHNH+'px')+';'}}"><view class="searchRadius disac ptwo-input-box"><image class="searcht margin-z20" src="/static/img/pageh/sousuo.png"></image><input class="margin-z10 fon26 colorh width100" disabled="{{true}}" placeholder="搜索的内容" placeholder-class="searchpla" type="text" data-event-opts="{{[['tap',[['inputFocus',['$event']]]]]}}" bindtap="__e"/></view></view><view class="margin20"><view class="radius10"><swiper class="banner-box" indicator-color="#f9f9f9" indicator-active-color="#1c4593" indicator-dots="{{true}}" easing-function="easeOutCubic" autoplay="{{true}}" interval="{{3000}}" circular="{{true}}" duration="{{1000}}"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{bannerList.length!=0}}"><swiper-item><view class="swiper-item"><image class="width100 banner-box radius10" src="{{item.src}}" mode="aspectFill"></image></view></swiper-item></block></block></swiper></view><view class="margin-sx20 disac zIn4" style="position:relative;"><view class="disac flexs"><image class="gimg" src="/static/img/pageh/gonggao.png" mode></image><view class="fon26 gtitle margin-z10"><view class="_i">小程序公告:</view></view></view><view class="disba width100"><view class="fon24 color6 margin-zy20 width100"><lw-notice vue-id="732ddc22-1" list="{{advanceListTwo}}" data-event-opts="{{[['^dangGao',[['dangGao']]]]}}" bind:dangGao="__e" bind:__l="__l"></lw-notice></view><view data-event-opts="{{[['tap',[['goNotices',['$event']]]]]}}" class="fon24 color9 margin-y20 flexs" bindtap="__e">更多</view></view></view></view><view class="discc width100 textc" style="background:url(https://s3.jpg.cm/2021/07/22/I6P1IW.png) no-repeat;background-size:100% 100%;"><view class="fon36 colorb bold margin-s40 disbcac"><image class="reba" src="/static/img/pageh/rebefore.png"></image><view class="margin-zy20">厂家送红包 购100送70</view><image class="reba" src="/static/img/pageh/reaffter.png"></image></view><view class="fon24 colorb margin-sx20 discc"><view class="zIn1">红包可提现,也可分次购货</view><view class="tiao"></view></view><view class="fon24 margin-x20" style="color:rgba(255,255,255,.7);">商城产品低于市场价70%,红包可选择长期分红更划算</view><block wx:for="{{zanReArrImg}}" wx:for-item="itemre" wx:for-index="indexre" wx:key="indexre"><view class="reboxre margin-zy20 margin-x20" style="width:94%;"><image class="radius10" style="width:100%;height:342rpx;" mode="aspectFill" src="{{itemre.src}}" data-event-opts="{{[['tap',[['goReDetail',['$0'],[[['zanReArrImg','',indexre,'link']]]]]]]}}" bindtap="__e"></image></view></block></view><view class="width100 padding-x120"><scroll-view style="height:80rpx;" scroll-x="true"><view class="disba margin20 catebox"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['chooseCate',['$0',index],[[['cateList','',index,'id']]]]]]]}}" class="{{['disac','flexs',current==index?'pactive':'pmo']}}" bindtap="__e">{{item.name}}<view class="pxian"></view></view></block></view></scroll-view><block wx:if="{{dataList.length!=0}}"><twocolu-list vue-id="732ddc22-2" dataList="{{dataList}}" bind:__l="__l"></twocolu-list></block><block wx:if="{{gisok}}"><view class="margin-sx26 textc color9 fon26">{{gcontent}}</view></block></view><back-top vue-id="732ddc22-3" showTop="{{showTop}}" data-event-opts="{{[['^backTop',[['backTop']]]]}}" bind:backTop="__e" bind:__l="__l"></back-top></view><foot-tab vue-id="732ddc22-4" bind:__l="__l"></foot-tab></view>
<view><view class="posir"><image class="posia" style="width:100%;" src="/static/img/pageh/headb.png"></image><view class="posi-tzy zIn5 statusHNH" style="background:url(https://s3.jpg.cm/2021/07/22/I6PtxL.png) fixed top;background-size:100%;"><view style="{{'height:'+(statusBarHeight+'px')+';'}}"></view><view class="padding-z20 disac width100 navBarH" style="{{'background:'+(backgroudColor)+';'}}"><view class="tab-title titlec" style="color:#ffffff;">登锐商城</view></view></view><view class="margin-zy20 disba" style="{{'padding-top:'+(statusHNH+'px')+';'}}"><view class="searchRadius disac ptwo-input-box"><image class="searcht margin-z20" src="/static/img/pageh/sousuo.png"></image><input class="margin-z10 fon26 colorh width100" disabled="{{true}}" placeholder="搜索的内容" placeholder-class="searchpla" type="text" data-event-opts="{{[['tap',[['inputFocus',['$event']]]]]}}" bindtap="__e"/></view></view><view class="margin20"><view class="radius10"><swiper class="banner-box" indicator-color="#f9f9f9" indicator-active-color="#1c4593" indicator-dots="{{true}}" easing-function="easeOutCubic" autoplay="{{true}}" interval="{{3000}}" circular="{{true}}" duration="{{1000}}"><block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{bannerList.length!=0}}"><swiper-item><view class="swiper-item"><image class="width100 banner-box radius10" src="{{item.src}}" mode="aspectFill"></image></view></swiper-item></block></block></swiper></view><block wx:if="{{user_type!='personal'}}"><view class="margin-sx20 disac zIn4" style="position:relative;"><view class="disac flexs"><image class="gimg" src="/static/img/pageh/gonggao.png" mode></image><view class="fon26 gtitle margin-z10"><view class="_i">小程序公告:</view></view></view><view class="disba width100"><view class="fon24 color6 margin-zy20 width100"><lw-notice vue-id="732ddc22-1" list="{{advanceListTwo}}" data-event-opts="{{[['^dangGao',[['dangGao']]]]}}" bind:dangGao="__e" bind:__l="__l"></lw-notice></view><view data-event-opts="{{[['tap',[['goNotices',['$event']]]]]}}" class="fon24 color9 margin-y20 flexs" bindtap="__e">更多</view></view></view></block></view><view class="discc width100 textc" style="background:url(https://s3.jpg.cm/2021/07/22/I6P1IW.png) no-repeat;background-size:100% 100%;"><block wx:if="{{user_type!='personal'}}"><view class="fon36 colorb bold margin-s40 disbcac"><image class="reba" src="/static/img/pageh/rebefore.png"></image><view class="margin-zy20">厂家送红包 购100送70</view><image class="reba" src="/static/img/pageh/reaffter.png"></image></view></block><block wx:if="{{user_type!='personal'}}"><view class="fon24 colorb margin-s20 discc"><view class="zIn1">红包可提现,也可分次购货</view><view class="tiao"></view></view></block><block wx:if="{{user_type!='personal'}}"><view class="fon24 margin-s20" style="color:rgba(255,255,255,.7);">商城产品低于市场价70%,红包可选择长期分红更划算</view></block><block wx:for="{{zanReArrImg}}" wx:for-item="itemre" wx:for-index="indexre" wx:key="indexre"><view class="reboxre margin-zy20 margin-sx20" style="width:94%;"><image class="radius10" style="width:100%;height:342rpx;" mode="aspectFill" src="{{itemre.src}}" data-event-opts="{{[['tap',[['goReDetail',['$0'],[[['zanReArrImg','',indexre,'link']]]]]]]}}" bindtap="__e"></image></view></block></view><view class="width100 padding-x120"><scroll-view style="height:80rpx;" scroll-x="true"><view class="disba margin20 catebox"><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['chooseCate',['$0',index],[[['cateList','',index,'id']]]]]]]}}" class="{{['disac','flexs',current==index?'pactive':'pmo']}}" bindtap="__e">{{item.name}}<view class="pxian"></view></view></block></view></scroll-view><block wx:if="{{dataList.length!=0}}"><twocolu-list vue-id="732ddc22-2" dataList="{{dataList}}" bind:__l="__l"></twocolu-list></block><block wx:if="{{gisok}}"><view class="margin-sx26 textc color9 fon26">{{gcontent}}</view></block></view><back-top vue-id="732ddc22-3" showTop="{{showTop}}" data-event-opts="{{[['^backTop',[['backTop']]]]}}" bind:backTop="__e" bind:__l="__l"></back-top></view><foot-tab vue-id="732ddc22-4" userType="{{user_type}}" bind:__l="__l"></foot-tab></view>