Commit 79b928fb authored by zhengke's avatar zhengke

修改

parent f77050b6
......@@ -194,20 +194,16 @@ export default {
},
methods: {
joinCar() {
let h = this.apiheader();
h['content-type'] = 'application/x-www-form-urlencoded';
console.log(this.skuObj,'skuObjj');
if (this.skuObj && this.skuObj.id) {
this.request(
this.request2(
{
url: '',
url: '/api/AppletOrder/SetGoodsShoppingCartInfo',
data: {
r: 'api/cart/add',
goods_id: this.g.id,
attr: this.skuObj.id,
num: this.gc == 0 ? 1 : this.gc
GoodsId: this.skuObj.goods_id,
SpecificationSort: this.skuObj.sign_id,
Number: this.gc == 0 ? 1 : this.gc
},
header: h,
method: 'POST'
},
res => {
uni.showToast({
......
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