diff --git a/README.md b/README.md
index 4617c1c..7762487 100644
--- a/README.md
+++ b/README.md
@@ -25,3 +25,33 @@ npm run build
## How to use weui in wepy
[wechat-applet-wepy-introduces-weui](https://laravelcode.cn/posts/63/wechat-applet-wepy-introduces-weui)
+
+
+# Error Code
+
+| Code | Errmsg |
+| ---- | --- |
+| 1002 | 获取话题数据错误 |
+| 1004 | 创建回复错误 |
+| 1101 | 正常显示数据错误 |
+| 1301 | 列表信息错误 |
+
+
+app.wpy: content: '服务器错误,请联系管理员'
+components/topicList.wpy: content: '服务器错误,请联系管理员'
+mixins/replyMixin.js: content: '服务器错误,请联系管理员'
+mixins/replyMixin.js: content: '服务器错误,请联系管理员'
+pages/auth/register.wpy: content: '服务器错误,请联系管理员'
+pages/auth/register.wpy: content: '服务器错误,请联系管理员'
+pages/auth/register.wpy: content: '服务器错误,请联系管理员'
+pages/auth/login.wpy: content: '服务器错误,请联系管理员'
+pages/auth/login.wpy: content: '服务器错误,请联系管理员'
+pages/replies/create.wpy: content: '错误: 1004,请联系管理员'
+pages/users/show.wpy: content: '服务器错误,请联系管理员'
+pages/users/edit.wpy: content: '服务器错误,请联系管理员'
+pages/users/edit.wpy: content: '服务器错误,请联系管理员'
+pages/notifications/index.wpy: content: '服务器错误,请联系管理员'
+pages/notifications/index.wpy: content: '服务器错误,请联系管理员'
+pages/topics/show.wpy: content: '错误码: 1002,请联系管理员'
+pages/topics/index.wpy: content: '服务器错误,请联系管理员'
+utils/api.js: content: '服务器错误,请联系管理员或重试'
diff --git a/src/app.wpy b/src/app.wpy
index ae18e33..a6a3ba1 100644
--- a/src/app.wpy
+++ b/src/app.wpy
@@ -66,13 +66,13 @@ export default class extends wepy.app {
list: [{
pagePath: 'pages/topics/index',
text: '首页',
- iconPath: 'images/index.png',
- selectedIconPath: 'images/index_selected.png'
+ iconPath: '/static/tabs/home.png',
+ selectedIconPath: '/static/tabs/home_active.png'
}, {
pagePath: 'pages/users/me',
text: '我的',
- iconPath: 'images/user.png',
- selectedIconPath: 'images/user_selected.png'
+ iconPath: '/static/tabs/user_active.png',
+ selectedIconPath: '/static/tabs/user_active.png'
}],
color: '#707070',
selectedColor: '#00b5ad'
diff --git a/src/components/topicList.wpy b/src/components/topicList.wpy
index 88e3aa5..467092a 100644
--- a/src/components/topicList.wpy
+++ b/src/components/topicList.wpy
@@ -112,7 +112,7 @@
console.log(err)
wepy.showModal({
title: '提示',
- content: '服务器错误,请联系管理员'
+ content: '服务器错误 topiclist,请联系管理员'
})
}
}
diff --git a/src/mixins/replyMixin.js b/src/mixins/replyMixin.js
index 1c418a4..969cd76 100644
--- a/src/mixins/replyMixin.js
+++ b/src/mixins/replyMixin.js
@@ -53,7 +53,7 @@ export default class ReplyMixin extends wepy.mixin {
console.log(err)
wepy.showModal({
title: '提示',
- content: '服务器错误,请联系管理员'
+ content: '错误: 1301,请联系管理员'
})
}
}
@@ -122,7 +122,7 @@ export default class ReplyMixin extends wepy.mixin {
console.log(err)
wepy.showModal({
title: '提示',
- content: '服务器错误,请联系管理员'
+ content: '错误: 1305,请联系管理员'
})
}
}
diff --git a/src/pages/replies/create.wpy b/src/pages/replies/create.wpy
index 69410ac..f033c48 100644
--- a/src/pages/replies/create.wpy
+++ b/src/pages/replies/create.wpy
@@ -101,7 +101,7 @@
console.log(err)
wepy.showModal({
title: '提示',
- content: '服务器错误,请联系管理员'
+ content: '错误: 1004,请联系管理员'
})
}
}
diff --git a/src/pages/replies/index.wpy b/src/pages/replies/index.wpy
index 05e4f88..05bcb43 100644
--- a/src/pages/replies/index.wpy
+++ b/src/pages/replies/index.wpy
@@ -37,7 +37,7 @@
-
+
diff --git a/src/pages/topics/index.wpy b/src/pages/topics/index.wpy
index 1148058..ba33930 100644
--- a/src/pages/topics/index.wpy
+++ b/src/pages/topics/index.wpy
@@ -64,7 +64,7 @@
话题
-
+
{{ category.name }}
@@ -125,6 +125,7 @@
}
this.categories = categories
+ console.log('categories====', categories)
this.$apply()
}
onLoad() {
diff --git a/src/pages/topics/show.wpy b/src/pages/topics/show.wpy
index 3cd0b63..ec6dbfb 100644
--- a/src/pages/topics/show.wpy
+++ b/src/pages/topics/show.wpy
@@ -27,7 +27,7 @@ page{
-
+
@@ -73,7 +73,7 @@ page{
-
+
查看全部回复
@@ -81,7 +81,7 @@ page{
-
+
@@ -147,7 +147,7 @@ page{
console.log(err)
wepy.showModal({
title: '提示',
- content: '服务器错误,请联系管理员'
+ content: '错误码: 1002,请联系管理员'
})
}
}