Merge branch 'main' of http://18.167.251.121:10003/aidlab/Aida_Purchaser_Front
This commit is contained in:
@@ -49,12 +49,23 @@ const addShopping = () => {
|
||||
|
||||
const goShopping = () => {
|
||||
if(!detail.value.price) return ElMessage.warning(t('brandDetail.addShoppingTip'))
|
||||
CreateOrder(
|
||||
[detail.value.id],true
|
||||
).then((res)=>{
|
||||
// if(res)router.push({path: '/shoppingCart')
|
||||
let data = {
|
||||
listingId: detail.value.id, //资产ID
|
||||
title: detail.value.title, //标题
|
||||
brand: detail.value.shopName, //店铺名称
|
||||
sellerId: detail.value.sellerId, //店铺ID
|
||||
cover: detail.value.images.cover[0], //封面
|
||||
amount: detail.value.price, //价格
|
||||
// status: v.status, //状态
|
||||
// date: v.addTime, //添加时间
|
||||
// tags: v.productCategory, //标签
|
||||
// salesVolume: v.salesVolume, //销售量
|
||||
}
|
||||
const list = btoa(encodeURIComponent(JSON.stringify([data])))
|
||||
router.push({
|
||||
name: 'pay',
|
||||
query: { list }
|
||||
})
|
||||
// router.push({path: '/shoppingCart'})
|
||||
}
|
||||
const setImgList = (list)=>{
|
||||
sketchList.value = list?.apparel?.map((item:any) => {return {imgUrl:item}})
|
||||
|
||||
Reference in New Issue
Block a user