Browse Source

💊 修复图标丢失问题

快乐的梦鱼 2 days ago
parent
commit
930e81950b

+ 1 - 1
src/common/components/SimplePageContentLoader.vue

@@ -41,7 +41,7 @@
     :lazy-load="true"
     @load="handleLoad"
     @error="handleLoad"
-    src="https://mncdn.wenlvti.net/uploads/20250313/46adb2f039c6f23a3e69149526eb7e61.png"
+    src="https://mnwhcdn.wenlvti.net/uploads/20250313/46adb2f039c6f23a3e69149526eb7e61.png"
     style="width:0px;height:0px"
   />
 </template>

+ 2 - 2
src/pages/collect/admin.vue

@@ -31,8 +31,8 @@
         </FlexRow>
       </FlexRow>
       <CellGroup round>
-      <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png" title="传承协议签署表" showArrow touchable @click="navTo('/pages/collect/assessment/argeement-sign-list')" />
-      <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="自查评估表" showArrow touchable @click="navTo('/pages/collect/assessment/evaluation-list')" />
+      <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png" title="传承协议签署表" showArrow touchable @click="navTo('/pages/collect/assessment/argeement-sign-list')" />
+      <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="自查评估表" showArrow touchable @click="navTo('/pages/collect/assessment/evaluation-list')" />
       </CellGroup>
       <CellGroup round>
         <Cell title="返回闽南文化" showArrow touchable @click="back()" />

+ 6 - 6
src/pages/collect/inheritor.vue

@@ -31,14 +31,14 @@
         </FlexRow>
       </FlexRow>
       <CellGroup round>
-      <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png" title="传承协议签署" showArrow touchable @click="navTo('assessment/argeement-sign')" />
-      <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="自查评估表" showArrow touchable @click="navTo('assessment/evaluation-form')" />
+      <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png" title="传承协议签署" showArrow touchable @click="navTo('assessment/argeement-sign')" />
+      <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="自查评估表" showArrow touchable @click="navTo('assessment/evaluation-form')" />
       </CellGroup>
       <!-- <CellGroup round>
-        <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png" title="非遗项目资料采集" showArrow touchable @click="navTo('forms/ich')" />
-        <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png" title="传承人信息采集" showArrow touchable @click="navTo('forms/inheritor')" />
-        <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png" title="传习所资料采集" showArrow touchable @click="navTo('forms/seminar')" />
-        <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="传承人作品上传。" showArrow touchable @click="navTo('works')" />
+        <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png" title="非遗项目资料采集" showArrow touchable @click="navTo('forms/ich')" />
+        <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png" title="传承人信息采集" showArrow touchable @click="navTo('forms/inheritor')" />
+        <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png" title="传习所资料采集" showArrow touchable @click="navTo('forms/seminar')" />
+        <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="传承人作品上传。" showArrow touchable @click="navTo('works')" />
       </CellGroup> -->
       <CellGroup round>
         <Cell title="返回闽南文化" showArrow touchable @click="back()" />

+ 12 - 12
src/pages/user/index.vue

@@ -57,7 +57,7 @@
         </Touchable>
 
         <CellGroup round>
-          <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/07f750b4cf4959654c40171fdae91c3a.png" title="投稿" showArrow touchable @click="goContribute">
+          <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/07f750b4cf4959654c40171fdae91c3a.png" title="投稿" showArrow touchable @click="goContribute">
             <template #value>
               <FlexRow>
                 <NButton shape="round" type="success" size="small" :radius="40" @click="goContribute">去投稿</NButton>
@@ -65,26 +65,26 @@
               </FlexRow>
             </template>
           </Cell>
-          <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="我的投稿" showArrow touchable @click="goContributeList" />
-          <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png" title="我的收藏" showArrow touchable @click="goCollectList" />
-          <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png" title="传承人之家" showArrow touchable @click="goInheritor" />
-          <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/acd97ca7b3f7736942495c7aec1dd65b.png" title="闽南文化采集" showArrow touchable @click="goInheritor" />
+          <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/66d4665b1da5075e60148312469b2630.png" title="我的投稿" showArrow touchable @click="goContributeList" />
+          <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png" title="我的收藏" showArrow touchable @click="goCollectList" />
+          <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png" title="传承人之家" showArrow touchable @click="goInheritor" />
+          <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/acd97ca7b3f7736942495c7aec1dd65b.png" title="闽南文化采集" showArrow touchable @click="goInheritor" />
           <button open-type="contact" class="remove-button-style">
-            <Cell icon="https://mncdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png" title="在线客服" showArrow touchable />
+            <Cell icon="https://mnwhcdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png" title="在线客服" showArrow touchable />
           </button>
-          <Cell v-if="userInfo" icon="https://mncdn.wenlvti.net/uploads/20250313/cbc47d0b9cad7891e6154359952858c6.png" title="退出登录" showArrow touchable @click="doLogout" />
+          <Cell v-if="userInfo" icon="https://mnwhcdn.wenlvti.net/uploads/20250313/cbc47d0b9cad7891e6154359952858c6.png" title="退出登录" showArrow touchable @click="doLogout" />
 
           <view class="list">
             <!-- 
-            https://mncdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png
+            https://mnwhcdn.wenlvti.net/uploads/20250313/042236758da5aaed21c1010e5b9440ce.png
             我的好友
-            https://mncdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png
+            https://mnwhcdn.wenlvti.net/uploads/20250313/9fb29e8bdb66490034145c90f892773a.png
             邀请好友
-            https://mncdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png
+            https://mnwhcdn.wenlvti.net/uploads/20250313/1366973c061bf98594036e42c0344593.png
             积分日志
-            https://mncdn.wenlvti.net/uploads/20250313/acd97ca7b3f7736942495c7aec1dd65b.png
+            https://mnwhcdn.wenlvti.net/uploads/20250313/acd97ca7b3f7736942495c7aec1dd65b.png
             加入我们
-            https://mncdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png
+            https://mnwhcdn.wenlvti.net/uploads/20250313/d2e9010323d098aa51e268fc32f14d3d.png
             我的预约 -->
           </view>
 

+ 29 - 4
src/pages/user/login.vue

@@ -1,14 +1,16 @@
 <template>
   <view class="p-3">
-    <view class="d-flex flex-column align-center justify-center">
+    <view class="d-flex flex-column align-center justify-center gap-sss">
       <image class="width-300 m-5" src="https://mncdn.wenlvti.net/app_static/minnan/logo.png" mode="widthFix"></image>
       <view class="mt-3 mb-3">
         <text class="text-align-center">请点击微信登录,并授权获取公开信息, 登录后您将获得更多权益</text>
       </view>
-      <Button type="primary" block @click="loginWechat">
+      <Button type="primary" block @click="loginWechat(false)">
         微信登录
       </Button>
-      <Height :height="20" />
+      <Button v-if="isTestEnv" block @click="loginWechat(true)">
+        微信登录(测试)
+      </Button>
       <Button block @click="back">
         返回
       </Button>
@@ -24,16 +26,39 @@ import { toast } from '@/components/utils/DialogAction';
 import { showError } from '@/common/composeabe/ErrorDisplay';
 import Button from '@/components/basic/Button.vue';
 import Height from '@/components/layout/space/Height.vue';
+import { isTestEnv } from '@/common/config/AppCofig';
 
 const authStore = useAuthStore();
 
-function loginWechat() {
+function loginWechat(debug = false) {
   uni.showLoading({ title: '登录中...' });
   Promise.all([
     uni.login({ provider: 'weixin' }),
     uni.getUserProfile({ desc: '用于完善会员资料' }),
   ])
     .then((res) => {
+      if (debug) {
+        uni.hideLoading();
+        const result = 'code: ' + res[0].code + '\nrawData: ' + res[1].rawData + '\nencryptedData: ' + res[1].encryptedData + '\niv: ' + res[1].iv + '\nsignature: ' + res[1].signature;
+        uni.showModal({
+          title: '测试登录',
+          content: '点击确定可复制 code: ' + res[0].code,
+          showCancel: true,
+          success: (res) => {
+            if (res.confirm) {
+              uni.setClipboardData({
+                data: result,
+                success: () => {
+                  uni.showToast({
+                    title: '已复制',
+                  })
+                }
+              })
+            }
+          },
+        });
+        return;
+      }
       //return;
       authStore.loginWechart(res[0].code, res[1]).then(() => {
         toast('登录成功');