瀏覽代碼

ci: feat: 注册增加邀请码回显

liangan 1 月之前
父節點
當前提交
564bf4c2b4
共有 7 個文件被更改,包括 13 次插入24 次删除
  1. 二進制
      favicon.ico
  2. 二進制
      favicon.png
  3. 2 2
      index.html
  4. 2 2
      package.json
  5. 1 1
      pages.config.ts
  6. 1 1
      src/pages.json
  7. 7 18
      src/pages/register/register.vue

二進制
favicon.ico


二進制
favicon.png


+ 2 - 2
index.html

@@ -2,7 +2,7 @@
 <html build-time="%BUILD_TIME%">
   <head>
     <meta charset="UTF-8" />
-    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
+    <link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
     <script>
       var coverSupport =
         'CSS' in window &&
@@ -14,7 +14,7 @@
           '" />',
       )
     </script>
-    <title>unibest</title>
+    <title>BandhuBuy</title>
     <!--preload-links-->
     <!--app-context-->
   </head>

+ 2 - 2
package.json

@@ -1,9 +1,9 @@
 {
-  "name": "unibest",
+  "name": "BandhuBuy",
   "type": "commonjs",
   "version": "3.2.0",
   "packageManager": "pnpm@10.10.0",
-  "description": "unibest - 最好的 uniapp 开发模板",
+  "description": "BandhuBuy - h5",
   "update-time": "2025-09-02",
   "author": {
     "name": "feige996",

+ 1 - 1
pages.config.ts

@@ -3,7 +3,7 @@ import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
 export default defineUniPages({
   globalStyle: {
     'navigationStyle': 'default',
-    'navigationBarTitleText': 'unibest',
+    'navigationBarTitleText': 'BandhuBuy',
     'navigationBarBackgroundColor': '#f8f8f8',
     'navigationBarTextStyle': 'black',
     'backgroundColor': '#FFFFFF',

+ 1 - 1
src/pages.json

@@ -1,7 +1,7 @@
 {
   "globalStyle": {
     "navigationStyle": "default",
-    "navigationBarTitleText": "unibest",
+    "navigationBarTitleText": "BandhuBuy",
     "navigationBarBackgroundColor": "#f8f8f8",
     "navigationBarTextStyle": "black",
     "backgroundColor": "#FFFFFF",

+ 7 - 18
src/pages/register/register.vue

@@ -10,17 +10,13 @@
 <script lang="ts" setup>
 import { getCode, register } from '@/api/login'
 import { t } from '@/locale'
-import { goBack, toPage } from '@/utils/page'
+import { toPage } from '@/utils/page'
 import { toast } from '@/utils/toast'
 
 defineOptions({
   name: 'Register', // 注册
 })
 
-// 获取屏幕边界到安全区域距离
-const systemInfo = uni.getSystemInfoSync()
-const safeAreaInsets = systemInfo.safeAreaInsets
-
 // 表单数据
 const formData = ref({
   name: '',
@@ -29,7 +25,11 @@ const formData = ref({
   pwd: '',
   code: '',
 })
-
+onLoad((options) => {
+  if (options.referrer) {
+    formData.value.code = options.referrer as string
+  }
+})
 // 验证码倒计时
 const countdown = ref(0)
 const countdownTimer = ref<any>(null)
@@ -180,19 +180,8 @@ onUnmounted(() => {
   <view class="register-page min-h-screen bg-white">
     <!-- 背景图片区域 -->
     <view class="auth-bg-section relative">
-      <!-- 自定义导航栏 -->
-      <view :style="{ paddingTop: `${safeAreaInsets?.top}px` }">
-        <view class="h-88rpx flex items-center px-24rpx">
-          <wd-icon name="thin-arrow-left" size="32rpx" @click="() => goBack()" />
-        </view>
-      </view>
-
       <!-- Logo和标语 -->
-      <view class="pb-40rpx pt-60rpx text-center">
-        <view class="mb-20rpx flex items-center justify-center">
-          <image src="/static/logo.png" class="mr-16rpx h-60rpx w-60rpx" />
-        </view>
-      </view>
+      <view class="pb-40rpx pt-60rpx text-center" />
     </view>
 
     <!-- 表单内容区域 -->