|
|
|
@ -301,7 +301,16 @@ export default {
|
|
|
|
|
* 结算选中的商品
|
|
|
|
|
*/
|
|
|
|
|
handleOrder() {
|
|
|
|
|
const ids = this.checkedIds;
|
|
|
|
|
const ids = this.checkedIds;
|
|
|
|
|
// 检查是否同时选中实物商品跟虚拟商品,不可以同时结账
|
|
|
|
|
const baseType = this.list.find(i => ids[0] === i.id).productType;
|
|
|
|
|
for(let id of ids){
|
|
|
|
|
const item = this.list.find(i => id === i.id);
|
|
|
|
|
if(item.productType != baseType){
|
|
|
|
|
uni.$u.toast('虚拟商品跟实物商品不能同时结算哦~');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (ids.length) {
|
|
|
|
|
this.$Router.push({
|
|
|
|
|
path : '/orderSubmit',
|
|
|
|
|