|
|
@@ -305,7 +305,7 @@ export default {
|
|
|
},
|
|
|
getRich1(ids) {
|
|
|
uni.request({
|
|
|
- url: `https://kiq.xazhima.com/content/policy/${Math.floor(
|
|
|
+ url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
|
|
|
ids / 1000
|
|
|
)}/${ids}_1.html`,
|
|
|
method: "GET",
|
|
|
@@ -324,7 +324,7 @@ export default {
|
|
|
},
|
|
|
getRich2(ids) {
|
|
|
uni.request({
|
|
|
- url: `https://kiq.xazhima.com/content/policy/${Math.floor(
|
|
|
+ url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
|
|
|
ids / 1000
|
|
|
)}/${ids}_2.html`,
|
|
|
method: "GET",
|
|
|
@@ -357,7 +357,7 @@ export default {
|
|
|
},
|
|
|
getRich3(ids) {
|
|
|
uni.request({
|
|
|
- url: `https://kiq.xazhima.com/content/policy/${Math.floor(
|
|
|
+ url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
|
|
|
ids / 1000
|
|
|
)}/${ids}_3.html`,
|
|
|
method: "GET",
|
|
|
@@ -376,7 +376,7 @@ export default {
|
|
|
},
|
|
|
getRich4(ids) {
|
|
|
uni.request({
|
|
|
- url: `https://kiq.xazhima.com/content/policy/${Math.floor(
|
|
|
+ url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
|
|
|
ids / 1000
|
|
|
)}/${ids}_4.html`,
|
|
|
method: "GET",
|
|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
},
|
|
|
getRich5(ids) {
|
|
|
uni.request({
|
|
|
- url: `https://kiq.xazhima.com/content/policy/${Math.floor(
|
|
|
+ url: `${getApp().globalData.shareUrl}/content/policy/${Math.floor(
|
|
|
ids / 1000
|
|
|
)}/${ids}_5.html`,
|
|
|
method: "GET",
|
|
|
@@ -413,18 +413,26 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
replaceImg(html) {
|
|
|
- let result = html.replace(
|
|
|
- /<img [^>]*src=['"]([^'"]+)[^>]*>/gi,
|
|
|
- function (match, capture) {
|
|
|
- return (
|
|
|
- "<img src=" +
|
|
|
- getApp().globalData.shareUrl +
|
|
|
- capture +
|
|
|
- ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
|
|
|
- );
|
|
|
- }
|
|
|
- );
|
|
|
- return result;
|
|
|
+ let result = html.replace(
|
|
|
+ /<img [^>]*src=['"]([^'"]+)[^>]*>/gi,
|
|
|
+ function (match, capture) {
|
|
|
+ if(capture.includes('http')){
|
|
|
+ return (
|
|
|
+ "<img src=" +
|
|
|
+ capture +
|
|
|
+ ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
|
|
|
+ );
|
|
|
+ }else {
|
|
|
+ return (
|
|
|
+ "<img src=" +
|
|
|
+ getApp().globalData.shareUrl +
|
|
|
+ capture +
|
|
|
+ ' style="max-width:100%;height:auto;display:block;margin:10px 0;"/>'
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ return result;
|
|
|
},
|
|
|
collectionPage() {
|
|
|
if(!getApp().globalData.user_name){
|