diff --git a/config/app.js b/config/app.js index 313fd1e..d8d8126 100644 --- a/config/app.js +++ b/config/app.js @@ -17,7 +17,7 @@ switch (env) { WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull' break; case 'local': - BASE_URL = 'http://192.168.1.7:8545'; + BASE_URL = 'http://192.168.1.22:8545'; WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull' break; default: diff --git a/multipleShop/index/index.vue b/multipleShop/index/index.vue index 97f3843..a8d5bfe 100644 --- a/multipleShop/index/index.vue +++ b/multipleShop/index/index.vue @@ -79,7 +79,7 @@ name: '', cart_id: "", page_no: 1, - page_size: 6 + page_size: 50 }) // 初始化 diff --git a/pageQuota/purchase_product_offer/index.vue b/pageQuota/purchase_product_offer/index.vue index 5f62ef6..67b63fc 100644 --- a/pageQuota/purchase_product_offer/index.vue +++ b/pageQuota/purchase_product_offer/index.vue @@ -48,11 +48,23 @@ - + + @@ -162,17 +174,20 @@ goodsList1.value = res.data.lists } const supplierList = ref([]) - const getSupplierList = () => { - supplierListApi().then(res => { - supplierList.value = [res.data.lists] + const getSupplierList = (val='') => { + supplierListApi({mer_name:val}).then(res => { + supplierList.value =res.data.lists }) } + function changeCallback(item) { + console.log("选中的item:", item) + } const supplierConfirm = (e) => { showSupplier.value = false supplierText.value = e.value[0].mer_name formData.value.supplier_id = e.value[0].id } - const cancleOrder = (item) => { + const cancleOrder = (item) => { columns.value[0].forEach(e => { if (e['name_b'] == item['category_name']) { pickerText.value = e['name'] diff --git a/uni_modules/next-search-select/changelog.md b/uni_modules/next-search-select/changelog.md new file mode 100644 index 0000000..7e0e49a --- /dev/null +++ b/uni_modules/next-search-select/changelog.md @@ -0,0 +1,18 @@ +## 1.0.8(2024-09-14) +更新说明 +## 1.0.7(2023-12-14) +修复icon +## 1.0.6(2023-09-25) +增加多选,多次搜索默认值选项回显功能 +## 1.0.5(2023-08-15) +修复小程序端兼容性问题 +## 1.0.4(2023-08-15) +增加props配置disabledKey +## 1.0.3(2023-08-14) +增加visibleChange +## 1.0.2(2023-06-06) +增加按需加载说明 +## 1.0.1(2023-05-31) +增加没有搜索到数据的提示 +## 1.0.0(2023-05-31) +发布next-search-select diff --git a/uni_modules/next-search-select/components/next-search-select/next-search-select.vue b/uni_modules/next-search-select/components/next-search-select/next-search-select.vue new file mode 100644 index 0000000..85d4503 --- /dev/null +++ b/uni_modules/next-search-select/components/next-search-select/next-search-select.vue @@ -0,0 +1,557 @@ + + + + + diff --git a/uni_modules/next-search-select/components/next-search-select/right_icon.png b/uni_modules/next-search-select/components/next-search-select/right_icon.png new file mode 100644 index 0000000..7a5f4eb Binary files /dev/null and b/uni_modules/next-search-select/components/next-search-select/right_icon.png differ diff --git a/uni_modules/next-search-select/package.json b/uni_modules/next-search-select/package.json new file mode 100644 index 0000000..d289892 --- /dev/null +++ b/uni_modules/next-search-select/package.json @@ -0,0 +1,80 @@ +{ + "id": "next-search-select", + "displayName": "next-search-select-搜索框组件全端可用", + "version": "1.0.8", + "description": "简单好用的带搜索功能select组件,支持多种展示形式,可自定义placeholder,远程搜索,多选,单选", + "keywords": [ + "远程搜索", + "多选", + "单选", + "search", + "api搜索" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.1" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "插件不采集任何数据", + "permissions": "无" + }, + "npmurl": "", + "type": "component-vue" + }, + "uni_modules": { + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "n", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "n", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "n", + "Edge": "n", + "Firefox": "n", + "Safari": "n" + }, + "小程序": { + "微信": "y", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u" + }, + "快应用": { + "华为": "n", + "联盟": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/next-search-select/readme.md b/uni_modules/next-search-select/readme.md new file mode 100644 index 0000000..bbc37e4 --- /dev/null +++ b/uni_modules/next-search-select/readme.md @@ -0,0 +1,155 @@ + +## next-search-select --下拉多选,单选,搜索 + +> 遇到问题或有建议可以加入QQ群(455948571)反馈 +> 如果觉得组件不错,给五星鼓励鼓励咯! + +### 如果有使用问题请加群 + +注意:如果插件问题,请务必给一个完整的复现demo,谢谢配合; +[点击链接加入群聊前端开发(uniapp插件)】](https://qm.qq.com/q/S1bJzQfJAG) + +## 使用 + +>[从uniapp插件市场导入](https://ext.dcloud.net.cn/plugin?name=next-search-select) + +```html + +``` + +### vue3 + ts 使用 + +```ts + + + +``` +### vue2 同样支持,在这里不再写demo + +### 组件按需加载 +如果不需要组件全局加载,而已把组件拷贝到项目的components目录下,单独引入进来使用即可达到按需加载的效果 +### 预览 + +*** + +| 功能预览 | +| :--------------------------------------------------------------------------:| +| ![](https://lixueshiaa.github.io/webtest/www/static/next-search-select.gif) | + + +## 参数 + + +### next-search-select Props + +可选参数属性列表 + +|参数名 |说明 |类型 |是否必填 |默认值 |可选值 | +|---- |---- |---- |---- |---- |---- | +|showSearch |是否显示搜索框 |Boolean |否 |true |false | +|value |v-model v-model:value 绑定值 |Number, String, Array, Object |是 |"" |- | +|placeholder |搜索框placeholder |String |否 |"" |- | +|multiple |是否多选 |Boolean |否 |false |true | +|list | 列表值 |Array |是 |[] |- | +|valueKey |list列表绑定的value关键属性key |String |否 |value |- | +|labelKey |list列表绑定的label(显示)关键属性key |String |否 |label |- | +|disabledKey |list列表绑定的disabled(显示)关键属性key |String |否 |disabled |- | +|disabled| disabled |Boolean |否 |false |true | +|emptyText |重置按钮文本text |String |否 |重置 |- | +|title |弹层标题 |String |否 |选择内容 |- | +|confirmText |确定按钮文本text |String |否 |确定 |- | +|color |文字颜色 |String |否 |#000000 |- | +|selectColor |激活颜色 |String |否 |#f9ae3d |- | +|bgColor |弹层背景颜色 |String |否 |#ffffff |- | +|selectBgColor |激活项背景颜色 |String |否 |#ffffff |- | +|showSearchBtn |是否显示搜索按钮 |Boolean |否 |true |false | +|showArrow |是否显示右指示箭头 |Boolean |否 |true |false | + + +# Event 事件 +|事件名 |说明 |类型 |回调参数 | +|---- |---- |---- |---- | +|confirm|点击确定触发事件 |emit |- | +|change|change |emit |- | +|visibleChange|弹层改变触发 |emit |- | \ No newline at end of file