Browse Source

feat: 修改title、分享二维码生成

liangan 1 month ago
parent
commit
63c758fa96
10 changed files with 215 additions and 267 deletions
  1. BIN
      favicon.ico
  2. BIN
      favicon.png
  3. 2 2
      index.html
  4. 3 2
      package.json
  5. 1 1
      pages.config.ts
  6. 181 221
      pnpm-lock.yaml
  7. 1 1
      src/pages.json
  8. 27 7
      src/pages/mine/share.vue
  9. BIN
      src/static/icons/logo.png
  10. 0 33
      src/static/logo.svg

BIN
favicon.ico


BIN
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>

+ 3 - 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 - APP",
   "update-time": "2025-09-01",
   "author": {
     "name": "feige996",
@@ -102,6 +102,7 @@
     "js-cookie": "^3.0.5",
     "pinia": "2.0.36",
     "pinia-plugin-persistedstate": "3.2.1",
+    "tki-qrcode": "^0.1.6",
     "vue": "^3.4.21",
     "vue-i18n": "^9.1.9",
     "wot-design-uni": "^1.10.0",

+ 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',

File diff suppressed because it is too large
+ 181 - 221
pnpm-lock.yaml


+ 1 - 1
src/pages.json

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

+ 27 - 7
src/pages/mine/share.vue

@@ -9,6 +9,7 @@
 </route>
 
 <script setup lang="ts">
+import tkiQrcode from 'tki-qrcode'
 import { t } from '@/locale'
 import { goBack } from '@/utils/page'
 
@@ -20,7 +21,18 @@ const safeAreaInsets = systemInfo.safeAreaInsets
 const userInfo = computed(() => {
   return getUserInfoHook()
 })
-
+const qrcodeConfig = ref<any>({
+  val: `http://124.222.152.234:8078?referrer=${userInfo.value.userNo}`, // 推荐链接
+  size: 500,
+  background: '#ffffff',
+  foreground: '#000000',
+  pdground: '#000000',
+  icon: '/static/icons/logo.png', // 中间logo
+  iconsize: 60, // logo占比
+  onval: true,
+  loadMake: true,
+  showLoading: false,
+})
 // 社交平台配置
 const socialPlatforms = ref([
   {
@@ -111,12 +123,20 @@ function handleShare(platform: string) {
           class="h-500rpx w-500rpx flex items-center justify-center border-#e5e5e5 rounded-12rpx bg-#f8f8f8"
         >
           <view class="text-center">
-            <view class="mb-20rpx text-80rpx">
-              📱
-            </view>
-            <text class="text-28rpx text-#999">
-              {{ $t('mine.pages.share.qrCode') }}
-            </text>
+            <tki-qrcode
+              ref="qrcode"
+              :val="qrcodeConfig.val"
+              :size="qrcodeConfig.size"
+              :unit="qrcodeConfig.unit"
+              :background="qrcodeConfig.background"
+              :foreground="qrcodeConfig.foreground"
+              :pdground="qrcodeConfig.pdground"
+              :icon="qrcodeConfig.icon"
+              :icon-size="qrcodeConfig.iconsize"
+              :onval="qrcodeConfig.onval"
+              :load-make="qrcodeConfig.loadMake"
+              :show-loading="qrcodeConfig.showLoading"
+            />
           </view>
         </view>
       </view>

BIN
src/static/icons/logo.png


+ 0 - 33
src/static/logo.svg

@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg id="_图层_2" data-name="图层 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 113.39 113.39">
-  <defs>
-    <style>
-      .cls-1 {
-        fill: none;
-      }
-
-      .cls-2 {
-        fill: #d14328;
-      }
-
-      .cls-3 {
-        fill: #2c8d3a;
-      }
-    </style>
-  </defs>
-  <g id="_图层_1-2" data-name="图层 1">
-    <g>
-      <rect class="cls-1" width="113.39" height="113.39" />
-      <g>
-        <path class="cls-3"
-          d="M86.31,11.34H25.08c-8.14,0-14.74,6.6-14.74,14.74v61.23c0,8.14,6.6,14.74,14.74,14.74h61.23c.12,0,.24-.02,.37-.02-9.76-.2-17.64-8.18-17.64-17.99,0-.56,.03-1.12,.08-1.67H34.1c-1.57,0-2.83-1.27-2.83-2.83V32.43c0-.78,.63-1.42,1.42-1.42h9.17c.78,0,1.42,.63,1.42,1.42v36.52c0,.78,.63,1.42,1.42,1.42h22.02c.78,0,1.42-.63,1.42-1.42V32.43c0-.78,.63-1.42,1.42-1.42h9.17c.78,0,1.42,.63,1.42,1.42v34.99c2.13-.89,4.47-1.39,6.92-1.39,5.66,0,10.7,2.63,14.01,6.72V26.08c0-8.14-6.6-14.74-14.74-14.74Z" />
-        <g>
-          <path class="cls-2"
-            d="M87.04,68.03c-8.83,0-16.01,7.18-16.01,16.01s7.18,16.01,16.01,16.01,16.01-7.18,16.01-16.01-7.18-16.01-16.01-16.01Zm-.27,24.84h-7.2v-3h1.18v-10.48h4.58v2.81h1.42c.84,0,1.46-.16,1.88-.48s.62-.87,.62-1.64c0-.69-.25-1.17-.74-1.45s-1.19-.42-2.09-.42h-6.84v-3h7.2c2.38,0,4.15,.38,5.31,1.15,1.16,.77,1.74,1.93,1.74,3.48,0,1.71-.83,2.93-2.5,3.64,1.07,.4,1.87,.95,2.39,1.65s.79,1.56,.79,2.58c0,3.44-2.58,5.16-7.73,5.16Z" />
-          <path class="cls-2"
-            d="M86.49,85.17h-1.16v4.7h1.8c.81,0,1.46-.18,1.94-.55s.72-.95,.72-1.73c0-.86-.25-1.48-.74-1.85s-1.35-.56-2.56-.56Z" />
-        </g>
-      </g>
-    </g>
-  </g>
-</svg>

Some files were not shown because too many files changed in this diff