Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 2939f848
authored
Sep 27, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
826fb8d5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
22 deletions
package-lock.json
package.json
src/api/modules/equityApi.js
src/assets/css/public.scss
src/assets/red-radio.png
src/main.js
src/setup/qiankun.js
src/views/rightsCard/index.vue
package-lock.json
View file @
2939f84
...
...
@@ -4537,9 +4537,9 @@
}
},
"dayjs"
:
{
"version"
:
"1.11.
7
"
,
"resolved"
:
"https://registry.npm
mirror.com/dayjs/-/dayjs-1.11.7
.tgz"
,
"integrity"
:
"sha512-
+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphk
Q=="
"version"
:
"1.11.
10
"
,
"resolved"
:
"https://registry.npm
js.org/dayjs/-/dayjs-1.11.10
.tgz"
,
"integrity"
:
"sha512-
vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cn
Q=="
},
"de-indent"
:
{
"version"
:
"1.0.2"
,
...
...
package.json
View file @
2939f84
...
...
@@ -11,6 +11,7 @@
"axios"
:
"^0.21.4"
,
"core-js"
:
"^3.19.1"
,
"cors"
:
"^2.8.5"
,
"dayjs"
:
"^1.11.10"
,
"el-tree-transfer"
:
"^2.4.7"
,
"element-ui"
:
"^2.15.6"
,
"glsx-common"
:
"^2.1.0"
,
...
...
src/api/modules/equityApi.js
View file @
2939f84
import
{
http
}
from
'@/main'
import
{
http
,
marketing_http
}
from
'@/main'
/*获取权益卡管理列表*/
const
getEquityCardList
=
params
=>
{
params
.
method
=
'scrm.api.equity.card.class.list.with.page'
...
...
@@ -11,7 +11,7 @@ const newEquityCard = params => {
params
.
method
=
'scrm.api.equity.card.class.insert'
return
http
({
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
/*编辑权益卡*/
...
...
@@ -19,7 +19,7 @@ const editEquityCard = params => {
params
.
method
=
'scrm.api.equity.card.class.update'
return
http
({
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
/*权益卡批量生成*/
...
...
@@ -57,7 +57,7 @@ const getMerchantList = params => {
params
.
method
=
'scrm.api.equity.goods.merchant.list'
return
http
({
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
/*导出*/
...
...
@@ -65,7 +65,7 @@ const cardExport = params => {
params
.
method
=
'scrm.api.equity.card.export'
return
http
({
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
/*获取领用门店列表*/
...
...
@@ -73,7 +73,7 @@ const getCollectionMerchantList = params => {
params
.
method
=
'scrm.api.equity.card.get.by.merchant.name'
return
http
({
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
/*获取推广信息*/
...
...
@@ -81,7 +81,7 @@ const getQrUrl = params => {
params
.
method
=
'scrm.api.equity.card.class.generate.try.url'
return
http
({
data
:
params
,
returnAll
:
true
returnAll
:
true
})
}
/*获取用户明细列表*/
...
...
@@ -134,7 +134,7 @@ const gethwBrandList = params => {
})
}
const
editHwActiveDayApi
=
params
=>
{
const
editHwActiveDayApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.hw.order.updateLimitedTimeActivity`
return
http
({
data
:
params
,
...
...
@@ -142,7 +142,7 @@ const editHwActiveDayApi= params => {
})
}
const
getHwActiveDayApi
=
params
=>
{
const
getHwActiveDayApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.hw.order.getLimitedTimeActivity`
return
http
({
data
:
params
,
...
...
@@ -150,15 +150,22 @@ const getHwActiveDayApi= params => {
})
}
const
syncHwDataApi
=
params
=>
{
const
syncHwDataApi
=
params
=>
{
params
.
method
=
`scrm.api.equity.hw.order.sync`
return
http
({
data
:
params
,
sign
:
true
})
}
/**
* 查询门店红包活动列表
*/
const
getActivityRedEnvelopeList
=
params
=>
{
params
.
method
=
'marketing.api.activityRedEnvelope.merchant.list'
return
marketing_http
({
data
:
params
,
})
}
export
default
{
getEquityCardList
,
newEquityCard
,
...
...
@@ -179,5 +186,6 @@ export default {
gethwBrandList
,
editHwActiveDayApi
,
getHwActiveDayApi
,
syncHwDataApi
syncHwDataApi
,
getActivityRedEnvelopeList
}
src/assets/css/public.scss
View file @
2939f84
.el-message
{
z-index
:
3000
!
important
;
}
.equity-wrap
.contain
{
background
:
#ffffff
;
// margin: 0 0 20px 0;
...
...
src/assets/red-radio.png
0 → 100644
View file @
2939f84
817 Bytes
src/main.js
View file @
2939f84
...
...
@@ -22,4 +22,5 @@ export { bootstrap, mount, unmount } from '@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
new_http
=
params
=>
Vue
.
prototype
.
$new_http
(
params
)
export
const
other_http
=
params
=>
Vue
.
prototype
.
$other_http
(
params
)
export
const
marketing_http
=
params
=>
Vue
.
prototype
.
$marketing_http
(
params
)
import
'./utils/util.js'
src/setup/qiankun.js
View file @
2939f84
...
...
@@ -17,8 +17,8 @@ Vue.use(GLCombiForm)
Vue
.
use
(
GLTableButton
)
Vue
.
use
(
GLDialog
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
other_request
,
sign
,
secret
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
export
async
function
bootstrap
({
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
other_request
,
sign
,
secret
,
marketing_request
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
let
newrequest
=
Object
.
assign
({},
request
)
newrequest
.
baseURL
=
juedeDomain
(
request
.
baseURL
)
Vue
.
prototype
.
$history
=
history
...
...
@@ -30,6 +30,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$other_http
=
new
common
.
Http
({
response
,
request
:
other_request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$new_http
=
new
common
.
Http
({
response
,
request
:
newrequest
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$marketing_http
=
new
common
.
Http
({
response
,
request
:
marketing_request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton,GLTable, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
@@ -38,25 +39,25 @@ export async function bootstrap({ history, common, messenger, globalState, route
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
}
export
async
function
mount
(
props
)
{
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
router
=
insts
.
router
instance
=
insts
.
vm
}
export
async
function
unmount
()
{
export
async
function
unmount
()
{
instance
.
$destroy
()
instance
.
$el
.
innerHTML
=
''
instance
=
null
router
=
null
}
function
subscribe
({
messenger
})
{
function
subscribe
({
messenger
})
{
messenger
.
subscribe
(
v
=>
{
console
.
log
(
`监听到子应用
${
v
.
from
}
发来消息:`
,
v
)
})
}
function
juedeDomain
(
url
)
{
function
juedeDomain
(
url
)
{
const
val
=
{
environment
:
'test'
,
channel
:
1
,
...
...
src/views/rightsCard/index.vue
View file @
2939f84
This diff is collapsed.
Click to expand it.
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