Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 8f5d0b83
authored
May 30, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
bcd044e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
36 deletions
src/mixins/draw.js
src/setup/qiankun.js
src/mixins/draw.js
View file @
8f5d0b8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-19 13:46:20
* @Date: 2023-05-19 13:46:20
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-30 14:3
0:14
* @LastEditTime: 2023-05-30 14:3
8:41
* @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -11,43 +11,12 @@ import { mapState, mapActions } from 'vuex'
...
@@ -11,43 +11,12 @@ import { mapState, mapActions } from 'vuex'
import
Drawing
from
'@/utils/drawing'
import
Drawing
from
'@/utils/drawing'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{}
cavansObj
:
{
1
:
{
titleStyle
:
{
x
:
82
,
y
:
224
,
fontSize
:
52
,
color
:
'#AD604C'
},
subTitleStyle
:
{
x
:
66
,
y
:
362
,
fontSize
:
28
,
color
:
'#AD604C'
}
},
2
:
{
titleStyle
:
{
x
:
10
,
y
:
104
,
fontSize
:
54
,
color
:
'#185D5E'
},
subTitleStyle
:
{
x
:
10
,
y
:
176
,
fontSize
:
16
,
color
:
'#185D5E'
}
}
}
}
},
},
methods
:
{
methods
:
{
//主图、内容图、logo合并图片
//主图、内容图、logo合并图片
async
createCanvas
()
{
async
createCanvas
()
{
this
.
loading
=
true
this
.
loading
=
true
const
{
backgroundImage
,
detailImage
,
merchantLog
,
marketingTitle
,
marketingSubtitle
}
=
this
.
editForm
const
{
backgroundImage
,
detailImage
,
merchantLog
,
marketingTitle
,
marketingSubtitle
}
=
this
.
editForm
if
(
!
backgroundImage
)
return
if
(
!
backgroundImage
)
return
try
{
try
{
...
...
src/setup/qiankun.js
View file @
8f5d0b8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13
* @Date: 2022-07-22 18:15:13
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-
22 10:43:25
* @LastEditTime: 2023-05-
30 14:38:23
* @FilePath: \scrm-micro-home\src\setup\qiankun.js
* @FilePath: \scrm-micro-home\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -28,11 +28,12 @@ let routes = []
...
@@ -28,11 +28,12 @@ let routes = []
let
router
=
null
let
router
=
null
let
instance
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
request_common
,
request_merchant
,
request_gpt
,
sign_common
,
scene
}
=
await
fetchConfig
()
const
{
response
,
request
,
sign
,
secret
,
request_common
,
request_merchant
,
request_gpt
,
sign_common
,
scene
,
cavansObj
}
=
await
fetchConfig
()
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
cavansObj
=
cavansObj
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_merchant
=
new
common
.
Http
({
response
,
request
:
request_merchant
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_gpt
=
new
common
.
Http
({
response
,
request
:
request_gpt
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
})
Vue
.
prototype
.
$http_gpt
=
new
common
.
Http
({
response
,
request
:
request_gpt
,
sign
,
secret
,
alert
:
ElementUI
.
Message
.
error
})
...
...
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