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 8d2bf198
authored
Jul 26, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更改打包路径和添加预发布环境appid
1 parent
e0284cc7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
23 deletions
src/setup/qiankun.js
src/views/goods/index.vue
vue.config.js
src/setup/qiankun.js
View file @
8d2bf19
...
@@ -54,6 +54,7 @@ function juedeDomain(url){
...
@@ -54,6 +54,7 @@ function juedeDomain(url){
const
GL_PRODUCT
=
url
.
indexOf
(
'scrm.glsx.com'
)
>-
1
const
GL_PRODUCT
=
url
.
indexOf
(
'scrm.glsx.com'
)
>-
1
const
GH_PRODUCT
=
url
.
indexOf
(
'scrm.cgacar'
)
>-
1
const
GH_PRODUCT
=
url
.
indexOf
(
'scrm.cgacar'
)
>-
1
const
DEV
=
url
.
indexOf
(
'scrm.dev.glsx'
)
>-
1
const
DEV
=
url
.
indexOf
(
'scrm.dev.glsx'
)
>-
1
const
BETA
=
url
.
indexOf
(
'scrm.beta.glsx'
)
>-
1
if
(
TEST
){
if
(
TEST
){
val
.
environment
=
'test'
val
.
environment
=
'test'
}
else
if
(
GL_PRODUCT
){
}
else
if
(
GL_PRODUCT
){
...
@@ -67,6 +68,9 @@ function juedeDomain(url){
...
@@ -67,6 +68,9 @@ function juedeDomain(url){
}
else
if
(
DEV
){
}
else
if
(
DEV
){
val
.
environment
=
'dev'
val
.
environment
=
'dev'
val
.
envVersion
=
'develop'
val
.
envVersion
=
'develop'
}
else
if
(
BETA
){
val
.
environment
=
'beta'
val
.
channel
=
1
}
}
Vue
.
prototype
.
$custom_env
=
val
Vue
.
prototype
.
$custom_env
=
val
let
baseURL
=
url
.
match
(
/
(\S
*
)\/
rop/
)[
1
];
let
baseURL
=
url
.
match
(
/
(\S
*
)\/
rop/
)[
1
];
...
...
src/views/goods/index.vue
View file @
8d2bf19
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</GLButton>
<el-button
type=
"text"
:disabled=
"!scope.scope.groupStatus
||scope.scope.status!=
1"
@
click=
"toCreateLine(scope.scope)"
>
生成商品短链
</el-button>
<el-button
type=
"text"
:disabled=
"!scope.scope.groupStatus
|| scope.scope.status !=
1"
@
click=
"toCreateLine(scope.scope)"
>
生成商品短链
</el-button>
</span>
</span>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -131,7 +131,7 @@ export default {
...
@@ -131,7 +131,7 @@ export default {
},
},
{
{
label
:
'会员价(元)'
,
label
:
'会员价(元)'
,
width
:
150
,
width
:
150
,
prop
:
'salesPrice'
prop
:
'salesPrice'
},
},
{
{
...
@@ -139,7 +139,7 @@ export default {
...
@@ -139,7 +139,7 @@ export default {
sortable
:
true
,
sortable
:
true
,
label
:
'销量'
,
label
:
'销量'
,
width
:
110
,
width
:
110
// renderHeader: h => {
// renderHeader: h => {
// return h('div', { class: 'table-header' }, [
// return h('div', { class: 'table-header' }, [
// h('span', '销量'),
// h('span', '销量'),
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
},
},
{
{
label
:
'库存'
,
label
:
'库存'
,
width
:
150
,
width
:
150
,
sortable
:
true
,
sortable
:
true
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
...
@@ -159,7 +159,7 @@ export default {
...
@@ -159,7 +159,7 @@ export default {
},
},
{
{
label
:
'商品状态'
,
label
:
'商品状态'
,
width
:
110
,
width
:
110
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
}
}
...
@@ -179,8 +179,8 @@ export default {
...
@@ -179,8 +179,8 @@ export default {
handleClose
()
{
handleClose
()
{
this
.
isVisible
=
!
this
.
isVisible
this
.
isVisible
=
!
this
.
isVisible
},
},
copyLink
(){
copyLink
()
{
if
(
!
this
.
shortLink
)
return
if
(
!
this
.
shortLink
)
return
cloneText
(
this
.
shortLink
)
cloneText
(
this
.
shortLink
)
this
.
$message
.
success
(
'复制成功'
)
this
.
$message
.
success
(
'复制成功'
)
this
.
handleClose
()
this
.
handleClose
()
...
@@ -192,18 +192,24 @@ export default {
...
@@ -192,18 +192,24 @@ export default {
if
(
sapCode
)
{
if
(
sapCode
)
{
base_info
=
`
${
base_info
}
&storeCode=
${
sapCode
}
`
base_info
=
`
${
base_info
}
&storeCode=
${
sapCode
}
`
}
}
const
CHARGE_PATH
=
'packageEquity/pages/commodity/chargeDetail/chargeDetail'
const
MINI_PATH
=
'packageEquity/pages/commodity/detail/detail'
const
MINI_PATH
=
'packageEquity/pages/commodity/detail/detail'
const
MINI_OPTIONS
=
{
const
MINI_OPTIONS
=
{
supplier
:
row
.
supplier
,
supplier
:
row
.
supplier
,
brandName
:
row
.
brandName
,
brandName
:
row
.
brandName
id
:
row
.
id
}
if
(
row
.
appearance
==
2
)
{
MINI_OPTIONS
.
icon
=
row
.
icon
}
if
(
row
.
appearance
==
1
)
{
MINI_OPTIONS
.
id
=
row
.
id
}
}
const
ENV
=
this
.
$custom_env
const
ENV
=
this
.
$custom_env
let
query
=
`param=
${
encodeURIComponent
(
JSON
.
stringify
(
MINI_OPTIONS
))}
&
${
base_info
}
`
let
query
=
`param=
${
encodeURIComponent
(
JSON
.
stringify
(
MINI_OPTIONS
))}
&
${
base_info
}
`
let
para
=
{
let
para
=
{
path
:
MINI_PATH
,
path
:
row
.
appearance
==
2
?
CHARGE_PATH
:
MINI_PATH
,
query
,
query
,
appId
:
ENV
.
channel
==
2
?
'wxfe82b8d65d07808f'
:
'wxe10067a63c1856ac'
,
appId
:
ENV
.
environment
==
'beta'
?
'wx9f91c1ec493eb425'
:
ENV
.
channel
==
2
?
'wxfe82b8d65d07808f'
:
'wxe10067a63c1856ac'
,
envVersion
:
ENV
.
envVersion
envVersion
:
ENV
.
envVersion
}
}
this
.
$apis
.
orderApi
.
createShortLink
(
para
).
then
(
res
=>
{
this
.
$apis
.
orderApi
.
createShortLink
(
para
).
then
(
res
=>
{
...
@@ -224,7 +230,6 @@ export default {
...
@@ -224,7 +230,6 @@ export default {
// if (window.$config.axios.environment) {
// if (window.$config.axios.environment) {
// target = ['权益卡管理平台', '运营平台', 'SCRM权益平台', '商品管理', '*商品详情']
// target = ['权益卡管理平台', '运营平台', 'SCRM权益平台', '商品管理', '*商品详情']
// }
// }
console
.
log
(
copy
,
'copy'
)
let
query
=
{}
let
query
=
{}
if
(
id
)
query
.
id
=
id
if
(
id
)
query
.
id
=
id
if
(
status
==
0
)
{
if
(
status
==
0
)
{
...
@@ -235,7 +240,6 @@ export default {
...
@@ -235,7 +240,6 @@ export default {
query
.
edit
=
true
query
.
edit
=
true
query
.
$title
=
encodeURI
(
'编辑商品'
)
query
.
$title
=
encodeURI
(
'编辑商品'
)
}
}
console
.
log
(
query
.
edit
,
'edit'
)
this
.
$router
.
push
({
path
:
'/goods/addGoods'
,
query
})
this
.
$router
.
push
({
path
:
'/goods/addGoods'
,
query
})
},
},
copy
({
id
})
{
copy
({
id
})
{
...
@@ -277,12 +281,14 @@ export default {
...
@@ -277,12 +281,14 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
flag
=
false
this
.
flag
=
false
this
.
searchForm
=
{}
this
.
searchForm
=
{}
this
.
$nextTick
(()
=>
{
this
.
handleSearch
()
this
.
flag
=
true
})
},
},
handleSearch
()
{
handleSearch
()
{
this
.
flag
=
false
this
.
$refs
.
table
.
refreshTable
()
this
.
$refs
.
table
.
refreshTable
()
this
.
$nextTick
(()
=>
{
this
.
flag
=
true
})
},
},
// ['待上架', '上架', '下架'] //
// ['待上架', '上架', '下架'] //
batchOperation
(
status
)
{
batchOperation
(
status
)
{
...
@@ -313,8 +319,7 @@ export default {
...
@@ -313,8 +319,7 @@ export default {
this
.
$confirm
(
content
[
status
],
'提示'
,
{
this
.
$confirm
(
content
[
status
],
'提示'
,
{
confirmButtonText
:
'是'
,
confirmButtonText
:
'是'
,
cancelButtonText
:
'否'
,
cancelButtonText
:
'否'
,
type
:
'warning'
,
type
:
'warning'
center
:
true
})
})
.
then
(()
=>
{
.
then
(()
=>
{
let
target
=
'deleteGoods'
let
target
=
'deleteGoods'
...
@@ -348,18 +353,18 @@ export default {
...
@@ -348,18 +353,18 @@ export default {
padding
:
8px
16px
;
padding
:
8px
16px
;
//
margin-bottom
:
20px
;
//
margin-bottom
:
20px
;
}
}
.con-wrap
{
.con-wrap
{
height
:
191px
;
height
:
191px
;
.link{
.link
{
width
:
536px
;
width
:
536px
;
height
:
62px
;
height
:
62px
;
background
:
#
F9F9F
9
;
background
:
#
f9f9f
9
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#666666
;
color
:
#666666
;
}
}
}
}
.flex_cc
{
.flex_cc
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
...
vue.config.js
View file @
8d2bf19
...
@@ -5,7 +5,7 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
...
@@ -5,7 +5,7 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
// const baseUrl = process.env.VUE_APP_BASE_URL;
// const baseUrl = process.env.VUE_APP_BASE_URL;
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
module
.
exports
=
{
module
.
exports
=
{
outputDir
:
`
dist
`
,
outputDir
:
`
../dist/
${
packageName
}
`
,
publicPath
,
publicPath
,
assetsDir
:
'static'
,
assetsDir
:
'static'
,
// np:'/newsso-equity/',
// np:'/newsso-equity/',
...
...
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