This commit is contained in:
2020-07-08 18:14:41 +08:00
parent c4fb80d06b
commit 9ffdfa652a
30 changed files with 640 additions and 1271 deletions

BIN
static/image/mine/25.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
static/image/mine/26.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
static/image/mine/27.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
static/image/mine/28.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
static/image/mine/29.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
static/image/mine/30.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
static/image/mine/31.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
static/image/mine/32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

BIN
static/image/mine/33.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

BIN
static/image/mine/34.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -14,7 +14,7 @@ const common = {
* @param { String } url 服务器 url
* @param { String } filePath 要上传文件资源的路径
* @param { String } type 上传文件验证类型 默认: img 可选: video
* @return { object } promise 对象 resolve 文件服务器地址 reject 错误信息
* @return { object } promise 对象 resolve 返回文件服务器地址 reject 返回错误信息
*/
uploadFile({ url, filePath, type = 'img' } = {}) {
const token = uni.getStorageSync('token');
@@ -27,10 +27,10 @@ const common = {
formData: { type: type },
success: uploadFileRes => {
const data = JSON.parse(uploadFileRes.data);
if(data.errCode.code == 0) {
resolve(data.errCode.url);
if(data.errCode == 0) {
resolve(data.data.url);
} else {
reject(data.errCode.msg);
reject(data.message);
}
},
fail(){