...
|
...
|
@@ -33,7 +33,7 @@ Page({ |
|
|
goods_id:id
|
|
|
// goods_id:911
|
|
|
}
|
|
|
app.postk(url, param).then((res) => {
|
|
|
app.post(url, param).then((res) => {
|
|
|
console.log(res,'商品')
|
|
|
if(res.data.length!=undefined){
|
|
|
let data=res.data;
|
...
|
...
|
@@ -98,14 +98,14 @@ Page({ |
|
|
goods_id:that.data.goods_id,
|
|
|
spec_sku_id:that.data.spec_sku_id.join("_")
|
|
|
}
|
|
|
app.postk(url, param).then((res) => {
|
|
|
console.log(res,'购物车数量')
|
|
|
app.post(url, param).then((res) => {
|
|
|
console.log(res,'购物车数量')
|
|
|
that.setData({
|
|
|
min_goods_price:res.data.goods_price,
|
|
|
min_goods_price:res.data.goods_price,
|
|
|
line_price:res.data.line_price,
|
|
|
goodimg:res.data.spec_image,
|
|
|
stock_num:res.data.stock_num
|
|
|
})
|
|
|
stock_num:res.data.stock_num
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
num_change(e) {
|
...
|
...
|
@@ -144,7 +144,7 @@ Page({ |
|
|
getcartnum(){
|
|
|
let that=this;
|
|
|
let url = '/car/bubble'
|
|
|
app.postk(url, {
|
|
|
app.post(url, {
|
|
|
|
|
|
}).then((res) => {
|
|
|
console.log(res,'购物车数量')
|
...
|
...
|
@@ -173,7 +173,7 @@ Page({ |
|
|
type:1,
|
|
|
spec_sku_id:that.data.spec_sku_id.join("_")
|
|
|
}
|
|
|
app.postk(url, params).then((res) => {
|
|
|
app.post(url, params).then((res) => {
|
|
|
that.setData({
|
|
|
"info.shop": Number(that.data.info.shop) + that.data.num,
|
|
|
num: 1
|
...
|
...
|
|