Commit 7c645f8d authored by 潘永坪's avatar 潘永坪

首页面价格修改

parent 0e3ed4bf
...@@ -549,7 +549,7 @@ export default { ...@@ -549,7 +549,7 @@ export default {
}).exec() }).exec()
// #endif // #endif
} }
let windowHeight=uni.getWindowInfo().screenHeight||1300 let windowHeight=uni.getWindowInfo().screenHeight||1100
//60为底部高度 //60为底部高度
this.scrollHeight=windowHeight-60-this.topHeight this.scrollHeight=windowHeight-60-this.topHeight
}) })
...@@ -675,7 +675,7 @@ export default { ...@@ -675,7 +675,7 @@ export default {
// #endif // #endif
} }
},10) },5)
}, },
//---右边滚动事件 //---右边滚动事件
scrollRight(e) { scrollRight(e) {
...@@ -695,7 +695,7 @@ export default { ...@@ -695,7 +695,7 @@ export default {
} }
} }
}) })
},10) },5)
}, },
//---回到顶部 //---回到顶部
...@@ -757,7 +757,6 @@ export default { ...@@ -757,7 +757,6 @@ export default {
value.forEach(item => { value.forEach(item => {
arr.push(JSON.parse(item)) arr.push(JSON.parse(item))
}) })
console.log(arr)
this.chooseProduct = arr this.chooseProduct = arr
//判断是否选中产品,选中产品的背景颜色需要变化 //判断是否选中产品,选中产品的背景颜色需要变化
this.scenicList.forEach(item => { this.scenicList.forEach(item => {
...@@ -1220,6 +1219,7 @@ export default { ...@@ -1220,6 +1219,7 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
opacity: 0; opacity: 0;
z-index: 10;
} }
.tabbar-title{ .tabbar-title{
position: absolute; position: absolute;
......
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
merchantName:'长江索道', merchantName:'长江索道',
pageUrl:this.suodaoUrl, pageUrl:this.suodaoUrl,
imgUrl:'http://lx.pangdly.com/img/sodao.1cdf287.jpg', imgUrl:'http://lx.pangdly.com/img/sodao.1cdf287.jpg',
price:20 price:30
}, },
{ {
merchantName:'云端之眼', merchantName:'云端之眼',
......
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
} }
this.ticketStatus() this.ticketStatus()
intFun() intFun()
}, 3000) }, 5000)
} }
intFun() intFun()
}, },
......
...@@ -474,6 +474,7 @@ export default { ...@@ -474,6 +474,7 @@ export default {
timer:null,//时间函数 timer:null,//时间函数
sortStatus:true,//排号状态 sortStatus:true,//排号状态
orderId:'',//订单Id orderId:'',//订单Id
productCompanyId:'',//产品公司Id
} }
}, },
onUnload() { onUnload() {
...@@ -557,6 +558,7 @@ export default { ...@@ -557,6 +558,7 @@ export default {
this.$request('scenic/groupGood/loadProduct', data).then(res => { this.$request('scenic/groupGood/loadProduct', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
this.productIfo = res.data this.productIfo = res.data
this.productCompanyId=this.productIfo.merchantVo.productCompanyId
this.defaultAreaCode = this.productIfo.defaultAreaCode || '' this.defaultAreaCode = this.productIfo.defaultAreaCode || ''
this.merchantCode = this.productIfo.merchantVo.code, //商户code this.merchantCode = this.productIfo.merchantVo.code, //商户code
this.productId = res.data.id//产品id变化,重新赋值产品id this.productId = res.data.id//产品id变化,重新赋值产品id
...@@ -586,7 +588,8 @@ export default { ...@@ -586,7 +588,8 @@ export default {
//---获取产品价格库存列表 //---获取产品价格库存列表
getPriceList() { getPriceList() {
let data = { let data = {
productId: this.productId //产品id productId: this.productId, //产品id
companyId:this.productCompanyId
} }
this.$request('scenic/user/product/priceStockList', data).then(res => { this.$request('scenic/user/product/priceStockList', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
......
Markdown is supported
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