7.13(优化
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
// #ifdef H5
|
||||
const WechatJSSDK = require('jweixin-module');
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
count: 9,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album', 'camera'],
|
||||
dir: 'crmebimage/public/product/'
|
||||
dir: 'lxkimage/public/product/'
|
||||
}, null, res => {
|
||||
this.imageList.push(res.data)
|
||||
uni.hideLoading();
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
avatarUrl
|
||||
} = e.detail
|
||||
this.avatarUrl = avatarUrl
|
||||
ossUpload(avatarUrl, avatarUrl, 'crmebimage/public/maintain/', (p) => {
|
||||
ossUpload(avatarUrl, avatarUrl, 'lxkimage/public/maintain/', (p) => {
|
||||
console.log(p);
|
||||
},
|
||||
res => {
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
count: 9,
|
||||
sizeType: ['original'],
|
||||
sourceType:['album', 'camera'],
|
||||
dir:'crmebimage/public/product/'
|
||||
dir:'lxkimage/public/product/'
|
||||
},null,res=>{
|
||||
this.imageList.push(res.data)
|
||||
uni.hideLoading();
|
||||
|
||||
@@ -468,7 +468,7 @@
|
||||
count: 1,
|
||||
sizeType: ['original'],
|
||||
sourceType: ['album', 'camera'],
|
||||
dir: 'crmebimage/public/product/'
|
||||
dir: 'lxkimage/public/product/'
|
||||
}, null, res => {
|
||||
this.formData[key] = res.data
|
||||
this.videoOrImage = false
|
||||
@@ -478,7 +478,7 @@
|
||||
//传视频
|
||||
getVideo(key) {
|
||||
this.$util.uploadVideo({
|
||||
dir: 'crmebimage/public/product/'
|
||||
dir: 'lxkimage/public/product/'
|
||||
},
|
||||
e => {
|
||||
uni.$u.debounce(() => {
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
// +----------------------------------------------------------------------
|
||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: CRMEB Team <admin@crmeb.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
|
||||
import { EXPIRE } from '../config/app';
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
compressed:false,
|
||||
success: (res) => {
|
||||
if(isShowLoading)uni.showLoading({mask:true,title:'上传中...'});
|
||||
ossUpload(res.tempFilePath,res.tempFilePath,opt.dir||'crmebimage/public/product/',(p)=>{
|
||||
ossUpload(res.tempFilePath,res.tempFilePath,opt.dir||'lxkimage/public/product/',(p)=>{
|
||||
if (progress != null && typeof(progress) === 'function') {
|
||||
progress(p)
|
||||
}
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
success: (res) => {
|
||||
// uni.showLoading({mask:true,title:'上传中...'});
|
||||
res.tempFiles.forEach(item=>{
|
||||
ossUpload(item.path,item.path,opt.dir||'crmebimage/public/maintain/',(p)=>{
|
||||
ossUpload(item.path,item.path,opt.dir||'lxkimage/public/maintain/',(p)=>{
|
||||
if (progress != null && typeof(progress) === 'function') {
|
||||
progress(p)
|
||||
}
|
||||
@@ -531,7 +531,7 @@ export default {
|
||||
{
|
||||
tag: 'img',
|
||||
id: 'bf',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/crmebimage/presets/bf.png',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/lxkimage/presets/bf.png',
|
||||
position: {
|
||||
top: '68px',
|
||||
left: left1,
|
||||
@@ -556,7 +556,7 @@ export default {
|
||||
{
|
||||
tag: 'img',
|
||||
id: 'rig',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/crmebimage/presets/rig.png',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/lxkimage/presets/rig.png',
|
||||
position: {
|
||||
top: '72px',
|
||||
right: left1,
|
||||
@@ -580,7 +580,7 @@ export default {
|
||||
{
|
||||
tag: 'img',
|
||||
id: 'zb',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/crmebimage/presets/zb.png',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/lxkimage/presets/zb.png',
|
||||
position: {
|
||||
top: '148px',
|
||||
left: left1+2,
|
||||
@@ -605,7 +605,7 @@ export default {
|
||||
{
|
||||
tag: 'img',
|
||||
id: 'rig2',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/crmebimage/presets/rig.png',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/lxkimage/presets/rig.png',
|
||||
position: {
|
||||
top: '152px',
|
||||
right: left1,
|
||||
@@ -616,7 +616,7 @@ export default {
|
||||
{
|
||||
tag: 'img',
|
||||
id: 'close1',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/crmebimage/presets/close1.png',
|
||||
src: 'https://qicheoss.oss-cn-shanghai.aliyuncs.com/lxkimage/presets/close1.png',
|
||||
position: {
|
||||
bottom: '28px',
|
||||
left:'auto',
|
||||
|
||||
Reference in New Issue
Block a user