[fix]修改添加购物车,字符串类型拼加

main
huyuanxiang 2 years ago
parent e634c11e87
commit 87529795fd

@ -3,7 +3,7 @@ import App from './App';
import nodata from "./pages/commponent/public/nodata";
import request from 'utils/request.js' //引入异步请求函数
import {toast} from './utils/util'
import './utils/noprint.js'
// import './utils/noprint.js'
import json from './json' //测试用数据

@ -304,7 +304,7 @@ export default {
for(let y = 0;y < colCart.length; y++){
const item = colCart[y]
if (data.id === item.id) {
item.number += this.number
item.number += +this.number
if (item.number > this.stock) {
item.number = this.stock
}

@ -114,7 +114,7 @@ export default {
}, {
name: '设置',
icon: 'icon-shezhi2',
url: 'pages/views/setting/index',
url: '/pages/views/setting/index',
id: 9,
elseUrl: ''
}],

Loading…
Cancel
Save