释义:295:37 'page' is not defined. no-undef 表示该文件的第295行出现了错误
(1)\utils\request.js
85行:fail: function () { 括号里加上res
改成:fail: function (res) {
(2)\pages\show\show.js
191行that未定义
解决办法:在digg里边第一行加上:var that = this;
(3)\pages\page\page.js
1、290:23 'CATEGORYS' is not defined. no-undef
在290前面2加上:var CATEGORYS = swan.getStorageSync('categorys')
2、295:37 'page' is not defined. no-undef
在295前面加上:let page = that.data.page;
(4)\pages\news\news.js
236:22 'curtypied' is not defined. no-undef
236行的curtypied改成curtypeid
(5)\pages\list\list.js
287:22 'curtypied' is not defined. no-undef
287行的curtypied改成curtypeid
(6)pages\index\index.js
286:37 'userinfo' is not defined. no-undef
在var that = this;下边添加:var userinfo = swan.getStorageSync('userInfo');
(7)\pages\index\index.js
138:38 'errMsg' is not defined. no-undef
137行的fail: function () {改成:fail: function (errMsg) {