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 @@
"dev"
:
true
},
"qs"
:
{
"version"
:
"6.11.
0
"
,
"resolved"
:
"https://registry.npmmirror.com/qs/-/qs-6.11.
0
.tgz"
,
"integrity"
:
"sha512-
MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4
Q=="
,
"version"
:
"6.11.
1
"
,
"resolved"
:
"https://registry.npmmirror.com/qs/-/qs-6.11.
1
.tgz"
,
"integrity"
:
"sha512-
0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6n
Q=="
,
"requires"
:
{
"side-channel"
:
"^1.0.4"
}
...
...
@@ -14466,9 +14466,9 @@
}
},
"word-edit"
:
{
"version"
:
"1.
0.9
"
,
"resolved"
:
"https://registry.npmmirror.com/word-edit/-/word-edit-1.
0.9
.tgz"
,
"integrity"
:
"sha512-
TIoRTWu6TL5RwGSVU5t6mMnjCekX42QQlP91r7PPQpoQCgtGt8sWx7p6/BoqdiwNOxB4Loyh0xLKW+LEeO5zP
Q=="
,
"version"
:
"1.
1.0
"
,
"resolved"
:
"https://registry.npmmirror.com/word-edit/-/word-edit-1.
1.0
.tgz"
,
"integrity"
:
"sha512-
H+yKkQxwsljYhGrmf8biDp9XkopKBF37CyedKR4kP8NOt4Qv+o7zwQCiQUkz/+oxboVJfHoJ+aAxgd7XzBaf8
Q=="
,
"requires"
:
{
"@amap/amap-jsapi-loader"
:
"^1.0.1"
,
"core-js"
:
"^3.6.5"
,
...
...
package.json
View file @
e9c8ee2
...
...
@@ -12,7 +12,6 @@
"dayjs"
:
"^1.10.7"
,
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.5.3"
,
"glsx-components_beta"
:
"^1.0.4"
,
"lodash"
:
"^4.17.21"
,
...
...
@@ -23,7 +22,7 @@
"vuedraggable"
:
"^2.24.3"
,
"vuex"
:
"^3.1.2"
,
"wangeditor"
:
"^4.7.12"
,
"word-edit"
:
"^1.
0.9
"
"word-edit"
:
"^1.
1.0
"
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
...
...
@@ -37,6 +36,7 @@
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"glsx-common"
:
"^1.4.9"
,
"node-sass"
:
"^4.12.0"
,
"prettier"
:
"^1.19.1"
,
"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
getMerchantGoodsListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.goods.page.curMerchant'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.shopmall.goods.page.curMerchant'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
getGoodsListApi
=
params
=>
{
// scrm.api.shopmall.goods.getGoodsList
params
.
method
=
'scrm.api.shopmall.goods.getGoodsList'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
// scrm.api.shopmall.goods.getGoodsList
params
.
method
=
'scrm.api.shopmall.goods.getGoodsList'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
uploadImgApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
common.uploadImg`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
params
.
method
=
`
${
defaultPath
}
common.uploadImg`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
uploadMusicApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.common.uploadMusic'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
params
.
method
=
'scrm.api.carlife.common.uploadMusic'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
uploadVideoApi
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
common.uploadVideo`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
params
.
method
=
`
${
defaultPath
}
common.uploadVideo`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
uploadFundingVideoApi
=
params
=>
{
params
.
method
=
'scrm.api.carlife.crowd.funding.uploadVideo'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
params
.
method
=
'scrm.api.carlife.crowd.funding.uploadVideo'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
getMerchantList
=
params
=>
{
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
`
${
defaultPath
}
merchant.listWithPageByCurMerchant`
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getSimpleMerchantList
=
params
=>
{
params
.
method
=
'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.carlife.merchant.listWithPageSimpleByCurMerchant'
return
http
({
url
:
'rop-scrm-carlife/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getZoneListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.shopmall.zoneInfo.listCurMerchantId'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getClassifyListApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.classify.list.curMerchant'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.shopmall.classify.list.curMerchant'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
pictureUpload
=
params
=>
{
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
params
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
http_common
({
url
:
'/router?method=glsx.accounts.biz.common.pictureUpload'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
noSignAttr
:
[
'file'
]
})
}
const
compressPicture
=
params
=>
{
// params.method = '/video/compression/upload'
// params.sessionId = session
return
http
({
url
:
'/rpc-scrm-entmicro-container/picture/compression/upload'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
return
http_upload
({
url
:
'/rpc-scrm-entmicro-container/picture/compression/upload'
,
method
:
'POST'
,
data
:
params
,
sign
:
false
,
noSignAttr
:
[
'file'
]
})
}
const
compressVideo
=
params
=>
{
// params.method = '/video/compression/upload'
// params.sessionId = session
return
http
({
url
:
'/rpc-scrm-entmicro-container/video/compression/upload'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
// params.method = '/video/compression/upload'
// params.sessionId = session
// let paramsVideo = JSON.(params)
return
http_upload
({
url
:
'/rpc-scrm-entmicro-container/video/compression/upload'
,
method
:
'POST'
,
data
:
params
,
sign
:
false
,
noSignAttr
:
[
'file'
]
})
}
const
querylabeltree
=
params
=>
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
// params.sessionId = session
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 人群列表
const
getCrowdTreeListApi
=
params
=>
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http2
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 跟进员工类型
const
getStaffFollowerListApi
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listEntFollowerType'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.staff.listEntFollowerType'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取商户信息
const
getMerchantInfoApi
=
params
=>
{
params
.
method
=
'merchants.api.merchant.findMerchantBaseInfo'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'merchants.api.merchant.findMerchantBaseInfo'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 根据商户号最上级工厂商户号
const
getSuperMerchantApi
=
params
=>
{
params
.
method
=
'merchants.api.open.findSuperlativeMerchant'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'merchants.api.open.findSuperlativeMerchant'
return
http_merchant
({
url
:
'/rop-merchants/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/**众筹活动订单配置开关(SAAS)【控制众筹订单列表部分字段0:展示;1:隐藏;】 */
const
getCrowdfundingOrderConfig
=
(
params
=
{})
=>
{
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.config'
params
.
requestType
=
0
//0:门店;1:运营版
return
http
({
url
:
'/rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.shopmall.crowd.funding.order.config'
params
.
requestType
=
0
//0:门店;1:运营版
return
http
({
url
:
'/rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
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'
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
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
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
export
const
http_merchant
=
params
=>
Vue
.
prototype
.
$http_merchant
(
params
)
src/setup/qiankun.js
View file @
e9c8ee2
...
...
@@ -6,17 +6,18 @@
* @LastEditTime: 2022-07-12 14:14:15
*/
import
Vue
from
'vue'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
import
{
message
,
messageBox
}
from
'@/plugins/element.js'
import
{
fetchConfig
}
from
'@/config'
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
{
getRoutes
}
from
'@/router'
import
{
getRoutes
}
from
'@/router'
import
'@/assets/css/public.scss'
import
render
from
'./render'
// import 'glsx-components/src/theme/theme.scss'
import
'glsx-components/dist/glsx-components.css'
import
'word-edit/dist/glsx-components.css'
let
routes
=
[]
let
router
=
null
let
instance
=
null
...
...
@@ -27,50 +28,98 @@ Vue.use(GLCombiForm)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLEditor
)
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
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
// 集团版集团账号
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
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
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
request2
,
sign
,
secret
,
sign_common
,
request_common
,
request_merchant
}
=
await
fetchConfig
(
false
)
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
// 集团版集团账号
Vue
.
prototype
.
$isGroupUp
=
globalState
.
session
.
accountLevel
!=
4
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
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
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
router
=
insts
.
router
instance
=
insts
.
vm
const
insts
=
render
(
props
.
routerBase
,
routes
)
router
=
insts
.
router
instance
=
insts
.
vm
}
export
async
function
unmount
()
{
instance
.
$destroy
()
instance
.
$el
.
innerHTML
=
''
instance
=
null
router
=
null
instance
.
$destroy
()
instance
.
$el
.
innerHTML
=
''
instance
=
null
router
=
null
}
function
subscribe
({
messenger
})
{
messenger
.
subscribe
(
v
=>
{
console
.
log
(
`监听到子应用
${
v
.
from
}
发来消息:`
,
v
)
})
function
subscribe
({
messenger
})
{
messenger
.
subscribe
(
v
=>
{
console
.
log
(
`监听到子应用
${
v
.
from
}
发来消息:`
,
v
)
})
}
src/views/friendGroup/friendGroupAdd.vue
View file @
e9c8ee2
...
...
@@ -202,9 +202,10 @@ export default {
limitSize
:
10
,
//限制图片大小
limitNum
:
9
,
//限制图片数量
limitPx
:
1555200
,
paramsType
:
'form-data'
,
// limitWidth: 10000, //限制单张图片宽度
// limitHeight: 10000,//限制单张图片高度
Isdraggable
:
true
,
//图片拖拽
Isdraggable
:
true
,
//图片拖拽
,
uploadApi
:
this
.
$apis
.
common
.
compressPicture
},
{
...
...
@@ -217,6 +218,7 @@ export default {
// limitWidth: 1280, //限制视频宽度
// limitHeight: 720, //限制视频高度
limitTime
:
30
,
//限制视频时长
paramsType
:
'form-data'
,
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