Browse Source

样式修改

master
zhengshuiqi 3 years ago
parent
commit
3ac26c6350
  1. 6
      pages/category/index.vue
  2. 22
      pages/index/index.vue
  3. 3
      pages/login/index.vue
  4. 2
      pages/shippingCart/index.vue

6
pages/category/index.vue

@ -415,7 +415,7 @@
display: flex;
overflow: hidden;
// margin-top: 166rpx;
margin-top: 78px;
margin-top: 77px;
}
.category_left{
height: 100%;
@ -561,5 +561,7 @@
.uni-badge--x {
display: flex;
}
.status_bar {
height: 34px;
}
</style>

22
pages/index/index.vue

@ -68,6 +68,7 @@
page_size: 100
},
Swiper_H: 826,
Swiper_Hb: 0,
open_img: [],
indicatorDots: true,
autoplay: true,
@ -203,10 +204,19 @@
onLoad() {
let that = this;
let s = 0;
// if (res.networkType == 'none') {
// that.typee = 1;
// uni.showToast({
// title: 'Please connect to the network',
// icon: 'exception',
// duration: 850
// });
// }
let time = setInterval(() => {
uni.getNetworkType({
success: (res) => {
console.log(res.networkType, s);
if (res.networkType !== 'none') {
that.typee = 2;
clearInterval(time);
@ -229,7 +239,6 @@
// color: "#999",
});
}
}
}
})
@ -518,7 +527,7 @@
if (res.error == 0) {
this.indexDate = res.data
console.log(this.indexDate,'首页配置')
console.log(this.indexDate, '首页配置')
this.len = 0
let height = 0
this.indexDate.zones.map(item => {
@ -619,7 +628,8 @@
let url
if (res.error == 0) {
if (res.data.page_code == 'HOMESALEICON') {
let src = 'https://www.dopeplus.com/images/mapp_customized/202211/1667961215280331818.png'
let src =
'https://www.dopeplus.com/images/mapp_customized/202211/1667961215280331818.png'
if (src == res.data.zones[0].blocks[0].block_pic) {
this.tarbar[2].src = '../../static/img/min.png'
} else {
@ -1269,7 +1279,7 @@
</uni-swiper-dot>
<!-- ONEPIC -->
<view class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'">
<!-- class="discount page_padding" -->
<!-- class="discount page_padding" -->
<image :src="item.blocks[0].block_pic"
:style="{height:(item.zone_code=='ONEPIC')?item.zone_column+'rpx':''}" mode=""
@click="imgTo(item.blocks[0])"></image>
@ -1951,6 +1961,7 @@
// color: #484848;
color: #fff;
width: 100%;
// display: flex;
// height: 100rpx;
// ::-webkit-scrollbar {
@ -2024,6 +2035,7 @@
}
.grid_swiper {
// height: 380rpx;
// margin: 0 10rpx 0 10rpx;
.grid_content {
@ -2345,6 +2357,7 @@
flex-direction: row;
align-items: center;
margin: 0 10rpx 0 10rpx;
// width: 80vw;
// height:400rpx ;
.best_one {
@ -2380,6 +2393,7 @@
font-size: 26rpx;
background-color: #000;
color: white;
// padding-bottom: 50rpx;
.uni-view {}

3
pages/login/index.vue

@ -207,7 +207,8 @@
uni.setStorageSync('isLogin',1)
uni.setStorageSync('user_info',res.data)
uni.switchTab({
url:'../index/index'
delta: 1
// url:'../index/index'
})
}else{
if(res.data){

2
pages/shippingCart/index.vue

@ -1504,6 +1504,8 @@
height: 14px;
object-fit: cover;
margin-right: 6rpx;
// padding: 20px 0px;
box-sizing: border-box;
}
.info_name {

Loading…
Cancel
Save