mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-11-13 04:18:53 +08:00
refactor(after-sales): 删除独立售后页面并整合至订单列表
- 删除 afterSales.vue 独立页面,将售后入口统一至 myOrder 页面 - 修改售后相关页面跳转路径为 /pages/order/myOrder?status=5 - 重构 applySuccess 页面,增加微信订阅消息授权与视觉优化 - 重构预存款明细页面,增加收支筛选与日志解析功能 - 新增 store 端 API 基础地址配置
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
<template>
|
||||
<view :style="themeStyle" class="content">
|
||||
<u-navbar
|
||||
title="我的积分"
|
||||
:fixed="true"
|
||||
:placeholder="true"
|
||||
:border="false"
|
||||
:auto-back="false"
|
||||
@leftClick="handleBack"
|
||||
></u-navbar>
|
||||
<view class="portrait-box">
|
||||
<image src="/pages/mine/static/point_bg_1.png" mode=""></image>
|
||||
<image class="point-img" src="/pages/mine/static/tradehall.png" />
|
||||
@@ -41,6 +49,10 @@ import { onLoad, onReachBottom } from '@dcloudio/uni-app'
|
||||
import { useStore } from '@/store'
|
||||
import { getPointsData, getMemberPointSum } from '@/api/members.js'
|
||||
import { getThemeStyle } from '@/utils/theme'
|
||||
import {
|
||||
prefetchMpMessageTemplates,
|
||||
subscribeMpMessageByScenes,
|
||||
} from '@/js_sdk/lili-pay/wx-pay.js'
|
||||
|
||||
const store = useStore()
|
||||
const themeStyle = computed(() => getThemeStyle(store.state.theme))
|
||||
@@ -51,10 +63,29 @@ const params = ref({ pageNumber: 1, pageSize: 10 })
|
||||
const pointSummary = ref<Record<string, any>>({})
|
||||
|
||||
onLoad(() => {
|
||||
// #ifdef MP-WEIXIN
|
||||
prefetchMpMessageTemplates()
|
||||
// #endif
|
||||
fetchPointSummary()
|
||||
fetchPointLogList()
|
||||
})
|
||||
|
||||
function handleBack() {
|
||||
const doBack = () => {
|
||||
uni.navigateBack({
|
||||
fail: () => {
|
||||
uni.switchTab({ url: '/pages/tabbar/user/my' })
|
||||
},
|
||||
})
|
||||
}
|
||||
// #ifdef MP-WEIXIN
|
||||
subscribeMpMessageByScenes(['POINT_CHANGE'], doBack)
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
doBack()
|
||||
// #endif
|
||||
}
|
||||
|
||||
onReachBottom(() => {
|
||||
params.value.pageNumber++
|
||||
fetchPointLogList()
|
||||
|
||||
Reference in New Issue
Block a user