Commit 39d33234 authored by Junling Bu's avatar Junling Bu
Browse files

refact[litemall-vue]: 把vant版本从v1.x更新到v2.x

parent 156e79db
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"dayjs": "^1.7.7", "dayjs": "^1.7.7",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",
"lodash": "^4.17.11", "lodash": "^4.17.11",
"vant": "^1.6.15", "vant": "^2.0.3",
"vue": "^2.5.17", "vue": "^2.5.17",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuelidate": "^0.7.4" "vuelidate": "^0.7.4"
......
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
</div> </div>
<van-goods-action> <van-goods-action>
<van-goods-action-mini-btn @click="toCart" icon="cart-o" :info="(cartInfo > 0) ? cartInfo : ''"/> <van-goods-action-icon @click="toCart" icon="cart-o" :info="(cartInfo > 0) ? cartInfo : ''"/>
<van-goods-action-mini-btn @click="addCollect" icon="star-o" :style="(goods.userHasCollect !== 0) ? 'color: #f7b444;':''"/> <van-goods-action-icon @click="addCollect" icon="star-o" :style="(goods.userHasCollect !== 0) ? 'color: #f7b444;':''"/>
<van-goods-action-big-btn @click="skuClick" text="加入购物车"/> <van-goods-action-button type="warning" @click="skuClick" text="加入购物车"/>
<van-goods-action-big-btn primary @click="skuClick" text="立即购买"/> <van-goods-action-button type="danger" @click="skuClick" text="立即购买"/>
</van-goods-action> </van-goods-action>
</div> </div>
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
import { goodsDetail, cartGoodsCount, collectAddOrDelete, cartAdd, cartFastAdd } from '@/api/api'; 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 { setLocalStorage } from '@/utils/local-storage';
import popupProps from './popup-props'; import popupProps from './popup-props';
import _ from 'lodash'; import _ from 'lodash';
...@@ -349,8 +349,8 @@ computed: { ...@@ -349,8 +349,8 @@ computed: {
[SwipeItem.name]: SwipeItem, [SwipeItem.name]: SwipeItem,
[Sku.name]: Sku, [Sku.name]: Sku,
[GoodsAction.name]: GoodsAction, [GoodsAction.name]: GoodsAction,
[GoodsActionBigBtn.name]: GoodsActionBigBtn, [GoodsActionButton.name]: GoodsActionButton,
[GoodsActionMiniBtn.name]: GoodsActionMiniBtn, [GoodsActionIcon.name]: GoodsActionIcon,
[popupProps.name]: popupProps [popupProps.name]: popupProps
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment