|
@@ -19,13 +19,21 @@ Component({
|
|
|
/* 回调 */
|
|
/* 回调 */
|
|
|
saleprodChange: {
|
|
saleprodChange: {
|
|
|
type: Function
|
|
type: Function
|
|
|
|
|
+ },
|
|
|
|
|
+ /* 分类列表 */
|
|
|
|
|
+ dataList: {
|
|
|
|
|
+ type: Array
|
|
|
|
|
+ },
|
|
|
|
|
+ /* 是否请求 */
|
|
|
|
|
+ isRequest: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ value: true
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
lifetimes: {
|
|
lifetimes: {
|
|
|
attached: function () {
|
|
attached: function () {
|
|
|
//查询类目列表
|
|
//查询类目列表
|
|
|
- _Http.basic({
|
|
|
|
|
|
|
+ if (this.data.isRequest) _Http.basic({
|
|
|
"accesstoken": wx.getStorageSync('userData').token,
|
|
"accesstoken": wx.getStorageSync('userData').token,
|
|
|
"classname": "enterprise.system.prodclass",
|
|
"classname": "enterprise.system.prodclass",
|
|
|
"method": "query_typeselectList",
|
|
"method": "query_typeselectList",
|
|
@@ -61,7 +69,6 @@ Component({
|
|
|
* 组件的初始数据
|
|
* 组件的初始数据
|
|
|
*/
|
|
*/
|
|
|
data: {
|
|
data: {
|
|
|
- dataList: [], //类目列表
|
|
|
|
|
pitchOnList: [], //选中列表
|
|
pitchOnList: [], //选中列表
|
|
|
},
|
|
},
|
|
|
|
|
|