首页添加本地店铺和旗舰店的切换功能

This commit is contained in:
wangxiaowei
2026-05-09 11:23:20 +08:00
parent a3edea96af
commit 6885e1679c
4 changed files with 90 additions and 17 deletions

View File

@ -16,9 +16,9 @@
<view class="avatar-tag white xxs text-center m-b-10" v-if="distributionInfo.level_name">{{distributionInfo.level_name}}</view>
<view class="xs flex">
上级分销商:{{userInfo.leader.nickname ? userInfo.leader.nickname : '无'}}
<view v-if="!userInfo.leader.nickname"
<!-- <view v-if="!userInfo.leader.nickname"
class="br60 white write-btn flex row-center m-l-30 xxs" @tap="showInvitePop">填写
</view>
</view> -->
</view>
</view>
</view>
@ -155,15 +155,16 @@
<u-icon class="m-l-10" name="arrow-right" size="28rpx" color="#666" />
</view>
</router-link>
</view>
<view class="my-invite-box m-t-20 bg-white flex-col col-center">
<view class="my-invite-box m-t-20 bg-white flex-col col-center" @tap="previewImage">
<view class="my-invite-title sm normal">我的邀请码</view>
<view class="flex bold m-t-20" style="font-size: 42rpx;line-height: 30rpx">
<view class="flex justify-center m-t-20 m-b-20" v-if="distributionInfo && distributionInfo.user && distributionInfo.user.url">
<image :src="distributionInfo.user.url" alt="" style="width: 200rpx;height: 200rpx;" show-menu-by-longpress></image>
</view>
<!-- <view class="flex bold m-t-20" style="font-size: 42rpx;line-height: 30rpx">
{{userInfo.user.distribution_code}}
<view class="invite-copy-btn m-l-10 xxs" @click="onCopy">点击复制</view>
</view>
</view> -->
<!-- <view class="row-center my-promote-banner bg-primary white">我的推广海报</view> -->
</view>
<view class="usual-tools-box bg-white m-t-20">
@ -258,7 +259,9 @@
inviteStatus: false,
showRegion: false,
regionLists: area,
distributionInfo: {},
distributionInfo: {
user: {}
},
isScanEntry: false
};
},
@ -427,6 +430,7 @@
this.$toast({
title: msg
});
this.getDistributionFun();
this.veryfiyDistributeFun();
this.applyDetailFun();
}
@ -465,6 +469,13 @@
copy(this.userInfo.user.distribution_code)
},
previewImage() {
uni.previewImage({
urls: [this.distributionInfo.user.url],
current: 0
})
},
}
};
</script>
@ -479,8 +490,6 @@
.user-info {
.user-avatar {
position: relative;
}
.avatar-tag {
display: inline-block;