确认订单页面列表为空处理

This commit is contained in:
GaoHao
2024-08-03 17:19:41 +08:00
parent 35d4304410
commit ef7ef4baaa

View File

@@ -376,7 +376,14 @@
* 生成订单
*/
orderdetail() {
console.log(this.radiovalue)
console.log(this.listinfo.details)
if ( this.listinfo.details.length == 0) {
uni.showToast({
title: "购物车为空,请添加商品",
icon: "none",
})
return;
}
let data = {
"skuId": '',
"num": '', //数量