Commit c47b156c by 李伟康

feat(OrderPopup): 新增 SkuGoodsList 组件

- 添加 SkuGoodsList 组件用于选择商品
- 更新 config.js,增加 SkuGoodsList 配置项
- 修改 index.vue,集成 SkuGoodsList 组件
1 parent ab827da6
......@@ -93,27 +93,12 @@ const componentConfig = {
title: '选择套餐',
placeholder:'查找',
idKey: 'packageCode'
},
12:{
name:'SkuGoodsList',
title: '选择商品',
placeholder:'查找',
}
}
import EmployeeList from './components/EmployeeList.vue'
import DiversionMerchant from './components/DiversionMerchant.vue'
import CarModelList from './components/CarModelList.vue'
import CouponList from './components/CouponList.vue'
import GoodsList from './components/GoodsList.vue'
import PackageList from './components/PackageList.vue'
export default {
data () {
return {
componentConfig
}
},
components: {
EmployeeList,
DiversionMerchant,
CarModelList,
CouponList,
GoodsList,
PackageList
},
}
\ No newline at end of file
export default { componentConfig}
\ No newline at end of file
......@@ -73,8 +73,23 @@
<script type='text/ecmascript-6'>
import config from './config'
import EmployeeList from './components/EmployeeList.vue'
import DiversionMerchant from './components/DiversionMerchant.vue'
import CarModelList from './components/CarModelList.vue'
import CouponList from './components/CouponList.vue'
import GoodsList from './components/GoodsList.vue'
import PackageList from './components/PackageList.vue'
import SkuGoodsList from './components/SkuGoodsList.vue'
export default {
mixins: [config],
components: {
EmployeeList,
DiversionMerchant,
CarModelList,
CouponList,
GoodsList,
PackageList,
SkuGoodsList
},
name: '',
props: {
animation: {
......@@ -93,6 +108,7 @@ export default {
data: [Object, Array],
externalData: null
},
provide () {
return {
userInfo: this.userInfo,
......@@ -109,7 +125,7 @@ export default {
watch: {
popupType: {
handler (val) {
this.componentObject = this.componentConfig[this.popupType]
this.componentObject = config.componentConfig[this.popupType]
if (val == 11 || val == 12) this.position = 'right'
},
deep: true,
......@@ -124,7 +140,7 @@ export default {
},
computed: {
title () {
return this.componentConfig[this.popupType].title
return config.componentConfig[this.popupType].title
},
userInfo () {
return uni.$storage.get("userInfo")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!