Compare commits
4 Commits
74cdf80b76
...
home3.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 251f92bc1a | |||
| c9ed0d280b | |||
| bae06f876e | |||
| 771bc6391c |
@@ -34,8 +34,8 @@
|
||||
}
|
||||
},
|
||||
"xiaoqi": {
|
||||
"clientId": "6",
|
||||
"appId": "wx5e79df5996572539",
|
||||
"clientId": "9",
|
||||
"appId": "wx8531ca7339685eca",
|
||||
"name": "小七",
|
||||
"theme": {
|
||||
"theme-color-900": "#0B5C2D",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"appid": "wx5e79df5996572539",
|
||||
"appid": "wx8531ca7339685eca",
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.8.10",
|
||||
"packOptions": {
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
"name": "念念",
|
||||
},
|
||||
"xiaoqi": {
|
||||
"clientId": "6",
|
||||
"appId": "wx5e79df5996572539",
|
||||
"clientId": "9",
|
||||
"appId": "wx8531ca7339685eca",
|
||||
"name": "小七",
|
||||
},
|
||||
"duohua": {
|
||||
@@ -43,7 +43,7 @@
|
||||
| 客户端名称 | 显示名称 | AppID |
|
||||
| ------------ | -------- | ------------------ |
|
||||
| `zhinian` | 智念 | wx5e79df5996572539 |
|
||||
| `xiaoqi` | 小七 | wx5e79df5996572539 |
|
||||
| `xiaoqi` | 小七 | wx8531ca7339685eca |
|
||||
| `duohua` | 朵花 | wx23f86d809ae80259 |
|
||||
| `tianmu` | 天沐 | wx0be424e1d22065a9 |
|
||||
| `nianhelper` | 念念 | wx6fcf7b3db3deee6c |
|
||||
|
||||
@@ -4,24 +4,24 @@
|
||||
<view class="w-vw"></view>
|
||||
<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">
|
||||
<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="dot"></view>
|
||||
<text class="tag-text">{{ props.toolCall.componentNameParams.superscript }}</text>
|
||||
<text class="tag-text">{{ componentDataMap.superscript }}</text>
|
||||
</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">
|
||||
{{ props.toolCall.componentNameParams.description }}
|
||||
{{ componentDataMap.description }}
|
||||
</text>
|
||||
|
||||
<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-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>
|
||||
@@ -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(() => {
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
@@ -56,8 +67,8 @@ onMounted(() => {
|
||||
|
||||
const jumpClick = () => {
|
||||
const token = getAccessToken();
|
||||
if (props.toolCall.componentNameParams.jumpUrl) {
|
||||
navigateTo(props.toolCall.componentNameParams.jumpUrl, { token: token });
|
||||
if (componentDataMap.value.jumpUrl) {
|
||||
navigateTo(componentDataMap.value.jumpUrl, { token: token });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import request from "../base/request";
|
||||
import { useAppStore } from "@/store";
|
||||
import { proUrl } from "../base/baseUrl";
|
||||
|
||||
export const getServiceUrl = async (versionValue) => {
|
||||
const apiUrl = "/hotelBiz/versionManager/getInfo";
|
||||
const apiUrl = proUrl + "/hotelBiz/versionManager/getInfo";
|
||||
const res = await request.post(apiUrl, { versionValue: versionValue });
|
||||
if (res && res.code == 0 && res.data) {
|
||||
const appStore = useAppStore();
|
||||
|
||||
@@ -4,7 +4,7 @@ import { devUrl, wssDevUrl } from "./baseUrl";
|
||||
import { getServiceUrl } from "../api/GetServiceUrlApi";
|
||||
|
||||
/// 版本号, 每次发版本前增加
|
||||
const versionValue = "1.1.2";
|
||||
const versionValue = "1.1.3";
|
||||
|
||||
/// 是否是测试版本, 测试版本为true, 发布版本为false
|
||||
const developVersion = true;
|
||||
|
||||
Reference in New Issue
Block a user