diff --git a/App.vue b/App.vue index 1aa60ee..4304ad7 100644 --- a/App.vue +++ b/App.vue @@ -1,232 +1,257 @@ diff --git a/components/m-buy/goods.vue b/components/m-buy/goods.vue index 60724a3..a6cef91 100644 --- a/components/m-buy/goods.vue +++ b/components/m-buy/goods.vue @@ -46,20 +46,20 @@ formatPrice(item.price)[0] }} .{{ formatPrice(item.price)[1] }} - - - {{item.num}}{{goodsDetail.goodsUnit}} + + + {{item.num}}{{goodsDetail.goodsUnit}} - -
- - ¥ - {{ - formatPrice(goodsDetail.price)[0] - }} - .{{ formatPrice(goodsDetail.price)[1] }} - +
+
+ + ¥ + {{ + formatPrice(goodsDetail.price)[0] + }} + .{{ formatPrice(goodsDetail.price)[1] }} +
@@ -68,12 +68,12 @@ {{ selectName }} ,{{ num }}个 - - - 库存 - - {{ goodsDetail.quantity }} - + + + 库存 + + {{ goodsDetail.quantity }} + @@ -99,10 +99,10 @@ - + 数量 - - + + @@ -133,14 +133,14 @@ formatList: [], currentSelceted: [], skuList: "", - isClose: false, //是否可以点击遮罩关闭 + isClose: false, //是否可以点击遮罩关闭 }; }, - props: { - wholesaleList:{ - type: null, - default: false, + props: { + wholesaleList:{ + type: null, + default: false, }, buyMask: { type: Boolean, @@ -170,23 +170,22 @@ default: "", type: null, }, - }, - computed: { - wholesalePrice(key){ - return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.price }) :[] - }, - wholesaleNum(key){ - return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.num }) :[] - } }, - watch: { - num(val){ - if(val){ - if(val > this.goodsDetail.quantity){ - console.log(val) - this.val = this.goodsDetail.quantity - } - } + computed: { + wholesalePrice(key){ + return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.price }) :[] + }, + wholesaleNum(key){ + return this.wholesaleList.length ? this.wholesaleList.map(item=>{ return item.num }) :[] + } + }, + watch: { + num(val){ + if(val){ + if(val > this.goodsDetail.quantity){ + this.val = this.goodsDetail.quantity + } + } }, buyType: { handler(val) { @@ -399,9 +398,9 @@ + diff --git a/components/m-goods-list/list.vue b/components/m-goods-list/list.vue index e69de29..33d3a33 100644 --- a/components/m-goods-list/list.vue +++ b/components/m-goods-list/list.vue @@ -0,0 +1,347 @@ + + + + + diff --git a/components/m-goods-list/promotion.vue b/components/m-goods-list/promotion.vue new file mode 100644 index 0000000..361bbcb --- /dev/null +++ b/components/m-goods-list/promotion.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/config/api.js b/config/api.js index e8461b2..96131ba 100644 --- a/config/api.js +++ b/config/api.js @@ -4,14 +4,8 @@ */ // 开发环境 const dev = { - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", - - common: "http://192.168.0.106:8890", - buyer: "http://192.168.0.106:8888", - - - + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", }; // 生产环境 const prod = { diff --git a/main.js b/main.js index ba42846..9b47071 100644 --- a/main.js +++ b/main.js @@ -30,6 +30,8 @@ Object.keys(filters).forEach((key) => { // 引入Vuex Vue.prototype.$store = store; + + Vue.use(uView); Vue.config.productionTip = false; diff --git a/manifest.json b/manifest.json index 9267136..4cc39c1 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "lili商城", "appid" : "__UNI__EC9FD60", "description" : "", - "versionName" : "4.2.6", - "versionCode" : 4000260, + "versionName" : "4.2.5", + "versionCode" : 4000250, "transformPx" : false, "app-plus" : { "compatible" : { diff --git a/pages.json b/pages.json index 4d1a33f..115501b 100644 --- a/pages.json +++ b/pages.json @@ -465,7 +465,9 @@ "pages": [ { "path": "seckill", "style": { - "navigationBarTitleText": "限时抢购", + "navigationBarTitleText": "限时抢购", + "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationBarTextStyle": "white" , "app-plus": { "titleNView": { "homeButton":true @@ -478,7 +480,8 @@ "path": "joinGroup", "style": { "navigationBarTitleText": "拼团活动", - "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationStyle": "custom", // 隐藏系统导航栏 + "navigationBarTextStyle": "white" , "app-plus": { // 将回弹属性关掉 "bounce": "none" diff --git a/pages/cart/payment/payOrder.vue b/pages/cart/payment/payOrder.vue index f5b092c..71be635 100644 --- a/pages/cart/payment/payOrder.vue +++ b/pages/cart/payment/payOrder.vue @@ -138,7 +138,7 @@ if (this.routerVal.recharge_sn) { // 判断当前是否是充值 this.sn = this.routerVal.recharge_sn; - this.orderType = "RECHARGE"; + this.orderType = "RECHARGE"; } else if (this.routerVal.trade_sn) { this.sn = this.routerVal.trade_sn; @@ -178,12 +178,12 @@ this.payList = res.data.result.support.filter((item) => { return item != "ALIPAY"; - }); - // 充值的话仅保留微信支付 - if(this.orderType == "RECHARGE"){ - this.payList = res.data.result.support.filter((item) => { - return item == "WECHAT"; - }); + }); + // 充值的话仅保留微信支付 + if(this.orderType == "RECHARGE"){ + this.payList = res.data.result.support.filter((item) => { + return item == "WECHAT"; + }); } } diff --git a/pages/mine/address/add.vue b/pages/mine/address/add.vue index 7cf807f..6bc4923 100644 --- a/pages/mine/address/add.vue +++ b/pages/mine/address/add.vue @@ -1,11 +1,11 @@