文章api的精简

This commit is contained in:
WindowBird 2025-08-18 17:34:18 +08:00
parent aed95cea74
commit 2a4d00a50a
5 changed files with 22 additions and 37 deletions

View File

@ -18,23 +18,6 @@ export function getArticleByType(params = {}) {
})
}
/**
* 根据ID获取文章详情
* @param {string} id - 文章ID
* @param {Object} params - 查询参数
* @returns {Promise} 返回文章详情数据
*/
export function getArticleById(id, params = {}) {
return request({
url: '/app/article/byId',
method: 'GET',
params: {
id: id,
...params,
},
})
}
/**
* 获取服务条款
* @returns {Promise} 返回服务条款数据
@ -64,16 +47,3 @@ export function getPrivacyPolicy() {
},
})
}
/**
* 获取古刹巡礼数据
* @param {Object} params - 查询参数
* @returns {Promise} 返回古刹巡礼列表数据
*/
export function getTempleTours(params = {}) {
return request({
url: '/app/article/tours',
method: 'GET',
params,
})
}

View File

@ -142,4 +142,8 @@ export default {
opacity: 0.5;
}
}
view {
border: red 1px solid;
}
</style>

View File

@ -140,9 +140,8 @@ export default {
uni.navigateTo({ url })
},
goToAgentApply() {
uni.showToast({
title: '申请代理',
icon: 'none',
uni.navigateTo({
url: '/pages/agents/agents',
})
},
goToAgentBenefits() {
@ -284,6 +283,7 @@ export default {
padding: 54rpx;
color: #fff;
position: relative;
top: -70rpx;
overflow: hidden;
//border: 1px red solid;
@ -376,6 +376,8 @@ export default {
//
.my-users-section {
position: relative;
top: -70rpx;
background: #fff;
margin: 20rpx;
border-radius: 20rpx;
@ -426,6 +428,8 @@ export default {
//
.other-functions {
position: relative;
top: -70rpx;
background: #fff;
margin: 20rpx;
border-radius: 20rpx;

View File

@ -3,7 +3,7 @@
<view class="info">
<view v-for="(item, index) in userInfoSettings" :key="index" class="info-row">
<view class="label">{{ item.label }}</view>
<view class="value">{{ item.value }} ></view>
<view class="value" @click="goChangePhone">{{ item.value }} ></view>
</view>
</view>
<view class="log-out">退出登录</view>
@ -34,6 +34,13 @@ export default {
],
}
},
methods: {
goChangePhone() {
uni.navigateTo({
url: '/pages/securityVerification/securityVerification',
})
},
},
}
</script>

View File

@ -19,17 +19,17 @@ const ENV_CONFIG = {
develop: {
// 开发环境
// baseUrl: 'http://192.168.2.136:4501',
baseUrl: 'https://testlu.chuangtewl.com/prod-api',
baseUrl: 'http://192.168.2.114:4601',
appId: 1, // TODO: 根据实际后端配置调整
},
trial: {
// 体验版
baseUrl: 'https://testlu.chuangtewl.com/prod-api',
baseUrl: 'http://192.168.2.114:4601',
appId: 1, // TODO: 根据实际后端配置调整
},
release: {
// 正式版
baseUrl: 'https://testlu.chuangtewl.com/prod-api',
baseUrl: 'http://192.168.2.114:4601',
appId: 1, // TODO: 根据实际后端配置调整
},
}