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 671b4fdb
authored
Feb 18, 2022
by
周子尧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
tijiao
1 parent
aeb2b649
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
7 deletions
package-lock.json
package.json
src/config/env.development.js
src/config/index.js
src/views/giftBag/receivedGiftList.vue
package-lock.json
View file @
671b4fd
This diff is collapsed.
Click to expand it.
package.json
View file @
671b4fd
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
"eslint"
:
"^5.16.0"
,
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"node-sass"
:
"^4.1
4.1
"
,
"node-sass"
:
"^4.1
2.0
"
,
"prettier"
:
"^1.19.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
"sass-loader"
:
"^8.0.0"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
"vue-cli-plugin-element"
:
"^1.0.1"
,
...
...
src/config/env.development.js
View file @
671b4fd
...
@@ -19,7 +19,7 @@ module.exports = {
...
@@ -19,7 +19,7 @@ module.exports = {
},
},
request
:
{
request
:
{
// baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL
:
'scrm.dev.glsx.com.cn/'
,
baseURL
:
'
http://
scrm.dev.glsx.com.cn/'
,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/config/index.js
View file @
671b4fd
...
@@ -13,11 +13,11 @@ import { Http } from 'glsx-common'
...
@@ -13,11 +13,11 @@ 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/giftBag/receivedGiftList.vue
View file @
671b4fd
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div
slot=
"giftInfo"
slot-scope=
"scope"
>
<div>
礼包明细
</div>
<div>
礼包明细
</div>
<div>
{{
scope
.
scope
}}
</div>
<div>
{{
scope
.
scope
}}
</div>
<GLTable
ref=
"giftListRef"
:getListApi=
"getGiftListApi"
:hasNum=
"false"
:noDataImg=
"url"
:searchForm=
"giftSearchForm"
:tableParams=
"giftParams"
:pageConf=
"giftPageConf"
></GLTable>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
...
@@ -92,6 +93,41 @@ export default {
...
@@ -92,6 +93,41 @@ export default {
}
}
]
]
},
},
//礼包表格
getGiftListApi
:
this
.
$apis
.
orderComment
.
getListApi
,
giftParams
:
{
listName
:
'list'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'礼包明细'
,
prop
:
'couponName'
},
{
label
:
'礼包数量'
,
name
:
'discountType'
,
width
:
'100px'
,
formatter
:
cellValue
=>
{
return
'X'
+
cellValue
.
numBer
}
},
{
label
:
'已核销'
,
prop
:
'anticipatedCost '
,
formatter
:
cellValue
=>
{
return
'X'
+
cellValue
.
numBer
}
},
{
label
:
'可使用'
,
prop
:
'getAmount'
,
formatter
:
cellValue
=>
{
return
'X'
+
cellValue
.
numBer
}
}
]
},
giftPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 表格
// 表格
getListApi
:
this
.
$apis
.
orderComment
.
getListApi
,
getListApi
:
this
.
$apis
.
orderComment
.
getListApi
,
tableParams
:
{
tableParams
:
{
...
...
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