chore:查看我的关注,加去逛逛按钮,点击售后,标题应展示“售后”,无数据时界面应展示“暂无售后记录”
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
export const lang = {
|
export const lang = {
|
||||||
//title为每个页面的标题
|
//title为每个页面的标题
|
||||||
title: '退款',
|
title: '售后',
|
||||||
checkDetail: '查看详情',
|
checkDetail: '查看详情',
|
||||||
emptyTips: '暂无退款记录'
|
emptyTips: '暂无售后记录'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<!-- 第一个列表为空时 -->
|
<!-- 第一个列表为空时 -->
|
||||||
<ns-empty v-if="collectionList.length == 0 && isShowEmpty" text="暂无关注的商品" :isIndex="false"></ns-empty>
|
<view v-if="collectionList.length == 0 && isShowEmpty" class="empty-with-btn">
|
||||||
|
<ns-empty text="暂无关注的商品" :isIndex="false"></ns-empty>
|
||||||
|
<button class="go-browse-btn" @click="goToBrowse">去逛逛</button>
|
||||||
|
</view>
|
||||||
<ns-goods-recommend ref="goodsRecommend"></ns-goods-recommend>
|
<ns-goods-recommend ref="goodsRecommend"></ns-goods-recommend>
|
||||||
</view>
|
</view>
|
||||||
</mescroll-uni>
|
</mescroll-uni>
|
||||||
@@ -40,7 +43,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import collection from './public/js/collection.js';
|
import collection from './public/js/collection.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -48,6 +50,14 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {};
|
return {};
|
||||||
},
|
},
|
||||||
|
methods: {
|
||||||
|
goToBrowse() {
|
||||||
|
// 跳转到首页
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.storeToken) {
|
if (this.storeToken) {
|
||||||
if (this.$refs.mescroll) this.$refs.mescroll.refresh();
|
if (this.$refs.mescroll) this.$refs.mescroll.refresh();
|
||||||
@@ -78,6 +88,24 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@import './public/css/collection.scss';
|
@import './public/css/collection.scss';
|
||||||
|
|
||||||
|
.empty-with-btn {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
padding-top: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.go-browse-btn {
|
||||||
|
width: 200rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
background-color: #ff2f55;
|
||||||
|
color: #ffffff;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user