Commit c47b156c by 李伟康

feat(OrderPopup): 新增 SkuGoodsList 组件

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