Commit 9305edbb authored by 天马流星拳's avatar 天马流星拳

refactor(share): 移除渠道判断直接使用华夏银行分享逻辑

移除对渠道的判断条件,直接使用华夏银行的分享方法,简化代码结构
parent 9916e382
...@@ -41,17 +41,24 @@ const shareStore = makeAutoObservable({ ...@@ -41,17 +41,24 @@ const shareStore = makeAutoObservable({
/** 分享 TODO 看看有没有普通分享这个场景 */ /** 分享 TODO 看看有没有普通分享这个场景 */
async doShare(isInvite = false) { async doShare(isInvite = false) {
console.log("🚀 ~ CFG:", CFG,CFG.channel, CHANNEL.HXBANK)
const { shareInfo } = store.frontVariable; const { shareInfo } = store.frontVariable;
if (CFG.channel == CHANNEL.HXBANK) { // 华夏银行APP分享
const _url = await this.getShareLink(isInvite); const _url = await this.getShareLink(isInvite);
// 分享方法 // 分享方法
hxbankShare({ hxbankShare({
...shareInfo, ...shareInfo,
url: _url url: _url
}) })
} else { // if (CFG.channel == CHANNEL.HXBANK) { // 华夏银行APP分享
// const _url = await this.getShareLink(isInvite);
// // 分享方法
// hxbankShare({
// ...shareInfo,
// url: _url
// })
// } else {
} // }
}, },
/** 助力 */ /** 助力 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment