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){
const
GL_PRODUCT
=
url
.
indexOf
(
'scrm.glsx.com'
)
>-
1
const
GH_PRODUCT
=
url
.
indexOf
(
'scrm.cgacar'
)
>-
1
const
DEV
=
url
.
indexOf
(
'scrm.dev.glsx'
)
>-
1
const
BETA
=
url
.
indexOf
(
'scrm.beta.glsx'
)
>-
1
if
(
TEST
){
val
.
environment
=
'test'
}
else
if
(
GL_PRODUCT
){
...
...
@@ -67,6 +68,9 @@ function juedeDomain(url){
}
else
if
(
DEV
){
val
.
environment
=
'dev'
val
.
envVersion
=
'develop'
}
else
if
(
BETA
){
val
.
environment
=
'beta'
val
.
channel
=
1
}
Vue
.
prototype
.
$custom_env
=
val
let
baseURL
=
url
.
match
(
/
(\S
*
)\/
rop/
)[
1
];
...
...
src/views/goods/index.vue
View file @
8d2bf19
...
...
@@ -49,7 +49,7 @@
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(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>
</GLTable>
</div>
...
...
@@ -131,7 +131,7 @@ export default {
},
{
label
:
'会员价(元)'
,
width
:
150
,
width
:
150
,
prop
:
'salesPrice'
},
{
...
...
@@ -139,7 +139,7 @@ export default {
sortable
:
true
,
label
:
'销量'
,
width
:
110
,
width
:
110
// renderHeader: h => {
// return h('div', { class: 'table-header' }, [
// h('span', '销量'),
...
...
@@ -151,7 +151,7 @@ export default {
},
{
label
:
'库存'
,
width
:
150
,
width
:
150
,
sortable
:
true
,
formatter
:
cell
=>
{
return
cell
.
stock
==
-
1
?
'无限制'
:
cell
.
stock
...
...
@@ -159,7 +159,7 @@ export default {
},
{
label
:
'商品状态'
,
width
:
110
,
width
:
110
,
formatter
:
cell
=>
{
return
[
'待上架'
,
'上架'
,
'下架'
][
cell
.
status
]
}
...
...
@@ -179,8 +179,8 @@ export default {
handleClose
()
{
this
.
isVisible
=
!
this
.
isVisible
},
copyLink
(){
if
(
!
this
.
shortLink
)
return
copyLink
()
{
if
(
!
this
.
shortLink
)
return
cloneText
(
this
.
shortLink
)
this
.
$message
.
success
(
'复制成功'
)
this
.
handleClose
()
...
...
@@ -192,18 +192,24 @@ export default {
if
(
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_OPTIONS
=
{
supplier
:
row
.
supplier
,
brandName
:
row
.
brandName
,
id
:
row
.
id
brandName
:
row
.
brandName
}
if
(
row
.
appearance
==
2
)
{
MINI_OPTIONS
.
icon
=
row
.
icon
}
if
(
row
.
appearance
==
1
)
{
MINI_OPTIONS
.
id
=
row
.
id
}
const
ENV
=
this
.
$custom_env
let
query
=
`param=
${
encodeURIComponent
(
JSON
.
stringify
(
MINI_OPTIONS
))}
&
${
base_info
}
`
let
para
=
{
path
:
MINI_PATH
,
path
:
row
.
appearance
==
2
?
CHARGE_PATH
:
MINI_PATH
,
query
,
appId
:
ENV
.
channel
==
2
?
'wxfe82b8d65d07808f'
:
'wxe10067a63c1856ac'
,
appId
:
ENV
.
environment
==
'beta'
?
'wx9f91c1ec493eb425'
:
ENV
.
channel
==
2
?
'wxfe82b8d65d07808f'
:
'wxe10067a63c1856ac'
,
envVersion
:
ENV
.
envVersion
}
this
.
$apis
.
orderApi
.
createShortLink
(
para
).
then
(
res
=>
{
...
...
@@ -224,7 +230,6 @@ export default {
// if (window.$config.axios.environment) {
// target = ['权益卡管理平台', '运营平台', 'SCRM权益平台', '商品管理', '*商品详情']
// }
console
.
log
(
copy
,
'copy'
)
let
query
=
{}
if
(
id
)
query
.
id
=
id
if
(
status
==
0
)
{
...
...
@@ -235,7 +240,6 @@ export default {
query
.
edit
=
true
query
.
$title
=
encodeURI
(
'编辑商品'
)
}
console
.
log
(
query
.
edit
,
'edit'
)
this
.
$router
.
push
({
path
:
'/goods/addGoods'
,
query
})
},
copy
({
id
})
{
...
...
@@ -277,12 +281,14 @@ export default {
handleReset
()
{
this
.
flag
=
false
this
.
searchForm
=
{}
this
.
$nextTick
(()
=>
{
this
.
flag
=
true
})
this
.
handleSearch
()
},
handleSearch
()
{
this
.
flag
=
false
this
.
$refs
.
table
.
refreshTable
()
this
.
$nextTick
(()
=>
{
this
.
flag
=
true
})
},
// ['待上架', '上架', '下架'] //
batchOperation
(
status
)
{
...
...
@@ -313,8 +319,7 @@ export default {
this
.
$confirm
(
content
[
status
],
'提示'
,
{
confirmButtonText
:
'是'
,
cancelButtonText
:
'否'
,
type
:
'warning'
,
center
:
true
type
:
'warning'
})
.
then
(()
=>
{
let
target
=
'deleteGoods'
...
...
@@ -348,18 +353,18 @@ export default {
padding
:
8px
16px
;
//
margin-bottom
:
20px
;
}
.con-wrap
{
.con-wrap
{
height
:
191px
;
.link{
.link
{
width
:
536px
;
height
:
62px
;
background
:
#
F9F9F
9
;
background
:
#
f9f9f
9
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
}
}
.flex_cc
{
.flex_cc
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
vue.config.js
View file @
8d2bf19
...
...
@@ -5,7 +5,7 @@ const publicPath = node_env ? `/child/${packageName}/` : '/'
// const baseUrl = process.env.VUE_APP_BASE_URL;
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
module
.
exports
=
{
outputDir
:
`
dist
`
,
outputDir
:
`
../dist/
${
packageName
}
`
,
publicPath
,
assetsDir
:
'static'
,
// 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