From cb69eea60df36977d3f35eb5c93f4d9d878ed234 Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 25 Jul 2025 09:07:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(region-select):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=94=B6=E7=9B=8A=E5=8C=BA=E5=9F=9F=E6=9F=A5=E7=9C=8B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/region-select/index.vue | 224 ++++++++++++++------ config/mine.js | 13 ++ config/request.js | 2 +- pages.json | 7 + pages/mine/index.vue | 17 +- pages/mine/region/index.vue | 328 +++++++++++++++++++++++++++++ static/images/region-area.svg | 1 + 7 files changed, 520 insertions(+), 72 deletions(-) create mode 100644 pages/mine/region/index.vue create mode 100644 static/images/region-area.svg diff --git a/components/region-select/index.vue b/components/region-select/index.vue index beab06f..f4fefc0 100644 --- a/components/region-select/index.vue +++ b/components/region-select/index.vue @@ -1,12 +1,8 @@ @@ -350,10 +353,12 @@ import clTabbar from '@/components/cl-tabbar.vue' import * as min from '@/config/balance.js' import * as api from '@/config/login.js' import { getMemberBalance } from '@/config/mine.js' -// import talentList from "@/components/talentList.vue"; +import RegionSelect from '@/components/region-select/index.vue' + export default { components: { 'cl-tabbar': clTabbar, + RegionSelect, // talentList, }, data() { @@ -479,6 +484,13 @@ export default { menuKey: '', ifshow: false, }, + { + url: '/pages/mine/region/index', + name: '收益区域', + imgurl: '../../static/images/region-area.svg', + menuKey: '', + ifshow: false, + }, // { // url: "2", // name: "达人榜单", @@ -712,7 +724,7 @@ export default { getInfo() { api.getInfo().then(res => { if (res) { - this.userInfo = res.data + this.userInfo = res.data || {} if (this.userInfo.memberCode == 'BD68880628') { this.ifSpecial = true this.otherMenuList = [ @@ -861,6 +873,7 @@ export default { //达人榜单 this.drShow = true } else { + console.log(url, 'url?') uni.navigateTo({ url: url, }) diff --git a/pages/mine/region/index.vue b/pages/mine/region/index.vue new file mode 100644 index 0000000..529e5a5 --- /dev/null +++ b/pages/mine/region/index.vue @@ -0,0 +1,328 @@ + + + + + diff --git a/static/images/region-area.svg b/static/images/region-area.svg new file mode 100644 index 0000000..f90371e --- /dev/null +++ b/static/images/region-area.svg @@ -0,0 +1 @@ + \ No newline at end of file