✨ 关于我们:接入 100%
This commit is contained in:
@@ -2,24 +2,9 @@ import request from '@/sheep/request';
|
||||
import request2 from '@/sheep/request2';
|
||||
|
||||
export default {
|
||||
area: () =>
|
||||
request2({
|
||||
url: 'system/area/tree',
|
||||
method: 'GET',
|
||||
}),
|
||||
// area: () =>
|
||||
// request({
|
||||
// url: 'data/area',
|
||||
// method: 'GET',
|
||||
// }),
|
||||
faq: () =>
|
||||
request({
|
||||
url: 'data/faq',
|
||||
method: 'GET',
|
||||
}),
|
||||
richtext: (id) =>
|
||||
request({
|
||||
url: 'data/richtext/' + id,
|
||||
method: 'GET',
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@ import request from '@/sheep/request';
|
||||
|
||||
export default {
|
||||
// 获得文章详情
|
||||
getArticle: (id) => {
|
||||
getArticle: (id, title) => {
|
||||
return request({
|
||||
url: '/app-api/promotion/article/get',
|
||||
method: 'GET',
|
||||
params: { id }
|
||||
params: { id, title }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,18 +81,12 @@
|
||||
/>
|
||||
<view class="agreement-text ss-flex ss-col-center ss-m-l-8">
|
||||
我已阅读并遵守
|
||||
<view
|
||||
class="tcp-text"
|
||||
@tap.stop="onProtocol(appInfo.user_protocol.id, appInfo.user_protocol.title)"
|
||||
>
|
||||
《{{ appInfo.user_protocol.title }}》
|
||||
<view class="tcp-text" @tap.stop="onProtocol('用户协议')">
|
||||
《用户协议》
|
||||
</view>
|
||||
<view class="agreement-text">与</view>
|
||||
<view
|
||||
class="tcp-text"
|
||||
@tap.stop="onProtocol(appInfo.privacy_protocol.id, appInfo.privacy_protocol.title)"
|
||||
>
|
||||
《{{ appInfo.privacy_protocol.title }}》
|
||||
<view class="tcp-text" @tap.stop="onProtocol('隐私协议')">
|
||||
《隐私协议》
|
||||
</view>
|
||||
</view>
|
||||
</label>
|
||||
@@ -130,11 +124,10 @@
|
||||
state.protocol = !state.protocol;
|
||||
}
|
||||
|
||||
// 查看协议 TODO 芋艿:协议
|
||||
function onProtocol(id, title) {
|
||||
// 查看协议
|
||||
function onProtocol(title) {
|
||||
closeAuthModal();
|
||||
sheep.$router.go('/pages/public/richtext', {
|
||||
id,
|
||||
title,
|
||||
});
|
||||
}
|
||||
|
||||
+3
-7
@@ -14,17 +14,13 @@ const app = defineStore({
|
||||
name: '', // 商城名称
|
||||
logo: '', // logo
|
||||
version: '', // 版本号
|
||||
cdnurl: '', // 云存储域名
|
||||
filesystem: '', // 云存储平台
|
||||
user_protocol: {}, // 用户协议
|
||||
privacy_protocol: {}, // 隐私协议
|
||||
about_us: {}, // 关于我们
|
||||
copyright: '', // 版权信息 I
|
||||
copytime: '', // 版权信息 II
|
||||
|
||||
cdnurl: '', // 云存储域名
|
||||
filesystem: '', // 云存储平台
|
||||
},
|
||||
platform: {
|
||||
payment: [], // 支持的支付方式
|
||||
recharge_payment: [], // 支持的充值支付方式
|
||||
share: {
|
||||
methods: [], // 支持的分享方式
|
||||
forwardInfo: {}, // 默认转发信息
|
||||
|
||||
Reference in New Issue
Block a user