|
|
|
@ -9,7 +9,10 @@ |
|
|
|
|
<div class="c_75 f_12">{{item.styleNames}}</div> |
|
|
|
|
<div class="c_75 f_12">{{item.address}}</div> |
|
|
|
|
<div class="c_75 f_12">{{item.ordersNum}}</div> |
|
|
|
|
<a class="button1 f_12">删除</a> |
|
|
|
|
<!--<a class="button1 f_12">删除</a>--> |
|
|
|
|
<a-popconfirm class="button1 f_12" title="确定删除吗?" @confirm="() => delteys(item.id)"> |
|
|
|
|
<a>删除</a> |
|
|
|
|
</a-popconfirm> |
|
|
|
|
<div class="button2 f_12 c_fff" @click="ingwc(item.id)">加入购物袋</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="more d-flex"> |
|
|
|
@ -146,7 +149,8 @@ |
|
|
|
|
|
|
|
|
|
url: { |
|
|
|
|
findallcg: "/getuserpersion/findallcg", |
|
|
|
|
ingwc: "/getuserpersion/ingwc" |
|
|
|
|
ingwc: "/getuserpersion/ingwc", |
|
|
|
|
delteys: "/getuserpersion/delteys" |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -160,6 +164,20 @@ |
|
|
|
|
console.log(item) |
|
|
|
|
item.flag = !item.flag |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delteys(id){ |
|
|
|
|
getAction(this.url.delteys,{id,id}).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
alert('宝贝已经添加到购物了,请查收'); |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findallcg(){ |
|
|
|
|
getAction(this.url.findallcg).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
@ -175,7 +193,7 @@ |
|
|
|
|
ingwc(id){ |
|
|
|
|
getAction(this.url.ingwc,{id,id}).then((res) => { |
|
|
|
|
if(res.success) { |
|
|
|
|
alert('宝贝已经添加到购物了,请查收'); |
|
|
|
|
this.loadData(1); |
|
|
|
|
} else { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|