Compare commits
3 Commits
74cdf80b76
...
V1.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
| c9ed0d280b | |||
| bae06f876e | |||
| 771bc6391c |
@@ -4,24 +4,24 @@
|
|||||||
<view class="w-vw"></view>
|
<view class="w-vw"></view>
|
||||||
<view class="content flex flex-col m-4 border-box rounded-24">
|
<view class="content flex flex-col m-4 border-box rounded-24">
|
||||||
<view class="flex flex-col p-6 border-box flex-items-center justify-center">
|
<view class="flex flex-col p-6 border-box flex-items-center justify-center">
|
||||||
<image class="w-full rounded-20" :src="props.toolCall.componentNameParams.background" mode="widthFix" />
|
<image class="w-full rounded-20" :src="componentDataMap.background" mode="widthFix" />
|
||||||
|
|
||||||
<!-- 左上角标签 -->
|
<!-- 左上角标签 -->
|
||||||
<view class="tag">
|
<view class="tag">
|
||||||
<view class="dot"></view>
|
<view class="dot"></view>
|
||||||
<text class="tag-text">{{ props.toolCall.componentNameParams.superscript }}</text>
|
<text class="tag-text">{{ componentDataMap.superscript }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<image class="g_title mt-20" :src="props.toolCall.componentNameParams.title" />
|
<image class="g_title mt-20" :src="componentDataMap.title" />
|
||||||
|
|
||||||
<text class="font-size-14 font-400 color-white my-12 text-center">
|
<text class="font-size-14 font-400 color-white my-12 text-center">
|
||||||
{{ props.toolCall.componentNameParams.description }}
|
{{ componentDataMap.description }}
|
||||||
</text>
|
</text>
|
||||||
|
|
||||||
<view class="w-full border-box px-12 pb-8 flex flex-row" @click="jumpClick">
|
<view class="w-full border-box px-12 pb-8 flex flex-row" @click="jumpClick">
|
||||||
<view class="btn-bg w-full border-box p-4 rounded-24 flex flex-row">
|
<view class="btn-bg w-full border-box p-4 rounded-24 flex flex-row">
|
||||||
<view class="btn-bg-sub w-full border-box p-16 rounded-20 flex flex-row flex-items-center flex-justify-center color-white text-center font-size-18 font-800">
|
<view class="btn-bg-sub w-full border-box p-16 rounded-20 flex flex-row flex-items-center flex-justify-center color-white text-center font-size-18 font-800">
|
||||||
{{ props.toolCall.componentNameParams.buttonName }}
|
{{ componentDataMap.buttonName }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -46,6 +46,17 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const componentDataMap = computed(() => {
|
||||||
|
return {
|
||||||
|
background: props.toolCall.componentNameParams?.background || props.toolCall.aigc?.background,
|
||||||
|
title: props.toolCall.componentNameParams?.title || props.toolCall.aigc?.title,
|
||||||
|
description: props.toolCall.componentNameParams?.description || props.toolCall.aigc?.description,
|
||||||
|
buttonName: props.toolCall.componentNameParams?.buttonName || props.toolCall.aigc?.buttonName,
|
||||||
|
superscript: props.toolCall.componentNameParams?.superscript || props.toolCall.aigc?.superscript,
|
||||||
|
jumpUrl: props.toolCall.componentNameParams?.jumpUrl || props.toolCall.aigc?.jumpUrl,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -56,8 +67,8 @@ onMounted(() => {
|
|||||||
|
|
||||||
const jumpClick = () => {
|
const jumpClick = () => {
|
||||||
const token = getAccessToken();
|
const token = getAccessToken();
|
||||||
if (props.toolCall.componentNameParams.jumpUrl) {
|
if (componentDataMap.value.jumpUrl) {
|
||||||
navigateTo(props.toolCall.componentNameParams.jumpUrl, { token: token });
|
navigateTo(componentDataMap.value.jumpUrl, { token: token });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
import request from "../base/request";
|
import request from "../base/request";
|
||||||
import { useAppStore } from "@/store";
|
import { useAppStore } from "@/store";
|
||||||
|
import { proUrl } from "../base/baseUrl";
|
||||||
|
|
||||||
export const getServiceUrl = async (versionValue) => {
|
export const getServiceUrl = async (versionValue) => {
|
||||||
const apiUrl = "/hotelBiz/versionManager/getInfo";
|
const apiUrl = proUrl + "/hotelBiz/versionManager/getInfo";
|
||||||
const res = await request.post(apiUrl, { versionValue: versionValue });
|
const res = await request.post(apiUrl, { versionValue: versionValue });
|
||||||
if (res && res.code == 0 && res.data) {
|
if (res && res.code == 0 && res.data) {
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import { devUrl, wssDevUrl } from "./baseUrl";
|
|||||||
import { getServiceUrl } from "../api/GetServiceUrlApi";
|
import { getServiceUrl } from "../api/GetServiceUrlApi";
|
||||||
|
|
||||||
/// 版本号, 每次发版本前增加
|
/// 版本号, 每次发版本前增加
|
||||||
const versionValue = "1.1.2";
|
const versionValue = "1.1.3";
|
||||||
|
|
||||||
/// 是否是测试版本, 测试版本为true, 发布版本为false
|
/// 是否是测试版本, 测试版本为true, 发布版本为false
|
||||||
const developVersion = true;
|
const developVersion = false;
|
||||||
|
|
||||||
// 获取服务地址
|
// 获取服务地址
|
||||||
const getEvnUrl = async () => {
|
const getEvnUrl = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user