| xqd
@@ -54,8 +54,7 @@
|
|
|
<view class="chooscontainer" style="margin-left: 15rpx;">
|
|
|
<xfx-image-upload mediaType="video" :max="6" :chooseNum="6" v-model="video_url"
|
|
|
@uploadSuccess="ceshiUploadSuccess" @chooseSuccess="chooseMobile" @uploadFail="errorUpload"
|
|
|
- @imgDelete="delMobile" name="file"
|
|
|
- action="http://t20.9026.com/api/common/upload"></xfx-image-upload>
|
|
|
+ @imgDelete="delMobile" name="file" :action="upUrl"></xfx-image-upload>
|
|
|
</view>
|
|
|
<view class="line">
|
|
|
<view class="lineCon">
|
| xqd
@@ -94,10 +93,12 @@
|
|
|
import {
|
|
|
postTicket
|
|
|
} from '@/api/tusk/index.js'
|
|
|
+ import uploadUrl from '@/common/config.js'
|
|
|
export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
+ upUrl: uploadUrl.baseUrl,
|
|
|
pdfFileName: '',
|
|
|
|
|
|
tobheight: 45,
|
| xqd
@@ -239,8 +240,7 @@
|
|
|
// console.log(res.tempFiles[0].name);
|
|
|
|
|
|
uni.uploadFile({
|
|
|
- url: `http://t20.9026.com/api/` +
|
|
|
- 'common/upload', //仅为示例,非真实的接口地址
|
|
|
+ url: that.upUrl, //仅为示例,非真实的接口地址
|
|
|
filePath: res.tempFilePaths[0],
|
|
|
name: 'file',
|
|
|
formData: {
|
| xqd
@@ -279,8 +279,7 @@
|
|
|
imgList.forEach(async (item, index) => {
|
|
|
uni.uploadFile({
|
|
|
//后端接口地址
|
|
|
- url: `http://t20.9026.com/api/` +
|
|
|
- 'common/upload',
|
|
|
+ url: _this.upUrl,
|
|
|
filePath: imgList[index],
|
|
|
name: 'file',
|
|
|
//上传文件类型
|