Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 2722a221
authored
Jan 12, 2022
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商品-评价
1 parent
f2507b68
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
src/config/index.js
src/views/productGroup/editProduct.vue
src/views/productStore/editProductDh.vue
src/config/index.js
View file @
2722a22
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
let
cfg
=
require
(
'./conf.js'
)
let
cfg
=
require
(
'./conf.js'
)
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
// console.log(1111111)
// console.log(1111111)
if
(
isEnv
)
{
//
if (isEnv) {
let
{
request
}
=
cfg
//
let { request } = cfg
Object
.
assign
(
request
,
{
timeout
})
//
Object.assign(request, { timeout })
return
Promise
.
resolve
(
cfg
)
//
return Promise.resolve(cfg)
}
//
}
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
...
...
src/views/productGroup/editProduct.vue
View file @
2722a22
<!-- 编辑商品 -->
<!-- 编辑商品 -->
<
template
>
<
template
>
<div
class=
"edit-pro marketing p-t-20 edit-box"
>
<div
class=
"edit-pro marketing p-t-20 edit-box"
>
<el-tabs
v-if=
"routeInfo.addOrEdit
== '3
'"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tabs
v-if=
"routeInfo.addOrEdit
!= '1
'"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
label=
"基本信息"
name=
"basicInfo"
></el-tab-pane>
<el-tab-pane
label=
"基本信息"
name=
"basicInfo"
></el-tab-pane>
<el-tab-pane
label=
"评价信息"
name=
"afterOrder"
></el-tab-pane>
<el-tab-pane
label=
"评价信息"
name=
"afterOrder"
></el-tab-pane>
</el-tabs>
</el-tabs>
<div
v-show=
"(routeInfo.addOrEdit
!= '3') || (routeInfo.addOrEdit == '3'
&& activeName == 'basicInfo')"
class=
"container edit-container"
>
<div
v-show=
"(routeInfo.addOrEdit
== '1') || (['2', '3'].includes(routeInfo.addOrEdit + '')
&& activeName == 'basicInfo')"
class=
"container edit-container"
>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"home-set-form flex-grow"
>
<div
class=
"home-set-form flex-grow"
>
<div
v-for=
"(item, index) in externalFormList"
:key=
"index"
>
<div
v-for=
"(item, index) in externalFormList"
:key=
"index"
>
...
@@ -321,9 +321,9 @@
...
@@ -321,9 +321,9 @@
</div>
</div>
</div>
</div>
</div>
</div>
<comment-detail
v-show=
"
routeInfo.addOrEdit == '3'
&& activeName == 'afterOrder'"
:goodsId=
"routeInfo.id"
></comment-detail>
<comment-detail
v-show=
"
['2', '3'].includes(routeInfo.addOrEdit + '')
&& activeName == 'afterOrder'"
:goodsId=
"routeInfo.id"
></comment-detail>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
v-if=
"
routeInfo.addOrEdit != '3'
"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
v-if=
"
(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')
"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
<el-dialog
:visible
.
sync=
"isImgVisible"
>
<el-dialog
:visible
.
sync=
"isImgVisible"
>
...
...
src/views/productStore/editProductDh.vue
View file @
2722a22
<!-- 商品编辑 - 带货 -->
<!-- 商品编辑 - 带货 -->
<
template
>
<
template
>
<div
class=
"edit-product-dh marketing p-t-20 edit-box"
>
<div
class=
"edit-product-dh marketing p-t-20 edit-box"
>
<el-tabs
v-if=
"routeInfo.addOrEdit
== '3
'"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tabs
v-if=
"routeInfo.addOrEdit
!= '1
'"
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
label=
"基本信息"
name=
"basicInfo"
></el-tab-pane>
<el-tab-pane
label=
"基本信息"
name=
"basicInfo"
></el-tab-pane>
<el-tab-pane
label=
"评价信息"
name=
"afterOrder"
></el-tab-pane>
<el-tab-pane
label=
"评价信息"
name=
"afterOrder"
></el-tab-pane>
</el-tabs>
</el-tabs>
<div
v-show=
"(routeInfo.addOrEdit
!= '3') || (routeInfo.addOrEdit == '3'
&& activeName == 'basicInfo')"
class=
"container edit-container"
>
<div
v-show=
"(routeInfo.addOrEdit
== '1') || (['2', '3'].includes(routeInfo.addOrEdit + '')
&& activeName == 'basicInfo')"
class=
"container edit-container"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
class=
"flex"
style=
"margin-top: 20px;"
>
<div
class=
"main-img-box"
>
<div
class=
"main-img-box"
>
...
@@ -79,9 +79,9 @@
...
@@ -79,9 +79,9 @@
<img
style=
"width: 375px; width: 375px;"
v-show=
"item.resType == 1"
:src=
"item.content"
/>
<img
style=
"width: 375px; width: 375px;"
v-show=
"item.resType == 1"
:src=
"item.content"
/>
</div>
</div>
</div>
</div>
<comment-detail
v-show=
"
routeInfo.addOrEdit == '3'
&& activeName == 'afterOrder'"
:goodsId=
"routeInfo.id"
></comment-detail>
<comment-detail
v-show=
"
['2', '3'].includes(routeInfo.addOrEdit + '')
&& activeName == 'afterOrder'"
:goodsId=
"routeInfo.id"
></comment-detail>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button
v-if=
"
routeInfo.addOrEdit != '3'
"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
v-if=
"
(routeInfo.addOrEdit == '1') || (routeInfo.addOrEdit == '2' && activeName == 'basicInfo')
"
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
</div>
</div>
...
...
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