文章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} 返回服务条款数据
|
* @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;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
view {
|
||||||
|
border: red 1px solid;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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: 根据实际后端配置调整
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user