新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -5,12 +5,12 @@
* @descriptionindex.utli
* @update: 2023-10-31 11:19
* */
import { ref, computed } from "vue";
import { computed, ref } from "vue";
import { onShow } from '@dcloudio/uni-app'
import {getCouponList} from "@/api/coupon";
import { getCouponList } from "@/api/coupon";
import { tabList } from "@/pages/discountCoupon/index.data";
export function useDiscountCoupon(){
export function useDiscountCoupon() {
const tabCurrent = ref(0) // tab选中
const couponType = ref(1) // 1、可使用2、已使用3、已失效
const couponListLoading = ref(false)
@ -21,16 +21,16 @@ export function useDiscountCoupon(){
* tab发生改变
* @param e
*/
async function handleTabsChange(e){
async function handleTabsChange(e) {
console.log(e)
couponList.value = []
tabCurrent.value = e.index
couponType.value = e.value
await doGetCouponList()
}
/**
* 获取购物车列表
* @returns {Promise<void>}
*/
async function doGetCouponList() {
try {