diff --git a/litemall-vue/package.json b/litemall-vue/package.json index a186e63b..df4a67ee 100644 --- a/litemall-vue/package.json +++ b/litemall-vue/package.json @@ -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" diff --git a/litemall-vue/src/views/items/detail/index.vue b/litemall-vue/src/views/items/detail/index.vue index fcc0aa60..f93b04e2 100755 --- a/litemall-vue/src/views/items/detail/index.vue +++ b/litemall-vue/src/views/items/detail/index.vue @@ -52,10 +52,10 @@ - - - - + + + + @@ -65,7 +65,7 @@ import { goodsDetail, cartGoodsCount, collectAddOrDelete, cartAdd, cartFastAdd } from '@/api/api'; -import { Sku, Swipe, SwipeItem, GoodsAction, GoodsActionBigBtn, GoodsActionMiniBtn, Popup } from 'vant'; +import { Sku, Swipe, SwipeItem, GoodsAction, GoodsActionButton, GoodsActionIcon, 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, - [GoodsActionBigBtn.name]: GoodsActionBigBtn, - [GoodsActionMiniBtn.name]: GoodsActionMiniBtn, + [GoodsActionButton.name]: GoodsActionButton, + [GoodsActionIcon.name]: GoodsActionIcon, [popupProps.name]: popupProps } }