Commit e9adb04693848864299ef807264a7691d8b47328

Authored by yvan.ni
1 parent ba33de78

自定义模板的优化

app.json
... ... @@ -243,7 +243,9 @@
243 243 "pages/store/index",
244 244 "pages/user/express/express",
245 245 "pages/team/team_success/team_success",
246   - "pages/plus_agreement/plus_agreement"
  246 + "pages/plus_agreement/plus_agreement",
  247 + "pages/user_template/index"
  248 +
247 249 ]
248 250 }
249 251 ],
... ...
components/diy_user_my_rights/diy_user_my_rights.js 0 → 100644
  1 +Component({
  2 + properties: {
  3 + object: {
  4 + type: Object,
  5 + value: null
  6 + },
  7 + // 这里定义了innerText属性,属性值可以在组件使用时指定
  8 +
  9 + },
  10 + data: {
  11 + // 这里是一些组件内部数据
  12 + someData: {}
  13 + },
  14 + methods: {
  15 + // 这里是一个自定义方法
  16 + customMethod() { }
  17 + }
  18 +})
0 19 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.wxml 0 → 100644
  1 +<view class='assist' style='height:{{object.height*2}}rpx;background-color:{{object.bgcolor}}'></view>
0 2 \ No newline at end of file
... ...
components/diy_user_my_rights/diy_user_my_rights.wxss 0 → 100644
  1 +.assist{
  2 + width: 100%;
  3 + /*border:1px solid #00F;*/
  4 +}
0 5 \ No newline at end of file
... ...
components/diy_user_order/diy_user_order.js 0 → 100644
  1 +Component({
  2 + properties: {
  3 + object: {
  4 + type: Object,
  5 + value: null
  6 + },
  7 + // 这里定义了innerText属性,属性值可以在组件使用时指定
  8 +
  9 + },
  10 + data: {
  11 + // 这里是一些组件内部数据
  12 + someData: {}
  13 + },
  14 + methods: {
  15 + // 这里是一个自定义方法
  16 + customMethod() { }
  17 + }
  18 +})
0 19 \ No newline at end of file
... ...
components/diy_user_order/diy_user_order.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_order/diy_user_order.wxml 0 → 100644
  1 +<view class='assist' style='height:{{object.height*2}}rpx;background-color:{{object.bgcolor}}'></view>
0 2 \ No newline at end of file
... ...
components/diy_user_order/diy_user_order.wxss 0 → 100644
  1 +.assist{
  2 + width: 100%;
  3 + /*border:1px solid #00F;*/
  4 +}
0 5 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.js 0 → 100644
  1 +Component({
  2 + properties: {
  3 + object: {
  4 + type: Object,
  5 + value: null
  6 + },
  7 + // 这里定义了innerText属性,属性值可以在组件使用时指定
  8 +
  9 + },
  10 + data: {
  11 + // 这里是一些组件内部数据
  12 + someData: {}
  13 + },
  14 + methods: {
  15 + // 这里是一个自定义方法
  16 + customMethod() { }
  17 + }
  18 +})
0 19 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.json 0 → 100644
  1 +{
  2 + "component": true
  3 + }
0 4 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.wxml 0 → 100644
  1 +<view class='assist' style='height:{{object.height*2}}rpx;background-color:{{object.bgcolor}}'></view>
0 2 \ No newline at end of file
... ...
components/diy_user_tools_services/diy_user_tools_services.wxss 0 → 100644
  1 +.assist{
  2 + width: 100%;
  3 + /*border:1px solid #00F;*/
  4 +}
0 5 \ No newline at end of file
... ...
packageG/pages/user_template/index.js
... ... @@ -2,10 +2,9 @@
2 2 var t = getApp(),
3 3 a = t.request,
4 4 os = t.globalData.setting,
5   - ut = require("../../utils/util.js"),
6   - com = require("../../utils/common.js");
7   - var regeneratorRuntime = require('../../utils/runtime.js');
8   - var api = require('../../api/api.js');
  5 + ut = require("../../../utils/util.js"),
  6 + com = require("../../../utils/common.js");
  7 + var regeneratorRuntime = require('../../../utils/runtime.js');
9 8 var appd = getApp().globalData;
10 9  
11 10 Page({
... ... @@ -48,7 +47,8 @@ Page({
48 47  
49 48 }
50 49 },
51   - //获取商品模块实例
  50 +
  51 + //获取商品模块实例
52 52 newGoodsGroup(){
53 53 let arr=[]
54 54 if (this.data.template_arr.length == 0) {
... ... @@ -112,9 +112,6 @@ Page({
112 112  
113 113 }
114 114 })
115   -
116   -
117   -
118 115 },
119 116  
120 117 onPullDownRefresh: function(e) {
... ... @@ -175,6 +172,7 @@ Page({
175 172 console.log(ob);
176 173 return ob;
177 174 },
  175 +
178 176 //---加载更多是靠这个函数----
179 177 onReachBottom: function() {
180 178 if(getApp().globalData.func_list)
... ...
packageG/pages/user_template/index.json
... ... @@ -7,7 +7,7 @@
7 7 "diy_user_info":"/components/diy_user_info/diy_user_info",
8 8 "diy_user_order":"/components/diy_user_order/diy_user_order",
9 9 "diy_user_my_rights":"/components/diy_user_my_rights/diy_user_my_rights",
10   - "diy_user_tools_services":"/components/diy_user_my_rights/diy_user_tools_services"
  10 + "diy_user_tools_services":"/components/diy_user_tools_services/diy_user_tools_services"
11 11 },
12 12 "enablePullDownRefresh": false,
13 13 "onReachBottomDistance":300
... ...