Commit 79b928fb authored by zhengke's avatar zhengke

修改

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