|
@@ -173,7 +173,7 @@
|
|
|
tenantCode: '',
|
|
|
evaluateReplyStatus: 1,
|
|
|
},
|
|
|
- goodType: 1, // 1是普通商品类型;2是包含自助采摘+普通商品的类型;3是拍卖、共享种植
|
|
|
+ goodType: 1, // 1是普通商品类型;3是包含自助采摘+普通商品的类型;2是拍卖、共享种植
|
|
|
buttonGroup: [],
|
|
|
modalShow: false,
|
|
|
handleType: '',
|
|
@@ -203,16 +203,27 @@
|
|
|
// let tempDate = new Date(this.orderData.tempTimeArr[0].replace(/-/g, "/"))
|
|
|
// this.orderData.overTime = new Date(tempDate.setDate(tempDate.getDate() + 1))
|
|
|
}
|
|
|
- if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
|
|
|
- 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
|
|
|
- if (this.orderData.merchantInfoResVO.products.every(v=>{v.productType != 3})) {
|
|
|
+ // 1是普通商品类型;3是包含自助采摘+普通商品的类型;2是拍卖、共享种植
|
|
|
+ if (this.orderData.merchantInfoResVO.products.length) {
|
|
|
+ if (this.orderData.merchantInfoResVO.products.every(v=>{return (v.productType == 1)})) {
|
|
|
this.goodType = 1
|
|
|
- } else {
|
|
|
+ } else if (this.orderData.merchantInfoResVO.products.some(v=>{return(v.productType == 3)})) {
|
|
|
this.goodType = 3
|
|
|
+ } else if (this.orderData.merchantInfoResVO.products[0].productType == 2 || this.orderData.merchantInfoResVO.products[0].productType == 4) {
|
|
|
+ this.goodType = 2
|
|
|
}
|
|
|
- } else {
|
|
|
- this.goodType = 2
|
|
|
}
|
|
|
+ // if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
|
|
|
+ // 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
|
|
|
+ // debugger
|
|
|
+ // if (this.orderData.merchantInfoResVO.products.some(v=>{v.productType == 3})) {
|
|
|
+ // this.goodType = 3
|
|
|
+ // } else {
|
|
|
+ // this.goodType = 1
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.goodType = 2
|
|
|
+ // }
|
|
|
switch (JSON.stringify(this.orderData.orderStatus)) {
|
|
|
case '1':
|
|
|
if (this.goodType == 3) {
|
|
@@ -476,12 +487,20 @@
|
|
|
});
|
|
|
}
|
|
|
} else if (this.orderData.orderStatus == 4) {
|
|
|
- if (e.index == 1) {
|
|
|
+ if (e.index == 1 && this.goodType == 2) {
|
|
|
// 去我的种植
|
|
|
uni.navigateTo({
|
|
|
url: '/pagesGood/goodDetails?minePlant=true&goodId=' + this.orderData.merchantInfoResVO.products[0].productId + '&orderId=' + this.orderData.orderId
|
|
|
});
|
|
|
- }
|
|
|
+ } else {
|
|
|
+ // 评价
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode +
|
|
|
+ '&productIds=' + this.orderData.merchantInfoResVO.products.map(site => {
|
|
|
+ return site.productId
|
|
|
+ }).join(',')
|
|
|
+ });
|
|
|
+ }
|
|
|
} else {
|
|
|
// 评价
|
|
|
uni.navigateTo({
|