追格小程序业务域名(H5)打不开,显示追格的域名www.zhuige.com

煎饼/ 2023年04月18日/ 小程序/ 浏览 1344

近期一些朋友反馈追格小程序的业务域名(H5)配置后打不开,显示追格的域名www.zhuige.com,如下图:




若出现上面问题,可以按下面方式修改后再测试测试,流程如下:


1、前端代码:/pages/base/webview/webview.vue


2、把该页面代码改为如下:


<template>
	<view>
		<web-view v-if="src" :src="src"></web-view>
	</view>
</template>

<script>
	/*
	 * 追格小程序
	 * 作者: 追格
	 * 文档: https://www.zhuige.com/docs/zg.html
	 * gitee: https://gitee.com/zhuige_com/zhuige_xcx
	 * github: https://github.com/zhuige-com/zhuige_xcx
	 * Copyright © 2022-2023 www.zhuige.com All rights reserved.
	 */

	import Util from '@/utils/util';

	export default {
		data() {
			return {
				src: ''
			};
		},

		onLoad(options) {
			if (!options.src) {
				uni.reLaunch({
					url: '/pages/tabs/index/index'
				})
				return;
			}
				
			Util.addShareScore(options.source);

			this.src = decodeURIComponent(options.src);
		},

		onShareAppMessage(options) {
			return {
				title: getApp().globalData.appName,
				path: Util.addShareSource('pages/base/webview/webview?src=' + encodeURIComponent(options.webViewUrl))
			};
		}

	}
</script>

<style>

</style>


ps:若有问题,该问题将在V1.6.2后的版本优化!

发表评论

暂无评论,抢个沙发...

客服 工单