From 9d2286f056dc33f79659bc6caf5d2c4e603714c0 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Wed, 3 Dec 2025 10:50:39 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat=EF=BC=9A=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 3 +- src/manifest.json | 10 +- src/pages/user/info.vue | 617 +++++++++++++++++-------------------- src/pages/wechat/index.vue | 8 + test.keystore | Bin 0 -> 2702 bytes 5 files changed, 294 insertions(+), 344 deletions(-) create mode 100644 src/pages/wechat/index.vue create mode 100644 test.keystore diff --git a/.env b/.env index 8e9652d5..44d84884 100644 --- a/.env +++ b/.env @@ -5,8 +5,9 @@ SHOPRO_VERSION=v2.4.1 SHOPRO_API_PATH=/app-api # 后端接口 - 测试环境(通过 process.env.NODE_ENV == development) -SHOPRO_DEV_BASE_URL=http://127.0.0.1:48083 +# SHOPRO_DEV_BASE_URL=http://127.0.0.1:48083 # SHOPRO_DEV_BASE_URL = http://chatapi.zianxin.com +SHOPRO_DEV_BASE_URL=https://rj4jv5rwqs.by.takin.cc # 后端接口 - 正式环境(通过 process.env.NODE_ENV != development) SHOPRO_BASE_URL=http://chatapi.zianxin.com diff --git a/src/manifest.json b/src/manifest.json index b8c90f08..31cc73b0 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,9 +1,9 @@ { "name" : "荷塘月色", - "appid" : "__UNI__5B53E65", + "appid" : "__UNI__0A84F60", "description" : "聊天交友app", "versionName" : "0.0.0", - "versionCode" : 0, + "versionCode" : 1, "transformPx" : false, "app-plus" : { "usingComponents" : true, @@ -122,9 +122,9 @@ "iosStyle" : "common", "useOriginalMsgbox" : true, "android" : { - "hdpi" : "C:/Users/20513/Pictures/login-bg.png", - "xhdpi" : "C:/Users/20513/Pictures/login-bg.png", - "xxhdpi" : "C:/Users/20513/Pictures/login-bg.png" + "hdpi" : "unpackage/res/icons/20x20.png", + "xhdpi" : "unpackage/res/icons/20x20.png", + "xxhdpi" : "unpackage/res/icons/20x20.png" } }, "icons" : { diff --git a/src/pages/user/info.vue b/src/pages/user/info.vue index 00e20a45..31baea27 100644 --- a/src/pages/user/info.vue +++ b/src/pages/user/info.vue @@ -1,33 +1,16 @@ @@ -86,29 +109,45 @@ const data = { menuTab: [ { title: '礼物奖励', - value: '100', + icon: 'icon-liwu', + bgColor: '#fad34a', + path: "", }, { title: '钻石充值', - value: '100', + icon: 'icon-lv_zuanshi_fill', + bgColor: '#ff5081', + path: "/pages/profile/recharge", }, { title: '会员中心', - value: '100', + icon: 'icon-huiyuan', + bgColor: '#ebc26a', + path: "/pages/profile/apply-vip", }, { title: '邀请好友', - value: '100', + icon: 'icon-tianjiahaoyou', + bgColor: '#a4e55a', + path: "", }, ], rule: [ { - title: '邀请好友注册,即可获得100钻石', + title: '通过链接/二维码邀请用户首次充值,可获得50%现金奖励', }, { - title: '好友注册后,即可获得100钻石', + title: '邀请奖励满200元可提现,3个月工作日内到账', }, ], } +const doItem = (item) => { + if (item.path) { + uni.navigateTo({ + url: item.path, + }); + } +} + \ No newline at end of file diff --git a/src/static/icon/self/iconfont.css b/src/static/icon/self/iconfont.css new file mode 100644 index 00000000..e5d50cfd --- /dev/null +++ b/src/static/icon/self/iconfont.css @@ -0,0 +1,30 @@ +@font-face { + font-family: "iconfont"; /* Project id 5079650 */ + src: url('//at.alicdn.com/t/c/font_5079650_q7e82zvyi4j.woff2?t=1764739737667') format('woff2'), + url('//at.alicdn.com/t/c/font_5079650_q7e82zvyi4j.woff?t=1764739737667') format('woff'), + url('//at.alicdn.com/t/c/font_5079650_q7e82zvyi4j.ttf?t=1764739737667') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-huiyuan:before { + content: "\e67e"; +} + +.icon-lv_zuanshi_fill:before { + content: "\e601"; +} + +.icon-tianjiahaoyou:before { + content: "\e618"; +} + +.icon-liwu:before { + content: "\e600"; +} diff --git a/unocss.config.ts b/unocss.config.ts index 93eadc62..cbfcdf3a 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -47,6 +47,18 @@ export default { 'background-color': '#B37B2E', }, ], + [ + 'border-color-theme', + { + 'border-color': '#F9C26F', + }, + ], + [ + 'border-color-theme-dark', + { + 'border-color': '#D29E52', + }, + ], [ 'text-color-theme', { @@ -85,6 +97,14 @@ export default { 'border-radius': '16rpx', }, ], + [ + 'card-thin', + { + 'background-color': 'rgba(0, 0, 0, 0.3)', + 'box-shadow': 'rgba(0, 0, 0, 0.05) 0px 0px 0px 1px', + 'border-radius': '16rpx', + }, + ], ], transformers: [transformerAttributify(), transformerClass()],