Commit 2e350bb5 authored by jt's avatar jt

x

parents 7a17cd24 e3c797a5
......@@ -107,6 +107,8 @@ const post = async (url, data, options = {}) => {
options.data = data;
options.url = url;
console.log('post options1111111:', options);
try {
return await request(options);
} catch (error) {
......
......@@ -60,13 +60,13 @@
width: 220rpx;
height: 62rpx;
background: linear-gradient(to right, #D1AF82 0%, #E6C7A3 100%); // itemIndex = 0
border-radius: 30rpx;
border-radius: 80rpx;
display: flex;
margin-top: 30rpx;
margin-top: 31rpx;
margin-left: 0rpx;
align-items: center;
justify-content: center;
box-shadow: 0 2rpx 8rpx rgba(160, 123, 77, 0.3);
// box-shadow: 0 2rpx 8rpx rgba(160, 123, 77, 0.3);
transition: transform 0.2s ease;
.invite_button_text {
......
......@@ -22,7 +22,7 @@
<view class="star_character">
<image
class="star_img"
:src="$baseUrl + 'integral/1023/invate_star_character1023.png'"
:src="$baseUrl + (itemIndex != 4 ? 'integral/1023/invate_star_character1023.png' : 'integral/1023/invate_star_character102302.png')"
mode="aspectFit"
/>
</view>
......
......@@ -6,7 +6,7 @@ const init = (SENSORS_URL) => {
sensors.setPara({
name: "sensors",
server_url: SENSORS_URL,
show_log: false,
show_log: true,
autoTrack: {
appLaunch: true, // 默认为 true,false 则关闭 $MPLaunch 事件采集
appShow: true, // 默认为 true,false 则关闭 $MPShow 事件采集
......
......@@ -67,7 +67,7 @@
</template>
<script setup>
import { ref, getCurrentInstance, onMounted } from "vue";
import { ref, getCurrentInstance, onMounted, nextTick } from "vue";
import { onLoad, onShareAppMessage, onShareTimeline, onPageScroll, onShow } from "@dcloudio/uni-app";
import TabBar from "@/components/TabBar.vue";
import Home from "@/views/Home.vue";
......@@ -148,6 +148,17 @@ const handleLaunchAppError = (e) => {
function handleTabClick({ index }) {
globalStore.setCurTabIndex(index);
// tab切换时,如果授权手机号模块显示,触发曝光埋点
if (!userStore.memberInfo?.mobile) {
nextTick(() => {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: `${['首页', '品牌', '积分', '我的'][index]}`,
componentName: "去授权手机号引导",
componentContent: "去授权手机号引导"
});
});
}
}
// 处理授权手机号按钮点击
......
......@@ -227,7 +227,7 @@ const onGetPhoneNumber = async (e) => {
// 重新获取用户信息(登录后)getphonenumber
await Promise.all([
userStore.loadUserInfo(),
userStore.loadMemberInfo(),
// userStore.loadMemberInfo(),
])
console.warn('授权后重新获取用户信息')
......@@ -353,9 +353,9 @@ const handleClaim = () => {
};
const gotoIntegral = () => {
jump({
url: '/pages/index/index?pageType=integral',
type: JumpType.INNER
uni.redirectTo({
url: '/pages/index/index?pageType=integral'
});
};
......
......@@ -828,7 +828,6 @@ export default {
.address-text.no-address {
color: #999;
font-style: italic;
font-weight: 500;
}
......
......@@ -546,7 +546,7 @@
// 轮播图数据可在此定义(当前使用静态路径)
// "rgba(255,255,255,0.5)"
import { ref, onMounted, onBeforeMount, computed, watch } from 'vue';
import { ref, onMounted, onBeforeMount, onBeforeUnmount, computed, watch } from 'vue';
import { onShareAppMessage } from '@dcloudio/uni-app';
import { jump, JumpType } from '@/utils/index.js'
import { useUserStore } from "@/stores/user";
......@@ -1905,14 +1905,26 @@ onBeforeMount(async () => {
})
onShow(async () => {
console.log('onShow');
console.log('onShow111111111111');
if (needReinit.value) {
needReinit.value = false
initNetData()
}
})
// 使用 watch 监听控制积分页面显示/隐藏的状态
// 这样可以更精确地知道页面何时显示和隐藏
watch(
() => globalStore.curTabIndex === 2 && !globalStore.isWxFriendCircle,
(isVisible) => {
if (isVisible) {
})
}
console.log('isVisible:', isVisible);
},
{ immediate: true }
);
onMounted(async () => {
// showSignedTips.value = true;
......@@ -1931,7 +1943,7 @@ onMounted(async () => {
});
mdMap.value.push('积分服务页-首屏');
}
}
md.sensorComponentLogTake({
xcxComponentExposure: "true",
......
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