mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-09-20 20:02:02 +08:00
feat(distribution): 增强分销功能与界面优化
- 新增银行卡管理页面,支持用户查看与管理银行卡。 - 实现添加、删除及设置默认银行卡功能。 - 优化邀请与加入页面,展示邀请人信息并改进用户提示。 - 更新海报与二维码生成逻辑,提升用户体验。 - 重构多个组件,提高可读性与可维护性。
This commit is contained in:
@@ -319,6 +319,7 @@ import { ref, reactive, computed, watch, nextTick, getCurrentInstance } from 'vu
|
||||
import { onLoad, onShow } from '@dcloudio/uni-app'
|
||||
import { getGoods, getGoodsList, getMpScene } from '@/api/goods.js'
|
||||
import { recordDistributionGoodsVisit } from '@/api/distribution.js'
|
||||
import { tryBindDistribution } from '@/utils/distributionBind.js'
|
||||
import * as API_trade from '@/api/trade.js'
|
||||
import * as API_Members from '@/api/members.js'
|
||||
import * as API_store from '@/api/store.js'
|
||||
@@ -518,7 +519,10 @@ async function init(id: any, goodsId: any, distributionId = "", shareId = "") {
|
||||
}
|
||||
|
||||
const distId = distributionId || store.state.distributionId
|
||||
if (distId && goodsId && id) {
|
||||
if (distId) {
|
||||
await tryBindDistribution(distId)
|
||||
}
|
||||
if (distId && goodsId && id && storage.getAccessToken()) {
|
||||
recordDistributionGoodsVisit({
|
||||
skuId: id,
|
||||
goodsId,
|
||||
|
||||
Reference in New Issue
Block a user