diff --git a/main.js b/main.js index b2aa203..8562496 100644 --- a/main.js +++ b/main.js @@ -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' //测试用数据 diff --git a/pages/commponent/public/sku.vue b/pages/commponent/public/sku.vue index d5d3ad0..eb5c217 100644 --- a/pages/commponent/public/sku.vue +++ b/pages/commponent/public/sku.vue @@ -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 } diff --git a/pages/views/tabBar/user.vue b/pages/views/tabBar/user.vue index 7d56a0f..4480f1a 100644 --- a/pages/views/tabBar/user.vue +++ b/pages/views/tabBar/user.vue @@ -114,7 +114,7 @@ export default { }, { name: '设置', icon: 'icon-shezhi2', - url: 'pages/views/setting/index', + url: '/pages/views/setting/index', id: 9, elseUrl: '' }],