Prechádzať zdrojové kódy

适配低版本调试库

xiaohaizhao 2 rokov pred
rodič
commit
2831d783e2
32 zmenil súbory, kde vykonal 204 pridanie a 70 odobranie
  1. 3 1
      components/My_form/index.js
  2. 9 3
      components/Yl_Attachment/index.js
  3. 9 3
      components/Yl_Field/index.js
  4. 6 2
      components/Yl_Files/index.js
  5. 9 3
      components/Yl_Filtrate/index.js
  6. 6 2
      components/Yl_Filtrate/modules/multilevelClass.js
  7. 6 2
      components/Yl_FloatingButton/index.js
  8. 6 2
      components/Yl_FunTabs/index.js
  9. 18 6
      components/Yl_HeadNav/index.js
  10. 12 4
      components/Yl_Headline/index.js
  11. 6 2
      components/Yl_ListBox/index.js
  12. 6 2
      components/Yl_ReportForms/index.js
  13. 6 2
      components/Yl_Tabbar/index.js
  14. 3 1
      packageA/activity/modules/list/index.js
  15. 3 1
      packageA/betweenFee/modules/list/index.js
  16. 3 1
      packageA/dispatchBill/modules/list/index.js
  17. 9 3
      packageA/orderForm/modules/list/index.js
  18. 3 1
      packageA/orderForm/modules/product/index.js
  19. 12 4
      packageA/orderForm/modules/product/list/index.js
  20. 4 2
      packageA/remitVoucher/modules/list.js
  21. 6 2
      packageA/returnOne/modules/list/index.js
  22. 3 1
      packageA/returnOne/modules/product/index.js
  23. 3 1
      packageA/shipment/modules/list/index.js
  24. 6 2
      packageA/shipment/modules/preview/index.js
  25. 3 1
      packageA/toolBill/modules/list/index.js
  26. 13 5
      packageA/toolBill/modules/toolDetail/list/index.js
  27. 3 1
      pages/address/modules/list/index.js
  28. 6 2
      pages/bankAccount/modules/list/index.js
  29. 4 2
      pages/index/home/index.js
  30. 6 2
      pages/index/market/modules/filtrate/index.js
  31. 6 2
      pages/index/market/modules/list/index.js
  32. 6 2
      pages/index/message/modules/list/index.js

+ 3 - 1
components/My_form/index.js

@@ -10,7 +10,9 @@ Component({
             type: Array,
             value: []
         },
-        CompletedOrNot: Function, //完成与否回调
+        CompletedOrNot: {
+            type: Function
+        }, //完成与否回调
     },
     options: {
         multipleSlots: true

+ 9 - 3
components/Yl_Attachment/index.js

@@ -4,9 +4,15 @@ Component({
 		addGlobalClass: true
 	},
 	properties: {
-		ownertable: String,
-		ownerid: String,
-		disabled: Boolean
+		ownertable: {
+			type: String
+		},
+		ownerid: {
+			type: String
+		},
+		disabled: {
+			type: Boolean
+		}
 	},
 	data: {
 		content: {

+ 9 - 3
components/Yl_Field/index.js

@@ -2,13 +2,19 @@ const verify = require('../../utils/Check');
 Component({
 	externalClasses: [],
 	properties: {
-		form: Array,
+		form: {
+			type: Array
+		},
 		showAll: {
 			type: Boolean,
 			value: true
 		}, //不显示必填项
-		onConfirm: Function,
-		interrupt: Function, //打断处理,用于条件判断 把form返回到上个页面处理重新传入
+		onConfirm: {
+			type: Function
+		},
+		interrupt: {
+			type: Function
+		}, //打断处理,用于条件判断 把form返回到上个页面处理重新传入
 	},
 	data: {
 		temporary: null, //route选择暂存选中项

+ 6 - 2
components/Yl_Files/index.js

@@ -14,8 +14,12 @@ Component({
                 files: []
             },
         },
-        delete: Boolean,
-        deleteCallBack: Function
+        delete: {
+            type: Boolean
+        },
+        deleteCallBack: {
+            type: Function
+        }
     },
     methods: {
         /* 预览媒体 */

+ 9 - 3
components/Yl_Filtrate/index.js

@@ -19,8 +19,12 @@ Component({
                 }]
             }]
         },
-        show: Boolean,
-        handle: Function, //按钮回调函数
+        show: {
+            type: Boolean
+        },
+        handle: {
+            type: Function
+        }, //按钮回调函数
         dateRange: { //是否开启日期范围筛选
             type: Boolean,
             value: true
@@ -29,7 +33,9 @@ Component({
             type: String,
             value: 99999,
         },
-        interrupt: Function
+        interrupt: {
+            type: Function
+        }
     },
     data: {
         startdate: "", //开始时间

+ 6 - 2
components/Yl_Filtrate/modules/multilevelClass.js

@@ -1,7 +1,11 @@
 Component({
     properties: {
-        item: Object,
-        jumboSize: Boolean
+        item: {
+            type: Object
+        },
+        jumboSize: {
+            type: Boolean
+        }
     },
     data: {
         active: {}

+ 6 - 2
components/Yl_FloatingButton/index.js

@@ -1,7 +1,11 @@
 Component({
   properties: {
-    radius: Number, //半径 单位px
-    useSlot: Boolean
+    radius: {
+      type: Number
+    }, //半径 单位px
+    useSlot: {
+      type: Boolean
+    }
   },
   data: {
     top: "550px",

+ 6 - 2
components/Yl_FunTabs/index.js

@@ -4,12 +4,16 @@ Component({
         addGlobalClass: true
     },
     properties: {
-        list: Array,
+        list: {
+            type: Array
+        },
         active: {
             type: Number,
             value: 0
         },
-        onChenge: Function
+        onChenge: {
+            type: Function
+        }
     },
     data: {
         scrollLeft: 0,

+ 18 - 6
components/Yl_HeadNav/index.js

@@ -8,8 +8,12 @@ Component({
             type: String,
             value: "default", //默认样式
         },
-        sort: Array, //排序规则列表
-        search: Boolean, //是否开启搜索
+        sort: {
+            type: Array
+        }, //排序规则列表
+        search: {
+            type: Boolean
+        }, //是否开启搜索
         list: { //功能列表
             type: Array,
             value: [{
@@ -32,10 +36,18 @@ Component({
                 id: "filtrate"
             }]
         },
-        condition: String, //搜索内容
-        onClick: Function,
-        startUsing: Boolean, //启用搜索
-        onSearch: Function, //搜索回调
+        condition: {
+            type: String
+        }, //搜索内容
+        onClick: {
+            type: Function
+        },
+        startUsing: {
+            type: Boolean
+        }, //启用搜索
+        onSearch: {
+            type: Function
+        }, //搜索回调
         record: { //记录历史
             type: Boolean,
             value: true

+ 12 - 4
components/Yl_Headline/index.js

@@ -1,13 +1,21 @@
 Component({
   properties: {
-    title: String,
+    title: {
+      type: String
+    },
     type: {
       type: String,
       value: "default", //默认类型 switch-开关
     },
-    switchLabel: String, //开关标签,type==switch生效
-    switch: Boolean, //开关属性值,type==switch生效
-    callBack: Function
+    switchLabel: {
+      type: String
+    }, //开关标签,type==switch生效
+    switch: {
+      type: Boolean
+    }, //开关属性值,type==switch生效
+    callBack: {
+      type: Function
+    }
   },
   methods: {
     /* 改变开关状态 */

+ 6 - 2
components/Yl_ListBox/index.js

@@ -3,8 +3,12 @@ import {
 } from "../../utils/GetRheRemainingHeight";
 Component({
     properties: {
-        height: Number, //组件高度
-        getlist: Function,
+        height: {
+            type: Number
+        }, //组件高度
+        getlist: {
+            type: Function
+        },
         pullDown: { //是否开启下拉
             type: Boolean,
             value: true

+ 6 - 2
components/Yl_ReportForms/index.js

@@ -1,11 +1,15 @@
 Component({
     properties: {
-        list: Array,
+        list: {
+            type: Array
+        },
         showAll: { //是否显示全部(包含值为空项)
             type: Boolean,
             value: true
         },
-        clickItem: Function
+        clickItem: {
+            type: Function
+        }
     },
     methods: {
         /* 单击项目 */

+ 6 - 2
components/Yl_Tabbar/index.js

@@ -1,7 +1,11 @@
 Component({
     properties: {
-        list: Array,
-        callback: Function
+        list: {
+            type: Array
+        },
+        callback: {
+            type: Function
+        }
     },
     data: {
         safeAreaBot: 0,

+ 3 - 1
packageA/activity/modules/list/index.js

@@ -1,5 +1,7 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   }
 })

+ 3 - 1
packageA/betweenFee/modules/list/index.js

@@ -1,5 +1,7 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   },
 })

+ 3 - 1
packageA/dispatchBill/modules/list/index.js

@@ -1,5 +1,7 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   }
 })

+ 9 - 3
packageA/orderForm/modules/list/index.js

@@ -1,7 +1,13 @@
 Component({
     properties: {
-        list: Array,
-        userrole: String,
-        hidePrice: Number
+        list: {
+            type: Array
+        },
+        userrole: {
+            type: String
+        },
+        hidePrice: {
+            type: Number
+        }
     },
 })

+ 3 - 1
packageA/orderForm/modules/product/index.js

@@ -11,7 +11,9 @@ let queue = [],
 
 Component({
     properties: {
-        disabled: Boolean, //禁用
+        disabled: {
+            type: Boolean
+        }, //禁用
     },
     data: {
         content: {

+ 12 - 4
packageA/orderForm/modules/product/list/index.js

@@ -2,10 +2,18 @@ import currency from "../../../../../utils/currency";
 
 Component({
 	properties: {
-		list: Array,
-		deleteItem: Function,
-		changeProduct: Function, //修改队列
-		disabled: Boolean
+		list: {
+			type: Array
+		},
+		deleteItem: {
+			type: Function
+		},
+		changeProduct: {
+			type: Function
+		}, //修改队列
+		disabled: {
+			type: Boolean
+		}
 	},
 	options: {
 		addGlobalClass: true

+ 4 - 2
packageA/remitVoucher/modules/list.js

@@ -1,5 +1,7 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   }
-})
+})

+ 6 - 2
packageA/returnOne/modules/list/index.js

@@ -1,7 +1,11 @@
 Component({
   properties: {
-    list: Array,
-    userrole: String
+    list: {
+      type: Array
+    },
+    userrole: {
+      type: String
+    }
   },
   data: {
     hidePrice: wx.getStorageSync('hidePrice')

+ 3 - 1
packageA/returnOne/modules/product/index.js

@@ -2,7 +2,9 @@ const _Http = getApp().globalData.http,
   file = require("../../../../utils/FormatTheAttachment");
 Component({
   properties: {
-    disabled: Boolean, //禁用
+    disabled: {
+      type: Boolean
+    }, //禁用
   },
   data: {
     sa_aftersalesmagid: 0,

+ 3 - 1
packageA/shipment/modules/list/index.js

@@ -1,6 +1,8 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   },
   methods: {
     copyNum(e) {

+ 6 - 2
packageA/shipment/modules/preview/index.js

@@ -1,7 +1,11 @@
 Component({
   properties: {
-    list1: Array,
-    list2: Array
+    list1: {
+      type: Array
+    },
+    list2: {
+      type: Array
+    }
   },
   data: {
     showAll: false

+ 3 - 1
packageA/toolBill/modules/list/index.js

@@ -1,5 +1,7 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   },
 })

+ 13 - 5
packageA/toolBill/modules/toolDetail/list/index.js

@@ -1,15 +1,23 @@
 Component({
 	properties: {
-		list: Array,
-		deleteItem: Function,
-		changeProduct: Function, //修改队列
-		disabled: Boolean
+		list: {
+			type: Array
+		},
+		deleteItem: {
+			type: Function
+		},
+		changeProduct: {
+			type: Function
+		}, //修改队列
+		disabled: {
+			type: Boolean
+		}
 	},
 	options: {
 		addGlobalClass: true
 	},
 	data: {
-    hidePrice: wx.getStorageSync('hidePrice'),
+		hidePrice: wx.getStorageSync('hidePrice'),
 	},
 	methods: {
 		toProductDetail(e) {

+ 3 - 1
pages/address/modules/list/index.js

@@ -1,5 +1,7 @@
 Component({
   properties: {
-    list: Array
+    list: {
+      type: Array
+    }
   }
 })

+ 6 - 2
pages/bankAccount/modules/list/index.js

@@ -1,7 +1,11 @@
 Component({
   properties: {
-    list: Array,
-    onClick: Function
+    list: {
+      type: Array
+    },
+    onClick: {
+      type: Function
+    }
   },
   methods: {
     handleClick(e) {

+ 4 - 2
pages/index/home/index.js

@@ -1,6 +1,8 @@
 Component({
 	properties: {
-		cutBar: Function
+		cutBar: {
+			type: Function
+		}
 	},
 	options: {
 		addGlobalClass: true,
@@ -16,7 +18,7 @@ Component({
 			} = e.currentTarget.dataset;
 			if (it.PageCur) this.triggerEvent("cutBar", it.PageCur)
 		},
-		toMsg(){
+		toMsg() {
 			this.triggerEvent("cutBar", 'Message')
 		}
 	}

+ 6 - 2
pages/index/market/modules/filtrate/index.js

@@ -1,7 +1,9 @@
 Component({
   properties: {
     list: {
-      type: Array,
+      type: {
+        type: Array
+      },
       value: [{
         label: "筛选1",
         index: null,
@@ -18,7 +20,9 @@ Component({
         }]
       }]
     },
-    handle: Function, //按钮回调函数
+    handle: {
+      type: Function
+    }, //按钮回调函数
     zIndex: {
       type: String,
       value: 99999,

+ 6 - 2
pages/index/market/modules/list/index.js

@@ -1,7 +1,11 @@
 Component({
   properties: {
-    list: Array,
-    hidePrice: Number
+    list: {
+      type: Array
+    },
+    hidePrice: {
+      type: Number
+    }
   },
   methods: {
     toDetail(e) {

+ 6 - 2
pages/index/message/modules/list/index.js

@@ -1,7 +1,11 @@
 Component({
   properties: {
-    list: Array,
-    callback: Function
+    list: {
+      type: Array
+    },
+    callback: {
+      type: Function
+    }
   },
   methods: {
     toDetail(e) {