pull/3/head
张宇 2 years ago
parent 6dfb2f37c5
commit b2facaefb9

@ -1,5 +1,5 @@
<template> <template>
<view class="myTable" :style="{ height: props.height }"> <view class="yTable" :style="{ height: props.height }">
<wd-toast /> <wd-toast />
<kevyloading v-if="loading" type="bsm-loader" color="#618af8" transparent></kevyloading> <kevyloading v-if="loading" type="bsm-loader" color="#618af8" transparent></kevyloading>
<scroll-view scroll-y="true" class="scroll-Y" :style="{ height: props.height }" @scrolltolower="lower"> <scroll-view scroll-y="true" class="scroll-Y" :style="{ height: props.height }" @scrolltolower="lower">
@ -144,7 +144,7 @@ defineExpose({
</script> </script>
<style lang="scss"> <style lang="scss">
.myTable { .yTable {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
} }

@ -1,5 +1,5 @@
<template> <template>
<view class="myTable"> <view class="yTable">
<kevyloading v-if="loading" type="bsm-loader" color="#618af8" transparent></kevyloading> <kevyloading v-if="loading" type="bsm-loader" color="#618af8" transparent></kevyloading>
<wd-table :data="list" :border="true"> <wd-table :data="list" :border="true">

@ -3,7 +3,7 @@
<wd-popup v-model="show" closable position="left" custom-style="width: 86vw;" @close="handleClose"> <wd-popup v-model="show" closable position="left" custom-style="width: 86vw;" @close="handleClose">
<div class="pop myUpload"> <div class="pop yUpload">
<div class="bg-white overflow-hidden h-full" style="background-clip: content-box;"> <div class="bg-white overflow-hidden h-full" style="background-clip: content-box;">
<view class="bg-gray-100 p-4 flex"> <view class="bg-gray-100 p-4 flex">
@ -33,7 +33,7 @@
</div> </div>
<view class="overflow-hidden rounded-t-3xl"> <view class="overflow-hidden rounded-t-3xl">
<myList ref="myListRef" :apiObj="system.resourcesList" :params="{ ...params, classify_id }"> <yList ref="yListRef" :apiObj="system.resourcesList" :params="{ ...params, classify_id }">
<template #default="{ list }"> <template #default="{ list }">
<view class="grid grid-cols-2 gap-4 p-4 overflow-hidden rounded-t-3xl"> <view class="grid grid-cols-2 gap-4 p-4 overflow-hidden rounded-t-3xl">
@ -54,7 +54,7 @@
</view> </view>
</template> </template>
</myList> </yList>
</view> </view>
</div> </div>
</div> </div>
@ -72,10 +72,10 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import system from '@/api/modules/system.js' import system from '@/api/modules/system.js'
import myList from "/components/myList/index.vue" import yList from "/components/yList/index.vue"
import folderPng from '@/assets/images/folder.png' import folderPng from '@/assets/images/folder.png'
import { uploadImage } from '@/utils/request'; import { uploadImage } from '@/utils/request';
const myListRef = ref(null) const yListRef = ref(null)
const formData = ref({ const formData = ref({
parent_id: 0, parent_id: 0,
@ -97,7 +97,7 @@ const chooseFile = async () => {
const result = await uploadImage({ filePath, formData: formData.value, name: "image" }) const result = await uploadImage({ filePath, formData: formData.value, name: "image" })
console.log('成功上传图片:', result); console.log('成功上传图片:', result);
myListRef.value.upData() yListRef.value.upData()
// //
} catch (error) { } catch (error) {

@ -16,7 +16,7 @@
</view> </view>
<wd-popup :z-index="998" v-model="show" closable position="left" custom-style="width: 86vw;" @close="close(false)"> <wd-popup :z-index="998" v-model="show" closable position="left" custom-style="width: 86vw;" @close="close(false)">
<view class="pop myUpload"> <view class="pop yUpload">
<view class="bg-white overflow-hidden h-full" style="background-clip: content-box;"> <view class="bg-white overflow-hidden h-full" style="background-clip: content-box;">
<view class="bg-gray-100 p-4 flex"> <view class="bg-gray-100 p-4 flex">
@ -46,7 +46,7 @@
</view> </view>
<view class="overflow-hidden rounded-t-3xl"> <view class="overflow-hidden rounded-t-3xl">
<myList ref="myListRef" :apiObj="system.resourcesList"> <yList ref="yListRef" :apiObj="system.resourcesList">
<template #default="{ list }"> <template #default="{ list }">
<view class="grid grid-cols-2 gap-4 p-4 overflow-hidden rounded-t-3xl"> <view class="grid grid-cols-2 gap-4 p-4 overflow-hidden rounded-t-3xl">
@ -67,7 +67,7 @@
</view> </view>
</template> </template>
</myList> </yList>
</view> </view>
</view> </view>
</view> </view>
@ -80,10 +80,10 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import system from '@/api/modules/system.js' import system from '@/api/modules/system.js'
import myList from "/components/myList/index.vue" import yList from "/components/yList/index.vue"
import folderPng from '@/assets/images/folder.png' import folderPng from '@/assets/images/folder.png'
import { uploadImage } from '@/utils/request'; import { uploadImage } from '@/utils/request';
const myListRef = ref(null) const yListRef = ref(null)
const formData = ref({ const formData = ref({
parent_id: 0, parent_id: 0,
@ -105,7 +105,7 @@ const chooseFile = async () => {
const result = await uploadImage({ filePath, formData: formData.value, name: "image" }) const result = await uploadImage({ filePath, formData: formData.value, name: "image" })
console.log('成功上传图片:', result); console.log('成功上传图片:', result);
myListRef.value.upData() yListRef.value.upData()
// //
} catch (error) { } catch (error) {
@ -134,8 +134,8 @@ const show = ref(false)
const open = (O) => { const open = (O) => {
show.value = O show.value = O
if (O && myListRef.value?.upData) { if (O && yListRef.value?.upData) {
myListRef.value.upData() yListRef.value.upData()
} }
if (props.modelValue) { if (props.modelValue) {

@ -62,7 +62,7 @@
</view> </view>
<view class="goodsBox p-2"> <view class="goodsBox p-2">
<myList ref="myListRef" :apiObj="order.after_sale.index" :params="{ ...params, status: params.status - 1 }"> <yList ref="yListRef" :apiObj="order.after_sale.index" :params="{ ...params, status: params.status - 1 }">
<template #default="{ list }"> <template #default="{ list }">
<view> <view>
<view v-for="item of list" class="goods"> <view v-for="item of list" class="goods">
@ -195,7 +195,7 @@
</view> </view>
</view> </view>
</template> </template>
</myList> </yList>
</view> </view>
<wd-toast /> <wd-toast />
@ -207,7 +207,7 @@
<script setup> <script setup>
import utils from '@/utils/utils.js'; import utils from '@/utils/utils.js';
import order from '@/api/store/order.js'; import order from '@/api/store/order.js';
import myList from "/components/myList/index.vue"; import yList from "/components/yList/index.vue";
import { useMessage } from '@/uni_modules/wot-design-uni'; import { useMessage } from '@/uni_modules/wot-design-uni';
import { useToast } from '@/uni_modules/wot-design-uni'; import { useToast } from '@/uni_modules/wot-design-uni';
import { ref } from 'vue'; import { ref } from 'vue';
@ -286,10 +286,10 @@ const params = ref({
type: 'order_no' type: 'order_no'
}); });
const myListRef = ref(null); const yListRef = ref(null);
const search = ({ value }) => { const search = ({ value }) => {
myListRef.value.upData({ yListRef.value.upData({
keywords: value, keywords: value,
classify_id: classify_id.value, classify_id: classify_id.value,
status: params.value.status - 1 status: params.value.status - 1
@ -410,7 +410,7 @@ const shipments = (row) => {
if (shipmentsModel.value.send_type == 1) { if (shipmentsModel.value.send_type == 1) {
if (shipmentsModel.value.delivery_company && shipmentsModel.value.delivery_no) { if (shipmentsModel.value.delivery_company && shipmentsModel.value.delivery_no) {
order.orderSend({ order.update({
id: row.id, id: row.id,
status: "4", status: "4",
express_company: shipmentsModel.value.delivery_company, express_company: shipmentsModel.value.delivery_company,

@ -8,7 +8,7 @@
<wd-form ref="form" :model="baseForm"> <wd-form ref="form" :model="baseForm">
<wd-cell-group class="flex py-2 w-full" title="分类图片"> <wd-cell-group class="flex py-2 w-full" title="分类图片">
<view class="ml-3"> <view class="ml-3">
<myUpload v-model="baseForm.pic_url" :size="1"></myUpload> <yUpload v-model="baseForm.pic_url" :size="1"></yUpload>
</view> </view>
</wd-cell-group> </wd-cell-group>
@ -39,7 +39,7 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import goods from '@/api/store/goods.js' import goods from '@/api/store/goods.js'
import myUpload from "@/components/myUpload/index.vue" import yUpload from "@/components/yUpload/index.vue"
import { import {
onLoad, onLoad,
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";

@ -52,7 +52,7 @@
<template #value="scope"> <template #value="scope">
<view class="overflow-hidden w-full h-full flex items-center justify-center"> <view class="overflow-hidden w-full h-full flex items-center justify-center">
<view class="px-2 pb-1 bg-white flex items-center justify-center mt-4 overflow-hidden"> <view class="px-2 pb-1 bg-white flex items-center justify-center mt-4 overflow-hidden">
<myUpload v-model="scope.row.pic_url"></myUpload> <yUpload v-model="scope.row.pic_url"></yUpload>
</view> </view>
</view> </view>
</template> </template>
@ -106,7 +106,7 @@
</template> </template>
<script> <script>
import myUpload from "@/components/myUpload/index.vue" import yUpload from "@/components/yUpload/index.vue"
import { useToast } from '@/uni_modules/wot-design-uni' import { useToast } from '@/uni_modules/wot-design-uni'
const toast = useToast() const toast = useToast()
@ -119,7 +119,7 @@ export default {
}, },
}, },
components: { components: {
myUpload yUpload
}, },
data() { data() {
return { return {

@ -9,7 +9,7 @@
<div class="bg-gray-100 rounded mb-2"> <div class="bg-gray-100 rounded mb-2">
<div class="bg-white flex flex-col pt-3 pl-3"> <div class="bg-white flex flex-col pt-3 pl-3">
<div class="name mb-2 text-xs">缩略图</div> <div class="name mb-2 text-xs">缩略图</div>
<myUpload v-model="model.pic_url"></myUpload> <yUpload v-model="model.pic_url"></yUpload>
</div> </div>
</div> </div>
</div> </div>
@ -18,7 +18,7 @@
<div class="bg-gray-100 rounded mb-2"> <div class="bg-gray-100 rounded mb-2">
<div class="bg-white flex flex-col pt-3 pl-3"> <div class="bg-white flex flex-col pt-3 pl-3">
<div class="name mb-2 text-xs">商品主图</div> <div class="name mb-2 text-xs">商品主图</div>
<myUpload v-model="model.pic_list" :size="4"></myUpload> <yUpload v-model="model.pic_list" :size="4"></yUpload>
</div> </div>
</div> </div>
</div> </div>
@ -121,7 +121,7 @@ import { useToast, useMessage } from '@/uni_modules/wot-design-uni';
import goods from '@/api/store/goods.js'; import goods from '@/api/store/goods.js';
import system from '@/api/modules/system.js'; import system from '@/api/modules/system.js';
import skuEdit from "./components/skuEdit.vue"; import skuEdit from "./components/skuEdit.vue";
import myUpload from "@/components/myUpload/index.vue"; import yUpload from "@/components/yUpload/index.vue";
import { onLoad, onShow } from "@dcloudio/uni-app"; import { onLoad, onShow } from "@dcloudio/uni-app";
/** /**

@ -19,7 +19,7 @@
</view> </view>
<div class="goodsBox p-2"> <div class="goodsBox p-2">
<myList height="78vh" ref="myListRef" :apiObj="goods.list" :params="{ ...params, classify_id }"> <yList height="78vh" ref="yListRef" :apiObj="goods.list" :params="{ ...params, classify_id }">
<template #default="{ list }"> <template #default="{ list }">
<div> <div>
<div v-for="item of list" class="goods"> <div v-for="item of list" class="goods">
@ -55,7 +55,7 @@
</div> </div>
</div> </div>
</template> </template>
</myList> </yList>
<view class="flex mt-2 fixed left-2 right-2 bottom-3 px-10"> <view class="flex mt-2 fixed left-2 right-2 bottom-3 px-10">
<wd-button @click="utils.toUrl('/store/cat/index')" class="flex-3">分类</wd-button> <wd-button @click="utils.toUrl('/store/cat/index')" class="flex-3">分类</wd-button>
@ -71,7 +71,7 @@
<script setup> <script setup>
import { ref } from 'vue' import { ref } from 'vue'
import { useToast } from '@/uni_modules/wot-design-uni' import { useToast } from '@/uni_modules/wot-design-uni'
import myList from "/components/myList/index.vue" import yList from "/components/yList/index.vue"
import goods from '@/api/store/goods.js' import goods from '@/api/store/goods.js'
import utils from '@/utils/utils.js' import utils from '@/utils/utils.js'
@ -89,9 +89,9 @@ const params = ref({
status: "", status: "",
}) })
const myListRef = ref(null) const yListRef = ref(null)
const search = ({ value }) => { const search = ({ value }) => {
myListRef.value.upData({ yListRef.value.upData({
keywords: value, keywords: value,
classify_id: classify_id.value, classify_id: classify_id.value,
status: params.value.status status: params.value.status

@ -67,10 +67,11 @@
<view style="transition: 1s;" class="w-full h-full bg-white pt-4 rounded-tr-3xl rounded-tl-3xl shadow-lg oh"> <view style="transition: 1s;" class="w-full h-full bg-white pt-4 rounded-tr-3xl rounded-tl-3xl shadow-lg oh">
<view class="order mb-2"> <view class="order mb-2">
<wd-grid v-show="oneLine.ok"> <wd-grid v-show="oneLine.ok">
<wd-grid-item icon="round" :text="`用户 (${oneLine.user_count})`" /> <wd-grid-item @click="utils.toUrl('/store/user/list')" icon="round" :text="`用户 (${oneLine.user_count})`" />
<wd-grid-item icon="round" :text="`商品 (${oneLine.goods_count})`" /> <wd-grid-item @click="utils.toUrl('/store/goods/index')" icon="round" :text="`商品 (${oneLine.goods_count})`" />
<wd-grid-item icon="round" :text="`售罄 (${oneLine.empty_stock_count})`" /> <wd-grid-item @click="utils.toUrl('/store/goods/index')" icon="round"
<wd-grid-item icon="round" :text="`订单 (${oneLine.order_count})`" /> :text="`售罄 (${oneLine.empty_stock_count})`" />
<wd-grid-item @click="utils.toUrl('/store/order/index')" icon="round" :text="`订单 (${oneLine.order_count})`" />
</wd-grid> </wd-grid>
</view> </view>
</view> </view>
@ -88,12 +89,21 @@
</div> </div>
<div class="grid grid-cols-2 gap-2 my-4"> <div class="grid grid-cols-2 gap-2 my-4">
<div class="item rounded-1xl bg-slate-50 p-2 flex justify-between" style="font-size: 24rpx;" <div @click="utils.toUrl('/store/order/index?s=' + (index + 1))"
class="item rounded-1xl bg-slate-50 p-2 flex justify-between" style="font-size: 24rpx;"
v-for="(item, index) of orderProfit.categories"> v-for="(item, index) of orderProfit.categories">
{{ item }} {{ item }}
<text>{{ orderProfit.series[0].data[index] }}</text> <text>{{ orderProfit.series[0].data[index] }}</text>
</div> </div>
<div @click="utils.toUrl('/store/afterSale/index')"
class="item rounded-1xl bg-slate-50 p-2 flex justify-between" style="font-size: 24rpx;">
售后订单
<text></text>
</div>
</div> </div>
<bar :barData="orderProfit"></bar> <bar :barData="orderProfit"></bar>

@ -62,7 +62,7 @@
</view> </view>
<view class="goodsBox p-2"> <view class="goodsBox p-2">
<myList ref="myListRef" :apiObj="order.orderList" :params="{ ...params, status: params.status - 1 }"> <yList ref="yListRef" :apiObj="order.orderList" :params="{ ...params, status: params.status - 1 }">
<template #default="{ list }"> <template #default="{ list }">
<view> <view>
<view v-for="item of list" class="goods"> <view v-for="item of list" class="goods">
@ -169,7 +169,7 @@
</view> </view>
</view> </view>
</template> </template>
</myList> </yList>
</view> </view>
<wd-toast /> <wd-toast />
</view> </view>
@ -178,10 +178,11 @@
<script setup> <script setup>
import utils from '@/utils/utils.js'; import utils from '@/utils/utils.js';
import order from '@/api/store/order.js'; import order from '@/api/store/order.js';
import myList from "/components/myList/index.vue"; import yList from "/components/yList/index.vue";
import { useMessage } from '@/uni_modules/wot-design-uni'; import { useMessage } from '@/uni_modules/wot-design-uni';
import { useToast } from '@/uni_modules/wot-design-uni'; import { useToast } from '@/uni_modules/wot-design-uni';
import { ref } from 'vue'; import { ref, nextTick } from 'vue';
import { onLoad } from "@dcloudio/uni-app";
const message = useMessage('wd-message-box-slot'); const message = useMessage('wd-message-box-slot');
const message1 = useMessage(); const message1 = useMessage();
@ -191,20 +192,26 @@ const classify_id = ref(0);
const params = ref({ const params = ref({
keywords: "", keywords: "",
status: "", status: 0,
type: 'order_no' type: 'order_no'
}); });
const myListRef = ref(null); const yListRef = ref(null);
const search = ({ value }) => { const search = ({ value }) => {
myListRef.value.upData({ yListRef.value.upData({
keywords: value, keywords: value,
classify_id: classify_id.value, classify_id: classify_id.value,
status: params.value.status - 1 status: params.value.status - 1
}); });
}; };
onLoad(({ s } = {}) => {
if (s) {
params.value.status = Number(s)
}
})
const searchType = ref('订单编号'); const searchType = ref('订单编号');
const popover = ref(false); const popover = ref(false);

@ -21,7 +21,7 @@
<wd-cell-group class="flex py-2 w-full" title="商城LOGO"> <wd-cell-group class="flex py-2 w-full" title="商城LOGO">
<view class="ml-3"> <view class="ml-3">
<myUpload v-model="storeData.logo_url" :size="1"></myUpload> <yUpload v-model="storeData.logo_url" :size="1"></yUpload>
</view> </view>
</wd-cell-group> </wd-cell-group>
@ -141,7 +141,7 @@
<script> <script>
import { ref } from 'vue'; import { ref } from 'vue';
import myUpload from "@/components/myUpload/index.vue"; import yUpload from "@/components/yUpload/index.vue";
import uniDataPicker from "@/components/uni-data-picker/components/uni-data-picker/uni-data-picker.vue"; import uniDataPicker from "@/components/uni-data-picker/components/uni-data-picker/uni-data-picker.vue";
import system from '@/api/modules/system.js'; import system from '@/api/modules/system.js';
import index from '@/api/store/index.js'; import index from '@/api/store/index.js';
@ -154,7 +154,7 @@ const user_info = uni.getStorageSync("user_info");
export default { export default {
components: { components: {
myUpload, uniDataPicker, kevyloading yUpload, uniDataPicker, kevyloading
}, },
data() { data() {
return { return {

@ -12,7 +12,7 @@
<wd-cell-group class="flex py-2 w-full" title="商城LOGO"> <wd-cell-group class="flex py-2 w-full" title="商城LOGO">
<view class="ml-3"> <view class="ml-3">
<myUpload v-model="storeData.logo_url" :size="1"></myUpload> <yUpload v-model="storeData.logo_url" :size="1"></yUpload>
</view> </view>
</wd-cell-group> </wd-cell-group>
@ -21,7 +21,7 @@
<wd-cell-group class="flex py-2 w-full" title="门头照图片"> <wd-cell-group class="flex py-2 w-full" title="门头照图片">
<view class="ml-3"> <view class="ml-3">
<myUpload v-model="storeData.store_url" :size="1"></myUpload> <yUpload v-model="storeData.store_url" :size="1"></yUpload>
</view> </view>
</wd-cell-group> </wd-cell-group>
@ -84,7 +84,7 @@
<script> <script>
import { ref } from 'vue'; import { ref } from 'vue';
import myUpload from "@/components/myUpload/index.vue"; import yUpload from "@/components/yUpload/index.vue";
import uniDataPicker from "@/components/uni-data-picker/components/uni-data-picker/uni-data-picker.vue"; import uniDataPicker from "@/components/uni-data-picker/components/uni-data-picker/uni-data-picker.vue";
import system from '@/api/modules/system.js'; import system from '@/api/modules/system.js';
import index from '@/api/store/index.js'; import index from '@/api/store/index.js';
@ -99,7 +99,7 @@ const user_info = uni.getStorageSync("user_info");
export default { export default {
components: { components: {
myUpload, uniDataPicker, kevyloading yUpload, uniDataPicker, kevyloading
}, },
data() { data() {
return { return {

@ -55,7 +55,7 @@
<wd-tabs v-model="tab"> <wd-tabs v-model="tab">
<block v-for="item in 1" :key="item + '余额记录'"> <block v-for="item in 1" :key="item + '余额记录'">
<wd-tab title="余额记录"> <wd-tab title="余额记录">
<myList height="64vh" v-if="userInfo.id" ref="myListRef" :apiObj="user.getLog" <yList height="64vh" v-if="userInfo.id" ref="yListRef" :apiObj="user.getLog"
:params="{ model: 'balance', id: userInfo.id }"> :params="{ model: 'balance', id: userInfo.id }">
<template #default="{ list }"> <template #default="{ list }">
<div class="pt-3 bg-gray-50"> <div class="pt-3 bg-gray-50">
@ -78,13 +78,13 @@
</view> </view>
</div> </div>
</template> </template>
</myList> </yList>
</wd-tab> </wd-tab>
</block> </block>
<block v-for="item in 1" :key="item + '积分记录'"> <block v-for="item in 1" :key="item + '积分记录'">
<wd-tab title="积分记录"> <wd-tab title="积分记录">
<myList height="64vh" v-if="userInfo.id" ref="myListRef" :apiObj="user.getLog" <yList height="64vh" v-if="userInfo.id" ref="yListRef" :apiObj="user.getLog"
:params="{ model: 'integral', id: userInfo.id }"> :params="{ model: 'integral', id: userInfo.id }">
<template #default="{ list }"> <template #default="{ list }">
<div class="pt-3 bg-gray-50"> <div class="pt-3 bg-gray-50">
@ -107,7 +107,7 @@
</view> </view>
</div> </div>
</template> </template>
</myList> </yList>
</wd-tab> </wd-tab>
</block> </block>
@ -125,7 +125,7 @@
import { ref } from 'vue'; import { ref } from 'vue';
import utils from '@/utils/utils.js'; import utils from '@/utils/utils.js';
import user from '@/api/store/user.js'; import user from '@/api/store/user.js';
import myList from "/components/myList/index.vue"; import yList from "/components/yList/index.vue";
import kevyloading from "@/components/kevy-loading/kevy-loading"; import kevyloading from "@/components/kevy-loading/kevy-loading";
import { useMessage } from '@/uni_modules/wot-design-uni' import { useMessage } from '@/uni_modules/wot-design-uni'
const message = useMessage() const message = useMessage()

@ -26,7 +26,7 @@
<div class="grid p-2"> <div class="grid p-2">
<myList height="90vh" ref="myListRef" :apiObj="user.userList" :params="{ ...params }"> <yList height="90vh" ref="yListRef" :apiObj="user.userList" :params="{ ...params }">
<template #default="{ list: userList }"> <template #default="{ list: userList }">
<div v-for="user of userList" class="rounded-md overflow-hidden"> <div v-for="user of userList" class="rounded-md overflow-hidden">
<wd-card class="rounded-md overflow-hidden" type="rectangle"> <wd-card class="rounded-md overflow-hidden" type="rectangle">
@ -82,7 +82,7 @@
</wd-card> </wd-card>
</div> </div>
</template> </template>
</myList> </yList>
</div> </div>
@ -104,7 +104,7 @@ import myTabbar from "../components/myTabbar/index.vue";
import kevyloading from "@/components/kevy-loading/kevy-loading"; import kevyloading from "@/components/kevy-loading/kevy-loading";
import { useMessage } from '@/uni_modules/wot-design-uni'; import { useMessage } from '@/uni_modules/wot-design-uni';
import { useToast } from '@/uni_modules/wot-design-uni' import { useToast } from '@/uni_modules/wot-design-uni'
import myList from "/components/myList/index.vue"; import yList from "/components/yList/index.vue";
import { import {
onShow, onShow,
@ -121,7 +121,7 @@ const originType = ref({
300: 'warning', 300: 'warning',
}) })
const myListRef = ref(null); const yListRef = ref(null);
const searchType = ref('昵称'); const searchType = ref('昵称');
const popover = ref(false); const popover = ref(false);
@ -130,14 +130,14 @@ const popover = ref(false);
const search = ({ value }) => { const search = ({ value }) => {
if (searchType.value == '昵称') { if (searchType.value == '昵称') {
myListRef.value.upData({ yListRef.value.upData({
nickname: params.value.keywords, nickname: params.value.keywords,
mobile: '' mobile: ''
}); });
} }
if (searchType.value == '手机号') { if (searchType.value == '手机号') {
myListRef.value.upData({ yListRef.value.upData({
nickname: '', nickname: '',
mobile: params.value.keywords mobile: params.value.keywords
}); });

Loading…
Cancel
Save