|
@@ -125,8 +125,7 @@
|
|
|
const NET = require('@/utils/request')
|
|
|
const API = require('@/config/api')
|
|
|
export default {
|
|
|
- components: {
|
|
|
- },
|
|
|
+ components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
orderType: {
|
|
@@ -174,17 +173,18 @@
|
|
|
this.orderData = res.data
|
|
|
if (this.orderData.addOrderTime) {
|
|
|
let tempTime = new Date(this.orderData.addOrderTime).getTime()
|
|
|
- let addTempTime = new Date(tempTime + 1000*60*60*24)
|
|
|
+ let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
|
|
|
let addYear = addTempTime.getFullYear()
|
|
|
- let addMonth = addTempTime.getMonth()+1
|
|
|
+ let addMonth = addTempTime.getMonth() + 1
|
|
|
let addDay = addTempTime.getDate()
|
|
|
let addHours = addTempTime.getHours()
|
|
|
let addMin = addTempTime.getMinutes()
|
|
|
let addSeconds = addTempTime.getSeconds()
|
|
|
- this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' + addSeconds
|
|
|
- // this.orderData.tempTimeArr = this.orderData.addOrderTime.split(' ')
|
|
|
- // let tempDate = new Date(this.orderData.tempTimeArr[0].replace(/-/g, "/"))
|
|
|
- // this.orderData.overTime = new Date(tempDate.setDate(tempDate.getDate() + 1))
|
|
|
+ this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' +
|
|
|
+ addSeconds
|
|
|
+ // this.orderData.tempTimeArr = this.orderData.addOrderTime.split(' ')
|
|
|
+ // 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) {
|
|
@@ -211,18 +211,18 @@
|
|
|
})
|
|
|
if (!someVaule) {
|
|
|
if (this.orderData.merchantInfoResVO.products.every(v => {
|
|
|
- Number(v.productType)
|
|
|
- return v.productType == 3
|
|
|
- })) {
|
|
|
- this.buttonGroup = [{
|
|
|
- text: '申请售后',
|
|
|
- backgroundColor: '#75BD60',
|
|
|
- color: '#fff'
|
|
|
- }, {
|
|
|
- text: '自助采摘',
|
|
|
- backgroundColor: '#52A63A',
|
|
|
- color: '#fff'
|
|
|
- }]
|
|
|
+ Number(v.productType)
|
|
|
+ return v.productType == 3
|
|
|
+ })) {
|
|
|
+ this.buttonGroup = [{
|
|
|
+ text: '申请售后',
|
|
|
+ backgroundColor: '#75BD60',
|
|
|
+ color: '#fff'
|
|
|
+ }, {
|
|
|
+ text: '自助采摘',
|
|
|
+ backgroundColor: '#52A63A',
|
|
|
+ color: '#fff'
|
|
|
+ }]
|
|
|
} else {
|
|
|
this.buttonGroup = [{
|
|
|
text: '申请售后',
|
|
@@ -483,6 +483,11 @@
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
+<style>
|
|
|
+ page {
|
|
|
+ background-color: #f7f7f7;
|
|
|
+ }
|
|
|
+</style>
|
|
|
<style lang="less" scoped>
|
|
|
page {
|
|
|
width: 100%;
|