feat: 未登录时,跳转到单独的登录页
This commit is contained in:
@@ -62,7 +62,15 @@
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
|
||||
<button v-if="!isLogin" class="ss-reset-button type-btn" @tap="showAuthModal('accountLogin')">
|
||||
<button
|
||||
v-if="!isLogin"
|
||||
class="ss-reset-button type-btn"
|
||||
@tap="
|
||||
() => {
|
||||
sheep.$router.go('/pages/login/index', {}, { redirect: true });
|
||||
}
|
||||
"
|
||||
>
|
||||
返回登录
|
||||
</button>
|
||||
</view>
|
||||
@@ -110,7 +118,7 @@
|
||||
return;
|
||||
}
|
||||
// 成功后,用户重新登录
|
||||
showAuthModal('accountLogin')
|
||||
sheep.$router.go('/pages/login/index', {}, { redirect: true });
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -3,7 +3,10 @@
|
||||
<view>
|
||||
<su-popup :show="state.showShareGuide" :showClose="false" @close="onCloseGuide" />
|
||||
<view v-if="state.showShareGuide" class="guide-wrap">
|
||||
<image class="guide-image" :src="sheep.$url.static('/static/img/shop/share/share_guide.png')" />
|
||||
<image
|
||||
class="guide-image"
|
||||
:src="sheep.$url.static('/static/img/shop/share/share_guide.png')"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<su-popup :show="show" round="10" :showClose="false" @close="closeShareModal">
|
||||
@@ -17,7 +20,11 @@
|
||||
open-type="share"
|
||||
@tap="onShareByForward"
|
||||
>
|
||||
<image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_wx.png')" mode="" />
|
||||
<image
|
||||
class="share-img"
|
||||
:src="sheep.$url.static('/static/img/shop/share/share_wx.png')"
|
||||
mode=""
|
||||
/>
|
||||
<text class="share-title">微信好友</text>
|
||||
</button>
|
||||
|
||||
@@ -41,7 +48,11 @@
|
||||
class="share-item share-btn ss-flex-col ss-col-center"
|
||||
@tap="onShareByCopyLink"
|
||||
>
|
||||
<image class="share-img" :src="sheep.$url.static('/static/img/shop/share/share_link.png')" mode="" />
|
||||
<image
|
||||
class="share-img"
|
||||
:src="sheep.$url.static('/static/img/shop/share/share_link.png')"
|
||||
mode=""
|
||||
/>
|
||||
<text class="share-title">复制链接</text>
|
||||
</button>
|
||||
</view>
|
||||
@@ -89,7 +100,8 @@
|
||||
const onShareByPoster = () => {
|
||||
closeShareModal();
|
||||
if (!sheep.$store('user').isLogin) {
|
||||
showAuthModal();
|
||||
// showAuthModal();
|
||||
sheep.$router.go('/pages/login/index', {}, { redirect: true });
|
||||
return;
|
||||
}
|
||||
unref(SharePosterRef).getPoster();
|
||||
|
||||
Reference in New Issue
Block a user