This commit is contained in:
X1627315083@163.com
2026-05-28 11:43:43 +08:00
parent 729755efdf
commit 7057a6c8f7

View File

@@ -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}})