Authored by 周少峰

upload url

@@ -156,12 +156,9 @@ $file.each(function(e) { @@ -156,12 +156,9 @@ $file.each(function(e) {
156 var $this = $('#upload-img-' + e), 156 var $this = $('#upload-img-' + e),
157 $par = $this.closest('.problem-description'); 157 $par = $this.closest('.problem-description');
158 158
159 - if (!window.location.origin) {  
160 - window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');  
161 - }  
162 $this.qupload({ 159 $this.qupload({
163 button_image_url: '', 160 button_image_url: '',
164 - upload_url: window.location.origin + '/home/returns/imgUpload', 161 + upload_url: '//www.yohobuy.com/home/returns/imgUpload',
165 file_post_name: 'fileData', 162 file_post_name: 'fileData',
166 button_text: '<span class="btn_upload_text">上传图片</span>', 163 button_text: '<span class="btn_upload_text">上传图片</span>',
167 button_text_style: '.btn_upload_text{color: #ffffff;}', 164 button_text_style: '.btn_upload_text{color: #ffffff;}',