|
|
@ -302,6 +302,15 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
handleOrder() {
|
|
|
|
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) {
|
|
|
|
if (ids.length) {
|
|
|
|
this.$Router.push({
|
|
|
|
this.$Router.push({
|
|
|
|
path : '/orderSubmit',
|
|
|
|
path : '/orderSubmit',
|
|
|
|