Browse Source

样式修改

master
zhengshuiqi 3 years ago
parent
commit
3ac26c6350
  1. 6
      pages/category/index.vue
  2. 30
      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; display: flex;
overflow: hidden; overflow: hidden;
// margin-top: 166rpx; // margin-top: 166rpx;
margin-top: 78px; margin-top: 77px;
} }
.category_left{ .category_left{
height: 100%; height: 100%;
@ -561,5 +561,7 @@
.uni-badge--x { .uni-badge--x {
display: flex; display: flex;
} }
.status_bar {
height: 34px;
}
</style> </style>

30
pages/index/index.vue

@ -68,6 +68,7 @@
page_size: 100 page_size: 100
}, },
Swiper_H: 826, Swiper_H: 826,
Swiper_Hb: 0,
open_img: [], open_img: [],
indicatorDots: true, indicatorDots: true,
autoplay: true, autoplay: true,
@ -201,12 +202,21 @@
}); */ }); */
// }, // },
onLoad() { onLoad() {
let that = this; let that = this;
let s = 0; 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(() => { let time = setInterval(() => {
uni.getNetworkType({ uni.getNetworkType({
success: (res) => { success: (res) => {
console.log(res.networkType, s); console.log(res.networkType, s);
if (res.networkType !== 'none') { if (res.networkType !== 'none') {
that.typee = 2; that.typee = 2;
clearInterval(time); clearInterval(time);
@ -229,7 +239,6 @@
// color: "#999", // color: "#999",
}); });
} }
} }
} }
}) })
@ -518,7 +527,7 @@
if (res.error == 0) { if (res.error == 0) {
this.indexDate = res.data this.indexDate = res.data
console.log(this.indexDate,'首页配置') console.log(this.indexDate, '首页配置')
this.len = 0 this.len = 0
let height = 0 let height = 0
this.indexDate.zones.map(item => { this.indexDate.zones.map(item => {
@ -619,7 +628,8 @@
let url let url
if (res.error == 0) { if (res.error == 0) {
if (res.data.page_code == 'HOMESALEICON') { 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) { if (src == res.data.zones[0].blocks[0].block_pic) {
this.tarbar[2].src = '../../static/img/min.png' this.tarbar[2].src = '../../static/img/min.png'
} else { } else {
@ -1002,7 +1012,7 @@
}, },
getimgheight2(item) { getimgheight2(item) {
const that = this const that = this
// //
uni.getImageInfo({ uni.getImageInfo({
src: item, src: item,
@ -1016,7 +1026,7 @@
return this.Swiper_Hb return this.Swiper_Hb
} }
}) })
}, },
// //
@ -1269,7 +1279,7 @@
</uni-swiper-dot> </uni-swiper-dot>
<!-- ONEPIC --> <!-- ONEPIC -->
<view class="ONEPIC" v-if="item.zone_code=='ONEPIC' && item.zone_status=='NORMAL'"> <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" <image :src="item.blocks[0].block_pic"
:style="{height:(item.zone_code=='ONEPIC')?item.zone_column+'rpx':''}" mode="" :style="{height:(item.zone_code=='ONEPIC')?item.zone_column+'rpx':''}" mode=""
@click="imgTo(item.blocks[0])"></image> @click="imgTo(item.blocks[0])"></image>
@ -1951,6 +1961,7 @@
// color: #484848; // color: #484848;
color: #fff; color: #fff;
width: 100%; width: 100%;
// display: flex; // display: flex;
// height: 100rpx; // height: 100rpx;
// ::-webkit-scrollbar { // ::-webkit-scrollbar {
@ -2024,6 +2035,7 @@
} }
.grid_swiper { .grid_swiper {
// height: 380rpx; // height: 380rpx;
// margin: 0 10rpx 0 10rpx; // margin: 0 10rpx 0 10rpx;
.grid_content { .grid_content {
@ -2345,6 +2357,7 @@
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
margin: 0 10rpx 0 10rpx; margin: 0 10rpx 0 10rpx;
// width: 80vw; // width: 80vw;
// height:400rpx ; // height:400rpx ;
.best_one { .best_one {
@ -2380,6 +2393,7 @@
font-size: 26rpx; font-size: 26rpx;
background-color: #000; background-color: #000;
color: white; color: white;
// padding-bottom: 50rpx; // padding-bottom: 50rpx;
.uni-view {} .uni-view {}
@ -2601,4 +2615,4 @@
// width: 100%; // width: 100%;
// } // }
// } // }
</style> </style>

3
pages/login/index.vue

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

2
pages/shippingCart/index.vue

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

Loading…
Cancel
Save