Browse Source

主要修改收藏功能 pages/account/wishlist.vue

master
zhengshuiqi 3 years ago
parent
commit
9964f9d5c0
  1. 75
      common/common.scss
  2. 2
      pages/account/index.vue
  3. 5
      pages/account/wishlist.vue
  4. 8
      pages/index/index.vue

75
common/common.scss

@ -24,6 +24,7 @@
.tarbar_img image{
height: 50rpx;
width: 50rpx;
// background-color: #fff;
}
.img_m image{
@ -508,20 +509,22 @@
flex-direction: column;
font-size: 25.33rpx;
font-weight: 500;
width: 33%;
width: 48%;
margin-top: 33.33rpx;
// margin-right: 18.67rpx;
&:nth-child(3n+3){
margin-right: 0;
&:nth-child(even){
margin-left: 10px;
}
.wishlist_item_img{
width: 220rpx;
height: 220rpx;
width: 100%;
height: 180px;
// height: 220rpx;
margin-bottom: 25.33rpx;
background-color: #999999;
position: relative;
border-radius: 10rpx;
object-fit: cover;
.wishlist_item_img_goods{
width: 100%;
height: 100%;
@ -549,7 +552,6 @@
}
}
.wishlist_foot{
padding: 33.33rpx 26.67rpx;
position: fixed;
@ -1110,64 +1112,3 @@
}
}
}
.wishlist-modification{
padding: 0 2.67rpx 40rpx 10rpx;
display: flex;
// padding-top: 40rpx;
// justify-content: space-between;
flex-wrap: wrap;
.wishlist_item{
display: flex;
flex-direction: column;
font-size: 25.33rpx;
font-weight: 500;
width: 50%;
margin-top: 33.33rpx;
// margin-right: 18.67rpx;
box-sizing: border-box;
&:nth-child(2n+0){
padding-left: 10px;
}
.wishlist_item_img{
width: 100%;
height: 190px;
object-fit: cover;
margin-bottom: 20rpx;
background-color: #999999;
position: relative;
border-radius: 10rpx;
.wishlist_item_img_goods{
width: 100%;
height: 100%;
border-radius: 10rpx;
}
.select{
position: absolute;
width: 28rpx;
height: 28rpx;
top: 8rpx;
right: 8rpx;
}
}
.wishlist_item_bottom{
display: flex;
align-items: center;
padding-right: 18.67rpx;
justify-content: space-between;
.wishlist_item_bottom_icon{
width: 30rpx;
height: 30rpx;
}
}
}
}
.uni-page-refresh {
background: #000 !important;
}

2
pages/account/index.vue

@ -535,7 +535,7 @@
align-items: center;
position: absolute;
width: 100%;
top: 18%;
top: 15.5%;
// left: 15%;
// z-index: 1111;

5
pages/account/wishlist.vue

@ -15,8 +15,8 @@
<view class="wishlist_item_bottom">
<text style="margin-left: 4px;">US${{item.promote_price?item.promote_price:item.shop_price}}</text>
<image src="../../static/icon/cat_white.png" mode="" style="margin-right: 0px;" class="wishlist_item_bottom_icon" @click="isCart=true,getDate(item)"></image>
<text>US${{item.promote_price?item.promote_price:item.shop_price}}</text>
<image src="../../static/icon/cat_white.png" mode="" class="wishlist_item_bottom_icon" @click="isCart=true,getDate(item)"></image>
<!-- <text>US${{item.promote_price?item.promote_price:item.shop_price}}</text> -->
<!-- <image src="../../static/icon/cat_white.png" mode="" class="wishlist_item_bottom_icon" @click="isCart=true,getDate(item)"></image> -->
<!-- <image src="../../static/img/delete.png" mode="" class="wishlist_item_bottom_icon" @click="removeL(item)"> --></image>
</view>
</view>
@ -939,4 +939,5 @@
line-height: 200rpx;
text-align: center;
}
</style>

8
pages/index/index.vue

@ -204,8 +204,9 @@
// },
onLoad() {
let that = this;
let that = this; //
let s = 0;
// IOS
let time = setInterval(()=>{
console.log('6666')
uni.getNetworkType({
@ -213,8 +214,8 @@
console.log(res.networkType,s);
if(res.networkType !== 'none'){
that.typee = 2;
// clearInterval(time);
// console.log('..')
clearInterval(time);
console.log('清楚网络..')
let home = 'HOME'
this.getIndex(home)
this.isLogin = uni.getStorageSync('isLogin')
@ -240,6 +241,7 @@
})
s++;
},5000);
//
},
mounted() {

Loading…
Cancel
Save