From 107005a7b7d09492b158bd57684d0e05d2ba9dd7 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Thu, 14 May 2020 16:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopping-cart/shopping-cart-cell.vue | 59 +++-- .../shopping-cart/shopping-cart-com.vue | 203 +++++++++++++++++- .../shopping-cart/shopping-cart-list.vue | 114 +++------- .../shopping-cart/shopping-cart-options.vue | 73 ------- 4 files changed, 257 insertions(+), 192 deletions(-) delete mode 100644 src/components/shopping-cart/shopping-cart-options.vue diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index 553c6d8..3a0eaa6 100644 --- a/src/components/shopping-cart/shopping-cart-cell.vue +++ b/src/components/shopping-cart/shopping-cart-cell.vue @@ -15,7 +15,7 @@ />
- {{ cellItem.name + ccce }} + {{ cellItem.name }}
-
规格:访问次数:20/日,访问量:100/日
-
申请方式:按月
+
规格:{{ specificationBtns[specification] }}
+
申请方式:{{ specificationApplicationBtns[specificationApplication] }}
- +
规格:
{{ item }} + @click="changeSpecification(index)" + >{{ index + 1 + ". " + item }}
申请方式:
{{ item }} + @click="changeSpecificationApplication(index)" + >{{ item }}购买
-
+ @@ -108,9 +110,8 @@ export default { } }, watch: { - cellCheck(newV, oldV) { - // do something - console.log(newV, oldV); + cellCheck: function(val) { + this.checkedItem = val; } }, data: () => ({ @@ -121,18 +122,34 @@ export default { visible: false, specification: 1, specificationApplication: 0, + specificationPop: 1, + specificationApplicationPop: 0, specificationBtns: [ - "1.访问次数:20/日 访问量:100/日", - "2.访问次数:200/日 访问量:1000/日", - "3.访问次数:无上限 访问量:无上限" + "访问次数:20/日 访问量:100/日", + "访问次数:200/日 访问量:1000/日", + "访问次数:无上限 访问量:无上限" ], - specificationApplicationBtns: ["按月购买", "按年购买"] + specificationApplicationBtns: ["按月", "按年"] }), computed: {}, - watch: {}, methods: { getState(val) { this.$emit("changeState", { state: val, index: this.cellIndex }); + }, + changeSpecification(val) { + this.specificationPop = val; + }, + changeSpecificationApplication(val) { + this.specificationApplicationPop = val; + }, + submitPop() { + this.specification = this.specificationPop; + this.specificationApplication = this.specificationApplicationPop; + this.visible = false; + }, + setSpecificationPop() { + this.specificationPop = this.specification; + this.specificationApplicationPop = this.specificationApplication; } }, mounted() {} @@ -286,6 +303,10 @@ export default { .shopping_cell_specification_cancel { color: #58617a; } +.pop_footer { + text-align: right; + margin: 30px 5px 5px; +} \ No newline at end of file +.shopping_cart_options { + height: 80px; + padding: 0 20px; + font-weight: 700; + line-height: 80px; +} +.shopping_cart_options_cell { + text-align: center; +} +.shopping_cart_options_del { +} +.shopping_cart_options_del_service { + color: #c8d0e7; +} +.shopping_cart_options_del_service_act { + cursor: pointer; + color: #0f2683; +} +.shopping_cart_options_num { + text-align: right; + font-size: 14px; + font-weight: 500; + color: #58617a; +} +.shopping_cart_options_num span { + color: #e56600; +} +.shopping_cart_options_cell_btn { + width: 90%; + margin: 0 10%; +} +.shopping_cart_options_cell_btn_act { + width: 90%; + margin: 0 10%; + background-color: #e56600; + color: #fcefd6; +} +.shopping_all_head { + background-color: #e5f0ff; + height: 48px; + padding: 0 20px; + font-weight: 700; + line-height: 48px; +} +.shopping_all_head_item { + text-align: center; +} +.shopping_list_page { + padding: 10px 20px 0; +} + + diff --git a/src/components/shopping-cart/shopping-cart-list.vue b/src/components/shopping-cart/shopping-cart-list.vue index 2bf8d5c..c99d996 100644 --- a/src/components/shopping-cart/shopping-cart-list.vue +++ b/src/components/shopping-cart/shopping-cart-list.vue @@ -1,22 +1,11 @@