Compare commits
5 Commits
022b21facd
...
2f8186f675
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f8186f675 | |||
| 64d361f74b | |||
| 59aad79779 | |||
| 89e396fe78 | |||
| 708c0f55d3 |
@ -1,5 +1,5 @@
|
||||
NODE_ENV = development
|
||||
|
||||
VITE_BASE_URL = https://onefeel.brother7.cn/ingress
|
||||
VITE_BASE_URL = https://biz.nianxx.cn
|
||||
|
||||
VITE_WSS_URL = wss://onefeel.brother7.cn/ingress/agent/ws/chat
|
||||
VITE_WSS_URL = wss://biz.nianxx.cn/agent/ws/chat
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
NODE_ENV = production
|
||||
|
||||
VITE_BASE_URL = https://onefeel.brother7.cn/ingress
|
||||
VITE_BASE_URL = https://biz.nianxx.cn
|
||||
|
||||
VITE_WSS_URL = wss://onefeel.brother7.cn/ingress/agent/ws/chat
|
||||
VITE_WSS_URL = wss://biz.nianxx.cn/agent/ws/chat
|
||||
@ -1,5 +1,5 @@
|
||||
NODE_ENV = staging
|
||||
|
||||
VITE_BASE_URL = https://onefeel.brother7.cn/ingress
|
||||
VITE_BASE_URL = https://biz.nianxx.cn
|
||||
|
||||
VITE_WSS_URL = wss://onefeel.brother7.cn/ingress/agent/ws/chat
|
||||
VITE_WSS_URL = wss://biz.nianxx.cn/agent/ws/chat
|
||||
BIN
components/LocationCard/images/loc_bg_img.png
Normal file
BIN
components/LocationCard/images/loc_bg_img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
BIN
components/LocationCard/images/loc_icon_img.png
Normal file
BIN
components/LocationCard/images/loc_icon_img.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@ -1,8 +1,17 @@
|
||||
<template>
|
||||
<view class="store-address" @click="openMap">
|
||||
<text class="location-label">位于 [{{ orderData.commodityAddress }}]</text>
|
||||
<view class="text-container">
|
||||
<text class="location-label"
|
||||
>位于「{{ orderData.oneLevelAddress }}」
|
||||
</text>
|
||||
<text class="address-text">{{ orderData.commodityAddress }}</text>
|
||||
</view>
|
||||
<image
|
||||
class="loc-icon"
|
||||
src="./images/loc_icon_img.png"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
.store-address {
|
||||
display: flex;
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 16px 12px;
|
||||
background-color: #f0f0f0;
|
||||
background-image: url(""); // 预留背景图片位置,用户手动导入
|
||||
background-color: #f8f9fa;
|
||||
background-image: url("./images/loc_bg_img.png"); // 预留背景图片位置,用户手动导入
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
position: relative;
|
||||
@ -25,9 +25,19 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
// 左侧文本容器
|
||||
.text-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
// 确保内容在遮罩层之上
|
||||
.location-label,
|
||||
.address-text {
|
||||
.address-text,
|
||||
.loc-icon {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
@ -35,15 +45,20 @@
|
||||
.location-label {
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
margin-right: 4px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.address-text {
|
||||
margin-top: 4px;
|
||||
flex: 1;
|
||||
color: #666;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
// 右侧图标样式
|
||||
.loc-icon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-left: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
const isProd = true;
|
||||
|
||||
export const BASE_URL = "https://onefeel.brother7.cn/ingress"; //'http://8.138.234.141/ingress'
|
||||
console.log(import.meta.env);
|
||||
|
||||
export const BASE_URL = import.meta.env.VITE_BASE_URL;
|
||||
|
||||
// socket地址
|
||||
export const WSS_URL = "wss://onefeel.brother7.cn/ingress/agent/ws/chat";
|
||||
export const WSS_URL = import.meta.env.VITE_WSS_URL;
|
||||
|
||||
@ -297,7 +297,6 @@ const sendMessageAction = (inputText) => {
|
||||
if (!inputText.trim()) return;
|
||||
handleNoHideKeyboard();
|
||||
|
||||
currentSessionMessageId = IdUtils.generateMessageId();
|
||||
// 重置消息状态,准备接收新的AI回复
|
||||
resetMessageState();
|
||||
|
||||
@ -636,6 +635,7 @@ const sendChat = (message, isInstruct = false) => {
|
||||
|
||||
const messageType = isInstruct ? 1 : 0;
|
||||
const messageContent = isInstruct ? commonType : message;
|
||||
currentSessionMessageId = IdUtils.generateMessageId();
|
||||
|
||||
// 重置消息状态,为新消息做准备
|
||||
resetMessageState();
|
||||
|
||||
@ -60,15 +60,8 @@ const sendReply = (text) => {
|
||||
padding: 2px 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 46px;
|
||||
|
||||
// &:first-child {
|
||||
// margin-left: 12px;
|
||||
// }
|
||||
|
||||
// &:last-child {
|
||||
// margin-right: 12px;
|
||||
// }
|
||||
flex-shrink: 0;
|
||||
white-space: nowrap;
|
||||
|
||||
.more-tips-item-title {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
@ -77,6 +70,7 @@ const sendReply = (text) => {
|
||||
color: #00a6ff;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,8 +5,9 @@
|
||||
<image
|
||||
class="top-item-left"
|
||||
:src="initPageImages.welcomeImageUrl"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<image class="top-item-right" :src="initPageImages.logoImageUrl"></image>
|
||||
<image class="top-item-right" :src="initPageImages.logoImageUrl" mode="aspectFit"></image>
|
||||
</view>
|
||||
<ChatCardAI v-if="welcomeContent.length" :text="welcomeContent" />
|
||||
</view>
|
||||
|
||||
@ -96,7 +96,7 @@ const handleAgreeAndGetPhone = () => {
|
||||
|
||||
const onLogin = (e) => {
|
||||
const { code } = e.detail;
|
||||
console.error("onLogin code", code);
|
||||
console.info("onLogin code: ", code);
|
||||
|
||||
loginAuth()
|
||||
.then(async () => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// import { BASE_URL } from "../../constant/base";
|
||||
import { BASE_URL } from "../../constant/base";
|
||||
import { goLogin } from "@/hooks/useGoLogin";
|
||||
|
||||
const defaultConfig = {
|
||||
@ -8,9 +8,6 @@ const defaultConfig = {
|
||||
},
|
||||
};
|
||||
|
||||
const BASE_URL = import.meta.env.VITE_BASE_URL;
|
||||
console.log(import.meta.env);
|
||||
|
||||
function request(url, args = {}, method = "POST", customConfig = {}) {
|
||||
// 判断 url 是否以 http 开头
|
||||
if (!/^http/.test(url)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user