Commit 83533d00 authored by lg's avatar lg

chore: 半屏拉起小程序功能

parent f6646fad
......@@ -52,7 +52,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wx88ab296d52e9835d",
"appid" : "wxc83b55d61c7fc51d",
"setting" : {
"urlCheck" : false,
"minified" : true,
......@@ -65,7 +65,8 @@
"desc" : "请允许获取位置信息,用于提供附近服务"
}
},
"requiredBackgroundModes" : [ "share" ]
"requiredBackgroundModes" : [ "share" ],
"embeddedAppIdList": ["wx4205ec55b793245e"]
},
"mp-alipay" : {
"usingComponents" : true
......
import { defineStore } from "pinia";
import { myObj } from "../mock/my";
import { fetchUserJSON } from "@/api/user";
export const usePageCfgStore = defineStore("pageCfg", {
......
......@@ -36,7 +36,11 @@ export function jump({ type, url, extra = {} }) {
console.log("jumpParams:", jumpParams);
if(extra.embedded){
uni.openEmbeddedMiniProgram(jumpParams);
}else{
uni.navigateToMiniProgram(jumpParams);
}
break;
case JumpType.H5:
// 跳转到 https 网络链接
......
......@@ -2035,8 +2035,7 @@ import ShengriliTipPanel from '../components/quanyi/shengriliTipPanel.vue';
const type = item.type;
const extra = item.extra;
extra.embedded = true; //半屏拉起小程序
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