From ab4209caf56abceed7a60a2d7ddcc11b5a331f86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=96=BB=E9=B9=8F?= <1242402566@qq.com>
Date: Tue, 12 May 2020 16:30:23 +0800
Subject: [PATCH] update
---
src/components/CommodityCard/CommodityCard.vue | 22 +-
src/components/UniCountdown/UniCountdown.vue | 190 +++++++
src/pages.json | 26 +-
src/pages/cart/cart.vue | 188 +++++--
.../detailsChoiceArgs/compoents/MyCollapse.vue | 228 ++++++++
src/pages/detailsChoiceArgs/detailsChoiceArgs.vue | 571 +++++++++++++++++++++
src/pages/myOrder/myOrder.vue | 3 +-
src/pages/myOrderPaying/myOrderPaying.vue | 129 ++---
src/pages/user/user.vue | 27 +-
9 files changed, 1263 insertions(+), 121 deletions(-)
create mode 100644 src/components/UniCountdown/UniCountdown.vue
create mode 100644 src/pages/detailsChoiceArgs/compoents/MyCollapse.vue
create mode 100644 src/pages/detailsChoiceArgs/detailsChoiceArgs.vue
diff --git a/src/components/CommodityCard/CommodityCard.vue b/src/components/CommodityCard/CommodityCard.vue
index d277950..0d8eec8 100644
--- a/src/components/CommodityCard/CommodityCard.vue
+++ b/src/components/CommodityCard/CommodityCard.vue
@@ -1,16 +1,15 @@
-
-
+
+
{{goods.name}}
- {{goods.rsSon.Min_Price}}
-
- {{Math.round(goods.rsSon.Min_Price / goods.rsSon.discount * 100)}}
-
+ {{goods.price}}
+
+ {{goods.originCost}}
- {{goods.trade_num}}
+ {{goods.slogan}}
@@ -22,16 +21,17 @@
* 商品数据
*/
goods: {
- id: Number,
- imgurl: String,
+ goods_id: Number,
+ img: String,
name: String,
- oldPrice:String,
+ originCost:String,
price: String,
- memo:String
+ slogan:String
}
},
created() {
+ console.log(this.goods)
},
data() {
return {
diff --git a/src/components/UniCountdown/UniCountdown.vue b/src/components/UniCountdown/UniCountdown.vue
new file mode 100644
index 0000000..ad7125a
--- /dev/null
+++ b/src/components/UniCountdown/UniCountdown.vue
@@ -0,0 +1,190 @@
+
+
+ {{ d }}
+ 天
+ {{ h }}
+ {{ showColon ? ':' : '时' }}
+ {{ i }}
+ {{ showColon ? ':' : '分' }}
+ {{ s }}
+ 秒
+
+
+
+
diff --git a/src/pages.json b/src/pages.json
index db9b855..38fcca7 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -68,10 +68,22 @@
"path": "pages/predelivery/predelivery"
},
{
- "path": "pages/customerService/customerService"
+ "path": "pages/customerService/customerService",
+ "style":{
+ "navigationBarTitleText" : "在线客服"
+ }
},
{
- "path": "pages/myOrderPaying/myOrderPaying"
+ "path": "pages/myOrderPaying/myOrderPaying",
+ "style":{
+ "navigationBarTitleText" : "我的订单"
+ }
+ },
+ {
+ "path": "pages/detailsChoiceArgs/detailsChoiceArgs",
+ "style":{
+ "navigationBarTitleText" : "镜片名称名称"
+ }
},
{
"path" : "pages/detailStandard/detailStandard_sun",
@@ -117,5 +129,15 @@
"text": "我的"
}
]
+ },
+ "condition" : { //模式配置,仅开发期间生效
+ "current": 0, //当前激活的模式(list 的索引项)
+ "list": [
+ {
+ "name": "", //模式名称
+ "path": "", //启动页面,必选
+ "query": "" //启动参数,在页面的onLoad函数里面得到
+ }
+ ]
}
}
diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue
index 2d75583..25e9787 100644
--- a/src/pages/cart/cart.vue
+++ b/src/pages/cart/cart.vue
@@ -1,62 +1,116 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 眼镜名称眼镜名称眼镜名称眼镜名称
+ 颜色 玫瑰金 /材质 钛合金 / 功能 防日光 / 配件 免费送 /折射 …
+
+
+
+ ¥{{198*this.count}}
+ (限购{{maxCount}}副)
+
+ -
+ {{count}}
+ +
+
+
+
+
+
+
+
@@ -72,7 +141,7 @@
diff --git a/src/pages/detailsChoiceArgs/compoents/MyCollapse.vue b/src/pages/detailsChoiceArgs/compoents/MyCollapse.vue
new file mode 100644
index 0000000..3bbf9f9
--- /dev/null
+++ b/src/pages/detailsChoiceArgs/compoents/MyCollapse.vue
@@ -0,0 +1,228 @@
+
+
+
+
+ {{title}}
+ 注:折射率越高,镜片越薄,看着更美观。
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+
+ {{item.range}}
+
+
+ {{item.name}}
+ {{item.name}}
+
+
+
+ {{item.range}}
+
+
+ {{item.name}}
+ {{item.name}}
+
+
+
+
+
+
+
+ *{{item}}
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/detailsChoiceArgs/detailsChoiceArgs.vue b/src/pages/detailsChoiceArgs/detailsChoiceArgs.vue
new file mode 100644
index 0000000..36aade9
--- /dev/null
+++ b/src/pages/detailsChoiceArgs/detailsChoiceArgs.vue
@@ -0,0 +1,571 @@
+
+
+
+
+
+ 镜片名称型号功能镜片名称型镜片名称型号功能非球面…
+ 支持7天无理由退货 顺丰发货
+
+ ¥{{price*count}}
+
+ -
+ {{count}}
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 填写验光数据
+
+
+
+
+
+
+
+
+ 填写验光数据
+ 没有验光数据?请到线下眼镜店验光哦~
+
+
+
+ {{pickerInfoList[0].nameC}}
+ {{pickerInfoList[0].nameE}}
+
+ 左 (OD)
+ {{pickerInfoList[0].nameArray1[pickerInfoList[0].nameIndex1]}}
+
+
+
+ 右 (OS)
+ {{pickerInfoList[0].nameArray2[pickerInfoList[0].nameIndex2]}}
+
+
+
+
+
+
+
+
+ {{pickerInfoList[1].nameC}}
+ {{pickerInfoList[1].nameE}}
+
+ 左 (OD)
+ {{pickerInfoList[1].nameArray1[pickerInfoList[1].nameIndex1]}}
+
+
+
+ 右 (OS)
+ {{pickerInfoList[1].nameArray2[pickerInfoList[1].nameIndex2]}}
+
+
+
+
+
+
+
+
+ {{pickerInfoList[2].nameC}}
+ {{pickerInfoList[2].nameE}}
+
+ 左 (OD)
+ {{pickerInfoList[2].nameArray1[pickerInfoList[2].nameIndex1]}}
+
+
+
+ 右 (OS)
+ {{pickerInfoList[2].nameArray2[pickerInfoList[2].nameIndex2]}}
+
+
+
+
+
+
+
+
+ {{pickerInfoList[3].nameC}}
+ {{pickerInfoList[3].nameE}}
+
+ 左 (OD)
+ {{pickerInfoList[3].nameArray1[pickerInfoList[3].nameIndex1]}}
+
+
+
+ 右 (OS)
+ {{pickerInfoList[3].nameArray2[pickerInfoList[3].nameIndex2]}}
+
+
+
+
+
+
+
+
+ {{pickerInfoList[4].nameC}}
+
+ 年 (Y)
+ {{pickerInfoList[4].nameArray1[pickerInfoList[4].nameIndex1]}}
+
+
+
+ 月 (M)
+ {{pickerInfoList[4].nameArray2[pickerInfoList[4].nameIndex2]}}
+
+
+
+ 日 (D)
+ {{pickerInfoList[4].nameArray3[pickerInfoList[4].nameIndex3]}}
+
+
+
+
+
+
+
+ 确认以上输入信息来源于我的验光数据!
+
+
+
+
+
+
+
+ {{item.nameC}}
+ {{item.nameArray1[item.nameIndex1]}}年
+ {{item.nameArray2[item.nameIndex2]}}月
+ {{item.nameArray3[item.nameIndex2]}}日
+
+
+
+ *
+
+
+ {{item.nameC}}
+ 左 {{item.nameArray1[item.nameIndex1]}}
+ 右 {{item.nameArray2[item.nameIndex2]}}
+
+
+
+
+
+
+
+ 立即结算
+
+
+
+
+
+
diff --git a/src/pages/myOrder/myOrder.vue b/src/pages/myOrder/myOrder.vue
index 3f81338..d3ad1a7 100644
--- a/src/pages/myOrder/myOrder.vue
+++ b/src/pages/myOrder/myOrder.vue
@@ -20,7 +20,8 @@
-
+
+