优化我的评价
parent
6c8102aecd
commit
3d1089b756
|
@ -27,7 +27,7 @@
|
||||||
<view class="text title">{{ gradeList[order.grade] || '' }}</view>
|
<view class="text title">{{ gradeList[order.grade] || '' }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-view u-row-between" v-if="current != 0">
|
<view class="btn-view u-row-between" v-if="current == 2">
|
||||||
<view class="description">
|
<view class="description">
|
||||||
<view class="text title">
|
<view class="text title">
|
||||||
<u-read-more ref="uReadMore" :color="$lightColor" text-indent="0">
|
<u-read-more ref="uReadMore" :color="$lightColor" text-indent="0">
|
||||||
|
@ -45,10 +45,10 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="again-btn" @click="onDetail(order)" v-if="current == 1">
|
<view class="again-btn" @click="onDetail(order)" v-if="current == 2">
|
||||||
<u-tag text="评价详情" shape="circle" mode="plain" type="error" />
|
<u-tag text="评价详情" shape="circle" mode="plain" type="error" />
|
||||||
</view>
|
</view>
|
||||||
<view v-if="current == 0 && sku.commentStatus == 'UNFINISHED'">
|
<view v-if="current == 1 && sku.commentStatus == 'UNFINISHED'">
|
||||||
<view class="evaluate">
|
<view class="evaluate">
|
||||||
<view @click="talkCommont(sku)">
|
<view @click="talkCommont(sku)">
|
||||||
<u-tag text="发表评价" shape="circle" mode="plain" type="error" />
|
<u-tag text="发表评价" shape="circle" mode="plain" type="error" />
|
||||||
|
@ -78,6 +78,10 @@ export default {
|
||||||
return {
|
return {
|
||||||
list: [
|
list: [
|
||||||
//顶部tab
|
//顶部tab
|
||||||
|
|
||||||
|
{
|
||||||
|
name: "全部订单",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "待评价",
|
name: "待评价",
|
||||||
},
|
},
|
||||||
|
@ -123,12 +127,18 @@ export default {
|
||||||
this.params.loadStatus = "more";
|
this.params.loadStatus = "more";
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
//重新读取数据
|
//重新读取数据
|
||||||
|
|
||||||
if (val == 0) {
|
if (val == 0) {
|
||||||
|
delete this.params.commentStatus
|
||||||
this.loadData();
|
this.loadData();
|
||||||
}
|
} else if (val == 1) {
|
||||||
if (val == 1) {
|
this.params.commentStatus = "UNFINISHED";
|
||||||
this.orderList = [];
|
this.orderList = [];
|
||||||
this.loadComments();
|
this.loadData();
|
||||||
|
} else {
|
||||||
|
this.params.commentStatus = "FINISHED";
|
||||||
|
this.orderList = [];
|
||||||
|
return this.loadComments();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -138,7 +148,7 @@ export default {
|
||||||
* 判断当前店铺是否有可评价的商品
|
* 判断当前店铺是否有可评价的商品
|
||||||
*/
|
*/
|
||||||
commentStatus(val) {
|
commentStatus(val) {
|
||||||
if (this.current == 1) {
|
if (this.current == 2) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
let show;
|
let show;
|
||||||
|
@ -251,11 +261,7 @@ export default {
|
||||||
if (this.params.loadStatus == "noMore") return;
|
if (this.params.loadStatus == "noMore") return;
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
this.loadData();
|
this.loadData();
|
||||||
}
|
} else {
|
||||||
if (index == 1) {
|
|
||||||
this.params.audit_status = "PASS_AUDIT";
|
|
||||||
this.params.comments_type = "INITIAL";
|
|
||||||
this.params.comment_status = "WAIT_CHASE";
|
|
||||||
this.loadComments();
|
this.loadComments();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue