文章api的精简
This commit is contained in:
parent
aed95cea74
commit
2a4d00a50a
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,4 +142,8 @@ export default {
|
|||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
view {
|
||||
border: red 1px solid;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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: 根据实际后端配置调整
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user