|
|
@@ -148,10 +148,11 @@ export default {
|
|
|
discountArr: false,
|
|
|
// 运费
|
|
|
freightPrice: 0,
|
|
|
- goodsNum: 1
|
|
|
+ goodsNum: 1
|
|
|
};
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapGetters({ orderShop: "getOrderShop" }),
|
|
|
...mapGetters({ shopUser: "getShopUser" }),
|
|
|
@@ -168,21 +169,13 @@ export default {
|
|
|
this.goodsNum = option.goodsNum;
|
|
|
// this.init()
|
|
|
},
|
|
|
+ created() {},
|
|
|
methods: {
|
|
|
init() {
|
|
|
let goodsInfo = uni.getStorageSync("buyGoodsDetil");
|
|
|
goodsInfo.price = this.option.goodsStyleId
|
|
|
? goodsInfo.goodsStyleList[this.option.selIndex].price
|
|
|
: goodsInfo.price;
|
|
|
- // if (this.$util.isEmpty(goodsInfo)) {
|
|
|
- // this.$util.pageTo({
|
|
|
- // url: `/pages/goods/detail`,
|
|
|
- // query: {
|
|
|
- // id: this.option.goodsId
|
|
|
- // }
|
|
|
- // })
|
|
|
- // return false
|
|
|
- // }
|
|
|
getOrderShop().then(() => {
|
|
|
this.$refs.couponSel._getUserDiscount().then(status => {
|
|
|
this.discountArr = status;
|