diff --git a/node_modules/.vue-global-types/vue_99_0_0_0.d.ts b/node_modules/.vue-global-types/vue_99_0_0_0.d.ts index 1c73e1f..be6912f 100644 --- a/node_modules/.vue-global-types/vue_99_0_0_0.d.ts +++ b/node_modules/.vue-global-types/vue_99_0_0_0.d.ts @@ -2,7 +2,6 @@ export {}; ; declare global { - const __VLS_intrinsicElements: __VLS_IntrinsicElements; const __VLS_directiveBindingRestFields: { instance: null, oldValue: null, modifiers: any, dir: any }; const __VLS_unref: typeof import('vue').unref; const __VLS_placeholder: any; @@ -24,10 +23,31 @@ export {}; N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N2] } : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : { [K in N0]: __VLS_GlobalComponents[N3] } : { [K in N0]: unknown }; - type __VLS_FunctionalComponentProps = - '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: { props?: infer P } } ? NonNullable

: never - : T extends (props: infer P, ...args: any) => any ? P : - {}; + type __VLS_FunctionalComponentCtx = __VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny + ? K extends { __ctx?: infer Ctx } ? NonNullable : never : any + , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any + >; + type __VLS_FunctionalComponentProps = '__ctx' extends keyof __VLS_PickNotAny + ? K extends { __ctx?: { props?: infer P } } ? NonNullable

: never + : T extends (props: infer P, ...args: any) => any ? P + : {}; + type __VLS_FunctionalComponent = (props: (T extends { $props: infer Props } ? Props : {}) & Record, ctx?: any) => __VLS_Element & { + __ctx?: { + attrs?: any, + slots?: T extends { $slots: infer Slots } ? Slots : Record, + emit?: T extends { $emit: infer Emit } ? Emit : {}, + props?: (T extends { $props: infer Props } ? Props : {}) & Record, + expose?: (exposed: T) => void, + } + }; + type __VLS_NormalizeSlotReturns extends (...args: any) => infer K ? K : any> = R extends any[] ? { + [K in keyof R]: R[K] extends infer V + ? V extends Element ? V + : V extends new (...args: any) => infer R ? ReturnType<__VLS_FunctionalComponent> + : V extends (...args: any) => infer R ? R + : any + : never + } : R; type __VLS_IsFunction = K extends keyof T ? __VLS_IsAny extends false ? unknown extends T[K] @@ -35,13 +55,13 @@ export {}; : true : false : false; - type __VLS_NormalizeComponentEvent = ( + type __VLS_NormalizeComponentEvent = ( __VLS_IsFunction extends true ? Props - : __VLS_IsFunction extends true - ? { [K in onEvent]?: Events[Event] } - : __VLS_IsFunction extends true - ? { [K in onEvent]?: Events[CamelizedEvent] } + : __VLS_IsFunction extends true + ? { [K in onEvent]?: Emits[Event] } + : __VLS_IsFunction extends true + ? { [K in onEvent]?: Emits[CamelizedEvent] } : Props ) & Record; // fix https://github.com/vuejs/language-tools/issues/926 @@ -67,11 +87,16 @@ export {}; } > >; - type __VLS_PrettifyGlobal = { [K in keyof T]: T[K]; } & {}; - type __VLS_PickFunctionalComponentCtx = NonNullable<__VLS_PickNotAny< - '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: infer Ctx } ? Ctx : never : any - , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any - >>; + type __VLS_ResolveEmits< + Comp, + Emits, + TypeEmits = Comp extends { __typeEmits?: infer T } ? unknown extends T ? {} : import('vue').ShortEmitsToObject : {}, + NormalizedEmits = __VLS_NormalizeEmits extends infer E ? string extends keyof E ? {} : E : never, + > = __VLS_SpreadMerge; + type __VLS_ResolveDirectives = { + [K in Exclude & string as `v${Capitalize}`]: T[K]; + }; + type __VLS_PrettifyGlobal = { [K in keyof T as K]: T[K]; } & {}; type __VLS_UseTemplateRef = Readonly>; function __VLS_getVForSourceType>(source: T): [ @@ -87,10 +112,8 @@ export {}; key: keyof T, index: number, ][]; - // @ts-ignore - function __VLS_getSlotParams(slot: T): Parameters<__VLS_PickNotAny, (...args: any[]) => any>>; - // @ts-ignore - function __VLS_getSlotParam(slot: T): Parameters<__VLS_PickNotAny, (...args: any[]) => any>>[0]; + function __VLS_getSlotParameters(slot: S, decl?: D): + __VLS_PickNotAny, (...args: any) => any> extends (...args: infer P) => any ? P : any[]; function __VLS_asFunctionalDirective(dir: T): T extends import('vue').ObjectDirective ? NonNullable : T extends (...args: any) => any @@ -98,19 +121,10 @@ export {}; : (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void; function __VLS_makeOptional(t: T): { [K in keyof T]?: T[K] }; function __VLS_asFunctionalComponent any ? InstanceType : unknown>(t: T, instance?: K): - T extends new (...args: any) => any - ? (props: (K extends { $props: infer Props } ? Props : any) & Record, ctx?: any) => __VLS_Element & { - __ctx?: { - attrs?: any; - slots?: K extends { $slots: infer Slots } ? Slots : any; - emit?: K extends { $emit: infer Emit } ? Emit : any; - expose?(exposed: K): void; - props?: (K extends { $props: infer Props } ? Props : any) & Record; - } - } + T extends new (...args: any) => any ? __VLS_FunctionalComponent : T extends () => any ? (props: {}, ctx?: any) => ReturnType : T extends (...args: any) => any ? T - : (_: {} & Record, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record } }; + : __VLS_FunctionalComponent<{}>; function __VLS_functionalComponentArgsRest any>(t: T): 2 extends Parameters['length'] ? [any] : []; function __VLS_asFunctionalElement(tag: T, endTag?: T): (attrs: T & Record) => void; function __VLS_asFunctionalSlot(slot: S): S extends () => infer R ? (props: {}) => R : NonNullable; diff --git a/packageA/my/orderList.vue b/packageA/my/orderList.vue index d9399e4..895e08b 100644 --- a/packageA/my/orderList.vue +++ b/packageA/my/orderList.vue @@ -43,8 +43,9 @@ style="width: 134rpx; height: 106rpx;position: absolute;right: 0;"> - - {{ item.title }} + + {{ item.title }} #{{ items_t }} - + {{ @@ -67,27 +68,33 @@ style="margin: 0 20rpx">{{ dateWeeks(item.sign_start_time) }} {{ dateWeeks(item.sign_start_time) }} - + {{ item.address_detail }} - + - + - - + + - - - + 修改 - + + + - 未开始 + 未开始 - + --> - + 核销: {{ item.verification_num }} /{{ item.stock }} - + 核销 - 核销 + + 修改 - 重发 + 详情 + - - + + 未通过原因:{{item.reason}} + + + 取消 + 编辑 + @@ -140,7 +168,8 @@ }} - + @@ -160,7 +189,8 @@ style="color: #FF4810;font-weight: 600;">¥{{ item.real_refundprice }} 数量:{{ item.num }} + style="font-size: 26rpx;color: #9C9C9C;">数量:{{ item.num }} + 数量:{{ item.auth_num }} @@ -187,7 +217,7 @@ - + @@ -195,7 +225,7 @@ 暂无发布活动 前往发布 - + @@ -228,6 +258,29 @@ + + + + + + 是否确认取消活动 + + 取消活动即删除活动后,若再次举办活动,需重新设置活动内容,并提交平台审核 + + + + + + 关闭 + 确认取消 + + + + + + @@ -247,6 +300,15 @@ padding: "0", borderRadius: "20rpx", }, + popupCancelStyle: { + width: '640rpx', + height: '414rpx', + margin: '0 auto', // 水平居中 + display: 'flex', + justifyContent: 'flex-start', + alignItems: 'center', + borderRadius: '50rpx' + }, sortList: [{ text: "按照价格排序", value: ["acs", "desc"], @@ -305,20 +367,36 @@ // 审核状态 auth_status: 0, status: 0, - server_status: '3' + server_status: '3', + cancelsShow: false, //取消的二次弹框显示 + deleteId: null, //暂存删除活动的id }; }, onLoad(option) { this.list = [] this.page = 1 - if (option?.status) { - this.selected = option.status - this.getHotList(option.status); - } else { - this.getHotList('0'); - } + // if (option?.status) { + // this.selected = option.status + // console.log('11'); + // this.getHotList(option.status); + // } else { + // console.log('22'); + // this.getHotList('0'); + // } }, + onShow() { + this.list = [] + this.page = 1 + this.hotList = [] + console.log('hotList',this.hotList); + // this.getHotList(this.selected); + if (this.status == -2) { + this.getAfterList(); + } else { + this.getHotList(this.selected); + } + }, onPullDownRefresh() { uni.showLoading({ title: '加载中...' @@ -355,7 +433,7 @@ url: "/packageA/afterSales/info?id=" + id, }); }, - //跳转编辑活动 + //待审核+未开始的跳转修改活动 editItem(id) { uni.navigateTo({ url: "/packageB/editAct?id=" + id, @@ -364,6 +442,67 @@ // url:"/pages/center/index?id=" + id, // })//跳转tabbar页面的 }, + //待审核+未开始的跳转修改活动 + copyItem(id) { + const type = 1 + uni.navigateTo({ + url: "/packageB/editAct?original_activity_id=" + id + '&type=' + type, + }); + // uni.switchTab({ + // url:"/pages/center/index?id=" + id, + // })//跳转tabbar页面的 + }, + copyNewItem(id) { + const type = 2 + uni.navigateTo({ + url: "/packageB/editAct?original_activity_id=" + id + '&type=' + type, + }); + // uni.switchTab({ + // url:"/pages/center/index?id=" + id, + // })//跳转tabbar页面的 + }, + //未通过的取消按钮实际上删除按钮 + deleteItem() { + console.log('deleteItem', this.deleteId); + uni.$u.http.post('/api/school.new_activity/del', { + id: this.deleteId, + }).then(res => { + if (res.code == 1) { + this.cancelsShow = false + uni.showToast({ + title: '删除成功', + icon: 'success', + duration: 2000 + }) + // this.getHotList('0'); + this.toShlist('2') + // setTimeout(() => { + // uni.redirectTo({ + // url: "/packageA/my/orderList" + // }) + // }, 1000) + } else { + uni.showToast({ + title: res.msg, + icon: 'none', + duration: 2000 + }) + } + }).catch(error => {}); + }, + // 取消弹窗的显示 + cancelsOpen(id) { + this.cancelsShow = true + if (!this.deleteId) { + this.deleteId = id + } + + console.log('cancelsOpen', this.deleteId); + }, + cancelsClose() { + this.cancelsShow = false + this.deleteId = "" + }, // 跳转详情 detail(id) { uni.navigateTo({ @@ -381,16 +520,16 @@ }, // 获取售后订单 getAfterList() { - var auth_status=''; - var server_status=this.server_status; - var status='4,5,6' + var auth_status = ''; + var server_status = this.server_status; + var status = '4,5,6' //-1为拒绝退款 - if(this.server_status== -1){ - auth_status='2'; - server_status='6'; - status="4,5,6,7"; - }else{ - + if (this.server_status == -1) { + auth_status = '2'; + server_status = '6'; + status = "4,5,6,7"; + } else { + } uni.$u.http .get("/api/school.newworker.activity.order/order_list", { @@ -399,7 +538,7 @@ limit: 20, server_status: server_status, status: status, - auth_status:auth_status, + auth_status: auth_status, }, }) .then((res) => { @@ -424,11 +563,12 @@ }, // 获取我发布的活动 getHotList(val) { - console.log(val); + console.log('跳转接口', val, this.auth_status); var auth_status = ''; if (val == 0) { - val = '1,2,3,4,5'; + val = '1,2,3,4,5,-1'; auth_status = this.auth_status; + console.log('val==0', this.auth_status); } else { if (val == '-1') { auth_status = '0,1,2'; @@ -691,9 +831,11 @@ return this.selected === status; }, toShlist(val) { + this.page = 1; this.hotList = []; this.auth_status = val + console.log('toShlist', val, this.auth_status, this.status); this.getHotList(this.status); }, toAfter(val) { @@ -1077,7 +1219,7 @@ margin-top: 80rpx; margin-bottom: 70rpx; min-height: 100vh; - padding:0rpx 30rpx; + padding: 0rpx 30rpx; .hot-top { @@ -1318,4 +1460,116 @@ align-items: center; justify-content: center; } + + + .popupBox { + width: 640rpx; + height: 414rpx; + background-image: url("https://naweigetetest2.hschool.com.cn/dyqc/confirm2.png"); + background-size: 100%; + background-repeat: no-repeat; + border-radius: 44rpx; + + .pop-header { + width: 100%; + + background-repeat: no-repeat; + background-position: left bottom; + height: 414rpx; + margin-top: 80rpx; + + span { + font-family: PingFang SC, PingFang SC; + font-weight: 400; + font-size: 20rpx; + color: #343434; + } + + .name { + width: 288rpx; + height: 36rpx; + font-family: PingFang SC Bold, PingFang SC Bold; + font-weight: 600; + font-size: 36rpx; + color: #202020; + line-height: 36rpx; + text-align: center; + font-style: normal; + text-transform: none; + } + + .price { + width: 520rpx; + height: 68rpx; + margin-top: 30rpx; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + font-size: 24rpx; + color: #202020; + line-height: 34rpx; + text-align: center; + font-style: normal; + text-transform: none; + } + } + + .popup { + display: flex; + align-items: self-start; + justify-content: center; + width: 594rpx; + } + + .popup-footer { + position: absolute; + left: 75rpx; + bottom: 60rpx; + + span { + width: 230rpx; + height: 90rpx; + background: #323232; + border-radius: 200rpx 200rpx 200rpx 200rpx; + font-family: PingFang SC Regular, PingFang SC Regular; + font-weight: 400; + font-size: 32rpx; + color: #BBFC5B; + display: flex; + justify-content: center; + align-items: center; + } + + .span1 { + background: rgba(193, 193, 193, 0.22); + color: #202020; + margin-right: 30rpx; + } + + } + + + .line { + width: 642rpx; + height: 1rpx; + background: #F0F0F0; + box-shadow: 1rpx 1rpx 0rpx 0rpx rgba(102, 102, 102, 0.25); + border-radius: 0rpx 0rpx 0rpx 0rpx; + } + + + + .selectTime.selected { + width: 288rpx; + height: 50rpx; + border-radius: 12rpx 12rpx 12rpx 12rpx; + background: #008CFF; + font-family: PingFang SC, PingFang SC; + font-weight: 800; + font-size: 24rpx; + color: #FFFFFF; + cursor: pointer; + margin: 24rpx 32rpx 0 0; + + } + } \ No newline at end of file diff --git a/packageB/editAct.vue b/packageB/editAct.vue index 2bfb3e7..7184506 100644 --- a/packageB/editAct.vue +++ b/packageB/editAct.vue @@ -20,7 +20,7 @@ - @@ -132,7 +132,10 @@ 未上传 - 已上传 + + + + @@ -190,7 +193,7 @@ 存草稿 - 确认发布 + 确认发布 + + @@ -1368,6 +1372,7 @@ uni.hideShareMenu(); this.fileList1 = []; this.agree = false; this.list1 = ''; + this.list = []; this.price = ''; this.priceName = '免费'; this.qunQrcode=''; @@ -1580,7 +1585,7 @@ uni.hideShareMenu(); ::v-deep .plasty { text-align: right; - z-index: 10; + z-index: 10000; color: #9c9c9c; }