文章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} 返回服务条款数据 * @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; opacity: 0.5;
} }
} }
view {
border: red 1px solid;
}
</style> </style>

View File

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

View File

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

View File

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