diff --git a/api/card.js b/api/card.js index c537246..0085b70 100644 --- a/api/card.js +++ b/api/card.js @@ -2,36 +2,48 @@ import request from '@/utils/request' // 用户绑定充值卡 -export function userBindRechargeNum() { +export function userBindRechargeNum(rechargeNum) { return request({ url: '/app/card/userBindRechargeNum', - method: 'get' + method: 'get', + params:{ + rechargeNum, + } }) } // 获取充值卡信息 -export function getRechargeNum() { +export function getRechargeNum(rechargeNum) { return request({ url: '/app/card/getRechargeNum', - method: 'get' + method: 'get', + params:{ + rechargeNum, + } }) } // 获取实名信息 -export function getRealNameUrl() { +export function getRealNameUrl(rechargeNum) { return request({ url: '/app/card/getRealNameUrl', - method: 'get' + method: 'get', + params:{ + rechargeNum, + } }) } // 获取分组套餐 -export function getGroupPackage() { +export function getGroupPackage(thaliGroupId) { return request({ url: '/app/card/getGroupPackage', - method: 'get' + method: 'get', + params:{ + thaliGroupId, + } }) } @@ -44,3 +56,10 @@ export function recharge() { }) } +// 获取套餐种类 +export function getPackageSort() { + return request({ + url: '/app/card/thaliGrouplist', + method: 'get' + }) +} \ No newline at end of file diff --git a/manifest.json b/manifest.json index b6206f2..4115eba 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "ruoyi-vue3", - "appid" : "__UNI__3DD118D", + "appid" : "__UNI__9B780B1", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", diff --git a/package.json b/package.json deleted file mode 100644 index 6c3ceb3..0000000 --- a/package.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "name": "uni-preset-vue", - "version": "0.0.0", - "scripts": { - "dev:app": "uni -p app", - "dev:app-android": "uni -p app-android", - "dev:app-ios": "uni -p app-ios", - "dev:custom": "uni -p", - "dev:h5": "uni", - "dev:h5:ssr": "uni --ssr", - "dev:mp-alipay": "uni -p mp-alipay", - "dev:mp-baidu": "uni -p mp-baidu", - "dev:mp-jd": "uni -p mp-jd", - "dev:mp-kuaishou": "uni -p mp-kuaishou", - "dev:mp-lark": "uni -p mp-lark", - "dev:mp-qq": "uni -p mp-qq", - "dev:mp-toutiao": "uni -p mp-toutiao", - "dev:mp-weixin": "uni -p mp-weixin", - "dev:quickapp-webview": "uni -p quickapp-webview", - "dev:quickapp-webview-huawei": "uni -p quickapp-webview-huawei", - "dev:quickapp-webview-union": "uni -p quickapp-webview-union", - "build:app": "uni build -p app", - "build:app-android": "uni build -p app-android", - "build:app-ios": "uni build -p app-ios", - "build:custom": "uni build -p", - "build:h5": "uni build", - "build:h5:ssr": "uni build --ssr", - "build:mp-alipay": "uni build -p mp-alipay", - "build:mp-baidu": "uni build -p mp-baidu", - "build:mp-jd": "uni build -p mp-jd", - "build:mp-kuaishou": "uni build -p mp-kuaishou", - "build:mp-lark": "uni build -p mp-lark", - "build:mp-qq": "uni build -p mp-qq", - "build:mp-toutiao": "uni build -p mp-toutiao", - "build:mp-weixin": "uni build -p mp-weixin", - "build:quickapp-webview": "uni build -p quickapp-webview", - "build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei", - "build:quickapp-webview-union": "uni build -p quickapp-webview-union", - "type-check": "vue-tsc --noEmit", - "clean:linux": "rm -rf dist || rm -rf node_modules", - "clean:windows": "rd /s /q dist || rd /s /q node_modules" - }, - "dependencies": { - "@dcloudio/uni-app": "3.0.0-4020420240722002", - "@dcloudio/uni-app-harmony": "3.0.0-4020420240722002", - "@dcloudio/uni-app-plus": "3.0.0-4020420240722002", - "@dcloudio/uni-components": "3.0.0-4020420240722002", - "@dcloudio/uni-h5": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-alipay": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-baidu": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-jd": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-kuaishou": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-lark": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-qq": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-toutiao": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-weixin": "3.0.0-4020420240722002", - "@dcloudio/uni-mp-xhs": "3.0.0-4020420240722002", - "@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002", - "@jridgewell/sourcemap-codec": "^1.5.0", - "@qiun/wx-ucharts": "2.5.0-20230101", - "@uview-plus/types": "^3.2.5", - "clipboard": "^2.0.11", - "dayjs": "^1.11.13", - "mqtt": "4.1.0", - "pinia": "2.2.2", - "tslib": "^2.7.0", - "uview-plus": "^3.3.32", - "vue": "3.4.21", - "vue-i18n": "^10.0.1" - }, - "devDependencies": { - "@dcloudio/types": "^3.4.14", - "@dcloudio/uni-automator": "3.0.0-4020420240722002", - "@dcloudio/uni-cli-shared": "3.0.0-4020420240722002", - "@dcloudio/uni-stacktracey": "3.0.0-4020420240722002", - "@dcloudio/vite-plugin-uni": "3.0.0-4020420240722002", - "@vue/runtime-core": "^3.5.5", - "@vue/tsconfig": "^0.5.1", - "less": "^4.2.0", - "sass": "^1.78.0", - "sass-loader": "^16.0.1", - "typescript": "^5.6.2", - "vite": "5.4.5", - "vue-tsc": "2.1.6" - } -} diff --git a/pages/mine.vue b/pages/mine.vue index 5d233e2..001978a 100644 --- a/pages/mine.vue +++ b/pages/mine.vue @@ -9,85 +9,102 @@ - + + - 用户名:{{ name }} + iccid号:{{ iccid }} + + 到期时间:{{ endTime }} + + + 当前套餐:{{ packageName }} + - - 个人信息 - - + + + + + {{leftTab.name}} + + + {{rightTab.name}} + + + + + + {{ item.thaliGroupName }} + + + {{ item.thaliPayPrice }}元 + + + + + - + - 交流群 - - - - 在线客服 - - - - 反馈社区 - - - - 点赞我们 - - - - - - - - 编辑资料 - + 绑定充值卡 - - - - 常见问题 - + + + 获取充值卡信息 - - - - 关于我们 - - - - - - 应用设置 - + + + 点击实名 + + + 一键授权 + - + diff --git a/utils/request.ts b/utils/request.ts index df10a89..d0b14ba 100644 --- a/utils/request.ts +++ b/utils/request.ts @@ -15,6 +15,9 @@ const request = (config: RequestConfig): Promise> => { if (getToken() && !isToken) { config.header['Authorization'] = 'Bearer ' + getToken() } + // 设置 clientid + config.header['clientid'] = "428a8310cd442757ae699df5d894f051"; + // get请求映射params参数 if (config.params) { let url = config.url + '?' + tansParams(config.params) @@ -44,9 +47,7 @@ const request = (config: RequestConfig): Promise> => { if (code === 401) { showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => { if (res.confirm) { - useUserStore().logOut().then(res => { - uni.reLaunch({ url: '/pages/login' }) - }) + uni.reLaunch({ url: '/pages/login' }) } }) reject('无效的会话,或者会话已过期,请重新登录。') diff --git a/utils/upload.ts b/utils/upload.ts index e074689..648b2ac 100644 --- a/utils/upload.ts +++ b/utils/upload.ts @@ -40,9 +40,10 @@ const upload = (config: RequestUploadConfig): Promise> => { } else if (code == 401) { showConfirm("登录状态已过期,您可以继续留在该页面,或者重新登录?").then(res => { if (res.confirm) { - userStore.logOut().then(res => { - uni.reLaunch({ url: '/pages/login' }) - }) + uni.reLaunch({ url: '/pages/login' }) + // userStore.logOut().then(res => { + // uni.reLaunch({ url: '/pages/login' }) + // }) } }) reject('无效的会话,或者会话已过期,请重新登录。')