Commit 745715a7 authored by spc's avatar spc

fixed

parent bcd6cb56
......@@ -17,7 +17,7 @@ import md from '../../md';
// 响应式数据
const statusBarHeight = ref(0)
const webviewUrl = ref('')
const webviewUrl = ref('https://momclub-test.feihe.com/h5/game/index.html')
const share = ref(null) // 分享数据
const pageOptions = ref({})
const registered = ref(undefined)
......@@ -86,17 +86,9 @@ const getMessage = (e) => {
// 初始化 webview URL
const initWebviewUrl = async () => {
const res = await fetchSyWebviewJSON()
console.log('res', res)
if (!res.data.url) {
uni.redirectTo({
url: '/pages/index/index'
})
return
}
let baseUrl = res.data.url
let baseUrl = webviewUrl.value
const cuk = globalStore.cuk
const openId = globalStore.openId
const unionId = globalStore.unionId
......@@ -147,7 +139,7 @@ const initWebviewUrl = async () => {
? baseUrl + (baseUrl.includes('?') ? '&' : '?') + paramStr
: baseUrl
console.log('Webview页面加载,URL:', webviewUrl.value, paramStr, cuk, openId, unionId)
console.log('Webview页面加载,URL:', webviewUrl.value, paramStr)
}
// 监听注册状态变化,初始化 webview URL
......
......@@ -14,7 +14,7 @@
<text class="arrow"></text>
</view> -->
<view class="menu-item" @tap="handleItemTap('partnership')">
<!-- <view class="menu-item" @tap="handleItemTap('partnership')">
<view class="menu-left">
<view class="menu-icon">
<image :src="$baseUrl + 'homepage/Q3Res/icon_yyhz.png'" mode="aspectFit"
......@@ -23,9 +23,9 @@
<text class="menu-text">异业合作</text>
</view>
<image class="arrow" :src="$baseUrl + 'homepage/Q3Res/rightArrowBtn.png'" mode="aspectFit" />
</view>
</view> -->
<view class="menu-item" @tap="handleItemTap('feedback')">
<!-- <view class="menu-item" @tap="handleItemTap('feedback')">
<view class="menu-left">
<view class="menu-icon">
<image :src="$baseUrl + 'homepage/Q3Res/icon_sug.png'" mode="aspectFit"
......@@ -34,7 +34,7 @@
<text class="menu-text">意见反馈</text>
</view>
<image class="arrow" :src="$baseUrl + 'homepage/Q3Res/rightArrowBtn.png'" mode="aspectFit" />
</view>
</view> -->
<view class="menu-item" @tap="handleItemTap('userPolicy')">
<view class="menu-left">
......
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