-

+
-
{{ item.usereat }}
+
{{ item.productName }}
- 规格:{{ item.num }}
+ 规格:{{ item.specifications }}
数量:{{ item.pcs }}件
- ¥10
+ ¥{{item.ecPrice}}
¥{{ item.userprice }}
@@ -322,6 +322,12 @@ export default {
this.useralllist[i].addressUserName = this.goldmedal[i].addressUserName;
this.useralllist[i].phoneNumber = this.goldmedal[i].phoneNumber;
this.useralllist[i].salesAmount = this.goldmedal[i].salesAmount;
+ // this.useralllist[i].picFile = this.goldmedal[i].picFile; //图片路径
+ // this.useralllist[i].productName=this.goldmedal[i].productName;//商品名称
+ // this.useralllist[i].ecPrice=this.goldmedal[i].ecPrice//第一个的单价
+ // this.useralllist[i].pcs=this.goldmedal[i].pcs//数量
+
+
this.useralllist[i].lengthnum=this.goldmedal[i].orderDetailList.length
}
console.log(this.obligation)
diff --git a/rc-busness/static/js/date.js b/rc-busness/static/js/date.js
new file mode 100644
index 00000000..5b05c6ac
--- /dev/null
+++ b/rc-busness/static/js/date.js
@@ -0,0 +1,28 @@
+
+//时间戳转化成格式时间
+import Vue from 'vue';
+Vue.prototype.formatConversion = function (te){
+ if(te == ''){
+ return '';
+ }else if(te.length == 10){
+ var time = new Date(te * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
+ var y = time.getFullYear();
+ var m = time.getMonth() < 9 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
+ var d = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
+ var h = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
+ var mm = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
+ var s = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
+ var timedate = y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s;
+ return timedate;
+ }else{
+ var time = new Date(te);
+ var y = time.getFullYear();
+ var m = time.getMonth() < 9 ? '0' + (time.getMonth() + 1) : time.getMonth() + 1;
+ var d = time.getDate() < 10 ? '0' + time.getDate() : time.getDate();
+ var h = time.getHours() < 10 ? '0' + time.getHours() : time.getHours();
+ var mm = time.getMinutes() < 10 ? '0' + time.getMinutes() : time.getMinutes();
+ var s = time.getSeconds() < 10 ? '0' + time.getSeconds() : time.getSeconds();
+ var timedate = y + '-' + m + '-' + d + ' ' + h + ':' + mm + ':' + s;
+ return timedate;
+ }
+}
\ No newline at end of file