diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index 553c6d86768164b7127c876a582d0405fbf3ca89..3a0eaa6cfccb8fd985093ca4baf7522a4dcee0ff 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 2bf8d5cae59c471b9667a58ecc7e66829c82b933..c99d996752a457d1dea271610e005e483aeb1da1 100644 --- a/src/components/shopping-cart/shopping-cart-list.vue +++ b/src/components/shopping-cart/shopping-cart-list.vue @@ -1,22 +1,11 @@