Skip to content

Commit

Permalink
部分bug修复
Browse files Browse the repository at this point in the history
  • Loading branch information
Eratosici authored and Eratosici committed Dec 21, 2021
1 parent ac5d0c6 commit c9b3aa1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
5 changes: 3 additions & 2 deletions mall4uni/pages/index/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ line-height:44rpx;
margin: auto;
height: auto;
width: calc(100% - 40rpx);
padding:0 20rpx;
/* padding:0 20rpx; */
display: flex;
flex-wrap:wrap;
justify-content: space-around;
/* justify-content: space-around; */
/* padding: 10rpx 0 0 0; */
}

Expand All @@ -253,6 +253,7 @@ line-height:44rpx;
width: 220rpx;
background: #fff;
display: inline-block;
margin: 0 8rpx;
margin-bottom:20rpx;
box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2);
}
Expand Down
3 changes: 2 additions & 1 deletion mall4uni/pages/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</view>

<!-- 消息播放 -->
<view class="message-play" @tap="onNewsPage">
<view v-if="news && news.length" class="message-play" @tap="onNewsPage">
<image src="/static/images/icon/horn.png" class="hornpng"></image>
<swiper :vertical="true" :autoplay="true" :circular="true" duration="1000" class="swiper-cont">
<block v-for="(item, index) in news" :key="index">
Expand Down Expand Up @@ -339,6 +339,7 @@ export default {
this.updata = true
this.getTagProd(res[i].id, i);
}
console.log('taglist:', this.taglist)
}
};
http.request(params);
Expand Down
16 changes: 4 additions & 12 deletions mall4uni/pages/prod/prod.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,19 +405,11 @@ export default {
},
callBack: res => {
console.log('res:', res)
uni.hideLoading()
if (!res) {
uni.hideLoading()
uni.showModal({
title: '提示',
content: '商品信息异常',
showCancel: false,
confirmText: '确定',
success(res) {
// 返回上一页
uni.navigateBack()
}
});
setTimeout(() => {
uni.navigateBack()
}, 1000);
return
}
//console.log(res);
Expand Down
8 changes: 8 additions & 0 deletions mall4uni/pages/recent-news/recent-news.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@
margin-top: 10rpx;
margin-bottom: 20rpx;
}

.recent-news .empty {
display: block;
padding-top: 200rpx;
color: #999;
font-size: 26rpx;
text-align: center;
}
1 change: 1 addition & 0 deletions mall4uni/pages/recent-news/recent-news.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
</view>
</view>
</block>
<view v-if="!news || !news.length" class="empty">暂无数据</view>
</view>
</view>
</template>
Expand Down
3 changes: 3 additions & 0 deletions mall4v/src/views/modules/shop/notice-add-or-update.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export default {
isTop: 0
},
dataRule: {
title: [
{required: true, message: '公告标题不能为空', trigger: 'blur'}
]
}
}
},
Expand Down

0 comments on commit c9b3aa1

Please sign in to comment.