Commit bcb03ac5 authored by 张九刚's avatar 张九刚

Merge branch 'master' into feature/20250901_share

parents 22c32da0 12f1986a
...@@ -9,6 +9,7 @@ import { ...@@ -9,6 +9,7 @@ import {
//const baseUrl = 'https://feihe.jzvcode.com/feihe'; //const baseUrl = 'https://feihe.jzvcode.com/feihe';
//const baseUrl = 'https://factory-walk-test.feihe.com/feihe'; //const baseUrl = 'https://factory-walk-test.feihe.com/feihe';
const baseUrl = 'https://factory-walk.feihe.com/feihe'; const baseUrl = 'https://factory-walk.feihe.com/feihe';
//const baseUrl = 'https://factory-walk-uat.feihe.com/feihe';
const request = (options = {}) => { const request = (options = {}) => {
// 对options.data 进行一些处理 // 对options.data 进行一些处理
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
"quickapp" : {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx88ab296d52e9835d", "appid" : "wxc83b55d61c7fc51d",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"minified" : true, "minified" : true,
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
"desc" : "请允许获取位置信息,用于提供附近服务" "desc" : "请允许获取位置信息,用于提供附近服务"
} }
}, },
"requiredBackgroundModes" : [ "share" ] "requiredBackgroundModes" : [ "share" ],
"embeddedAppIdList": ["wx4205ec55b793245e"]
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true "usingComponents" : true
......
This diff is collapsed.
...@@ -63,6 +63,20 @@ ...@@ -63,6 +63,20 @@
"navigationBarTitleText": "" "navigationBarTitleText": ""
} }
}, },
{
"path": "pages/naming/naming",
"style": {
"navigationBarTitleText": "星妈起名",
"enablePullDownRefresh": false
}
},
{
"path": "pages/naming/namingResult",
"style": {
"navigationBarTitleText": "星妈起名",
"enablePullDownRefresh": false
}
},
{ {
"path": "pages/expertTeamPage/expertTeamPage", "path": "pages/expertTeamPage/expertTeamPage",
"style": { "style": {
......
...@@ -38,7 +38,7 @@ const shareOptions = { ...@@ -38,7 +38,7 @@ const shareOptions = {
0: { 0: {
title: "8000万中国妈妈信赖的育儿品牌", title: "8000万中国妈妈信赖的育儿品牌",
path: "/pages/index/index?pageType=home", path: "/pages/index/index?pageType=home",
imageUrl: $baseUrl + "share/share_home.png", imageUrl: $baseUrl + "share/share_home0901.jpg",
}, },
1: { 1: {
title: "飞鹤提供家庭营养一站式解决方案", title: "飞鹤提供家庭营养一站式解决方案",
......
...@@ -170,10 +170,10 @@ ...@@ -170,10 +170,10 @@
<view class="item_line"></view> <view class="item_line"></view>
</view> </view>
<!--避字--> <!--避字-->
<view class="taboo_word"> <view class="taboo_word">
<view class="item_top"> <view class="item_top">
<span class="title_txt"></span> <span class="title_txt"></span>
<input class="taboo_input" :placeholder="showPlaceholder2 ? '示例:然、萌' : ''" v-model="avoidChars" <input class="taboo_input" :placeholder="showPlaceholder2 ? '示例:然、萌' : ''" v-model="avoidChars"
@blur="e => enforceSeparator(e, 2)" @click="showPlaceholder2 = false" /> @blur="e => enforceSeparator(e, 2)" @click="showPlaceholder2 = false" />
</view> </view>
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
//必有字 //必有字
const requiredChars = ref(''); const requiredChars = ref('');
const showPlaceholder2 = ref(true); const showPlaceholder2 = ref(true);
//避 //避
const avoidChars = ref(''); const avoidChars = ref('');
//期望风格 //期望风格
const expectedStyle = ref(''); const expectedStyle = ref('');
...@@ -416,7 +416,7 @@ ...@@ -416,7 +416,7 @@
return input.length <= filtered.length || input === filtered return input.length <= filtered.length || input === filtered
} }
//设置必有字和避字,用、隔开每一个字 //设置必有字和避字,用、隔开每一个字
const enforceSeparator = (e, idx) => { const enforceSeparator = (e, idx) => {
let text = e.detail.value let text = e.detail.value
// 1. 移除所有现有分隔符(避免干扰) // 1. 移除所有现有分隔符(避免干扰)
......
...@@ -107,13 +107,13 @@ export default { ...@@ -107,13 +107,13 @@ export default {
}); });
}, },
}, },
// onShareAppMessage() { onShareAppMessage() {
// return { return {
// title: this.shareTitle, title: this.shareTitle,
// path: '/pages/product/product?productId=' + this.productId + '&skuId=' + this.skuId + '&contentImg=' + this.contentImg + '&contentImgLen=' + this.contentImgLen + '&shareTitle=' + this.shareTitle + '&shareImg=' + this.shareImg + '&tabName=' + this.tabName+'&title=' + this.title, path: '/pages/product/product?productId=' + this.productId + '&skuId=' + this.skuId + '&contentImg=' + this.contentImg + '&contentImgLen=' + this.contentImgLen + '&shareTitle=' + this.shareTitle + '&shareImg=' + this.shareImg + '&tabName=' + this.tabName+'&title=' + this.title,
// imageUrl: this.shareImg imageUrl: this.shareImg
// } }
// }, },
} }
</script> </script>
......
...@@ -164,6 +164,8 @@ onShareAppMessage((options) => { ...@@ -164,6 +164,8 @@ onShareAppMessage((options) => {
console.log('分享数据:', share.value) console.log('分享数据:', share.value)
console.log('分享选项:', options) console.log('分享选项:', options)
debugger;
md.sensorLogTake({ md.sensorLogTake({
xcxClick: "suyuan202508H5Click", xcxClick: "suyuan202508H5Click",
pageName: "星妈会分享页", pageName: "星妈会分享页",
......
...@@ -81,8 +81,8 @@ ...@@ -81,8 +81,8 @@
height: 200rpx; height: 200rpx;
overflow: hidden; overflow: hidden;
image { image {
width: 54rpx; width: 58rpx;
height: 54rpx; height: 58rpx;
} }
} }
} }
......
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
<view class="footer-item blur-bg" @click="gofeihe()"> <view class="footer-item blur-bg" @click="gofeihe()">
<view> <view>
<image <image
style="width: 59rpx; height: 59rpx" style="width: 64rpx; height: 64rpx"
src="@/assets/reservation-images/twitter.png" src="@/assets/reservation-images/twitter_new.png"
mode="widthFix" mode="widthFix"
> >
</image> </image>
</view> </view>
<view>了解飞鹤</view> <view style="margin-top:4rpx;">了解飞鹤</view>
</view> </view>
<view <view
class="footer-item blur-bg" class="footer-item blur-bg"
...@@ -38,11 +38,11 @@ ...@@ -38,11 +38,11 @@
> >
<view> <view>
<image <image
src="@/assets/reservation-images/briefcase.png" src="@/assets/reservation-images/briefcase_new.png"
mode="widthFix" mode="widthFix"
></image> ></image>
</view> </view>
<view>现在预约</view> <view style="margin-top:4rpx;">现在预约</view>
</view> </view>
<view <view
class="footer-item blur-bg" class="footer-item blur-bg"
...@@ -50,11 +50,11 @@ ...@@ -50,11 +50,11 @@
> >
<view> <view>
<image <image
src="@/assets/reservation-images/calendar.png" src="@/assets/reservation-images/calendar_new.png"
mode="widthFix" mode="widthFix"
></image> ></image>
</view> </view>
<view>预约记录</view> <view style="margin-top:4rpx;">预约记录</view>
</view> </view>
</view> </view>
<!-- 底部箭头 --> <!-- 底部箭头 -->
...@@ -98,7 +98,6 @@ const changeCurrent = () => { ...@@ -98,7 +98,6 @@ const changeCurrent = () => {
const handleScrollChange = (e) => { const handleScrollChange = (e) => {
console.log(e) console.log(e)
console.log(123)
current.value = e.detail.current current.value = e.detail.current
} }
......
import { defineStore } from "pinia"; import { defineStore } from "pinia";
import { myObj } from "../mock/my";
import { fetchUserJSON } from "@/api/user"; import { fetchUserJSON } from "@/api/user";
export const usePageCfgStore = defineStore("pageCfg", { export const usePageCfgStore = defineStore("pageCfg", {
......
...@@ -36,7 +36,11 @@ export function jump({ type, url, extra = {} }) { ...@@ -36,7 +36,11 @@ export function jump({ type, url, extra = {} }) {
console.log("jumpParams:", jumpParams); console.log("jumpParams:", jumpParams);
uni.navigateToMiniProgram(jumpParams); if(extra.embedded){
uni.openEmbeddedMiniProgram(jumpParams);
}else{
uni.navigateToMiniProgram(jumpParams);
}
break; break;
case JumpType.H5: case JumpType.H5:
// 跳转到 https 网络链接 // 跳转到 https 网络链接
......
...@@ -536,9 +536,27 @@ export default { ...@@ -536,9 +536,27 @@ export default {
} }
const { productId, skuId, contentImg, contentImgLen, shareTitle, shareImg, title } = item; const { productId, skuId, contentImg, contentImgLen, shareTitle, shareImg, title } = item;
const tabName = this.productTabList[this.channelTabIndex]; const tabName = this.productTabList[this.channelTabIndex];
uni.navigateTo({
url: "/pages/product/product?productId=" + productId + "&skuId=" + skuId + "&contentImg=" + contentImg + "&contentImgLen=" + contentImgLen + "&shareTitle=" + shareTitle + "&shareImg=" + shareImg + "&tabName=" + tabName + "&title=" + title if(productId && skuId){
}) const url = `subPackages/shopMainProcess/product/index?productId=${productId}&skuId=${skuId}`;
const type = JumpType.MINI;
const extra = {
appId: 'wx4205ec55b793245e', //星妈优选小程序
extraData: {},
envVersion: 'release',
embedded: true,
};
jump({
type: type,
url: url,
extra:extra
})
}else{
uni.navigateTo({
url: "/pages/product/product?productId=" + productId + "&skuId=" + skuId + "&contentImg=" + contentImg + "&contentImgLen=" + contentImgLen + "&shareTitle=" + shareTitle + "&shareImg=" + shareImg + "&tabName=" + tabName + "&title=" + title
})
}
}, },
channelTabHandler(_index, evt) { channelTabHandler(_index, evt) {
if (evt) { if (evt) {
......
This diff is collapsed.
...@@ -2047,8 +2047,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -2047,8 +2047,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
const type = item.type; const type = item.type;
const extra = item.extra; const extra = item.extra;
extra.embedded = true; //半屏拉起小程序
console.log('url11111=',url); console.log('url11111=',url);
...@@ -3010,7 +3009,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue'; ...@@ -3010,7 +3009,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
.vip-active-img { .vip-active-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
// border-radius: 16rpx; border-radius: 32rpx;
} }
} }
......
...@@ -957,7 +957,7 @@ defineExpose({}); ...@@ -957,7 +957,7 @@ defineExpose({});
.vip-active-img { .vip-active-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
// border-radius: 16rpx; border-radius: 32rpx;
} }
} }
} }
......
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