diff --git a/江可飞/小程序开发/app.json b/江可飞/小程序开发/app.json index b75f6fd..bf76303 100644 --- a/江可飞/小程序开发/app.json +++ b/江可飞/小程序开发/app.json @@ -1,8 +1,7 @@ { "pages": [ - "pages/index/index", - "pages/logs/logs", "pages/shouye/shouye", + "pages/logs/logs", "pages/fenlei/fenlei", "pages/gouwu/gouwu", "pages/wode/wode" @@ -17,7 +16,7 @@ "selectedColor": "#f00", "list": [ { - "pagePath": "pages/index/index", + "pagePath": "pages/shouye/shouye", "text": "首页", "iconPath": "pages/index/image/1.png", "selectedIconPath": "pages/index/image/2.png" diff --git a/江可飞/小程序开发/app.wxss b/江可飞/小程序开发/app.wxss index 06c6fc9..e6e7510 100644 --- a/江可飞/小程序开发/app.wxss +++ b/江可飞/小程序开发/app.wxss @@ -1,4 +1,6 @@ /**app.wxss**/ +@import 'weui.wxss'; +@import "html-view/index.wxss"; .container { height: 100%; display: flex; @@ -8,3 +10,12 @@ padding: 200rpx 0; box-sizing: border-box; } + +.containers { + height: 100%; + flex-direction: column; + align-items: center; + justify-content: space-between; + box-sizing: border-box; +} + diff --git a/江可飞/小程序开发/html-view/each/default.js b/江可飞/小程序开发/html-view/each/default.js new file mode 100644 index 0000000..604014b --- /dev/null +++ b/江可飞/小程序开发/html-view/each/default.js @@ -0,0 +1,79 @@ +const html5Entities = require('../vendors/html5-entities') +const { windowWidth } = wx.getSystemInfoSync() + +module.exports = item => { + // decode html entities + if (item.type === 'Text') { + item.content = html5Entities.decode(item.content) + return + } + + //