Commit 272e4330 authored by jt's avatar jt

x

parents d162c8e7 e6571a75
......@@ -17,8 +17,8 @@ const {
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.230.108:7777/pmall";
// const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
// const baseUrl = "https://momclub-test.feihe.com/pmall";
let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
const baseUrl = "https://momclub-test.feihe.com/pmall";
// let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
// const baseUrl = "https://feihe.m.duibatest.com.cn/pmall"
......
......@@ -9,10 +9,11 @@
<!-- 结果标题和图标 -->
<view class="result-header">
<text class="result-title">{{ isCorrect ? '你太棒了,回答正确!' : '快来补课吧,回答错误哦!' }}</text>
<text class="result-title">{{ isCorrect ? '你太棒了,回答正确!' : '快来补课吧回答错误哦!' }}</text>
<view class="result-icon">
<image v-if="isCorrect" :src="`${$baseUrl}homepage/Q3Res/eat_goodIcon.png`" mode="aspectFit"></image>
<image v-else :src="`${$baseUrl}homepage/Q3Res/eat_cryIcon.png`" mode="aspectFit"></image>
<image class="correct" v-if="isCorrect" :src="`${$baseUrl}homepage/Q3Res/eat_goodIcon.png`"
mode="aspectFit"></image>
<image class="incorrect" v-else :src="`${$baseUrl}homepage/Q3Res/eat_cryIcon.png`" mode="aspectFit"></image>
</view>
</view>
......@@ -191,9 +192,9 @@ export default {
<style scoped>
.answer-popup-container {
width: 750rpx;
height: 986rpx;
position: relative;
margin: 0 auto;
bottom: 0rpx;
overflow: visible;
}
......@@ -244,7 +245,20 @@ export default {
line-height: 1.4;
}
.result-icon {
.result-icon .correct {
width: 164rpx;
height: 164rpx;
display: flex;
align-items: center;
justify-content: center;
position: relative;
top: -20rpx;
left: -170rpx;
}
.result-icon .incorrect {
width: 164rpx;
height: 164rpx;
display: flex;
......@@ -252,7 +266,7 @@ export default {
justify-content: center;
position: relative;
top: 0rpx;
left: -140rpx;
left: -120rpx;
}
.result-icon image {
......@@ -356,7 +370,7 @@ export default {
.analysis-section {
background: #FFFFFF;
height: 446rpx;
max-height: 446rpx;
padding: 40rpx;
border-radius: 36rpx;
margin-bottom: 40rpx;
......
......@@ -88,7 +88,7 @@ const getMessage = (e) => {
const initWebviewUrl = async () => {
// 使用固定的基础URL,从 options 中获取或使用默认值
const options = pageOptions.value
let baseUrl = options.url || options.baseUrl || 'https://momclub-test.feihe.com/h5/game/index.html'
let baseUrl = 'https://momclub-test.feihe.com/h5/game/index.html'
// 如果 baseUrl 已经包含协议,直接使用;否则添加协议
if (!baseUrl.startsWith('http://') && !baseUrl.startsWith('https://')) {
......@@ -113,17 +113,23 @@ const initWebviewUrl = async () => {
const params = { ...cleanOptions }
if (cuk && !params.cuk) params.cuk = cuk
// 添加用户信息参数
if (openId && !params.openId) params.openId = openId
if (openId && !params.miniopenid) params.miniopenid = openId
if (unionId && !params.unionId) params.unionId = unionId
// 获取会员信息(优先从 memberInfo 获取,如果没有则从 userInfo 获取)
const memberInfo = userStore.memberInfo || userStore.userInfo
const userInfo = userStore.userInfo
// 添加微信昵称(如果存在)
if (userInfo?.nickname) {
params.wxNickName = userInfo.nickname
}
// 添加 memberId(如果已注册)
if (memberInfo?.memberId && memberInfo.memberId !== "not_login") {
params.crmId = memberInfo.memberId
// 添加会员ID
params.memberId = memberInfo.memberId
params.memberid = memberInfo.memberId
// 添加是否登录(1表示已登录,0表示未登录)
params.programLogin = '1'
// 添加会员等级(从 gradeList 中根据 grade 获取 gradeName)
......@@ -315,7 +321,7 @@ onShareTimeline((options) => {
return {
title: title || '分享',
path: shareurl || '/pages/index/index',
path: shareurl || '/pages/gameWebview/webview',
imageUrl: imageUrl || '',
success: function (res) {
//星妈会埋点方法,用户分享成功后触发事件
......
......@@ -393,16 +393,16 @@ export const useUserStore = defineStore("userInfo", {
/**
* 清除用户信息(注销时使用)
*/
// clearUserData() {
// this.userInfo = null;
// this.babyInfo = null;
// this.memberInfo = null;
// this.babyNickCache = [];
// this.cepingjieguoInfo = null;
// // 清除本地存储
// uni.removeStorageSync('memberId');
// uni.removeStorageSync('loginStatus');
// },
clearUserData() {
this.userInfo = null;
this.babyInfo = null;
this.memberInfo = null;
this.babyNickCache = [];
this.cepingjieguoInfo = null;
// 清除本地存储
uni.removeStorageSync('memberId');
uni.removeStorageSync('loginStatus');
},
},
});
\ No newline at end of file
......@@ -809,7 +809,7 @@ export default {
md.sensorComponentLogTake({
xcxComponentClick: "true",
pageName: "商品详情页",
componentName: "立即兑换",
componentName: "商品详情",
componentContent: "立即兑换"
});
console.log('handleExchange 被调用');
......
......@@ -88,11 +88,11 @@ export default {
uni.hideLoading();
if (res.ok) {
// 清除本地缓存的用户信息
// const userStore = useUserStore();
const userStore = useUserStore();
// const globalStore = useGlobalStore();
// const homeStore = useHomeStore();
// userStore.clearUserData();
userStore.clearUserData();
// globalStore.clearAuthData();
// homeStore.clearHomeData();
......@@ -100,7 +100,7 @@ export default {
// 跳转到首页
uni.reLaunch({
url: '/pages/index/index'
url: '/pages/index/index?pageType=home'
});
} else {
uni.showToast({
......
......@@ -31,7 +31,7 @@
<text class="product-name">{{ order.productName }}</text>
<text class="product-points">{{ order.points }}{{ order.creditsTypeName }}</text>
</view>
<text class="product-description">{{ order.description }}</text>
<!-- <text class="product-description">{{ order.description }}</text> -->
<!-- 卡券有效期 -->
<text v-if="order.productType === 'coupon' && order.validUntil" class="validity-period">
......@@ -548,6 +548,7 @@ export default {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.product-name-row {
......@@ -558,11 +559,15 @@ export default {
}
.product-name {
width: 350rpx;
font-size: 30rpx;
color: #333333;
font-weight: 600;
flex: 1;
margin-right: 20rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.product-points {
......
......@@ -38,7 +38,7 @@
xcxClick: '我的页面点击',
pageName: '我的页面',
buttonName: '宝宝信息切换',
}" >
}">
<text class="nickname" @click="handleEditProfile">{{
babyInfo?.babyStage === 0
? "备孕"
......@@ -106,7 +106,7 @@
<!-- 完成任务模块 -->
<view class="task-module"
v-if="!cfgStatus.isRegister || (babyInfo?.allBabyBaseInfo && babyInfo.allBabyBaseInfo.length > 0)">
v-if="cfgStatus.isRegister && (babyInfo?.allBabyBaseInfo && babyInfo.allBabyBaseInfo.length > 0)">
<image class="task-guide-bg" :src="$baseUrl + 'homepage/Q3Res/my_taskGuideBg.png'"></image>
<image class="task-do-btn" :src="$baseUrl + 'homepage/Q3Res/my_taskDoBtn.png'" @tap="handleTaskClick"></image>
</view>
......@@ -576,6 +576,27 @@ const handleWheelChange = (val) => {
const initExposure = () => {
// 添加宝宝信息引导模块曝光埋点
if (cfgStatus.value.isRegister && (!babyInfo.value?.allBabyBaseInfo || babyInfo.value?.allBabyBaseInfo?.length === 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "添加宝宝信息引导",
componentContent: "添加宝宝信息引导"
});
}
// 添加做任务赚更多积分模块曝光埋点
if (!cfgStatus.value.isRegister || (babyInfo.value?.allBabyBaseInfo && babyInfo.value?.allBabyBaseInfo?.length > 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "做任务赚更多积分",
componentContent: "去做任务"
});
}
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
......@@ -658,25 +679,6 @@ onShow(async () => {
points.value = userStore.memberInfo?.points;
console.log('userStore.memberInfo=', userStore.memberInfo)
// 添加宝宝信息引导模块曝光埋点
if (cfgStatus.value.isRegister && (!babyInfo.value?.allBabyBaseInfo || babyInfo.value?.allBabyBaseInfo?.length === 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "添加宝宝信息引导",
componentContent: "添加宝宝信息引导"
});
}
// 添加做任务赚更多积分模块曝光埋点
if (!cfgStatus.value.isRegister || (babyInfo.value?.allBabyBaseInfo && babyInfo.value?.allBabyBaseInfo?.length > 0)) {
md.sensorComponentLogTake({
xcxComponentExposure: "true",
pageName: "我的页面",
componentName: "做任务赚更多积分",
componentContent: "去做任务"
});
}
// 添加拓展工具菜单曝光埋点
md.sensorComponentLogTake({
......
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