Sfoglia il codice sorgente

图片请求头改为全局配置

嘀嘀嘀 1 anno fa
parent
commit
73499ea698

+ 3 - 0
main.js

@@ -9,6 +9,9 @@ import share from './common/share.js'
 Vue.prototype.$Sysconf = HttpRequest.config;
 Vue.prototype.$SysCache = HttpCache;
 
+Vue.prototype.Tupian =function(img){
+	return 'https://moxuanyunshang.oss-cn-beijing.aliyuncs.com'+img
+}//全局图片请求头
 // 引入全局uView
 import uView from "uview-ui";
 Vue.use(uView);

+ 1 - 1
my/publish/goods.vue

@@ -775,7 +775,7 @@
 					return
 				}
 				if (!this.shop.goodsParticularsPicture) {
-					this.goodsParticularsPicture=['https://moxuanyunshang.oss-cn-beijing.aliyuncs.com/xiangqing/12ecc56005731327e02f42f0d851848.png']
+					this.goodsParticularsPicture=[this.Tupian('/xiangqing/12ecc56005731327e02f42f0d851848.png')]
 					// uni.showToast({
 					// 	title: '请上传商品详情图',
 					// 	icon: 'none',

+ 3 - 3
pages/order/index.vue

@@ -175,7 +175,7 @@
 										class="flex justify-center align-center">
 										<view>
 											<view class="text-center">
-												<image src="https://moxuanyunshang.oss-cn-beijing.aliyuncs.com/duanxin/addimg.png" style="width: 65rpx;height: 55rpx;">
+												<image :src="Tupian('/duanxin/addimg.png')" style="width: 65rpx;height: 55rpx;">
 												</image>
 											</view>
 											<view class="text-center text-black">添加图片</view>
@@ -208,13 +208,13 @@
 						<view class="receipt_code">
 							<view class="code_title">是否确认送达</view>
 							<view class="text-center">
-								<image src="https://moxuanyunshang.oss-cn-beijing.aliyuncs.com/duanxin/%E7%94%BB%E6%9D%BF%202.png" style="width: 33px;height: 33px;">
+								<image :src="Tupian('/duanxin/%E7%94%BB%E6%9D%BF%202.png')" style="width: 33px;height: 33px;">
 								</image>
 							</view>
 							<view class="code_title2">发送失败</view>
 							<view class="code_title2">原因:{{failYuanyin}},短信发送失败,请点击拨号联系学生</view>
 							<view class="sure2" @click="phoneToxue(xuePhone)">
-								<image src="https://moxuanyunshang.oss-cn-beijing.aliyuncs.com/duanxin/%E7%94%BB%E6%9D%BF%201.png" style="width: 33rpx;height: 33rpx;">
+								<image :src="Tupian('/duanxin/%E7%94%BB%E6%9D%BF%201.png')" style="width: 33rpx;height: 33rpx;">
 								</image>
 								{{xuePhone}}
 							</view>

File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/my/publish/goods.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/order/index.js.map


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/common/main.js


File diff suppressed because it is too large
+ 3 - 3
unpackage/dist/dev/mp-weixin/common/vendor.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/my/publish/goods.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/order/index.js


File diff suppressed because it is too large
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/order/index.wxml