From 312fd8d1bc3e2e68356c14ae7213c9effd89e4af Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Mon, 29 Sep 2025 09:01:52 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/shop.ts | 546 ++++---- src/api/market/coupon.ts | 73 +- .../marketing_center/super_vip/index.vue | 1133 +++++++++-------- .../wisdom_recharge/index.vue | 8 +- src/views/shop/list/branch_list.vue | 326 +++++ .../list/components/user-coupon-dialog.vue | 208 +-- src/views/user/list/index.vue | 431 ++++--- 7 files changed, 1563 insertions(+), 1162 deletions(-) create mode 100644 src/views/shop/list/branch_list.vue diff --git a/src/api/account/shop.ts b/src/api/account/shop.ts index 4a45291..14ad0b6 100644 --- a/src/api/account/shop.ts +++ b/src/api/account/shop.ts @@ -2,95 +2,103 @@ import request from "@/utils/request"; const baseURL = "account/admin/shopInfo"; const ShopApi = { - /** 获取店铺列表*/ - getList(params: PageQuery) { - return request({ - url: `${baseURL}`, - method: "get", - params: params, - }); - }, - getBranchList(params: PageQuery) { - return request({ - url: `${baseURL}/branchList`, - method: "get", - params: params, - }); - }, - getBranchChange(id: PageQuery) { - return request({ - url: `${baseURL}/change/${id}`, - method: "post", - }); - }, - add(data: ShopInfoEditDTO) { - return request({ - url: `${baseURL}`, - method: "post", - data, - }); - }, - edit(data: ShopInfoEditDTO) { - return request({ - url: `${baseURL}`, - method: "put", - data, - }); - }, - get(params: getRequest) { - return request({ - url: `${baseURL}/detail`, - method: "get", - params - }); - }, - delete(params: any) { - return request({ - url: `${baseURL}`, - method: "delete", - params, - }); - }, + /** 获取店铺列表*/ + getList(params : PageQuery) { + return request({ + url: `${baseURL}`, + method: "get", + params: params, + }); + }, + /** 获取店铺分店列表*/ + getOtherShopList(params : PageQuery) { + return request({ + url: `${baseURL}/otherShop`, + method: "get", + params: params, + }); + }, + getBranchList(params : PageQuery) { + return request({ + url: `${baseURL}/branchList`, + method: "get", + params: params, + }); + }, + getBranchChange(id : PageQuery) { + return request({ + url: `${baseURL}/change/${id}`, + method: "post", + }); + }, + add(data : ShopInfoEditDTO) { + return request({ + url: `${baseURL}`, + method: "post", + data, + }); + }, + edit(data : ShopInfoEditDTO) { + return request({ + url: `${baseURL}`, + method: "put", + data, + }); + }, + get(params : getRequest) { + return request({ + url: `${baseURL}/detail`, + method: "get", + params + }); + }, + delete(params : any) { + return request({ + url: `${baseURL}`, + method: "delete", + params, + }); + }, }; export default ShopApi; export interface getRequest { - /** - * 店铺id,可不传,不传递则为获取当前用户店铺 - */ - id?: string | number; - [property: string]: any; + /** + * 店铺id,可不传,不传递则为获取当前用户店铺 + */ + id ?: string | number; + [property : string] : any; } /** * ShopInfoEditDTO */ export interface ShopInfoEditDTO { - accountName?: null | string; - accountPwd?: null | string; - activateCode?: null | string; - address?: null | string; - chainName?: null | string; - detail?: null | string; - frontImg?: null | string; - id: number | null; - lat?: null | string; - lng?: null | string; - logo?: null | string; - phone?: null | string; - profiles?: null | string; - roleId?: number | null; - shopName?: null | string; - shopType?: null | string; - [property: string]: any; + accountName ?: null | string; + accountPwd ?: null | string; + activateCode ?: null | string; + address ?: null | string; + chainName ?: null | string; + detail ?: null | string; + frontImg ?: null | string; + id : number | null; + lat ?: null | string; + lng ?: null | string; + logo ?: null | string; + phone ?: null | string; + profiles ?: null | string; + roleId ?: number | null; + shopName ?: null | string; + shopType ?: null | string; + [property : string] : any; } export interface PageQuery { - page: number; - shopName?: string; - size: number; - status?: number; - [property: string]: any; + page : number; + shopName ?: string; + size : number; + status ?: number; + [property : string] : any; } @@ -98,196 +106,196 @@ export interface PageQuery { * ShopInfo */ export interface ShopInfo { - /** - * 详细地址 - */ - address?: null | string; - /** - * 项目分类 - */ - article?: null | string; - /** - * 背景图 - */ - backImg?: null | string; - /** - * 开票系统账号 - */ - bindAccount?: null | string; - /** - * 台桌预订短信 - */ - bookingSms?: null | string; - /** - * 营业时间(周结束) - */ - businessEndDay?: null | string; - /** - * 营业时间(周开始) - */ - businessStartDay?: null | string; - /** - * 营业时间 - */ - businessTime?: null | string; - /** - * 连锁店扩展店名 - */ - chainName?: null | string; - /** - * 市 - */ - cities?: null | string; - /** - * 积分群体 all-所有 vip-仅针对会员 - */ - consumeColony?: null | string; - /** - * 联系人姓名 - */ - contactName?: null | string; - /** - * 封面图 - */ - coverImg?: null | string; - createTime?: null | string; - /** - * 店铺简介 - */ - detail?: null | string; - /** - * 区/县 - */ - districts?: null | string; - /** - * 就餐模式 堂食 dine-in 外带 take-out - */ - eatModel?: null | string; - /** - * 到期时间 - */ - expireTime?: null | string; - /** - * 门头照 - */ - frontImg?: null | string; - /** - * 使用系统用户 sys_user id - */ - id?: number | null; - /** - * 是否开启会员余额支付 - */ - isAccountPay?: number | null; - /** - * 是否允许会员自定义金额 1 允许 0 不允许 - */ - isCustomAmount?: number | null; - /** - * 是否开启会员充值密码 1 启用 0 禁用 - */ - isMemberInPwd?: number | null; - /** - * 是否启用会员价 0否1是 - */ - isMemberPrice?: number | null; - /** - * 是否开启会员退款密码 1 启用 0 禁用 - */ - isMemberReturnPwd?: number | null; - /** - * 是否开启退款密码 1 启用 0 禁用 - */ - isReturnPwd?: number | null; - /** - * 是否免除桌位费 0否1是 - */ - isTableFee?: number | null; - /** - * 经纬度 - */ - lat?: null | string; - /** - * 经纬度 - */ - lng?: null | string; - /** - * 店铺logo - */ - logo?: null | string; - /** - * 主店id - */ - mainId?: number | null; - /** - * 0停业 1,正常营业 2,网上售卖 - */ - onSale?: number | null; - /** - * 操作密码 - */ - operationPwd?: null | string; - /** - * 店铺收款码 - */ - paymentQrcode?: null | string; - /** - * 联系电话 - */ - phone?: null | string; - /** - * trial试用版,release正式 - */ - profiles?: null | string; - /** - * 省 - */ - provinces?: null | string; - registerType?: null | string; - /** - * 数电发票类型 - */ - sdType?: null | string; - /** - * 店铺名称 - */ - shopName?: null | string; - /** - * 商家二维码 - */ - shopQrcode?: null | string; - /** - * 店铺类型 单店--only 连锁店--chain--加盟店join (对应原来 type) - */ - shopType?: null | string; - /** - * 小程序码(零点八零首页) - */ - smallQrcode?: null | string; - /** - * -1 平台禁用 0-过期,1正式营业, - */ - status?: number | null; - /** - * 店铺口号 - */ - subTitle?: null | string; - /** - * 桌位费 - */ - tableFee?: number | null; - /** - * 商家标签 - */ - tag?: null | string; - /** - * 税率 - */ - taxAmount?: null | string; - /** - * 管理 0否 1是, 1 为直接管理 可切换店铺 0 不可以切换 - */ - tubeType?: number | null; - updateTime?: null | string; - [property: string]: any; -} + /** + * 详细地址 + */ + address ?: null | string; + /** + * 项目分类 + */ + article ?: null | string; + /** + * 背景图 + */ + backImg ?: null | string; + /** + * 开票系统账号 + */ + bindAccount ?: null | string; + /** + * 台桌预订短信 + */ + bookingSms ?: null | string; + /** + * 营业时间(周结束) + */ + businessEndDay ?: null | string; + /** + * 营业时间(周开始) + */ + businessStartDay ?: null | string; + /** + * 营业时间 + */ + businessTime ?: null | string; + /** + * 连锁店扩展店名 + */ + chainName ?: null | string; + /** + * 市 + */ + cities ?: null | string; + /** + * 积分群体 all-所有 vip-仅针对会员 + */ + consumeColony ?: null | string; + /** + * 联系人姓名 + */ + contactName ?: null | string; + /** + * 封面图 + */ + coverImg ?: null | string; + createTime ?: null | string; + /** + * 店铺简介 + */ + detail ?: null | string; + /** + * 区/县 + */ + districts ?: null | string; + /** + * 就餐模式 堂食 dine-in 外带 take-out + */ + eatModel ?: null | string; + /** + * 到期时间 + */ + expireTime ?: null | string; + /** + * 门头照 + */ + frontImg ?: null | string; + /** + * 使用系统用户 sys_user id + */ + id ?: number | null; + /** + * 是否开启会员余额支付 + */ + isAccountPay ?: number | null; + /** + * 是否允许会员自定义金额 1 允许 0 不允许 + */ + isCustomAmount ?: number | null; + /** + * 是否开启会员充值密码 1 启用 0 禁用 + */ + isMemberInPwd ?: number | null; + /** + * 是否启用会员价 0否1是 + */ + isMemberPrice ?: number | null; + /** + * 是否开启会员退款密码 1 启用 0 禁用 + */ + isMemberReturnPwd ?: number | null; + /** + * 是否开启退款密码 1 启用 0 禁用 + */ + isReturnPwd ?: number | null; + /** + * 是否免除桌位费 0否1是 + */ + isTableFee ?: number | null; + /** + * 经纬度 + */ + lat ?: null | string; + /** + * 经纬度 + */ + lng ?: null | string; + /** + * 店铺logo + */ + logo ?: null | string; + /** + * 主店id + */ + mainId ?: number | null; + /** + * 0停业 1,正常营业 2,网上售卖 + */ + onSale ?: number | null; + /** + * 操作密码 + */ + operationPwd ?: null | string; + /** + * 店铺收款码 + */ + paymentQrcode ?: null | string; + /** + * 联系电话 + */ + phone ?: null | string; + /** + * trial试用版,release正式 + */ + profiles ?: null | string; + /** + * 省 + */ + provinces ?: null | string; + registerType ?: null | string; + /** + * 数电发票类型 + */ + sdType ?: null | string; + /** + * 店铺名称 + */ + shopName ?: null | string; + /** + * 商家二维码 + */ + shopQrcode ?: null | string; + /** + * 店铺类型 单店--only 连锁店--chain--加盟店join (对应原来 type) + */ + shopType ?: null | string; + /** + * 小程序码(零点八零首页) + */ + smallQrcode ?: null | string; + /** + * -1 平台禁用 0-过期,1正式营业, + */ + status ?: number | null; + /** + * 店铺口号 + */ + subTitle ?: null | string; + /** + * 桌位费 + */ + tableFee ?: number | null; + /** + * 商家标签 + */ + tag ?: null | string; + /** + * 税率 + */ + taxAmount ?: null | string; + /** + * 管理 0否 1是, 1 为直接管理 可切换店铺 0 不可以切换 + */ + tubeType ?: number | null; + updateTime ?: null | string; + [property : string] : any; +} \ No newline at end of file diff --git a/src/api/market/coupon.ts b/src/api/market/coupon.ts index 15f2d06..c46e7c7 100644 --- a/src/api/market/coupon.ts +++ b/src/api/market/coupon.ts @@ -2,37 +2,44 @@ import request from "@/utils/request"; import { Market_BaseUrl } from "@/api/config"; const baseURL = Market_BaseUrl + "/admin/coupon"; const API = { - getList(params: any) { - return request({ - url: `${baseURL}/page`, - method: "get", - params - }); - }, - //优惠券列表/已领取详情 - getDetail(params: any) { - return request({ - url: `${baseURL}/record`, - method: "get", - params - }); - }, - // 删除用户优惠券 - delete(params: any) { - return request({ - url: `${baseURL}/deleteRecord`, - method: "delete", - params, - }); - }, - //优惠券发放 - giveCoupon(data: any) { - return request({ - url: `${baseURL}/grant`, - method: "post", - data - }); - }, + getList(params : any) { + return request({ + url: `${baseURL}/page`, + method: "get", + params + }); + }, + //优惠券列表/已领取详情 + getDetail(params : any) { + return request({ + url: `${baseURL}/record`, + method: "get", + params + }); + }, + // 删除用户优惠券 + delete(params : any) { + return request({ + url: `${baseURL}/deleteRecord`, + method: "delete", + params, + }); + }, + //优惠券发放 + giveCoupon(data : any) { + return request({ + url: `${baseURL}/grant`, + method: "post", + data + }); + }, + //优惠券发放 + getRecordByUser(params : any) { + return request({ + url: `${baseURL}/getRecordByUser`, + method: "get", + params + }); + }, } -export default API; - +export default API; \ No newline at end of file diff --git a/src/views/marketing_center/super_vip/index.vue b/src/views/marketing_center/super_vip/index.vue index 6ac74cd..a8f5892 100644 --- a/src/views/marketing_center/super_vip/index.vue +++ b/src/views/marketing_center/super_vip/index.vue @@ -1,259 +1,299 @@