Ver código fonte

```
feat(index): 添加跳转至公众号功能

- 在首页添加微信公众号跳转逻辑,当点击 refueling-tabbar 时调用
wx.openOfficialAccountProfile 跳转至指定公众号
- 配置公众号用户名为 gh_6a682fa2ed1d

fix(commonTab): 更新背景图片并调整样式

- 将背景图片从 xsb-index.png 更改为 xsb-index-bg.jpg
- 添加圆角样式 rounded-16rpx
- 注释掉原有的绝对定位内容区域以优化显示效果

chore(manifest): 修复 JSON 格式问题

- 移除多余的逗号以确保 manifest.json 文件格式正确
```

zouzexu 21 horas atrás
pai
commit
3c74188fb7

+ 7 - 0
src/pages/index/index.vue

@@ -85,6 +85,13 @@ function handleClick(name: string) {
     show({ msg: '您所属的企业暂无权限查看 !' })
     return
   }
+  if (name === 'refueling-tabbar') { // 跳转至公众号
+    ;(wx as any).openOfficialAccountProfile({
+      username: 'gh_6a682fa2ed1d',
+    })
+    return
+  }
+
   router.push({ name })
 }
 onShareAppMessage(() => {

+ 3 - 3
src/subPack-xsb/commonTab/components/index.vue

@@ -227,8 +227,8 @@ function handleChangeSwiper(e: UniHelper.SwiperOnChangeEvent) {
           </wd-notice-bar>
         </view>
         <view class="relative mt20rpx box-border" @click="useGlobalToast().show('敬请期待 !')">
-          <image :src="`${StaticUrl}/xsb-index.png`" class="h236rpx w-full" />
-          <view class="absolute left-0 top-0 box-border h-full w-full flex items-end justify-between px16rpx pb16rpx">
+          <image :src="`${StaticUrl}/xsb-index-bg.jpg`" class="h236rpx w-full rounded-16rpx" />
+          <!-- <view class="absolute left-0 top-0 box-border h-full w-full flex items-end justify-between px16rpx pb16rpx">
             <image
               :src="`${StaticUrl}/xsb-index1.png`"
               class="h148rpx w328rpx"
@@ -237,7 +237,7 @@ function handleChangeSwiper(e: UniHelper.SwiperOnChangeEvent) {
               :src="`${StaticUrl}/xsb-index2.png`"
               class="h148rpx w328rpx"
             />
-          </view>
+          </view> -->
         </view>
         <view class="my20rpx">
           <scroll-view scroll-x class="whitespace-nowrap">