Browse Source

fix:图片模糊问题

xuqiaoying 2 năm trước cách đây
mục cha
commit
27ccfcca74
4 tập tin đã thay đổi với 15 bổ sung15 xóa
  1. 7 7
      common/request.js
  2. 3 3
      pages/course/index.vue
  3. 4 4
      pages2/bank/detail.vue
  4. 1 1
      pages3/course/detail.vue

+ 7 - 7
common/request.js

@@ -4,22 +4,22 @@ import store from '@/store/index.js'
 import api from './api.js'
 var num = 1
 //接口api   
-// export const BASE_URL = 'https://api.xyyxt.net'   //release
+export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地
 // export const BASE_URL = 'http://192.168.1.7:5055'    //后端本地
 
  //图片上传api
-// export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
-export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
+export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release
+// export const BASE_IMG_URL = 'https://file-dev.xyyxt.net/'  //test
 
 // web_view的
-// export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
+export const WEBVIEW_URL = 'https://m.xyyxt.net/'  //release
 // export const WEBVIEW_URL = 'https://testm.xyyxt.net/'  //预发布
-export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
+// export const WEBVIEW_URL = 'http://120.79.166.78:18001/' // 测试环境
 // export const WEBVIEW_URL = 'http://api.xyyxt.net:6066/'  //预发布(弃用了)
 
 // export const socket_url = 'ws://42.192.164.187:19005/webSocket/'  //test
@@ -33,7 +33,7 @@ RVQplIVs5z3MxcUa9ptKPHUTgh8xMCBvl8sUJKwkmn4vYWeDfHT22EL7Hr1pTMwU
 hF6WiNlWfQTVoF1rhwIDAQAB
 -----END PUBLIC KEY-----`;
 
-export const version = '1.4.0' 
+export const version = '1.4.12' 
 export const tenantId = '867735392558919680' 
 export const myRequest = (options) => {
 	if (store.state.allowLoading && !options.noLoading) {

+ 3 - 3
pages/course/index.vue

@@ -57,7 +57,7 @@
 				<view class="listBox">
 					<navigator  hover-class="none" :url="'/pages3/course/detail?id='+item.goodsId + '&goodsType=' + item.goodsType" v-for="(item,index) in list1" :key="index" >
 						<view class="itemBox">
-							<image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
+							<image :src="$method.splitImgHost(item.coverUrl)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
 							<view style="display: flex;margin-top: 13rpx;align-items: center;">
 								<view class="yearTag" v-if="item.year">{{item.year}}</view>
 								<view class="titleTag">{{item.goodsName}}</view>
@@ -85,7 +85,7 @@
 				<view class="listBox">
 					<navigator  hover-class="none" :url="'/pages2/bank/detail?id='+item.goodsId" v-for="(item,index) in list2" :key="index" >
 						<view class="itemBox">
-							<image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
+							<image :src="$method.splitImgHost(item.coverUrl)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
 							<view style="display: flex;margin-top: 13rpx;align-items: center;">
 								<view class="yearTag" v-if="item.year">{{item.year}}</view>
 								<view class="titleTag" style="display: flex;justify-content: space-between;flex:1;">
@@ -125,7 +125,7 @@
 					<!-- /pages5/liveDetail/index -->
 					<navigator  hover-class="none" :url="'/pages3/course/detail?id='+item.goodsId + '&goodsType=' + item.goodsType" v-for="(item,index) in list3" :key="index" >
 						<view class="itemBox">
-							<image :src="$method.splitImgHost(item.coverUrl, true)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
+							<image :src="$method.splitImgHost(item.coverUrl)" style="height: 367rpx;width: 100%;border-radius: 24rpx;"></image>
 							<view style="display: flex;margin-top: 13rpx;align-items: center;">
 								<view class="yearTag" v-if="item.year">{{item.year}}</view>
 								<view class="titleTag" style="display: flex;justify-content: space-between;flex:1;">

+ 4 - 4
pages2/bank/detail.vue

@@ -2,7 +2,7 @@
 	<view>
 		<nav-bar title="题库详情"></nav-bar>
 		<view style="background-color: #FFFFFF;">
-			<image :src="$method.splitImgHost(goodsData.coverUrl, true)" style="width: 100%;height: 400rpx;"></image>
+			<image :src="$method.splitImgHost(goodsData.coverUrl)" style="width: 100%;height: 400rpx;"></image>
 			
 			<view class="cou_title">
 				<view class="title_name">
@@ -144,7 +144,7 @@
                 </view>
                 <view v-if="Object.keys(skuItem).length" class="pop_prices">
                     <view class="lefts">
-						<image :src="$method.splitImgHost(skuItem.coverUrl, true)" class="imgs"></image>
+						<image :src="$method.splitImgHost(skuItem.coverUrl)" class="imgs"></image>
 					</view>
 					<view class="rights">
 						<view class="goods_titles">{{ skuItem.goodsName }}</view>
@@ -256,14 +256,14 @@ export default {
 		return {
 			title: this.goodsData.goodsName,
 			query: 'id=' + this.id,
-			imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl, true)
+			imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl)
 		}
 	},
 	onShareAppMessage() {
 		return {
 			title: this.goodsData.goodsName,
 			path: `/pages2/bank/detail?id=` + this.id,
-			imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl, true)
+			imageUrl: this.$method.splitImgHost(this.goodsData.coverUrl)
 		}
 	},
 	

+ 1 - 1
pages3/course/detail.vue

@@ -176,7 +176,7 @@
                 </view>
                 <view v-if="Object.keys(skuItem).length" class="pop_prices">
                     <view class="lefts">
-						<image :src="$method.splitImgHost(skuItem.coverUrl, true)" class="imgs"></image>
+						<image :src="$method.splitImgHost(skuItem.coverUrl)" class="imgs"></image>
 					</view>
 					<view class="rights">
 						<view class="goods_titles">{{ skuItem.goodsName }}</view>