Commit 351b6bf8 authored by 张九刚's avatar 张九刚

Merge branch 'dev' into feature/20250617home_md

parents e75531b1 7dcae207
No preview for this file type
This diff is collapsed.
......@@ -16,8 +16,8 @@ const {
// request.js
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.224.178:7777/pmall";
// const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
const baseUrl = "https://momclub.feihe.com/pmall";//生产环境
const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
// const baseUrl = "https://momclub.feihe.com/pmall";//生产环境
const request = (options = {}) => {
// 在这里可以对请求头进行一些设置
......
This diff is collapsed.
......@@ -279,7 +279,7 @@ const handleBabyInfoConfirm = throttleTap(async () => {
};
if (status.value !== 0) {
req.dueDate = date.value;
req.babyBirthday = date.value;
req.babyGender = gender.value;
req.babyType = fetus.value;
}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
export const homeObj = {
{
"voiceStory":{
"link":{
"type": 3,
......@@ -31,7 +31,7 @@ export const homeObj = {
"url": "homepage/banner3.jpg",
"link": {
"type": 2,
"url": "subPackages/xmhMainProcess/member/index?entrySource=xmh_wechatmp_points_recgoodsbot",
"url": "subPackages/shopMainList/topicNew/index?id=1000898",
"extra": {"appId": "wx4205ec55b793245e", "envVersion": "release"}
}
}
......
......@@ -26,8 +26,8 @@ export const myObj = {
"title": "奶娃宝典",
"desc": "奶娃宝典",
"link": {
"type": 3,
"url": "https://mom.feihe.com/babyWikipedia",
"type": 1,
"url": "/pages/library/ContentLibrary",
"extra": {}
}
},
......
This diff is collapsed.
......@@ -373,7 +373,7 @@ const formItems = ref([
required: false,
placeholder: "未选择",
type: "picker",
range: ["纯母乳", "混合喂养", "纯奶粉"],
range: ["奶粉喂养", "母乳喂养", "母乳奶粉混合喂养"],
mode: "custom",
},
{
......@@ -578,6 +578,9 @@ const onSubmit = async (e) => {
hideLoading();
if (res.success) {
data?.id &&
userStore.setBabyNickCache(data?.id, formData.value.babyName);
uni.showToast({
title: "提交成功",
icon: "success",
......
......@@ -46,9 +46,12 @@ export default {
this.contentImg = contentImg;
this.contentImgLen = contentImgLen;
this.shareTitle = shareTitle;
this.shareImg = this.$baseUrl + shareImg;
this.tabName = tabName;
this.title = title;
if(shareImg.indexOf('http') === -1){
this.shareImg = this.$baseUrl + shareImg;
}else{
this.shareImg = shareImg;
}
// this.shareImg = "https://yun.duiba.com//fh/"+shareImg;
......
......@@ -20,6 +20,7 @@ export const useUserStore = defineStore("userInfo", {
userInfo: null,
babyInfo: null,
memberInfo: null,
babyNickCache: [],
};
},
actions: {
......@@ -103,6 +104,16 @@ export const useUserStore = defineStore("userInfo", {
}
},
setBabyNickCache(id, name) {
const findIndex = this.babyNickCache.findIndex((item) => item.id === id);
console.log("this.babyNickCache", findIndex);
if (findIndex > -1) {
this.babyNickCache[findIndex].name = name;
} else {
this.babyNickCache.push({ id, name });
}
},
/**
* 获取宝宝信息
*/
......@@ -111,6 +122,20 @@ export const useUserStore = defineStore("userInfo", {
console.log("babyInfo", data);
if (data?.memberId !== "not_login") {
this.babyInfo = data;
console.log("this.11111", this.babyNickCache, data?.content?.id);
const findItem = this.babyNickCache.find(
(item) => item.id == data?.content?.id
);
if (data?.content?.id && findItem) {
this.babyInfo.babyName = findItem.name;
this.babyInfo.allBabyBaseInfo.forEach((item) => {
if (item.id == data?.content?.id) {
item.babyName = findItem.name;
}
});
}
}
},
......
......@@ -29,7 +29,7 @@ export function jump({ type, url, extra = {} }) {
appId: extra.appId || "",
path: url,
extraData: extra.extraData || {},
envVersion: extra.envVersion || "trial",
envVersion: extra.envVersion || "release",
success: extra.success,
fail: extra.fail,
};
......
......@@ -103,20 +103,22 @@
>
<!-- 第一行 -->
<view class="header-row">
<view class="integral-value">
<text class="integral-text">积分</text>
<text class="integral-total">{{ memberInfo.maxGrade ? `(累计${recentAnnualPointsTotal})` : `(累计${recentAnnualPointsTotal}/${nextGradeScoreRuleMin})` }}</text>
<image
class="next-icon"
v-if="!memberInfo.maxGrade"
:src="$baseUrl + `integral/${tupianBanben}/nextLvTips.png`"
mode="aspectFit"
/>
</view>
<view class="integral-value">
<text class="integral-text">积分</text>
<!-- <text class="integral-total">{{ memberInfo.maxGrade ? `(累计${recentAnnualPointsTotal})` : `(累计${recentAnnualPointsTotal}/${nextGradeScoreRuleMin})` }}</text>
<image
class="next-icon"
v-if="!memberInfo.maxGrade"
:src="$baseUrl + `integral/${tupianBanben}/nextLvTips.png`"
mode="aspectFit"
/> -->
</view>
</view>
<!-- 第二行 -->
<view class="progress-bar1">
<image
<text class="upLvTxt1">{{ upLvTxts[vipLevel]?.split('/')[0] }}<text class="upLvTxt2">{{ upLvTxts[vipLevel]?.split('/')[1] }}</text></text>
<!-- <image 预留进度条代码
:src="$baseUrl + `integral/${tupianBanben}/${vipIntegral?.progressBar?.barBgImg}`"
class="progress-bg1"
/>
......@@ -126,7 +128,7 @@
class="progress-img1"
:style="{ transform: `translateX(${(recentAnnualPointsTotal/nextGradeScoreRuleMin)*100 -100}%)` }"
/>
</view>
</view> -->
</view>
......@@ -144,10 +146,10 @@
class="info-row"
@click="integralDetailHandler"
>
<text class="count-text">{{ `当前:${points}` }}</text>
<text class="count-text">{{ `当前:${points} 积分` }}</text>
<text class="expire-text"
v-if="willExpiredPoints > 0"
>{{`(${willExpiredPoints ? willExpiredPoints : 0}积分将到期)`}}</text>
>{{`(${willExpiredPoints ? willExpiredPoints : 0}积分将到期)`}}</text>
<image
class="integral-detail-arrow"
:src="$baseUrl + `integral/${tupianBanben}/integralArrow.png`"
......@@ -277,7 +279,7 @@
>
<!-- <image
class="goods-img-bg"productIdUrl
:src="$baseUrl + `integral/1005/listItemImgBg.png`"
:src="$baseUrl + `integral/1007/listItemImgBg.png`"
mode="aspectFit"
/> -->
<view class="goods-item-container" @click="handleGoodsItemClick('xingpin',i)">
......@@ -400,7 +402,7 @@
import RegisterLayer from "../components/RegisterLayer.vue";
const integralData = ref({
"tupianBanben": "1005",
"tupianBanben": "1007",
"swiper": [
{
"bannerImg": "integralBannerBg0.png",
......@@ -419,6 +421,13 @@
"imgPlatinum2.png",
"imgPlatinum3.png",
"imgPlatinum4.png"
],
"upLvTxts": [
"扫罐内码或下单有机会提升至/V2铂金会员",
"扫罐内码或下单有机会提升至/V3钻石会员",
"扫罐内码或下单有机会提升至/V4星光会员",
"扫罐内码或下单有机会提升至/V5星耀会员",
"已提升至最高等级/V5星耀会员"
]
},
"vipIntegral": {
......@@ -594,7 +603,7 @@
],
"goodsListData": {
"listCommon": {
"listItemImgBg": "integral/1005/listItemImgBg.png"
"listItemImgBg": "integral/1007/listItemImgBg.png"
},
"tabInfo": {
"tabBg": "tapSelectBg.png",
......@@ -637,8 +646,8 @@
},
{
"url": "subPackages/shopMainProcess/product/index?productId={productId}&skuId={skuId}&entrySource=xmh_wechatmp_points_star",
"productId": "475427897333207101",
"skuId": "475427897333207102",
"productId": "779457178234291713",
"skuId": "779457178234291714",
"type": 2,
"extra": {
"appId": "wx4205ec55b793245e",
......@@ -1026,7 +1035,7 @@
"titles": [
"星飞帆4段儿童成长配...",
"星飞帆卓睿4段儿童配...",
"茁然纯牛奶(A2 β酪蛋...",
"飞鹤臻贵儿童成长配方...",
"茁然 茁护儿童配方奶...",
"经典爱本乳铁蛋白配方...",
"飞鹤茁然高钙奶酪泡芙...",
......@@ -1044,7 +1053,7 @@
"prices": [
"低至730积分+¥115",
"低至865积分+¥195",
"低至250积分+¥40",
"低至1000积分+¥228",
"低至715积分+¥125",
"低至560积分+¥102",
"低至323积分+¥37.5",
......@@ -1172,8 +1181,9 @@
// const integralData = ref({});
const swiperData = ref(integralData.value.swiper);//banner图片
const swiperData = ref(integralData.value.swiper);//banner图片地方
const vipLvIcons = ref(integralData.value.viplv.imgs);//会员等级图标
const upLvTxts = ref(integralData.value.viplv.upLvTxts);//会员等级提升文字
const vipIntegral = ref(integralData.value.vipIntegral);//积分明细\
const clickMore = ref(integralData.value.clickMore);//点击更多
const vipActive = ref(integralData.value.vipActive);//会员活动
......@@ -1669,7 +1679,7 @@
height: 154rpx;
// margin-left: 32rpx;
// margin-right: 32rpx;
// background: url('@{baseUrl}integral/1005/vipDetailBg.png') no-repeat center/cover;
// background: url('@{baseUrl}integral/1007/vipDetailBg.png') no-repeat center/cover;
flex-direction: row;
position: relative;
display: flex;
......@@ -1724,7 +1734,7 @@
height: 37rpx;
margin-left: 10rpx;
margin-top: 5rpx;
// background: url('@{baseUrl}integral/1005/tabNowBg.png') no-repeat center/contain;
// background: url('@{baseUrl}integral/1007/tabNowBg.png') no-repeat center/contain;
display: flex;
align-items: center;
justify-content: center;
......@@ -1760,7 +1770,7 @@
// flex: 1;
height: 144rpx;
width: 492rpx;
// background: url('@{baseUrl}integral/1005/inteBarAreaBg.png') no-repeat center/cover;
// background: url('@{baseUrl}integral/1007/inteBarAreaBg.png') no-repeat center/cover;
margin-left: 16rpx;
// padding: 16rpx 24rpx;
.integralClick {
......@@ -1801,28 +1811,42 @@
position: relative;
width: 444rpx; // 根据图片宽度设置
height: 14rpx; // 根据图片高度设置
margin: 14rpx auto 16rpx auto;
.progress-bg1 {
margin-top: 0rpx;
position: absolute;
width: 444rpx;
height: 14rpx;
top: 0rpx;
left: 0rpx;
}
.progress-mask {
// margin: 14rpx auto 16rpx auto;
.upLvTxt1{
font-size: 20rpx;
color: #1d1e25;
position: absolute;
width: 444rpx;
height: 14rpx;
overflow: hidden;
border-radius: 7rpx;
.progress-img1 {
position: absolute;
width: 444rpx;
height: 14rpx;
display: block;
margin-left: 26rpx;
margin-top: 5rpx;
.upLvTxt2{
color: #b27c1e;
font-size: 20rpx;
}
}
//预留进度条代码
// .progress-bg1 {
// margin-top: 0rpx;
// position: absolute;
// width: 444rpx;
// height: 14rpx;
// top: 0rpx;
// left: 0rpx;
// }
// .progress-mask {
// position: absolute;
// width: 444rpx;
// height: 14rpx;
// overflow: hidden;
// border-radius: 7rpx;
// .progress-img1 {
// position: absolute;
// width: 444rpx;
// height: 14rpx;
// display: block;
// }
// }
}
......@@ -2004,8 +2028,8 @@
justify-content: center;
&.active {
//https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/integral/1005/tapSelectBg.png
// background-image: url('@{baseUrl}integral/1005/tapSelectBg.png');
//https://duiba.oss-cn-hangzhou.aliyuncs.com/fh/integral/1007/tapSelectBg.png
// background-image: url('@{baseUrl}integral/1007/tapSelectBg.png');
background-size: 100% 100%;
.tab-line1 { color: #1d1e25; }
.tab-line2 { color: #b27c1e; }
......@@ -2061,7 +2085,7 @@
position: relative;
.goods-img {
width: 100%;
height: 300rpx;
height: 365rpx;
margin-bottom: 20rpx;
}
......@@ -2069,12 +2093,12 @@
width: 100%;
// height: auto;
margin-left: 20rpx;
margin-bottom: 10rpx;
margin-top: 22rpx;
// margin-bottom: 10rpx;
margin-top: -48rpx;
.title-text1 {
position: relative;
width:100%;
font-size: 26rpx;
font-size: 28rpx;
color: #1d1e25;
}
}
......@@ -2083,8 +2107,9 @@
.price-text {
// height: auto;
position: relative;
font-size: 24rpx;
font-size: 28rpx;
color: #b27c1e;
margin-top: 10rpx;
margin-left: 20rpx;
.num {
......
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