فهرست منبع

refactor:删除报错代码

zhanghui 2 سال پیش
والد
کامیت
fa9c2a085f
1فایلهای تغییر یافته به همراه1 افزوده شده و 16 حذف شده
  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