小程序
小游戏
企业微信
微信支付
扫描小程序码分享
1 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
你好,请提供环境ID,相关代码,复现链接,微信版本。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
"appid": "wx9aeacfaa40e79b2f",
"path": "pages/index/index",
"query": query
}
},
})
console.warn(res)
if (onBeforeJump) {
onBeforeJump()
location.href = res.result.openlink
</script>
<style>
html { font-size: 100px !important; width: 100%; height: 100%; }
@media screen and (max-width:750px) {
html { font-size: calc(100vw / 7.5) !important; }
.hidden {
display: none;
.full {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
.public-web-container {
display: flex;
flex-direction: column;
align-items: center;
.public-web-container .content {
top: 20%;
text-align: center;
.public-web-container a {
bottom: 20%;
.wechat-web-container {
<body>
<div class="page full">
<div id="public-web-container" class="hidden">
<div class="content">
<img src="https://yunimg2.viplex.cn/21/0706/1625555891_qrcode.png" style="width: 3.3rem">
<h2 style="margin-top: .4rem; color: #333; font-size: .4rem">衣橱管家服务</h2>
<p style="color: #333; font-size: .28rem">— 穿旧换新管理 —</p>
<p style="margin-top: .2rem; color: #333; font-size: .24rem; opacity: 0.5;">为顾客提供衣物穿旧换新服务</p> <!-- replace -->
</div>
<a id="public-web-jump-button" href="javascript:" class="weui-btn weui-btn_primary weui-btn_loading" style="width: 4.73rem; height: .9rem; background: linear-gradient(94deg, #FF9B66, #FF5E62); border-radius: .45rem; color:#fff; line-height: .6rem" onclick="location.reload();">
<span id="public-web-jump-button-loading" class="weui-primary-loading weui-primary-loading_transparent"><i class="weui-primary-loading__dot"></i></span>
打开“环保衣栈”小程序
</a>
<div id="wechat-web-container" class="hidden">
<!-- 跳转小程序的开放标签。文档 https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html -->
<wx-open-launch-weapp id="launch-btn" username="gh_19c03ee7966a" path="pages/index/index"> <!-- replace -->
<template>
<div style="text-align: center">
<div style="display: inline-block; width: 60vw; height: 50px; background: linear-gradient(94deg, #FF9B66, #FF5E62); box-shadow: none; border-radius: 25px; color:#fff; padding: 0; font-size: 16px; line-height: 50px; text-align: center;">打开“环保衣栈”小程序</div>
</template>
</wx-open-launch-weapp>
<div id="desktop-web-container" class="hidden">
<p class="">请在手机打开网页链接</p>
</body>
async function openWeapp(onBeforeJump) {
function getQS(name) {
var result = window.location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
if (result == null || result.length < 1) {
return "";
return result[1];
var query = "ccode="+getQS('ccode')+"&cid="+getQS('cid')+"&status="+getQS('status')
var c = window.c
const res = await c.callFunction({
name: 'public',
data: {
"action": "getUrlScheme",
"options": {
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
你好,请提供环境ID,相关代码,复现链接,微信版本。
复现链接: http://tvip.co/RW14Cq1
"appid": "wx9aeacfaa40e79b2f",
"path": "pages/index/index",
"query": query
}
},
})
console.warn(res)
if (onBeforeJump) {
onBeforeJump()
}
location.href = res.result.openlink
}
</script>
<style>
html { font-size: 100px !important; width: 100%; height: 100%; }
@media screen and (max-width:750px) {
html { font-size: calc(100vw / 7.5) !important; }
}
.hidden {
display: none;
}
.full {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.public-web-container {
display: flex;
flex-direction: column;
align-items: center;
}
.public-web-container .content {
position: absolute;
top: 20%;
text-align: center;
}
.public-web-container a {
position: absolute;
bottom: 20%;
}
.wechat-web-container {
location.href = res.result.openlink
}
<body>
<div class="page full">
<div id="public-web-container" class="hidden">
<div class="content">
<img src="https://yunimg2.viplex.cn/21/0706/1625555891_qrcode.png" style="width: 3.3rem">
<h2 style="margin-top: .4rem; color: #333; font-size: .4rem">衣橱管家服务</h2>
<p style="color: #333; font-size: .28rem">— 穿旧换新管理 —</p>
<p style="margin-top: .2rem; color: #333; font-size: .24rem; opacity: 0.5;">为顾客提供衣物穿旧换新服务</p> <!-- replace -->
</div>
<a id="public-web-jump-button" href="javascript:" class="weui-btn weui-btn_primary weui-btn_loading" style="width: 4.73rem; height: .9rem; background: linear-gradient(94deg, #FF9B66, #FF5E62); border-radius: .45rem; color:#fff; line-height: .6rem" onclick="location.reload();">
<span id="public-web-jump-button-loading" class="weui-primary-loading weui-primary-loading_transparent"><i class="weui-primary-loading__dot"></i></span>
打开“环保衣栈”小程序
</a>
</div>
<div id="wechat-web-container" class="hidden">
<div class="content">
<img src="https://yunimg2.viplex.cn/21/0706/1625555891_qrcode.png" style="width: 3.3rem">
<h2 style="margin-top: .4rem; color: #333; font-size: .4rem">衣橱管家服务</h2>
<p style="color: #333; font-size: .28rem">— 穿旧换新管理 —</p>
<p style="margin-top: .2rem; color: #333; font-size: .24rem; opacity: 0.5;">为顾客提供衣物穿旧换新服务</p> <!-- replace -->
</div>
<!-- 跳转小程序的开放标签。文档 https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html -->
<wx-open-launch-weapp id="launch-btn" username="gh_19c03ee7966a" path="pages/index/index"> <!-- replace -->
<template>
<div style="text-align: center">
<div style="display: inline-block; width: 60vw; height: 50px; background: linear-gradient(94deg, #FF9B66, #FF5E62); box-shadow: none; border-radius: 25px; color:#fff; padding: 0; font-size: 16px; line-height: 50px; text-align: center;">打开“环保衣栈”小程序</div>
</div>
</template>
</wx-open-launch-weapp>
</div>
<div id="desktop-web-container" class="hidden">
<p class="">请在手机打开网页链接</p>
</div>
</div>
</body>
async function openWeapp(onBeforeJump) {
function getQS(name) {
var result = window.location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
if (result == null || result.length < 1) {
return "";
}
return result[1];
}
var query = "ccode="+getQS('ccode')+"&cid="+getQS('cid')+"&status="+getQS('status')
var c = window.c
const res = await c.callFunction({
name: 'public',
data: {
"action": "getUrlScheme",
"options": {
"appid": "wx9aeacfaa40e79b2f",
"path": "pages/index/index",
"query": query
}
},
})
console.warn(res)
if (onBeforeJump) {
onBeforeJump()
}
location.href = res.result.openlink
}