Merge branch 'master' of http://git.luyuan.tk/luyuan/deming into xbx

This commit is contained in:
2020-07-31 09:40:18 +08:00
28 changed files with 795 additions and 393 deletions

View File

@@ -118,19 +118,11 @@ export default {
// latitude,
}).then((res)=>{
if (res.errCode == 0) {
uni.redirectTo({
url: '/pageE/more/Address'
});
// this.$refs.uToast.show({
// title: res.message,
// type: 'success',
// // url: '/pageE/more/Address',
// callback() {
// uni.redirectTo({
// url: '/pageE/more/Address'
// });
// }
// })
this.$refs.uToast.show({
title: res.message,
type: 'success',
back: true,
})
} else {
this.showToast(res.message, 'warning');
}

View File

@@ -1,13 +1,13 @@
<template>
<view class="comment">
<view class="user-info">
<image src="@/pageE/static/mine/23.png" class="user-avatar"></image>
<view class="user-name">***</view>
<image :src="info.member_avatar" class="user-avatar"></image>
<view class="user-name">{{ info.member_nickname }}</view>
</view>
<view class="user-comment">
<view class="text u-line-2">宝贝收到了和卖家描述的一样,质量不错,很漂亮一直想买这样的杯子这个蓝色的稍微有点小瑕疵不过自己用没问题没问题没问题</view>
<view class="text u-line-2">{{ info.comment }}</view>
<view class="image">
<image v-for="(src, index) in ImageList" :key="index" :src="src" mode="aspectFit"></image>
<image v-for="(src, index) in info.images" :key="index" :src="src" mode="aspectFit"></image>
</view>
</view>
</view>
@@ -15,14 +15,10 @@
<script>
export default {
data() {
return {
ImageList: [
require('@/pageE/static/mine/23.png'),
require('@/pageE/static/mine/23.png'),
require('@/pageE/static/mine/23.png'),
require('@/pageE/static/mine/23.png')
]
}
return {}
},
props: {
info: Object,
}
};
</script>

View File

@@ -13,7 +13,7 @@
</swiper-item>
</swiper>
<!-- 加载更多 -->
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20"></u-loadmore>
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20" @loadmore="loadMore" v-if="goodsList.length>=pageSize"></u-loadmore>
</view>
</template>
<script>
@@ -22,6 +22,7 @@ export default {
name:"list",
data() {
return {
pageSize: 12,
current: -1,
swiperCurrent: 0,
goodsList: [],
@@ -60,7 +61,7 @@ export default {
this.page--;
this.loadStatus = 'nomore';
} else {
this.loadStatus = 'loading';
this.loadStatus = 'loadmore';
}
}).catch(() => {
this.loadStatus = "nomore";
@@ -82,6 +83,7 @@ export default {
gc_id: gc_id,
})
if (res.errCode == 0) {
this.timer = true;
if(reload) this.goodsList = res.data.goodsList;
else this.goodsList.push(...res.data.goodsList);
// console.log(this.goodsList);