diff --git a/pages.json b/pages.json
index d672c9e..d83b233 100644
--- a/pages.json
+++ b/pages.json
@@ -55,7 +55,7 @@
},
{
- "path": "pages/finance/service",
+ "path": "pages/my/commonProblem",
"style": {
"navigationBarTitleText": "客服中心",
"navigationStyle": "custom"
diff --git a/pages/finance/finance.vue b/pages/finance/finance.vue
index c9e4967..0478a8e 100644
--- a/pages/finance/finance.vue
+++ b/pages/finance/finance.vue
@@ -1,6 +1,7 @@
-
+
@@ -11,19 +12,18 @@
-
-
+
+
- {{item.name}}
+ {{item.productName}}
- 利率:{{item.rate}}%
+ 利率:{{item.expectedReturnRate}}%
- 产品简介:{{item.introduction}}
-
-
- 查看详情
+ 公司:{{item.company}}
@@ -53,10 +53,10 @@
uni.getSystemInfo({
success(res) {
let screenHeight = res.screenHeight
- uni.createSelectorQuery().in(instance?.proxy).select("#tabbarId").boundingClientRect((data: any) => {
+ uni.createSelectorQuery().in(instance?.proxy).select("#tabbarId").boundingClientRect((data : any) => {
height.value = screenHeight - data.height
}).exec()
- uni.createSelectorQuery().in(instance?.proxy).select("#searchFilterId").boundingClientRect((data: any) => {
+ uni.createSelectorQuery().in(instance?.proxy).select("#searchFilterId").boundingClientRect((data : any) => {
scrollHeight.value = height.value - data.height
}).exec()
}
@@ -76,62 +76,31 @@
// 加载数据
const loadData = () => {
if (status.value == 'nomore') return
-
+
financeAPI.getList(params.value).then(res => {
- console.log('API返回数据:', res)
-
if (res.data && res.data.list) {
- // 检查数据结构并映射字段
- const mappedList = res.data.list.map((item: any, index: number) => ({
- id: item.id || index,
- name: item.productName || item.name || '未知产品',
- rate: item.interestRate || item.rate || '0',
- introduction: item.desc || item.introduction || item.productDesc || '暂无简介'
- }))
-
- productList.value = productList.value.concat(mappedList)
- console.log('当前产品列表:', productList.value)
+ productList.value = productList.value.concat(res.data.list)
}
-
status.value = 'nomore'
uni.stopPullDownRefresh()
}).catch(err => {
- console.error('API调用失败:', err)
status.value = 'nomore'
uni.stopPullDownRefresh()
})
}
// 查看详情 - 传递完整产品数据
- const handleproduction = (item: any) => {
- console.log('点击查看详情,产品数据:', item)
-
- // 确保数据包含必要的字段
- const productData = {
- name: item.name || '未知产品',
- rate: item.rate || '0',
- introduction: item.introduction || '暂无简介'
- }
-
- console.log('准备传递的产品数据:', productData)
-
- // 将产品数据转换为JSON字符串传递
- const encodedData = encodeURIComponent(JSON.stringify(productData))
- console.log('编码后的数据:', encodedData)
-
+ const handleproduction = (item : any) => {
uni.navigateTo({
- url: `/pages/finance/production?productData=${encodedData}`
+ url: `/pages/finance/production?id=${item.id}`
})
}
// 查询
const handleSearch = () => {
- params.value = {
- page: 1,
- size: defaultSize,
- keyword: params.value.keyword
- }
+ params.value.page = 1
productList.value = []
+ status.value = 'loadmore'
loadData()
}
@@ -199,12 +168,12 @@
// 移除产品简介显示 */
.product-intro {
- font-size: 26rpx;
- color: #666;
- line-height: 1.5;
- margin-bottom: 20rpx;
- display: block; // 确保显示
- }
+ font-size: 26rpx;
+ color: #666;
+ line-height: 1.5;
+ margin-bottom: 20rpx;
+ display: block; // 确保显示
+ }
.product-detail-link {
font-size: 24rpx;
diff --git a/pages/finance/production.vue b/pages/finance/production.vue
index 99cb5f7..0c51a9e 100644
--- a/pages/finance/production.vue
+++ b/pages/finance/production.vue
@@ -4,87 +4,51 @@
back-icon-color="#fff" title-color="#fff">
-
-
- 所在地
- {{ productInfo.location }}
+ 风险等级
+ {{ productInfo.riskLevel }}
- 详细地址
- {{ productInfo.detailAddress }}
+ 产品类型
+ {{ productInfo.productType }}
- 联系人
- {{ productInfo.contactPerson }}
-
-
- 结算方式
- {{ productInfo.settlementMethod }}
-
-
产品企业
{{ productInfo.company }}
+
+ 联系人
+ {{ productInfo.user.username }}
+
-
- 产品需求(4)
+
+
+
+ 项目介绍
-
-
- 需求名称
-
-
- 产品简介
- {{ productInfo.introduction }}
-
-
- 限价
- 详情
-
-
- 时间
- 详情
-
-
- 其他要求
- 详情
-
-
-
-
-
-
-
- 产品动态
-
-
-
- 发布时间
- {{ productInfo.publishDate }}
-
-
- 年化增长
- {{ productInfo.rate }}%
-
+
+
@@ -93,77 +57,42 @@
立即咨询
+
+
+
-
@@ -179,20 +108,20 @@
background: transparent;
color: #fff;
margin: 0 80rpx;
-
+
.product-name {
font-size: 36rpx;
font-weight: 600;
margin-bottom: 20rpx;
line-height: 1.4;
}
-
+
.product-date {
font-size: 28rpx;
margin-bottom: 15rpx;
opacity: 0.9;
}
-
+
.profit-info {
font-size: 28rpx;
opacity: 0.9;
@@ -214,7 +143,7 @@
margin-bottom: 25rpx;
padding-bottom: 15rpx;
border-bottom: 2rpx solid #f0f0f0;
-
+
span {
color: #666;
font-size: 28rpx;
@@ -226,7 +155,7 @@
background: #f8f9fa;
border-radius: 12rpx;
padding: 25rpx;
-
+
.sub-title {
font-size: 28rpx;
font-weight: 600;
@@ -261,7 +190,7 @@
padding: 20rpx 30rpx;
border-top: 1rpx solid #f0f0f0;
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
-
+
.consult-btn {
background: #1a5fd8;
color: #fff;
@@ -271,7 +200,7 @@
font-size: 32rpx;
font-weight: 500;
box-shadow: 0 4rpx 12rpx rgba(26, 95, 216, 0.3);
-
+
&:active {
background: #164db3;
transform: translateY(1rpx);
diff --git a/pages/finance/service.vue b/pages/my/commonProblem.vue
similarity index 100%
rename from pages/finance/service.vue
rename to pages/my/commonProblem.vue
diff --git a/pages/my/my.vue b/pages/my/my.vue
index 8c7c5ea..3fb414b 100644
--- a/pages/my/my.vue
+++ b/pages/my/my.vue
@@ -106,7 +106,7 @@
我的客户
-