购物车逻辑

This commit is contained in:
2024-03-20 22:20:24 +08:00
parent 8d7f82b07c
commit 792aa4268a
9 changed files with 118 additions and 63 deletions

View File

@@ -13,7 +13,7 @@
<text>{{ userInfo.telephone }}</text>
</view>
<image :src='assetsUrl("ic_qrcode_white.png")' />
<image :src='assetsUrl("ic_qrcode_white.png")' @click.stop='gotoPath("qrcode")' />
</view>
<view class='bottom-row'>
@@ -130,6 +130,10 @@ const { userInfo } = storeToRefs(store);
const gotoPath = (path: string) => {
if(path === 'follow_official_account') {
showOfficialAccountDialog();
} else if(path === 'qrcode') {
uni.switchTab({
url: '/pages/qrcode/index'
});
} else {
goPath(path);
}
@@ -138,7 +142,6 @@ const gotoPath = (path: string) => {
const showOfficialAccountDialog = () => {
officialAccountDialogRef.value.show();
};
</script>
<style lang='scss' scoped>