部分bug修复

master
Eratosici 4 years ago
parent ac5d0c6705
commit c9b3aa1ee9

@ -230,10 +230,10 @@ line-height:44rpx;
margin: auto; margin: auto;
height: auto; height: auto;
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
padding:0 20rpx; /* padding:0 20rpx; */
display: flex; display: flex;
flex-wrap:wrap; flex-wrap:wrap;
justify-content: space-around; /* justify-content: space-around; */
/* padding: 10rpx 0 0 0; */ /* padding: 10rpx 0 0 0; */
} }
@ -253,6 +253,7 @@ line-height:44rpx;
width: 220rpx; width: 220rpx;
background: #fff; background: #fff;
display: inline-block; display: inline-block;
margin: 0 8rpx;
margin-bottom:20rpx; margin-bottom:20rpx;
box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2); box-shadow: 0rpx 6rpx 8rpx rgba(58,134,185,0.2);
} }

@ -43,7 +43,7 @@
</view> </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> <image src="/static/images/icon/horn.png" class="hornpng"></image>
<swiper :vertical="true" :autoplay="true" :circular="true" duration="1000" class="swiper-cont"> <swiper :vertical="true" :autoplay="true" :circular="true" duration="1000" class="swiper-cont">
<block v-for="(item, index) in news" :key="index"> <block v-for="(item, index) in news" :key="index">
@ -339,6 +339,7 @@ export default {
this.updata = true this.updata = true
this.getTagProd(res[i].id, i); this.getTagProd(res[i].id, i);
} }
console.log('taglist:', this.taglist)
} }
}; };
http.request(params); http.request(params);

@ -405,19 +405,11 @@ export default {
}, },
callBack: res => { callBack: res => {
console.log('res:', res)
if (!res) {
uni.hideLoading() uni.hideLoading()
uni.showModal({ if (!res) {
title: '提示', setTimeout(() => {
content: '商品信息异常',
showCancel: false,
confirmText: '确定',
success(res) {
//
uni.navigateBack() uni.navigateBack()
} }, 1000);
});
return return
} }
//console.log(res); //console.log(res);

@ -31,3 +31,11 @@
margin-top: 10rpx; margin-top: 10rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.recent-news .empty {
display: block;
padding-top: 200rpx;
color: #999;
font-size: 26rpx;
text-align: center;
}

@ -10,6 +10,7 @@
</view> </view>
</view> </view>
</block> </block>
<view v-if="!news || !news.length" class="empty"></view>
</view> </view>
</view> </view>
</template> </template>

@ -57,6 +57,9 @@ export default {
isTop: 0 isTop: 0
}, },
dataRule: { dataRule: {
title: [
{required: true, message: '公告标题不能为空', trigger: 'blur'}
]
} }
} }
}, },

Loading…
Cancel
Save