|
|
@@ -32,27 +32,12 @@ export default {
|
|
|
title: option.name
|
|
|
|
|
|
})
|
|
|
- // this.getTermOfServiceByType(option.type);
|
|
|
this.type = option.type
|
|
|
this.AboutByType(this.type)
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- // 获取服务条款信息
|
|
|
- getTermOfServiceByType(type) {
|
|
|
- // 获取数据
|
|
|
- this.$api.getTermOfServiceByType({type: type}).then((res) => {
|
|
|
- if (res.aboutContent) {
|
|
|
- this.termOfService.aboutContent = res.aboutContent
|
|
|
- } else {
|
|
|
- this.termOfService.aboutContent = "暂无信息!!!"
|
|
|
- }
|
|
|
- }).catch(() => {
|
|
|
- uni.showToast({
|
|
|
- title: "操作失败"
|
|
|
- })
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
AboutByType(type) {
|
|
|
this.$api.AboutByType({type:type}).then(res => {
|
|
|
this.name = res.data.data.aboutContent
|