cleanup: 移除测试按钮和调试日志,准备发布
This commit is contained in:
@@ -107,16 +107,6 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log("[web_view] !=== onLoad 完整 option:", JSON.stringify(option));
|
||||
console.log("[web_view] !=== option keys:", JSON.stringify(Object.keys(option)));
|
||||
console.log("[web_view] !=== option.url:", option.url);
|
||||
console.log("[web_view] !=== option.app:", option.app);
|
||||
// app 参数模式(测试用):直接传 identifier 跳过 scene
|
||||
if (option.app) {
|
||||
console.log("[web_view] app 参数模式: identifier=" + option.app);
|
||||
this._resolveAppScene(option.app, option);
|
||||
return;
|
||||
}
|
||||
// 太阳码 scene 解析:scene="app=<identifier>" 时调 box_app 查 url
|
||||
// 例如 box_app /api/wxacode?app=pregnancy → scene="app=pregnancy"
|
||||
// CRMEB 收到后查 box_app /api/mp/apps?isPublished=1 找 url,跳对应 H5
|
||||
|
||||
@@ -30,10 +30,6 @@
|
||||
<!-- #ifdef MP -->
|
||||
<editUserModal :isShow="editModal" @closeEdit="closeEdit" @editSuccess="editSuccess"></editUserModal>
|
||||
<!-- #endif -->
|
||||
<!-- 太阳码扫码模拟(开发测试) -->
|
||||
<view class="dev-test-section" @click="goWxacodeTest">
|
||||
<text class="dev-test-link">太阳码扫码测试 (孕育无忧)</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
@@ -635,12 +631,6 @@ export default {
|
||||
})
|
||||
}
|
||||
}
|
||||
,goWxacodeTest() {
|
||||
console.log("[user] 太阳码扫码测试");
|
||||
uni.navigateTo({
|
||||
url: "/pages/annex/web_view/index?app=pregnancy"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
@@ -681,17 +671,4 @@ export default {
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
}
|
||||
.dev-test-section {
|
||||
text-align: center;
|
||||
padding: 40rpx 0 120rpx;
|
||||
background: transparent;
|
||||
}
|
||||
.dev-test-link {
|
||||
font-size: 24rpx;
|
||||
color: #b8a9c9;
|
||||
border: 1px dashed #d5c6e0;
|
||||
padding: 12rpx 30rpx;
|
||||
border-radius: 30rpx;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user