Browse Source

修改bug

purui 4 days ago
parent
commit
ebdd5a3398

+ 11 - 6
packages/app/src/pages-sub/home/activity/images/index.vue

@@ -7,11 +7,13 @@
 }
 </route>
 <script setup lang="ts">
+import { title } from 'process'
 import { getPhotoList, getPhotoList2 } from '../../../../core/libs/requests'
 import SectionHeading from '@/components/section-heading.vue'
 import dayjs from 'dayjs'
 
 const id = ref()
+const title = ref("")
 const type = ref()
 const img = ref()
 const imgTab = ref([])
@@ -82,6 +84,7 @@ onReachBottom(async ()=>{
 })
 onLoad(async (query: { id: string; type: 'activity' | 'studyTour'; title: string }) => {
   await uni.setNavigationBarTitle({ title: query.title })
+  title.value = query.title
   id.value = query.id
   type.value = query.type
   let res = await setData();
@@ -97,12 +100,14 @@ onLoad(async (query: { id: string; type: 'activity' | 'studyTour'; title: string
 	  }
   }
 })
-onShareAppMessage(()=>{
-	
-})
-onShareTimeline(()=>{
-	
-})
+onShareAppMessage(() => ({
+  title:title.value,
+  path:`/pages-sub/home/activity/images/index?id=${id.value}&type=${type.value}&title=${title.value}`
+}))
+onShareTimeline(() => ({
+  title:title.value,
+  path:`/pages-sub/home/activity/images/index?id=${id.value}&type=${type.value}&title=${title.value}`
+}))
 </script>
 <template>
   <div class="bg-white gap-4 pb-4">

+ 8 - 0
packages/merchant/src/pages/mine/agent/business-card/edit-card.vue

@@ -27,6 +27,7 @@ const schema = ref<DataFormSchema>({
     type: 'ImageUploader',
     label: '头像',
     labelWidth: 120,
+	required:true,
     props: {
 		limit:1
 	},
@@ -35,12 +36,19 @@ const schema = ref<DataFormSchema>({
     type: 'TextField',
     label: '姓名',
     labelWidth: 120,
+	required:true,
     props: undefined,
   },
   phone: {
     type: 'TextField',
     label: '手机',
     labelWidth: 120,
+	required:true,
+  },
+  weChat: {
+    type: 'TextField',
+    label: '微信号',
+    labelWidth: 120,
   },
   email: {
     type: 'TextField',

+ 4 - 4
packages/merchant/src/pages/mine/agent/business-card/index.vue

@@ -155,7 +155,7 @@ onLoad(async () => {
         <wd-img :src="edit" width="27px" height="27px" custom-class="mr-8px" mode="widthFix" />
         编辑名片
       </div>
-      <div
+      <!-- <div
         class="inline-flex py-[10px] px-[24px] rounded-[8px] border-[1px] border-solid border-[#E2E4ED] color-[#13AC5C] lh-[24px]"
 		@click="wechatShare"
       >
@@ -167,10 +167,10 @@ onLoad(async () => {
           mode="widthFix"
         />
         微信分享
-      </div>
+      </div> -->
     </div>
     <!-- 保存 按钮 -->
-    <BottomAppBar fixed placeholder>
+    <!-- <BottomAppBar fixed placeholder>
       <wd-button
         type="primary"
         :round="false"
@@ -181,7 +181,7 @@ onLoad(async () => {
       >
         保存到本地
       </wd-button>
-    </BottomAppBar>
+    </BottomAppBar> -->
 	<div class="w-[344px] h-[185px] fixed top-0 left-0">
 	  <canvas class="w-full h-full" id="qrcode" canvas-id="qrcode"></canvas>
 	</div>

+ 1 - 1
packages/merchant/src/pages/mine/index.vue

@@ -216,7 +216,7 @@ onPageScroll(({ scrollTop }: { scrollTop: number }) => {
                           <div
                             class="text-left text-black/30 text-sm font-normal font-['PingFang_SC'] leading-normal"
                           >
-                            {{ it.points }}积分
+                            {{ it.payPoints }}积分
                           </div>
                         </div>
                       </div>