Quellcode durchsuchen

refactor:删除报错代码

zhanghui vor 2 Jahren
Ursprung
Commit
fa9c2a085f
1 geänderte Dateien mit 1 neuen und 16 gelöschten Zeilen
  1. 1 16
      myPages/TermsOfService/index.vue

+ 1 - 16
myPages/TermsOfService/index.vue

@@ -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