新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -5,12 +5,12 @@
|
||||
* @description:index.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 {
|
||||
|
||||
Reference in New Issue
Block a user