梁沛聪 hace 6 años
padre
commit
af5c1a65b6
Se han modificado 1 ficheros con 12 adiciones y 10 borrados
  1. 12
    10
      miniapp/app/pages/user/index.js

+ 12
- 10
miniapp/app/pages/user/index.js Ver fichero

@@ -3,15 +3,17 @@ const $ = global;
3 3
 
4 4
 new $.Page({
5 5
     onLoad() {
6
-        var article = '<div>我是富文本</div>';
7
-        /**
8
-         * WxParse.wxParse(bindName , type, data, target,imagePadding)
9
-         * 1.bindName绑定的数据名(必填)
10
-         * 2.type可以为html或者md(必填)
11
-         * 3.data为传入的具体数据(必填)
12
-         * 4.target为Page对象,一般为this(必填)
13
-         * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选)
14
-         */
15
-        WxParse.wxParse('article', 'html', article, this, 5);
6
+        $.request('company_info', 'GET', {}).then((res) => {
7
+            var article = '<div>我是富文本</div>'
8
+            /**
9
+             * WxParse.wxParse(bindName , type, data, target,imagePadding)
10
+             * 1.bindName绑定的数据名(必填)
11
+             * 2.type可以为html或者md(必填)
12
+             * 3.data为传入的具体数据(必填)
13
+             * 4.target为Page对象,一般为this(必填)
14
+             * 5.imagePadding为当图片自适应是左右的单一padding(默认为0,可选)
15
+             */
16
+            WxParse.wxParse('article', 'html', article, this, 5)
17
+        });
16 18
     }
17 19
 });

Loading…
Cancelar
Guardar