fix(环境配置): 更新开发环境API地址

style(ETF页面): 调整样式布局和导航方法
- 修改indexEtfInfo.vue的返回方法为doBack
- 优化indexEtf.vue的搜索框和列表样式
- 统一组件属性换行格式
This commit is contained in:
zzp 2025-11-21 11:01:37 +08:00
parent 1e56d7c8f9
commit 62a3180714
4 changed files with 41 additions and 22 deletions

View File

@ -2,10 +2,10 @@
ENV = development
# 本地环境接口地址
VITE_API_URL = http://123.60.153.169:8040/apih5
# VITE_API_URL = http://4155gf93ll13.vicp.fun/apih5
# VITE_API_URL = http://123.60.153.169:8040/apih5
VITE_API_URL = http://4155gf93ll13.vicp.fun/apih5
# VITE_API_URL = http://123.60.79.143:8041/apih5
# VITE_API_URL =http://localhost:8040/apih5
# VITE_API_URL =http://192.168.0.135:8040/apih5
# VITE_API_URL = https://cankao.cs.com.cn/apih5
VITE_API_DATAV_URL = https://cankao.cs.com.cn/zzck_datav

View File

@ -110,8 +110,7 @@
:show="LoginShow"
@handlePopupClose="handlePopupClose"
@handlePopupSuccessCallback="handlePopupSuccessCallback"
@handlePopupErrorCallback="handlePopupErrorCallback"
/>
@handlePopupErrorCallback="handlePopupErrorCallback" />
<u-calendar
:show="calendarShow"
@ -122,8 +121,7 @@
monthNum="12"
:key="chooseDate.startDate"
@confirm="calendarConfirm"
@close="calendarShow = false"
>
@close="calendarShow = false">
</u-calendar>
</view>
</template>

View File

@ -14,7 +14,7 @@
<view class="list_content">
<!-- 搜索 start -->
<view class="r_sreach">
<view class="sreach">
<view class="sreach" style="height: 72rpx">
<u-search v-model="form.keyword" placeholder="搜索资讯" @search="onSreach" @custom="onSreach" />
<!-- <view class="sreach_icon">
<image :src="icon_search"></image>
@ -76,8 +76,7 @@
:show="LoginShow"
@handlePopupClose="handlePopupClose"
@handlePopupSuccessCallback="handlePopupSuccessCallback"
@handlePopupErrorCallback="handlePopupErrorCallback"
/>
@handlePopupErrorCallback="handlePopupErrorCallback" />
</view>
</template>
@ -297,20 +296,29 @@ onMounted(async () => {
position: relative;
z-index: 9999;
background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
border-radius: 24rpx 24rpx 0rpx 0rpx;
margin-top: -70px;
padding: 10rpx 30rpx;
background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
// margin-top: -70px;
// padding: 10rpx 30rpx;
background-color: #f3f5f8;
// background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
// min-height: 80vh;
.r_sreach {
width: 100%;
height: 72rpx;
position: relative;
z-index: 99999;
margin-top: -120rpx;
border-radius: 24rpx 24rpx 0rpx 0rpx;
// width: 100%;
height: 120rpx;
display: flex;
align-items: center;
margin-top: 30rpx;
// margin-top: 30rpx;
padding-top: 30rpx;
padding: 0 30rpx;
background-color: white;
background-image: linear-gradient(to bottom, white 60rpx, #f3f5f8);
// background: linear-gradient(to bottom, #ffffff 0%, #f3f5f8 100%);
}
.sreach {
@ -360,6 +368,11 @@ onMounted(async () => {
margin-left: 10rpx;
}
.r_list {
padding: 10rpx 30rpx;
margin-top: -30rpx;
}
.item_top {
display: flex;
margin-top: 40rpx;
@ -390,12 +403,13 @@ onMounted(async () => {
// height: 334rpx;
background: #ffffff;
border-radius: 24rpx;
padding: 20rpx 30rpx;
padding: 30rpx 30rpx;
.card_left {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 25rpx;
img {
width: 8rpx;
@ -416,6 +430,7 @@ onMounted(async () => {
margin-left: 20rpx;
width: 95%;
margin-top: 10rpx;
gap: 10rpx;
.item_time {
font-family: PingFangSC, PingFang SC;
@ -427,7 +442,7 @@ onMounted(async () => {
font-style: normal;
display: flex;
justify-content: space-between;
margin-top: -8rpx;
margin-top: 10rpx;
}
.item_title {

View File

@ -2,7 +2,7 @@
<div class="index-etf-info">
<!-- 头部 -->
<view class="vipHeader">
<view class="flashBack" @click="back">
<view class="flashBack" @click="doBack">
<u-icon size="20" name="arrow-left" color="#000"></u-icon>
</view>
<view style="display: flex; flex-direction: column">
@ -112,6 +112,12 @@ function goDetail(item, index) {
});
}
function doBack() {
uni.navigateBack({
delta: 1,
});
}
const name = ref("");
const code = ref("");
onLoad((option) => {