mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-09-20 20:02:02 +08:00
- 新增银行卡管理页面,支持用户查看与管理银行卡。 - 实现添加、删除及设置默认银行卡功能。 - 优化邀请与加入页面,展示邀请人信息并改进用户提示。 - 更新海报与二维码生成逻辑,提升用户体验。 - 重构多个组件,提高可读性与可维护性。
33 lines
668 B
Vue
33 lines
668 B
Vue
<template>
|
|
<view class="bind-page"></view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import {
|
|
resolveDistributionIdFromScene,
|
|
tryBindDistribution,
|
|
} from '@/utils/distributionBind.js'
|
|
|
|
onLoad(async (options) => {
|
|
let distributionId = (options?.distributionId as string) || ''
|
|
|
|
if (options?.scene) {
|
|
distributionId = await resolveDistributionIdFromScene(String(options.scene))
|
|
}
|
|
|
|
if (distributionId) {
|
|
await tryBindDistribution(distributionId)
|
|
}
|
|
|
|
uni.switchTab({ url: '/pages/tabbar/home/index' })
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.bind-page {
|
|
min-height: 100vh;
|
|
background: #fff;
|
|
}
|
|
</style>
|