确认订单页面列表为空处理
This commit is contained in:
@@ -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": '', //数量
|
||||
|
||||
Reference in New Issue
Block a user