fix: 优化预约商品展示。
This commit is contained in:
@@ -142,8 +142,8 @@
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/imaotai/iuser/list",
|
||||
"iconPath": "static/images/tabbar/work.png",
|
||||
"selectedIconPath": "static/images/tabbar/work_.png",
|
||||
"iconPath": "static/images/tabbar/home.png",
|
||||
"selectedIconPath": "static/images/tabbar/home_.png",
|
||||
"text": "账号管理"
|
||||
},
|
||||
{
|
||||
@@ -152,12 +152,12 @@
|
||||
"selectedIconPath": "static/images/tabbar/statistic_.png",
|
||||
"text": "预约记录"
|
||||
},
|
||||
// {
|
||||
// "pagePath": "pages/imaotai/iitem/list",
|
||||
// "iconPath": "static/images/tabbar/statistic.png",
|
||||
// "selectedIconPath": "static/images/tabbar/statistic_.png",
|
||||
// "text": "商品"
|
||||
// },
|
||||
{
|
||||
"pagePath": "pages/imaotai/iitem/list",
|
||||
"iconPath": "static/images/tabbar/work.png",
|
||||
"selectedIconPath": "static/images/tabbar/work.png",
|
||||
"text": "商品"
|
||||
},
|
||||
// {
|
||||
// "pagePath": "pages/imaotai/ishop/list",
|
||||
// "iconPath": "static/images/tabbar/statistic.png",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view class="list-item">
|
||||
<view class="item-header">
|
||||
<u--text lines="2" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
|
||||
:text="item.title+'-'+item.itemCode" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||
:text="item.title+'('+item.itemCode+')'" size="30rpx" color="#333333" :bold="true"></u--text>
|
||||
</view>
|
||||
<view class="item-row">
|
||||
<image :src="item.pictureV2"></image>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
inputAlign="right" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="预约商品" prop="itemCode" required>
|
||||
<mySelectCheckbox v-model="itemSelect" multiple placeholder="请选择预约商品" dataKey="title" dataValue="itemCode" :localdata="itemList"
|
||||
<mySelectCheckbox v-model="itemSelect" multiple placeholder="请选择预约商品" dataKey="itemCodeTitle" dataValue="itemCode" :localdata="itemList"
|
||||
@change="itemChange"></mySelectCheckbox>
|
||||
</u-form-item>
|
||||
<u-form-item label="省份" prop="provinceName" required @click="handleProvinceName">
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
inputAlign="right" border="none"></u--input>
|
||||
</u-form-item>
|
||||
<u-form-item label="预约商品" prop="itemCode" required>
|
||||
<mySelectCheckbox v-model="itemSelect" multiple dataKey="title" dataValue="itemCode" :localdata="itemList"
|
||||
<mySelectCheckbox v-model="itemSelect" multiple dataKey="itemCodeTitle" dataValue="itemCode" :localdata="itemList"
|
||||
@change="itemChange"></mySelectCheckbox>
|
||||
</u-form-item>
|
||||
<u-form-item label="省份" prop="provinceName" required @click="handleProvinceName">
|
||||
@@ -97,6 +97,7 @@ import {reactive ,toRefs,ref,computed ,getCurrentInstance }from "vue";
|
||||
const title = ref("账号添加")
|
||||
|
||||
const itemSelect = ref([])
|
||||
const modelValue = ref([])
|
||||
|
||||
const provinceNameList = ref([])
|
||||
const showProvinceName = ref(false)
|
||||
@@ -226,11 +227,13 @@ function getData() {
|
||||
itemSelect.value = []
|
||||
if (form.value.itemCode.indexOf('@') == -1 && form.value.itemCode !== '') {
|
||||
itemSelect.value.push(form.value.itemCode)
|
||||
modelValue.value.push(form.value.itemCode)
|
||||
} else {
|
||||
const arr = form.value.itemCode.split('@')
|
||||
arr.forEach((e) => {
|
||||
if (e !== '') {
|
||||
itemSelect.value.push(e)
|
||||
modelValue.value.push(e)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user