|
|
@@ -284,8 +284,8 @@ export default {
|
|
|
mask: true // 是否显示透明蒙层,防止触摸穿透
|
|
|
})
|
|
|
uni.uploadFile({
|
|
|
- // url: config.APIHOST1 + '/alioss/upload', //仅为示例,非真实的接口地址
|
|
|
- url: configurl.APIHOST2 + '/alioss/upload', //仅为示例,非真实的接口地址
|
|
|
+ // url: config.APIHOST1 + '/app/new-file/upload', //仅为示例,非真实的接口地址
|
|
|
+ url: configurl.APIHOST2 + '/app/new-file/upload', //仅为示例,非真实的接口地址
|
|
|
filePath: e.detail.avatarUrl,
|
|
|
header: {
|
|
|
token: token
|
|
|
@@ -352,12 +352,13 @@ export default {
|
|
|
//初始绘画区域是画布自身的宽度也就是屏幕宽度
|
|
|
let drawWidth = uni.getSystemInfoSync().windowWidth
|
|
|
let that = this
|
|
|
+ let token = uni.getStorageSync('token')
|
|
|
getLessLimitSizeImage(canvasId, imagePath, limitSize, drawWidth, that, (resPath) => {
|
|
|
uni.showLoading({
|
|
|
title: '上传中'
|
|
|
})
|
|
|
uni.uploadFile({
|
|
|
- url: 'https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload',
|
|
|
+ url: configurl.APIHOST2 + '/app/new-file/upload',
|
|
|
filePath: resPath,
|
|
|
header: {
|
|
|
token: token
|