Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e9c8ee2f
authored
Mar 11, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
压缩图片视频接口联调
1 parent
a1ca5fec
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
272 additions
and
198 deletions
package-lock.json
package.json
src/api/modules/common.js
src/main.js
src/setup/qiankun.js
src/views/friendGroup/friendGroupAdd.vue
package-lock.json
View file @
e9c8ee2
...
@@ -10914,9 +10914,9 @@
...
@@ -10914,9 +10914,9 @@
"dev"
:
true
"dev"
:
true
},
},
"qs"
:
{
"qs"
:
{
"version"
:
"6.11.
0
"
,
"version"
:
"6.11.
1
"
,
"resolved"
:
"https://registry.npmmirror.com/qs/-/qs-6.11.
0
.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/qs/-/qs-6.11.
1
.tgz"
,
"integrity"
:
"sha512-
MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4
Q=="
,
"integrity"
:
"sha512-
0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6n
Q=="
,
"requires"
:
{
"requires"
:
{
"side-channel"
:
"^1.0.4"
"side-channel"
:
"^1.0.4"
}
}
...
@@ -14466,9 +14466,9 @@
...
@@ -14466,9 +14466,9 @@
}
}
},
},
"word-edit"
:
{
"word-edit"
:
{
"version"
:
"1.
0.9
"
,
"version"
:
"1.
1.0
"
,
"resolved"
:
"https://registry.npmmirror.com/word-edit/-/word-edit-1.
0.9
.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/word-edit/-/word-edit-1.
1.0
.tgz"
,
"integrity"
:
"sha512-
TIoRTWu6TL5RwGSVU5t6mMnjCekX42QQlP91r7PPQpoQCgtGt8sWx7p6/BoqdiwNOxB4Loyh0xLKW+LEeO5zP
Q=="
,
"integrity"
:
"sha512-
H+yKkQxwsljYhGrmf8biDp9XkopKBF37CyedKR4kP8NOt4Qv+o7zwQCiQUkz/+oxboVJfHoJ+aAxgd7XzBaf8
Q=="
,
"requires"
:
{
"requires"
:
{
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"core-js"
:
"^3.6.5"
,
"core-js"
:
"^3.6.5"
,
...
...
package.json
View file @
e9c8ee2
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
"dayjs"
:
"^1.10.7"
,
"dayjs"
:
"^1.10.7"
,
"el-tree-transfer"
:
"^2.2.6"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.3"
,
"glsx-components"
:
"^1.5.3"
,
"glsx-components_beta"
:
"^1.0.4"
,
"glsx-components_beta"
:
"^1.0.4"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
...
@@ -23,7 +22,7 @@
...
@@ -23,7 +22,7 @@
"vuedraggable"
:
"^2.24.3"
,
"vuedraggable"
:
"^2.24.3"
,
"vuex"
:
"^3.1.2"
,
"vuex"
:
"^3.1.2"
,
"wangeditor"
:
"^4.7.12"
,
"wangeditor"
:
"^4.7.12"
,
"word-edit"
:
"^1.
0.9
"
"word-edit"
:
"^1.
1.0
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
...
@@ -37,6 +36,7 @@
...
@@ -37,6 +36,7 @@
"eslint"
:
"^5.16.0"
,
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"glsx-common"
:
"^1.4.9"
,
"node-sass"
:
"^4.12.0"
,
"node-sass"
:
"^4.12.0"
,
"prettier"
:
"^1.19.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
"sass-loader"
:
"^8.0.0"
,
...
...
src/api/modules/common.js
View file @
e9c8ee2
import
{
http
,
http_common
,
http2
,
http_merchant
}
from
'@/main'
import
{
http
,
http_common
,
http2
,
http_merchant
,
http_upload
}
from
'@/main'
const
defaultPath
=
'scrm.api.carlife.'
const
defaultPath
=
'scrm.api.carlife.'
const
getMerchantGoodsListApi
=
params
=>
{
const
getMerchantGoodsListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.goods.page.curMerchant'
params
.
method
=
'scrm.api.shopmall.goods.page.curMerchant'
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
getGoodsListApi
=
params
=>
{
const
getGoodsListApi
=
params
=>
{
// scrm.api.shopmall.goods.getGoodsList
// scrm.api.shopmall.goods.getGoodsList
params
.
method
=
'scrm.api.shopmall.goods.getGoodsList'
params
.
method
=
'scrm.api.shopmall.goods.getGoodsList'
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
method
:
'GET'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
uploadImgApi
=
params
=>
{
const
uploadImgApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
common.uploadImg`
params
.
method
=
`
${
defaultPath
}
common.uploadImg`
return
http
({
return
http
({
url
:
'rop-scrm-carlife/router'
,
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
,
sign
:
true
,
noSignAttr
:
[
'file'
]
noSignAttr
:
[
'file'
]
})
})
}
}
const
uploadMusicApi
=
params
=>
{
const
uploadMusicApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.common.uploadMusic'
params
.
method
=
'scrm.api.carlife.common.uploadMusic'
return
http
({
return
http
({
url
:
'rop-scrm-carlife/router'
,
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
,
sign
:
true
,
noSignAttr
:
[
'file'
]
noSignAttr
:
[
'file'
]
})
})
}
}
const
uploadVideoApi
=
params
=>
{
const
uploadVideoApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
common.uploadVideo`
params
.
method
=
`
${
defaultPath
}
common.uploadVideo`
return
http
({
return
http
({
url
:
'rop-scrm-carlife/router'
,
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
,
sign
:
true
,
noSignAttr
:
[
'file'
]
noSignAttr
:
[
'file'
]
})
})
}
}
const
uploadFundingVideoApi
=
params
=>
{
const
uploadFundingVideoApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.crowd.funding.uploadVideo'
params
.
method
=
'scrm.api.carlife.crowd.funding.uploadVideo'
return
http
({
return
http
({
url
:
'rop-scrm-carlife/router'
,
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
,
sign
:
true
,
noSignAttr
:
[
'file'
]
noSignAttr
:
[
'file'
]
})
})
}
}
const
getMerchantList
=
params
=>
{
const
getMerchantList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
return
http
({
return
http
({
url
:
'rop-scrm-carlife/router'
,
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
getSimpleMerchantList
=
params
=>
{
const
getSimpleMerchantList
=
params
=>
{
params
.
method
=
'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
params
.
method
=
'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return
http
({
return
http
({
url
:
'rop-scrm-carlife/router'
,
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
getZoneListApi
=
params
=>
{
const
getZoneListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.zoneInfo.listCurMerchantId'
params
.
method
=
'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
getClassifyListApi
=
params
=>
{
const
getClassifyListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.classify.list.curMerchant'
params
.
method
=
'scrm.api.shopmall.classify.list.curMerchant'
return
http
({
return
http
({
url
:
'rop-scrm-shopmall/router'
,
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
const
pictureUpload
=
params
=>
{
const
pictureUpload
=
params
=>
{
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
return
http_common
({
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
,
sign
:
true
,
noSignAttr
:
[
'file'
]
noSignAttr
:
[
'file'
]
})
})
}
}
const
compressPicture
=
params
=>
{
const
compressPicture
=
params
=>
{
// params.method = '/video/compression/upload'
return
http_upload
({
// params.sessionId = session
url
:
'/rpc-scrm-entmicro-container/picture/compression/upload'
,
return
http
({
method
:
'POST'
,
url
:
'/rpc-scrm-entmicro-container/picture/compression/upload'
,
data
:
params
,
method
:
'POST'
,
sign
:
false
,
data
:
params
,
noSignAttr
:
[
'file'
]
sign
:
true
})
})
}
}
const
compressVideo
=
params
=>
{
const
compressVideo
=
params
=>
{
// params.method = '/video/compression/upload'
// params.method = '/video/compression/upload'
// params.sessionId = session
// params.sessionId = session
return
http
({
// let paramsVideo = JSON.(params)
url
:
'/rpc-scrm-entmicro-container/video/compression/upload'
,
return
http_upload
({
method
:
'POST'
,
url
:
'/rpc-scrm-entmicro-container/video/compression/upload'
,
data
:
params
,
method
:
'POST'
,
sign
:
true
data
:
params
,
})
sign
:
false
,
noSignAttr
:
[
'file'
]
})
}
}
const
querylabeltree
=
params
=>
{
const
querylabeltree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session
// params.sessionId = session
return
http2
({
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// 人群列表
// 人群列表
const
getCrowdTreeListApi
=
params
=>
{
const
getCrowdTreeListApi
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http2
({
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// 跟进员工类型
// 跟进员工类型
const
getStaffFollowerListApi
=
params
=>
{
const
getStaffFollowerListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listEntFollowerType'
params
.
method
=
'entmicro.api.staff.listEntFollowerType'
return
http
({
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// 获取商户信息
// 获取商户信息
const
getMerchantInfoApi
=
params
=>
{
const
getMerchantInfoApi
=
params
=>
{
params
.
method
=
'merchants.api.merchant.findMerchantBaseInfo'
params
.
method
=
'merchants.api.merchant.findMerchantBaseInfo'
return
http_merchant
({
return
http_merchant
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
// 根据商户号最上级工厂商户号
// 根据商户号最上级工厂商户号
const
getSuperMerchantApi
=
params
=>
{
const
getSuperMerchantApi
=
params
=>
{
params
.
method
=
'merchants.api.open.findSuperlativeMerchant'
params
.
method
=
'merchants.api.open.findSuperlativeMerchant'
return
http_merchant
({
return
http_merchant
({
url
:
'/rop-merchants/router'
,
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
}
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const
getCrowdfundingOrderConfig
=
(
params
=
{})
=>
{
const
getCrowdfundingOrderConfig
=
(
params
=
{})
=>
{
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.config'
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.config'
params
.
requestType
=
0
//0:门店;1:运营版
params
.
requestType
=
0
//0:门店;1:运营版
return
http
({
return
http
({
url
:
'/rop-scrm-shopmall/router'
,
url
:
'/rop-scrm-shopmall/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
sign
:
true
})
})
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
,
getCrowdfundingOrderConfig
,
compressPicture
,
compressVideo
}
}
export
default
{
getMerchantGoodsListApi
,
getGoodsListApi
,
uploadImgApi
,
uploadMusicApi
,
uploadVideoApi
,
uploadFundingVideoApi
,
getMerchantList
,
getSimpleMerchantList
,
getZoneListApi
,
getClassifyListApi
,
pictureUpload
,
querylabeltree
,
getCrowdTreeListApi
,
getStaffFollowerListApi
,
getMerchantInfoApi
,
getSuperMerchantApi
,
getCrowdfundingOrderConfig
,
compressPicture
,
compressVideo
}
src/main.js
View file @
e9c8ee2
...
@@ -23,6 +23,7 @@ Vue.prototype.defaultLabelWidth = '154px'
...
@@ -23,6 +23,7 @@ Vue.prototype.defaultLabelWidth = '154px'
start
()
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http_upload
=
params
=>
Vue
.
prototype
.
$http_upload
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
src/setup/qiankun.js
View file @
e9c8ee2
...
@@ -6,17 +6,18 @@
...
@@ -6,17 +6,18 @@
* @LastEditTime: 2022-07-12 14:14:15
* @LastEditTime: 2022-07-12 14:14:15
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
fetchConfig
}
from
'@/config'
import
ElementUI
from
'element-ui'
import
ElementUI
from
'element-ui'
import
{
GLButton
,
GLTable
,
GLFooter
,
GLCombiForm
,
GLTableButton
,
GLDialog
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLButton
,
GLTable
,
GLFooter
,
GLCombiForm
,
GLTableButton
,
GLDialog
}
from
'glsx-components'
//权限按钮 (根据权限动态创建)
import
{
GLEditor
}
from
'word-edit'
import
{
GLEditor
}
from
'word-edit'
import
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
'@/assets/css/public.scss'
import
'@/assets/css/public.scss'
import
render
from
'./render'
import
render
from
'./render'
// import 'glsx-components/src/theme/theme.scss'
// import 'glsx-components/src/theme/theme.scss'
import
'glsx-components/dist/glsx-components.css'
import
'glsx-components/dist/glsx-components.css'
import
'word-edit/dist/glsx-components.css'
import
'word-edit/dist/glsx-components.css'
let
routes
=
[]
let
routes
=
[]
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
...
@@ -27,50 +28,98 @@ Vue.use(GLCombiForm)
...
@@ -27,50 +28,98 @@ Vue.use(GLCombiForm)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLEditor
)
Vue
.
use
(
GLDialog
)
Vue
.
use
(
GLDialog
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
}
=
await
fetchConfig
(
false
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
Vue
.
prototype
.
$history
=
history
const
{
Vue
.
prototype
.
$messenger
=
messenger
response
,
Vue
.
prototype
.
$globalState
=
globalState
request
,
Vue
.
prototype
.
$common
=
common
request2
,
Vue
.
prototype
.
$message
=
message
sign
,
Vue
.
prototype
.
$messageBox
=
messageBox
secret
,
// 集团版集团账号
sign_common
,
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
request_common
,
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
request_merchant
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
}
=
await
fetchConfig
(
false
)
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$messenger
=
messenger
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$tracker
=
common
.
tracker
Vue
.
prototype
.
$common
=
common
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
Vue
.
prototype
.
$message
=
message
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } })
Vue
.
prototype
.
$messageBox
=
messageBox
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } })
// 集团版集团账号
// Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: myToken } })
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: myToken } })
Vue
.
prototype
.
$http
=
new
common
.
Http
({
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: myToken } })
response
,
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
request
,
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
sign
,
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
secret
,
routes
=
getRoutes
(
routesData
)
alert
:
message
.
error
,
subscribe
({
messenger
})
headers
:
{
token
:
globalState
.
session
.
token
}
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
})
Vue
.
prototype
.
$http_upload
=
new
common
.
Http
({
response
:
{...
response
,
data_key
:
'result'
,
code_success_value
:
true
,
code_key
:
'success'
},
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
,
'Content-Type'
:
'multipart/form-data'
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
'md5'
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue
.
prototype
.
$tracker
=
common
.
tracker
// const myToken = 'scrm-base-107ee03c-1214-48c3-a443-a2332e553b2f-rop'
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http2 = new common.Http({ response, request: request2, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: myToken } })
// Vue.prototype.$http_xiaolong = new common.Http({ response, request: xiaolong_req, sign, secret, alert: message.error, headers: { token: myToken } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
routes
=
getRoutes
(
routesData
)
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
}
}
export
async
function
mount
(
props
)
{
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
const
insts
=
render
(
props
.
routerBase
,
routes
)
router
=
insts
.
router
router
=
insts
.
router
instance
=
insts
.
vm
instance
=
insts
.
vm
}
}
export
async
function
unmount
()
{
export
async
function
unmount
()
{
instance
.
$destroy
()
instance
.
$destroy
()
instance
.
$el
.
innerHTML
=
''
instance
.
$el
.
innerHTML
=
''
instance
=
null
instance
=
null
router
=
null
router
=
null
}
}
function
subscribe
({
messenger
})
{
function
subscribe
({
messenger
})
{
messenger
.
subscribe
(
v
=>
{
messenger
.
subscribe
(
v
=>
{
console
.
log
(
`监听到子应用
${
v
.
from
}
发来消息:`
,
v
)
console
.
log
(
`监听到子应用
${
v
.
from
}
发来消息:`
,
v
)
})
})
}
}
src/views/friendGroup/friendGroupAdd.vue
View file @
e9c8ee2
...
@@ -202,9 +202,10 @@ export default {
...
@@ -202,9 +202,10 @@ export default {
limitSize
:
10
,
//限制图片大小
limitSize
:
10
,
//限制图片大小
limitNum
:
9
,
//限制图片数量
limitNum
:
9
,
//限制图片数量
limitPx
:
1555200
,
limitPx
:
1555200
,
paramsType
:
'form-data'
,
// limitWidth: 10000, //限制单张图片宽度
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
// limitHeight: 10000,//限制单张图片高度
Isdraggable
:
true
,
//图片拖拽
Isdraggable
:
true
,
//图片拖拽
,
uploadApi
:
this
.
$apis
.
common
.
compressPicture
uploadApi
:
this
.
$apis
.
common
.
compressPicture
},
},
{
{
...
@@ -217,6 +218,7 @@ export default {
...
@@ -217,6 +218,7 @@ export default {
// limitWidth: 1280, //限制视频宽度
// limitWidth: 1280, //限制视频宽度
// limitHeight: 720, //限制视频高度
// limitHeight: 720, //限制视频高度
limitTime
:
30
,
//限制视频时长
limitTime
:
30
,
//限制视频时长
paramsType
:
'form-data'
,
uploadApi
:
this
.
$apis
.
common
.
compressVideo
uploadApi
:
this
.
$apis
.
common
.
compressVideo
},
},
{
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment