fix: update test & move constants

This commit is contained in:
niunai
2017-09-19 18:16:42 +08:00
parent 485452cc97
commit 3ba8b84d08
6 changed files with 205 additions and 50 deletions

View File

@@ -15,6 +15,10 @@ export default {
goods: goods,
quota: data.quota,
quotaUsed: data.quota_used,
initialSku: {
s1: '30349',
s2: '1193'
}
}
},
@@ -85,6 +89,7 @@ Vue.component(Sku.name, Sku);
:quota="quota"
:quota-used="quotaUsed"
:reset-stepper-on-hide="true"
:initial-sku="initialSku"
@buy-clicked="handleBuyClicked"
@add-cart="handleAddCartClicked"
>
@@ -201,6 +206,11 @@ skuData: {
message_1:"",
... // 有几个留言就有几条
},
// 另一种格式的留言key不同
cartMessages: {
'留言1': 'xxxx',
... // key是message的name
},
// 选择的商品数量
selectedNum:1,
// 选择的sku组合