Commit 91f7c05c authored by 劳琪峰's avatar 劳琪峰

chore: 合并master

parent 0e071a4a
...@@ -636,6 +636,7 @@ ...@@ -636,6 +636,7 @@
import MonthGift from '../components/pointRightsCom/monthGift.vue'; import MonthGift from '../components/pointRightsCom/monthGift.vue';
import YearGift from '../components/pointRightsCom/yearGift.vue'; import YearGift from '../components/pointRightsCom/yearGift.vue';
import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
import {onShow} from "@dcloudio/uni-app";
// 进度条图片加载错误处理 // 进度条图片加载错误处理
const onProgressBarError = (e) => { const onProgressBarError = (e) => {
...@@ -1464,6 +1465,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1464,6 +1465,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
points:0 points:0
}); });
const needReinit = ref(false)
const willExpiredPoints = ref(0);//即将过期积分 const willExpiredPoints = ref(0);//即将过期积分
...@@ -1708,6 +1710,13 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -1708,6 +1710,13 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
}) })
onShow(async () => {
if (needReinit.value) {
needReinit.value = false
initNetData()
}
})
onMounted(async() => { onMounted(async() => {
showLoading(); showLoading();
...@@ -2233,8 +2242,16 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -2233,8 +2242,16 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
}) })
} }
//会员权益点击跳转 //会员权益点击跳转
const handlePrivilegeClick = (item, index) => { const handlePrivilegeClick = (item, index) => {
if (!islogin.value) {
needReinit.value = true
jump({
type: JumpType.INNER,
url: "/pages/activity/register",
})
return;
}
// jump({ // jump({
// type: JumpType.H5, // type: JumpType.H5,
...@@ -2473,10 +2490,14 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -2473,10 +2490,14 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
}; };
const handleVipClick = () => { const handleVipClick = () => {
if (!islogin.value) {
if(!islogin.value){ needReinit.value = true
return; jump({
} type: JumpType.INNER,
url: "/pages/activity/register",
})
return;
}
vipCardMd(vipLevel.value, false); vipCardMd(vipLevel.value, false);
const item = vipIntegral.value.vipCardInfo; const item = vipIntegral.value.vipCardInfo;
......
...@@ -16,8 +16,7 @@ ...@@ -16,8 +16,7 @@
<image class="banner_cover" :src="$baseUrl + 'my/cover_white.png'" mode="aspectFill" /> <image class="banner_cover" :src="$baseUrl + 'my/cover_white.png'" mode="aspectFill" />
</view> </view>
<button v-if="!cfgStatus.isRegister" type="primary" class="phone-button" open-type="getPhoneNumber" <button v-if="!cfgStatus.isRegister" type="primary" class="phone-button" @click="clickRegisterShield"/>
@getphonenumber="getRealtimePhoneNumber" />
<!-- 用户信息区域 --> <!-- 用户信息区域 -->
<view class="user-info" :style="{ 'min-height': cfgStatus.showDetail ? '343rpx' : '180rpx' }"> <view class="user-info" :style="{ 'min-height': cfgStatus.showDetail ? '343rpx' : '180rpx' }">
...@@ -206,6 +205,12 @@ const handleHot = (e) => { ...@@ -206,6 +205,12 @@ const handleHot = (e) => {
} }
}; };
function clickRegisterShield(){
jump({
type: JumpType.INNER,
url: "/pages/activity/register",
})
}
// 页面跳转 // 页面跳转
const navigateTo = (url) => { const navigateTo = (url) => {
...@@ -306,12 +311,12 @@ const handleEditProfile = (e) => { ...@@ -306,12 +311,12 @@ const handleEditProfile = (e) => {
componentContent: "资料编辑" componentContent: "资料编辑"
}) })
const type = userStore.babyInfo?.allBabyBaseInfo?.length == 0 ? "add" : "edit"; const type = userStore.babyInfo?.allBabyBaseInfo?.length ? "edit" : "add";
babyId.value = userStore.babyInfo?.allBabyBaseInfo.find(
(item) => item.selected
)?.id;
if (type === "edit") { if (type === "edit") {
babyId.value = userStore.babyInfo?.allBabyBaseInfo.find(
(item) => item.selected
)?.id;
navigateTo(`/pages/person/person?type=${type}&id=${babyId.value}`); navigateTo(`/pages/person/person?type=${type}&id=${babyId.value}`);
} else { } else {
navigateTo(`/pages/person/person?type=${type}`); navigateTo(`/pages/person/person?type=${type}`);
......
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