Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-attachment-psd
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 45c5ef30
authored
May 19, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
cdf2ee76
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
11 deletions
jsconfig.json
src/config/env.development.js
src/config/index.js
src/views/Chat/paper.vue
jsconfig.json
0 → 100644
View file @
45c5ef3
{
"compilerOptions"
:
{
"module"
:
"ESNext"
,
"moduleResolution"
:
"Node"
,
"target"
:
"ES2020"
,
"jsx"
:
"react"
,
"strictNullChecks"
:
true
,
"strictFunctionTypes"
:
true
},
"exclude"
:
[
"node_modules"
,
"**/node_modules/*"
],
"vueCompilerOptions"
:
{
"experimentalCompatMode"
:
2
}
}
\ No newline at end of file
\ No newline at end of file
src/config/env.development.js
View file @
45c5ef3
...
@@ -11,7 +11,8 @@ module.exports = {
...
@@ -11,7 +11,8 @@ module.exports = {
title
:
'嘀加企微助手'
,
title
:
'嘀加企微助手'
,
envVersion
:
'trial'
,
envVersion
:
'trial'
,
request
:
{
request
:
{
baseURL
:
'//scrm.dev.glsx.com.cn'
,
// 本地测试项目地址,
// baseURL: '//scrm.dev.glsx.com.cn', // 本地测试项目地址,
baseURL
:
'//192.168.1.142:8080'
,
// 本地测试项目地址,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/index.js
View file @
45c5ef3
...
@@ -11,11 +11,11 @@ import { utils, Http } from 'glsx-common'
...
@@ -11,11 +11,11 @@ import { utils, Http } from 'glsx-common'
let
config
=
require
(
'./conf.js'
)
let
config
=
require
(
'./conf.js'
)
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
//
if (isEnv) {
if
(
isEnv
)
{
//
let { request } = config
let
{
request
}
=
config
//
Object.assign(request, { timeout })
Object
.
assign
(
request
,
{
timeout
})
//
return Promise.resolve(config)
return
Promise
.
resolve
(
config
)
//
}
}
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config'
)
// let params = { moduleName: 'scrm-wx-work-psd-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// let params = { moduleName: 'scrm-wx-work-psd-config', mockUrl: 'https://oss-config.test.glsx.com.cn/mock/617918601072f92988f05a11/base/scrm-wx-work-psd-config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// return utils.getConfig(params)
// return utils.getConfig(params)
...
...
src/views/Chat/paper.vue
View file @
45c5ef3
...
@@ -94,9 +94,13 @@
...
@@ -94,9 +94,13 @@
:show=
"showImagePreview"
:show=
"showImagePreview"
@
click=
"showImagePreview = false"
@
click=
"showImagePreview = false"
z-index=
"99"
z-index=
"99"
:lock-scroll=
"false"
>
>
<div
class=
"image-wrapper"
>
<div
class=
"image-wrapper"
>
<div
class=
"image-close"
>
<div
class=
"image-close"
@
click=
"showImagePreview = false"
>
<img
src=
"https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/close.png"
>
<img
src=
"https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/close.png"
>
</div>
</div>
<div
<div
...
@@ -173,8 +177,11 @@ export default {
...
@@ -173,8 +177,11 @@ export default {
this
.
flag
=
true
this
.
flag
=
true
},
},
handleViewImage
(
e
)
{
handleViewImage
(
e
)
{
this
.
showImagePreview
=
true
this
.
imageUrl
=
e
this
.
imageUrl
=
e
this
.
$nextTick
(()
=>
{
this
.
showImagePreview
=
true
})
},
},
clearData
()
{
clearData
()
{
this
.
list
=
[]
this
.
list
=
[]
...
@@ -332,10 +339,10 @@ export default {
...
@@ -332,10 +339,10 @@ export default {
border-radius
:
6px
6px
0
0
;
border-radius
:
6px
6px
0
0
;
padding
:
16px
;
padding
:
16px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
//
overflow-y
:
scroll
;
overflow-y
:
scroll
;
img
{
img
{
//
height
:
auto
;
height
:
auto
;
object-fit
:
contain
;
//
object-fit
:
contain
;
}
}
}
}
.image-tips
{
.image-tips
{
...
...
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