Browse Source

添加缓存参数

306132416@qq.com 4 years ago
parent
commit
bc57c923df

+ 3 - 3
pages/activity/activity_deatil.vue

@@ -257,14 +257,14 @@ export default {
 			  return (
 				"<img src=" +
 				capture +
-				' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+				' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			  );
 		  }else {
 			return (
 			  "<img src=" +
 			  getApp().globalData.shareUrl +
 			  capture +
-			  ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+			  ' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			);
 		  }	
         }
@@ -275,7 +275,7 @@ export default {
       uni.request({
         url:
           getApp().globalData.shareUrl +
-          `content/activity/${Math.floor(this.id / 1000)}/${this.id}.html`,
+          `content/activity/${Math.floor(this.id / 1000)}/${this.id}.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",

+ 3 - 7
pages/attract/attract_deatil.vue

@@ -35,14 +35,14 @@ export default {
 			  return (
 				"<img src=" +
 				capture +
-				' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+				' style="max-width:100%;height:auto;display:block;margin:0 auto;"/>'
 			  );
 		  }else {
 			return (
 			  "<img src=" +
 			  getApp().globalData.shareUrl +
 			  capture +
-			  ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+			  ' style="max-width:100%;height:auto;display:block;margin:0 auto;"/>'
 			);
 		  }	
         }
@@ -96,11 +96,7 @@ export default {
     },
     getRich() {
       uni.request({
-        url:
-          getApp().globalData.shareUrl +
-          `content/business/${Math.floor(this.model.id / 1000)}/${
-            this.model.id
-          }.html`,
+        url:getApp().globalData.shareUrl + `content/business/${Math.floor(this.model.id / 1000)}/${this.model.id}.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",

+ 3 - 3
pages/enterprise/product_detail.vue

@@ -52,14 +52,14 @@ export default {
 			  return (
 				"<img src=" +
 				capture +
-				' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+				' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			  );
 		  }else {
 			return (
 			  "<img src=" +
 			  getApp().globalData.shareUrl +
 			  capture +
-			  ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+			  ' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			);
 		  }	
         }
@@ -70,7 +70,7 @@ export default {
       uni.request({
         url: `${getApp().globalData.shareUrl}/content/company_product/${Math.floor(
           ids / 1000
-        )}/${ids}.html`,
+        )}/${ids}.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",

+ 3 - 8
pages/notice/notice_deatil.vue

@@ -80,14 +80,14 @@ export default {
 			  return (
 				"<img src=" +
 				capture +
-				' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+				' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			  );
 		  }else {
 			return (
 			  "<img src=" +
 			  getApp().globalData.shareUrl +
 			  capture +
-			  ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+			  ' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			);
 		  }	
         }
@@ -96,16 +96,11 @@ export default {
     },
     getRich() {
       uni.request({
-        url:
-          getApp().globalData.shareUrl +
-          `content/notice/${Math.floor(this.model.id / 1000)}/${
-            this.model.id
-          }.html`,
+        url:getApp().globalData.shareUrl + `content/notice/${Math.floor(this.model.id / 1000)}/${this.model.id}.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",
         },
-
         success: (res) => {
           if (res.statusCode === 200) {
             this.model.artical = this.replaceImg(res.data);

+ 7 - 7
pages/policy/policy_deatil.vue

@@ -307,7 +307,7 @@ export default {
       uni.request({
         url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
           ids / 1000
-        )}/${ids}_1.html`,
+        )}/${ids}_1.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",
@@ -326,7 +326,7 @@ export default {
       uni.request({
         url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
           ids / 1000
-        )}/${ids}_2.html`,
+        )}/${ids}_2.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",
@@ -359,7 +359,7 @@ export default {
       uni.request({
         url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
           ids / 1000
-        )}/${ids}_3.html`,
+        )}/${ids}_3.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",
@@ -378,7 +378,7 @@ export default {
       uni.request({
         url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
           ids / 1000
-        )}/${ids}_4.html`,
+        )}/${ids}_4.html`+'?version='+ Math.random(),
         method: "GET",
         header: {
           "content-type": "application/x-www-form-urlencoded",
@@ -397,7 +397,7 @@ export default {
 	  uni.request({
 	    url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
 	      ids / 1000
-	    )}/${ids}_5.html`,
+	    )}/${ids}_5.html`+'?version='+ Math.random(),
 	    method: "GET",
 	    header: {
 	      "content-type": "application/x-www-form-urlencoded",
@@ -420,14 +420,14 @@ export default {
 			  return (
 				"<img src=" +
 				capture +
-				' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+				' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			  );
 		  }else {
 			return (
 			  "<img src=" +
 			  getApp().globalData.shareUrl +
 			  capture +
-			  ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
+			  ' style="max-width:100%;height:auto;display:block;margin:10px auto;"/>'
 			);
 		  }	
         }