Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
39d33234
Commit
39d33234
authored
Jul 01, 2019
by
Junling Bu
Browse files
refact[litemall-vue]: 把vant版本从v1.x更新到v2.x
parent
156e79db
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-vue/package.json
View file @
39d33234
...
...
@@ -19,7 +19,7 @@
"dayjs"
:
"^1.7.7"
,
"js-cookie"
:
"2.2.0"
,
"lodash"
:
"^4.17.11"
,
"vant"
:
"^
1.6.15
"
,
"vant"
:
"^
2.0.3
"
,
"vue"
:
"^2.5.17"
,
"vue-router"
:
"^3.0.1"
,
"vuelidate"
:
"^0.7.4"
...
...
litemall-vue/src/views/items/detail/index.vue
View file @
39d33234
...
...
@@ -52,10 +52,10 @@
</div>
<van-goods-action>
<van-goods-action-
mini-bt
n
@
click=
"toCart"
icon=
"cart-o"
:info=
"(cartInfo > 0) ? cartInfo : ''"
/>
<van-goods-action-
mini-bt
n
@
click=
"addCollect"
icon=
"star-o"
:style=
"(goods.userHasCollect !== 0) ? 'color: #f7b444;':''"
/>
<van-goods-action-b
ig-btn
@
click=
"skuClick"
text=
"加入购物车"
/>
<van-goods-action-b
ig-btn
primary
@
click=
"skuClick"
text=
"立即购买"
/>
<van-goods-action-
ico
n
@
click=
"toCart"
icon=
"cart-o"
:info=
"(cartInfo > 0) ? cartInfo : ''"
/>
<van-goods-action-
ico
n
@
click=
"addCollect"
icon=
"star-o"
:style=
"(goods.userHasCollect !== 0) ? 'color: #f7b444;':''"
/>
<van-goods-action-b
utton
type=
"warning"
@
click=
"skuClick"
text=
"加入购物车"
/>
<van-goods-action-b
utton
type=
"danger"
@
click=
"skuClick"
text=
"立即购买"
/>
</van-goods-action>
</div>
...
...
@@ -65,7 +65,7 @@
import
{
goodsDetail
,
cartGoodsCount
,
collectAddOrDelete
,
cartAdd
,
cartFastAdd
}
from
'
@/api/api
'
;
import
{
Sku
,
Swipe
,
SwipeItem
,
GoodsAction
,
GoodsActionB
igBt
n
,
GoodsAction
MiniBt
n
,
Popup
}
from
'
vant
'
;
import
{
Sku
,
Swipe
,
SwipeItem
,
GoodsAction
,
GoodsActionB
utto
n
,
GoodsAction
Ico
n
,
Popup
}
from
'
vant
'
;
import
{
setLocalStorage
}
from
'
@/utils/local-storage
'
;
import
popupProps
from
'
./popup-props
'
;
import
_
from
'
lodash
'
;
...
...
@@ -349,8 +349,8 @@ computed: {
[
SwipeItem
.
name
]:
SwipeItem
,
[
Sku
.
name
]:
Sku
,
[
GoodsAction
.
name
]:
GoodsAction
,
[
GoodsActionB
igBt
n
.
name
]:
GoodsActionB
igBt
n
,
[
GoodsAction
MiniBt
n
.
name
]:
GoodsAction
MiniBt
n
,
[
GoodsActionB
utto
n
.
name
]:
GoodsActionB
utto
n
,
[
GoodsAction
Ico
n
.
name
]:
GoodsAction
Ico
n
,
[
popupProps
.
name
]:
popupProps
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment