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 = () => {
|
const goShopping = () => {
|
||||||
if(!detail.value.price) return ElMessage.warning(t('brandDetail.addShoppingTip'))
|
if(!detail.value.price) return ElMessage.warning(t('brandDetail.addShoppingTip'))
|
||||||
CreateOrder(
|
let data = {
|
||||||
[detail.value.id],true
|
listingId: detail.value.id, //资产ID
|
||||||
).then((res)=>{
|
title: detail.value.title, //标题
|
||||||
// if(res)router.push({path: '/shoppingCart')
|
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)=>{
|
const setImgList = (list)=>{
|
||||||
sketchList.value = list?.apparel?.map((item:any) => {return {imgUrl:item}})
|
sketchList.value = list?.apparel?.map((item:any) => {return {imgUrl:item}})
|
||||||
|
|||||||
Reference in New Issue
Block a user