mix-public 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/mixRender.js +9 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/mixRender.js
CHANGED
|
@@ -3,6 +3,7 @@ import mixTabbar from "./pageRender/tabbar.js"
|
|
|
3
3
|
import { mixPop } from "./pageRender/pageDisplay.js"
|
|
4
4
|
import { mixPublicLib } from "./main/mixappfunc.ts"
|
|
5
5
|
import { mixFloatingWindowRender } from "./pageRender/componentsRender.js"
|
|
6
|
+
import { getAppPageInfo } from "./pageRender/getInfo.js"
|
|
6
7
|
const renderBasic = (callback) => {
|
|
7
8
|
document.body.innerHTML = `<div id="mix-main">
|
|
8
9
|
<div id="mix-navigation">
|
|
@@ -27,7 +28,6 @@ const renderBasic = (callback) => {
|
|
|
27
28
|
</div>`
|
|
28
29
|
callback()
|
|
29
30
|
}
|
|
30
|
-
|
|
31
31
|
export default (op) => {
|
|
32
32
|
const mixJustMethod = op.mixJustMethod || false
|
|
33
33
|
const mixAppParameter = {
|
|
@@ -89,5 +89,12 @@ export default (op) => {
|
|
|
89
89
|
renderBasic(pageOnload);
|
|
90
90
|
// 若为web端且页面为非首次加载,则执行OnStart(需转为异步延迟执行)
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
const getPageInfo = () => {
|
|
93
|
+
return new Promise((resolve, reject) => {
|
|
94
|
+
getAppPageInfo(mixAppParameter).then(res => {
|
|
95
|
+
resolve(res.showTitle)
|
|
96
|
+
}).catch(err => { reject(err) })
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
return { ...minMainFn, PageInfo: getPageInfo }
|
|
93
100
|
};
|