登录逻辑调整
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class='user-info-card' @click.stop='goPath("/pages/mine/index")'>
|
||||
<view class='user-info-card' @click.stop='goPath("/pages/mine/index",true)'>
|
||||
<image class='user-avatar' :src='userInfo?.image||defaultAvatar' mode='aspectFill' />
|
||||
<text class='user-name primary-text-color'>{{ userInfo?.nickName || '点击注册会员' }}</text>
|
||||
<view class='integral-view primary-text-color' @click.stop='goPath("/pages/mine/subs/integral/index")'>
|
||||
<view class='integral-view primary-text-color' @click.stop='goPath("/pages/mine/subs/integral/index",true)'>
|
||||
<text>{{ userInfo?.integration || 0 }}</text>
|
||||
<text>积分</text>
|
||||
</view>
|
||||
<view class='divider' style='height: 83rpx' />
|
||||
<view class='balance-view' @click.stop='goPath("/pages/mine/subs/recharge/index")'>
|
||||
<view class='balance-view' @click.stop='goPath("/pages/mine/subs/recharge/index",true)'>
|
||||
<text class='accent-text-color'>{{ userInfo?.balance || 0 }}</text>
|
||||
<text>余额(元)</text>
|
||||
</view>
|
||||
@@ -33,12 +33,12 @@
|
||||
</view>
|
||||
|
||||
<view class='menu-view'>
|
||||
<view @click.stop='goPath("/pages/mine/subs/recharge/index")'>
|
||||
<view @click.stop='goPath("/pages/mine/subs/recharge/index",true)'>
|
||||
<image :src='assetsUrl("ic_member_card2.png")' style='width: 108rpx;height: 72rpx;padding: 11rpx 0' />
|
||||
<text>会员充值</text>
|
||||
</view>
|
||||
<view class='divider' style='margin: 0;height: 153rpx' />
|
||||
<view @click.stop='goPath("/pages/mine/subs/coupon/index")'>
|
||||
<view @click.stop='goPath("/pages/mine/subs/coupon/index",true)'>
|
||||
<image :src='assetsUrl("ic_coupon2.png")' style='width: 108rpx;height: 95rpx' />
|
||||
<text>优惠券</text>
|
||||
</view>
|
||||
|
@@ -136,15 +136,17 @@ onLoad(() => {
|
||||
});
|
||||
|
||||
onShow(async () => {
|
||||
const { list } = await getOrderList({
|
||||
pageNum: 1,
|
||||
pageSize: 9999,
|
||||
obj: { payStatus: 1 }
|
||||
});
|
||||
unPaidOrderCount.value = list.filter((item: any) => isPending(item))?.length || 0;
|
||||
const { cardurl } = await getCardLink();
|
||||
cardLink.value = cardurl;
|
||||
await userStore.getProfile();
|
||||
if(isLogin()) {
|
||||
const { list } = await getOrderList({
|
||||
pageNum: 1,
|
||||
pageSize: 9999,
|
||||
obj: { payStatus: 1 }
|
||||
});
|
||||
unPaidOrderCount.value = list.filter((item: any) => isPending(item))?.length || 0;
|
||||
const { cardurl } = await getCardLink();
|
||||
cardLink.value = cardurl;
|
||||
await userStore.getProfile();
|
||||
}
|
||||
});
|
||||
|
||||
const openCard = () => {
|
||||
@@ -173,7 +175,7 @@ const gotoPath = (path: string) => {
|
||||
phoneNumber: companyInfo.value.telphone
|
||||
});
|
||||
} else {
|
||||
goPath(path);
|
||||
goPath(path, true);
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
<view class='qrcode-card'>
|
||||
<view class='balance-view'>
|
||||
<text class='balance-text'>账户余额:{{ userInfo?.balance || 0 }}元</text>
|
||||
<view class='btn-recharge' @click.stop='goPath("/pages/mine/subs/recharge/index")'>
|
||||
<view class='btn-recharge' @click.stop='goPath("/pages/mine/subs/recharge/index",true)'>
|
||||
<text>去充值</text>
|
||||
<image :src='assetsUrl("ic_arrow_right.png")' />
|
||||
</view>
|
||||
@@ -36,7 +36,6 @@
|
||||
<text>店铺名称({{ userInfo?.creatorName }})</text>
|
||||
<text>{{ userInfo?.storeId }}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user