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

@ -1,5 +1,5 @@
<template>
<view class="myTable" :style="{ height: props.height }">
<view class="yTable" :style="{ height: props.height }">
<wd-toast />
<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">
@ -144,7 +144,7 @@ defineExpose({
</script>
<style lang="scss">
.myTable {
.yTable {
display: flex;
overflow: hidden;
}

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

@ -3,7 +3,7 @@
<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;">
<view class="bg-gray-100 p-4 flex">
@ -33,7 +33,7 @@
</div>
<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 }">
<view class="grid grid-cols-2 gap-4 p-4 overflow-hidden rounded-t-3xl">
@ -54,7 +54,7 @@
</view>
</template>
</myList>
</yList>
</view>
</div>
</div>
@ -72,10 +72,10 @@
<script setup>
import { ref } from 'vue'
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 { uploadImage } from '@/utils/request';
const myListRef = ref(null)
const yListRef = ref(null)
const formData = ref({
parent_id: 0,
@ -97,7 +97,7 @@ const chooseFile = async () => {
const result = await uploadImage({ filePath, formData: formData.value, name: "image" })
console.log('成功上传图片:', result);
myListRef.value.upData()
yListRef.value.upData()
//
} catch (error) {

@ -16,7 +16,7 @@
</view>
<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-gray-100 p-4 flex">
@ -46,7 +46,7 @@
</view>
<view class="overflow-hidden rounded-t-3xl">
<myList ref="myListRef" :apiObj="system.resourcesList">
<yList ref="yListRef" :apiObj="system.resourcesList">
<template #default="{ list }">
<view class="grid grid-cols-2 gap-4 p-4 overflow-hidden rounded-t-3xl">
@ -67,7 +67,7 @@
</view>
</template>
</myList>
</yList>
</view>
</view>
</view>
@ -80,10 +80,10 @@
<script setup>
import { ref, computed } from 'vue'
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 { uploadImage } from '@/utils/request';
const myListRef = ref(null)
const yListRef = ref(null)
const formData = ref({
parent_id: 0,
@ -105,7 +105,7 @@ const chooseFile = async () => {
const result = await uploadImage({ filePath, formData: formData.value, name: "image" })
console.log('成功上传图片:', result);
myListRef.value.upData()
yListRef.value.upData()
//
} catch (error) {
@ -134,8 +134,8 @@ const show = ref(false)
const open = (O) => {
show.value = O
if (O && myListRef.value?.upData) {
myListRef.value.upData()
if (O && yListRef.value?.upData) {
yListRef.value.upData()
}
if (props.modelValue) {

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

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

@ -1,15 +1,15 @@
<template>
<view class="skuEdit">
<wd-table rowHeight="100" :data="Pdata.use_sku == 0
? skuDefault
: skuLibrary
" :stripe="false">
? skuDefault
: skuLibrary
" :stripe="false">
<wd-table-col prop="name" label="SKU">
<template #value="scope">
<view class="custom-class">
<span style="margin-right: 4px" v-for="(item, index) of scope.row
.attr_list" :key="index">
.attr_list" :key="index">
{{ item.name }}
</span>
</view>
@ -52,7 +52,7 @@
<template #value="scope">
<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">
<myUpload v-model="scope.row.pic_url"></myUpload>
<yUpload v-model="scope.row.pic_url"></yUpload>
</view>
</view>
</template>
@ -79,7 +79,7 @@
<div class="flex items-center justify-between w-full bg-white p-2">
<div class="mr-3">
<wd-tag type="primary" custom-class="space" closable @close="moveGroup(index)">{{
item.name }}</wd-tag>
item.name }}</wd-tag>
</div>
<div class="mr-3">
<wd-input type="text" v-model="addGouppItemData[index]" />
@ -92,7 +92,7 @@
<wd-tag custom-class="space1" closable round type="warning" class="mx-1"
v-for="(value, key) in item.groupItem" :key="key" style="margin-left: 10px"
@close="removeGroupItem(index, key)">{{ value.name
}}</wd-tag>
}}</wd-tag>
</view>
</div>
</div>
@ -106,7 +106,7 @@
</template>
<script>
import myUpload from "@/components/myUpload/index.vue"
import yUpload from "@/components/yUpload/index.vue"
import { useToast } from '@/uni_modules/wot-design-uni'
const toast = useToast()
@ -119,7 +119,7 @@ export default {
},
},
components: {
myUpload
yUpload
},
data() {
return {

@ -9,7 +9,7 @@
<div class="bg-gray-100 rounded mb-2">
<div class="bg-white flex flex-col pt-3 pl-3">
<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>
@ -18,7 +18,7 @@
<div class="bg-gray-100 rounded mb-2">
<div class="bg-white flex flex-col pt-3 pl-3">
<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>
@ -121,7 +121,7 @@ import { useToast, useMessage } from '@/uni_modules/wot-design-uni';
import goods from '@/api/store/goods.js';
import system from '@/api/modules/system.js';
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";
/**

@ -19,7 +19,7 @@
</view>
<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 }">
<div>
<div v-for="item of list" class="goods">
@ -55,7 +55,7 @@
</div>
</div>
</template>
</myList>
</yList>
<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>
@ -71,7 +71,7 @@
<script setup>
import { ref } from 'vue'
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 utils from '@/utils/utils.js'
@ -89,9 +89,9 @@ const params = ref({
status: "",
})
const myListRef = ref(null)
const yListRef = ref(null)
const search = ({ value }) => {
myListRef.value.upData({
yListRef.value.upData({
keywords: value,
classify_id: classify_id.value,
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 class="order mb-2">
<wd-grid v-show="oneLine.ok">
<wd-grid-item icon="round" :text="`用户 (${oneLine.user_count})`" />
<wd-grid-item icon="round" :text="`商品 (${oneLine.goods_count})`" />
<wd-grid-item icon="round" :text="`售罄 (${oneLine.empty_stock_count})`" />
<wd-grid-item icon="round" :text="`订单 (${oneLine.order_count})`" />
<wd-grid-item @click="utils.toUrl('/store/user/list')" icon="round" :text="`用户 (${oneLine.user_count})`" />
<wd-grid-item @click="utils.toUrl('/store/goods/index')" icon="round" :text="`商品 (${oneLine.goods_count})`" />
<wd-grid-item @click="utils.toUrl('/store/goods/index')" icon="round"
:text="`售罄 (${oneLine.empty_stock_count})`" />
<wd-grid-item @click="utils.toUrl('/store/order/index')" icon="round" :text="`订单 (${oneLine.order_count})`" />
</wd-grid>
</view>
</view>
@ -88,12 +89,21 @@
</div>
<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">
{{ item }}
<text>{{ orderProfit.series[0].data[index] }}</text>
</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>
<bar :barData="orderProfit"></bar>

@ -62,7 +62,7 @@
</view>
<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 }">
<view>
<view v-for="item of list" class="goods">
@ -169,7 +169,7 @@
</view>
</view>
</template>
</myList>
</yList>
</view>
<wd-toast />
</view>
@ -178,10 +178,11 @@
<script setup>
import utils from '@/utils/utils.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 { 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 message1 = useMessage();
@ -191,20 +192,26 @@ const classify_id = ref(0);
const params = ref({
keywords: "",
status: "",
status: 0,
type: 'order_no'
});
const myListRef = ref(null);
const yListRef = ref(null);
const search = ({ value }) => {
myListRef.value.upData({
yListRef.value.upData({
keywords: value,
classify_id: classify_id.value,
status: params.value.status - 1
});
};
onLoad(({ s } = {}) => {
if (s) {
params.value.status = Number(s)
}
})
const searchType = ref('订单编号');
const popover = ref(false);

@ -21,7 +21,7 @@
<wd-cell-group class="flex py-2 w-full" title="商城LOGO">
<view class="ml-3">
<myUpload v-model="storeData.logo_url" :size="1"></myUpload>
<yUpload v-model="storeData.logo_url" :size="1"></yUpload>
</view>
</wd-cell-group>
@ -36,9 +36,9 @@
<view class="ml-3">
<!-- 省市区选择器 -->
<uni-data-picker placeholder="请选择省市区" popup-title="" :localdata="addrList" :map="{
text: 'name',
value: 'id',
}" v-model="storeData.district" @change="select">
text: 'name',
value: 'id',
}" v-model="storeData.district" @change="select">
</uni-data-picker>
</view>
</wd-cell-group>
@ -141,7 +141,7 @@
<script>
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 system from '@/api/modules/system.js';
import index from '@/api/store/index.js';
@ -154,7 +154,7 @@ const user_info = uni.getStorageSync("user_info");
export default {
components: {
myUpload, uniDataPicker, kevyloading
yUpload, uniDataPicker, kevyloading
},
data() {
return {

@ -12,7 +12,7 @@
<wd-cell-group class="flex py-2 w-full" title="商城LOGO">
<view class="ml-3">
<myUpload v-model="storeData.logo_url" :size="1"></myUpload>
<yUpload v-model="storeData.logo_url" :size="1"></yUpload>
</view>
</wd-cell-group>
@ -21,7 +21,7 @@
<wd-cell-group class="flex py-2 w-full" title="门头照图片">
<view class="ml-3">
<myUpload v-model="storeData.store_url" :size="1"></myUpload>
<yUpload v-model="storeData.store_url" :size="1"></yUpload>
</view>
</wd-cell-group>
@ -36,9 +36,9 @@
<view class="ml-3">
<!-- 省市区选择器 -->
<uni-data-picker placeholder="请选择省市区" popup-title="" :localdata="addrList" :map="{
text: 'name',
value: 'id',
}" v-model="storeData.district" @change="select">
text: 'name',
value: 'id',
}" v-model="storeData.district" @change="select">
</uni-data-picker>
</view>
</wd-cell-group>
@ -84,7 +84,7 @@
<script>
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 system from '@/api/modules/system.js';
import index from '@/api/store/index.js';
@ -99,7 +99,7 @@ const user_info = uni.getStorageSync("user_info");
export default {
components: {
myUpload, uniDataPicker, kevyloading
yUpload, uniDataPicker, kevyloading
},
data() {
return {

@ -55,7 +55,7 @@
<wd-tabs v-model="tab">
<block v-for="item in 1" :key="item + '余额记录'">
<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 }">
<template #default="{ list }">
<div class="pt-3 bg-gray-50">
@ -78,13 +78,13 @@
</view>
</div>
</template>
</myList>
</yList>
</wd-tab>
</block>
<block v-for="item in 1" :key="item + '积分记录'">
<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 }">
<template #default="{ list }">
<div class="pt-3 bg-gray-50">
@ -107,7 +107,7 @@
</view>
</div>
</template>
</myList>
</yList>
</wd-tab>
</block>
@ -125,7 +125,7 @@
import { ref } from 'vue';
import utils from '@/utils/utils.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 { useMessage } from '@/uni_modules/wot-design-uni'
const message = useMessage()

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

Loading…
Cancel
Save