Browse Source

修改专利附图地址为绝对地址

zhuliu 6 months ago
parent
commit
813e458e8e

+ 2 - 2
pages/collectPatent/collectPatent.js

@@ -160,9 +160,9 @@ Page({
     var { current,imglist } = e.currentTarget.dataset
     var imgs = []
     for(var i =0;i<imglist.length;i++){
-      imgs.push(this.data.imgHttp + imglist[i].guid)
+      imgs.push(imglist[i].guid)
     }
-    current = this.data.imgHttp + current
+    // current = this.data.imgHttp + current
     showImage.showImageList(
       {
         current,

+ 1 - 1
pages/collectPatent/collectPatent.wxml

@@ -25,7 +25,7 @@
               <block wx:if="{{item.imageList && item.imageList.length>0}}" wx:for="{{item.imageList}}" wx:for-item="img" wx:key="index">
                 <swiper-item>
                   <!-- <view style="background-image: url('{{imgHttp+img.guid}}')" class="slide-image" data-current="{{img}}" data-imgList="{{item.imageList}}" bind:tap="previewImage"></view>   -->
-                  <image src="{{imgHttp+img.guid}}" data-current="{{img}}" data-imgList="{{item.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
+                  <image src="{{img.guid}}" data-current="{{img}}" data-imgList="{{item.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
                 </swiper-item>
               </block>
             </swiper>

+ 2 - 2
pages/patentDetails/patentDetails.js

@@ -119,9 +119,9 @@ Page({
     var { current,imglist } = e.currentTarget.dataset
     var imgs = []
     for(var i =0;i<imglist.length;i++){
-      imgs.push(this.data.imgHttp + imglist[i].guid)
+      imgs.push(imglist[i].guid)
     }
-    current = this.data.imgHttp + current
+    // current = this.data.imgHttp + current
     showImage.showImageList(
       {
         current,

+ 1 - 1
pages/patentDetails/patentDetails.wxml

@@ -81,7 +81,7 @@
       <block wx:if="{{patent.imageList && patent.imageList.length>0}}" wx:for="{{patent.imageList}}" wx:for-item="img" wx:key="index">
         <swiper-item>
           <!-- <view style="background-image: url('{{imgHttp+img.guid}}')" class="slide-image" data-current="{{patent}}" data-imgList="{{patent.imageList}}" bind:tap="previewImage"></view>   -->
-          <image src="{{imgHttp+img.guid}}" data-current="{{img}}" data-imgList="{{patent.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
+          <image src="{{img.guid}}" data-current="{{img}}" data-imgList="{{patent.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
         </swiper-item>
       </block>
     </swiper>

+ 2 - 2
pages/searchResults/searchResults.js

@@ -177,9 +177,9 @@ Page({
     var { current,imglist } = e.currentTarget.dataset
     var imgs = []
     for(var i =0;i<imglist.length;i++){
-      imgs.push(this.data.imgHttp + imglist[i].guid)
+      imgs.push(imglist[i].guid)
     }
-    current = this.data.imgHttp + current
+    // current = this.data.imgHttp + current
     showImage.showImageList(
       {
         current,

+ 1 - 1
pages/searchResults/searchResults.wxml

@@ -127,7 +127,7 @@
             <block wx:if="{{item.imageList && item.imageList.length>0}}" wx:for="{{item.imageList}}" wx:for-item="img" wx:key="index">
               <swiper-item >
                 <!-- <view style="background-image: url('{{imgHttp+img.guid}}')" class="slide-image" data-current="{{img}}" data-imgList="{{item.imageList}}" bind:tap="previewImage"></view>   -->
-                 <image src="{{imgHttp+img.guid}}" data-current="{{img}}" data-imgList="{{item.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
+                 <image src="{{img.guid}}" data-current="{{img}}" data-imgList="{{item.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
               </swiper-item>
             </block>
           </swiper>

+ 2 - 2
pages/selectedPatents/selectedPatents.js

@@ -62,9 +62,9 @@ Page({
     var { current,imglist } = e.currentTarget.dataset
     var imgs = []
     for(var i =0;i<imglist.length;i++){
-      imgs.push(this.data.imgHttp + imglist[i].guid)
+      imgs.push(imglist[i].guid)
     }
-    current = this.data.imgHttp + current
+    // current = this.data.imgHttp + current
     showImage.showImageList(
       {
         current,

+ 1 - 1
pages/selectedPatents/selectedPatents.wxml

@@ -26,7 +26,7 @@
             <block wx:if="{{item.imageList && item.imageList.length>0}}" wx:for="{{item.imageList}}" wx:for-item="img" wx:key="index">
               <swiper-item>
                 <!-- <view style="background-image: url('{{imgHttp+img.guid}}')" class="slide-image" data-current="{{img}}" data-imgList="{{item.imageList}}" bind:tap="previewImage"></view>   -->
-                <image src="{{imgHttp+img.guid}}" data-current="{{img}}" data-imgList="{{item.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
+                <image src="{{img.guid}}" data-current="{{img}}" data-imgList="{{item.imageList}}" bindtap="previewImage" class="slide-image" 	show-menu-by-longpress mode="aspectFit"/>  
               </swiper-item>
             </block>
           </swiper>

+ 1 - 1
utils/request.js

@@ -12,7 +12,7 @@ const config = {
   }, 
 };  
 const apiUrl = {  
-  develop: 'https://www.xsip.cn/test', // 开发环境地址  
+  develop: 'http://192.168.2.105:8901', // 开发环境地址  
   trial: 'https://www.xsip.cn/test', // 测试环境地址  
   release: 'https://www.xsip.cn' // 生产环境地址  
 };

+ 1 - 1
utils/upload.js

@@ -12,7 +12,7 @@ const config = {
   },  
 };  
 const apiUrl = {  
-  develop: 'http://192.168.2.120:8802', // 开发环境地址  
+  develop: 'https://www.xsip.cn', // 开发环境地址  
   trial: 'https://www.xsip.cn', // 测试环境地址  
   release: 'https://www.xsip.cn' // 生产环境地址  
 };