Bläddra i källkod

Signed-off-by: liuboyan <632697560@qq.com>
1

liuboyan 4 år sedan
förälder
incheckning
54e3355d4d
2 ändrade filer med 27 tillägg och 21 borttagningar
  1. 2 1
      pages.json
  2. 25 20
      pagesMain/orderDetail.vue

+ 2 - 1
pages.json

@@ -155,7 +155,8 @@
 		}, {
 			"path": "orderDetail",
 			"style": {
-				"navigationBarTitleText": "订单详情"
+				"navigationBarTitleText": "订单详情",
+				"backgroundColor": "#f7f7f7"
 			}
 		}, {
 			"path": "logisticsDeatil",

+ 25 - 20
pagesMain/orderDetail.vue

@@ -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%;