Commit 9a0e9543 authored by 王炽's avatar 王炽

Merge branch 'dev-lg'

parents 2c845a5c c9dc9a7d
...@@ -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
......
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) {
......
...@@ -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);
......
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