adminthw 4 vuotta sitten
vanhempi
commit
d3a1ccd00b
1 muutettua tiedostoa jossa 5 lisäystä ja 7 poistoa
  1. 5 7
      pages/notice/notice_deatil.vue

+ 5 - 7
pages/notice/notice_deatil.vue

@@ -60,14 +60,13 @@ export default {
             let data = res.data.data;
             this.model.title = data.title;
             this.model.way = data.sponsor;
-            this.model.sponsor = data.sponsor
+            this.model.sponsor = data.sponsor;
             let time = this.$options.filters["globalTime"](data.publish_time);
             let timeSecond = this.$options.filters["globalTimeSecond"](
               data.publish_time
             );
             this.model.time = time + " " + timeSecond;
             this.getRich();
- 
           }
         },
         fail: () => {
@@ -77,18 +76,17 @@ export default {
     },
     getRich() {
       uni.request({
-        url: `https://kiq.xazhima.com/content/notice/${Math.floor(
-          this.id / 1000
-        )}/${this.id}.html`,
+        url:
+          getApp().globalData.shareUrl +
+          `content/notice/${Math.floor(this.id / 1000)}/${this.id}.html`,
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",
         },
 
         success: (res) => {
-     
           if (res.statusCode === 200) {
-            this.model.artical = res.data
+            this.model.artical = res.data;
           }
         },
         fail: () => {