Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-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 9a16701d
authored
Mar 31, 2021
by
limin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
48495d8a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
118 additions
and
104 deletions
package-lock.json
package.json
src/api/request.js
src/api/test.js
src/base.js
src/components/d2-table/index.vue
src/styles/index.scss → src/styles/index.css
src/views/customer/collectionManagement/index.vue
src/views/customer/newEquityCard/index.vue
src/views/customer/rightsCardManagement/index.vue
title.js
vue.config.js
package-lock.json
View file @
9a16701
This diff is collapsed.
Click to expand it.
package.json
View file @
9a16701
{
"name"
:
"equity"
,
"version"
:
"1.0.0"
,
"description"
:
"A Vue.js project"
,
"author"
:
"zhouzy <962305455@qq.com>"
,
"name"
:
"glsx-oss-equity"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
...
...
@@ -12,10 +10,11 @@
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"element-ui"
:
"^2.15.1"
,
"glsx-vue-common"
:
"^1.2.1"
,
"node-sass"
:
"^4.9.3"
,
"sass-loader"
:
"^7.1.0"
,
"vue"
:
"^2.5.17"
"glsx-vue-common"
:
"^1.1.14"
,
"glsx-vue-components"
:
"^1.0.13"
,
"vee-validate"
:
"^2.1.7"
,
"vue"
:
"^2.5.17"
,
"vue-clipboard2"
:
"^0.2.1"
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^3.0.1"
,
...
...
src/api/request.js
View file @
9a16701
...
...
@@ -5,7 +5,6 @@
* @Last Modified time: 2020-12-22 11:54:03
*/
// import sign from './sign'
import
RequestMethods
from
'./request.methods'
// import util from '@/libs/util.js'
...
...
src/api/test.js
View file @
9a16701
...
...
@@ -2,12 +2,8 @@ import {
GlAxios
}
from
'glsx-vue-common'
const
path
=
'memberInfo'
// function getdetailsMemberInfo(params) {
// return GlAxios.get(`${path}/detailsMemberInfo`, { params })
// }
...
...
@@ -24,12 +20,12 @@ function listMemberCardDefine(params) {
return
GlAxios
.
post
(
`
${
path
}
/listMemberCardDefine`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
}
function
getlistByCardName
(
params
)
{
return
GlAxios
.
get
(
`
${
path
}
/listByCardName`
,
{
params
})
return
GlAxios
.
get
(
`
${
path
}
/listByCardName`
,
{
params
})
}
// function exportMemberCard(params) {
// return GlAxios.get(`${path}/exportMemberCard`, params, { headers: { 'Content-Type': 'application/json; charset=utf-8' }, requestType: 'jsonString' })
// }
//查询权益卡详情
//
查询权益卡详情
// export function memberCardDetails(data) {
// data.method = 'memberInfo/detailsMemberInfo'
// return request(data)
...
...
@@ -47,7 +43,7 @@ function getMemberCardDetail(params) {
return
GlAxios
.
get
(
`
${
path
}
/getMemberCardDetail`
,
params
,
{
headers
:
{
'Content-Type'
:
'application/json; charset=utf-8'
},
requestType
:
'jsonString'
})
}
export
{
// getdetailsMemberInfo,
// getlistMemberInfo,
generateMemberBatch
,
...
...
src/base.js
View file @
9a16701
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-03-31 00:05:24
* @LastEditors: limin
* @LastEditTime: 2021-03-31 00:38:50
*/
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import
Vue
from
'vue'
import
ElementUI
from
'element-ui'
import
'element-ui/lib/theme-chalk/index.css'
// import GlsxVueComponents from 'glsx-vue-components'
// import 'glsx-vue-components/dist/glsx-vue-components.css'
import
{
Request
as
request
}
from
'glsx-vue-common'
// import '@/styles/index.scss'
// 组件
import
'@/components'
import
GlsxVueComponents
from
'glsx-vue-components'
import
'glsx-vue-components/dist/glsx-vue-components.css'
import
'./styles/index.css'
// import zh_CN from 'vee-validate/dist/locale/zh_CN'
// const {
// Validator
// } = VeeValidate
// import VueI18n from 'vue-i18n'
// Vue.use(VueI18n)
// const i18n = new VueI18n({
// locale: 'zh_CN'
// })
// import axios from 'axios'
Vue
.
use
(
ElementUI
)
// var mixin = {
// mounted() {
// const _this = this
// const theme = new this.$Theme()
// const connection = this.$Penpal.connectToParent({
// methods: {
// setTheme(color) {
// theme.change(color)
// },
// height() {
// return document.height || document.body.offsetHeight // document.documentElement.clientHeight || document.body.clientHeight //
// }
// }
// })
// connection.promise.then(parent => {
// const cfg = _this.$get_session_config()
// if (cfg) return
// parent.getResources().then(config => {
// _this.$set_session_config(config)
// })
// })
// }
// }
const
URL
=
' https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/oss_rightsAndInterests'
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
request
({
url
}).
then
(
res
=>
{
if
(
res
.
status
===
'success'
)
{
resolve
({
'vue'
:
Vue
,
'config'
:
JSON
.
parse
(
res
.
data
)
})
}
else
{
reject
(
'ERROR.'
)
Vue
.
use
(
GlsxVueComponents
)
var
mixin
=
{
mounted
()
{
const
_this
=
this
const
theme
=
new
this
.
$Theme
()
const
connection
=
this
.
$Penpal
.
connectToParent
({
methods
:
{
setTheme
(
color
)
{
theme
.
change
(
color
)
},
height
()
{
return
document
.
height
||
document
.
body
.
offsetHeight
// document.documentElement.clientHeight || document.body.clientHeight //
}
}
})
connection
.
promise
.
then
(
parent
=>
{
const
cfg
=
_this
.
$get_session_config
()
if
(
cfg
)
return
parent
.
getResources
().
then
(
config
=>
{
_this
.
$set_session_config
(
config
)
})
})
}
}
const
URL
=
'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const
getConfig
=
(
url
=
URL
+
'/oss_rightsAndInterests'
)
=>
{
return
new
Promise
(
resolve
=>
{
const
xhr
=
new
XMLHttpRequest
()
xhr
.
onreadystatechange
=
()
=>
{
if
(
xhr
.
readyState
===
4
&&
xhr
.
status
===
200
)
{
resolve
({
'vue'
:
Vue
,
'config'
:
JSON
.
parse
(
xhr
.
responseText
)
})
}
}
xhr
.
open
(
'GET'
,
url
)
xhr
.
send
()
})
}
/* eslint-disable no-new */
const
render
=
App
=>
{
new
Vue
({
el
:
'#app'
,
//
mixins: [mixin],
mixins
:
[
mixin
],
render
:
h
=>
h
(
App
)
})
}
export
default
{
render
,
getConfig
}
export
default
{
render
,
getConfig
}
src/components/d2-table/index.vue
View file @
9a16701
...
...
@@ -114,7 +114,7 @@ export default {
page
:
{
pageSize
:
10
,
// pageNum: 1
currentPage
:
1
currentPage
:
1
},
total
:
10
,
// 排序
...
...
src/styles/index.
s
css
→
src/styles/index.css
View file @
9a16701
File moved
src/views/customer/collectionManagement/index.vue
View file @
9a16701
This diff is collapsed.
Click to expand it.
src/views/customer/newEquityCard/index.vue
View file @
9a16701
...
...
@@ -142,7 +142,7 @@
</
template
>
<
script
>
import
{
insertMemberCardDefineRf
}
from
"@/api/test"
;
import
{
insertMemberCardDefineRf
}
from
'@/api/test'
export
default
{
data
()
{
return
{
...
...
@@ -153,22 +153,22 @@ export default {
// validitVaule:""
// },
ruleForm
:
{
name
:
""
,
explain
:
""
,
name
:
''
,
explain
:
''
,
validity
:
1
,
date1
:
""
,
date2
:
""
,
date1
:
''
,
date2
:
''
,
delivery
:
false
,
type
:
[],
resource
:
""
,
resource
:
''
,
currencyCheckbox
:
false
,
currencyInpution
:
""
,
currencyInpution
:
''
,
oilCheckbox
:
false
,
oilInpution
:
""
,
timeInpution
:
""
,
oilInpution
:
''
,
timeInpution
:
''
,
worryFreeCheckbox
:
false
,
pushCollision
:
false
,
rebateRatio
:
""
,
rebateRatio
:
''
,
specialOfferCheckbox
:
false
,
exchangeStandard
:
false
,
rescueCheckbox
:
false
,
...
...
@@ -176,37 +176,37 @@ export default {
rescueWorryFree
:
null
,
creditInstallment
:
null
,
meiTuan
:
null
,
meituanCheckbox
:
false
,
meituanCheckbox
:
false
},
rules
:
{
name
:
[
{
required
:
true
,
message
:
"请输入权益卡名字"
,
trigger
:
"blur"
},
{
min
:
3
,
max
:
5
,
message
:
"长度在 3 到 5 个字符"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'请输入权益卡名字'
,
trigger
:
'blur'
},
{
min
:
3
,
max
:
5
,
message
:
'长度在 3 到 5 个字符'
,
trigger
:
'blur'
}
],
explain
:
[{
required
:
true
,
message
:
"请填写说明"
,
trigger
:
"blur"
}],
validity
:
[{
required
:
true
,
message
:
"请选择有效期"
,
trigger
:
"blur"
}],
explain
:
[{
required
:
true
,
message
:
'请填写说明'
,
trigger
:
'blur'
}],
validity
:
[{
required
:
true
,
message
:
'请选择有效期'
,
trigger
:
'blur'
}],
currencyInpution
:
[
{
required
:
true
,
message
:
"请填写返回的嘀币数"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
'请填写返回的嘀币数'
,
trigger
:
'blur'
}
],
oilInpution
:
[{
required
:
true
,
message
:
"请填写推荐半径"
,
trigger
:
"blur"
}],
timeInpution
:
[{
required
:
true
,
message
:
"请填写最大天数"
,
trigger
:
"blur"
}],
rebateRatio
:
[{
required
:
true
,
message
:
"请填写返利比例"
,
trigger
:
"blur"
}],
}
,
}
;
oilInpution
:
[{
required
:
true
,
message
:
'请填写推荐半径'
,
trigger
:
'blur'
}],
timeInpution
:
[{
required
:
true
,
message
:
'请填写最大天数'
,
trigger
:
'blur'
}],
rebateRatio
:
[{
required
:
true
,
message
:
'请填写返利比例'
,
trigger
:
'blur'
}]
}
}
},
methods
:
{
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
"submit!"
);
alert
(
'submit!'
)
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
console
.
log
(
'error submit!!'
)
return
false
}
})
;
})
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
()
;
this
.
$refs
[
formName
].
resetFields
()
},
jump
()
{
var
equityItemJson
=
{
...
...
src/views/customer/rightsCardManagement/index.vue
View file @
9a16701
...
...
@@ -33,7 +33,7 @@
// import { getListApi } from '@/api/test'
// import {memberCardDetails} from "@/api/test";
import
{
listMemberCardDefine
}
from
"@/api/test"
;
import
{
listMemberCardDefine
}
from
'@/api/test'
// import selectbotton from '@/components/selectbotton'
export
default
{
...
...
@@ -43,7 +43,7 @@ export default {
data
()
{
return
{
getListApi
:
listMemberCardDefine
,
// getListApi: none,
searchForm
:
null
,
tableParams
:
{
...
...
@@ -53,7 +53,7 @@ export default {
tableColumns
:
[
{
label
:
'权益卡名称'
,
prop
:
'memberName'
,
prop
:
'memberName'
// minWidth: '200'
},
{
...
...
@@ -66,18 +66,18 @@ export default {
},
{
label
:
'领卡人数'
,
prop
:
'activationCount'
,
prop
:
'activationCount'
// width: 110,
// tagLabel: true
},
{
label
:
'创建时间'
,
prop
:
'createdDateStr'
,
prop
:
'createdDateStr'
// minWidth: '200'
},
{
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
// formatter: (cellValue) => {
// return {
// 0: '进行中',
...
...
@@ -93,19 +93,19 @@ export default {
label
:
'备注'
,
prop
:
'remarks'
,
minWidth
:
'200'
}
,
}
]
}
,
}
}
},
mounted
()
{
},
methods
:
{
addCard
()
{
window
.
location
.
href
=
'http://localhost:8080/customer/newEquityCard.html'
}
,
}
// handleEdit() {
...
...
title.js
View file @
9a16701
module
.
exports
=
{
index
:
'主页'
,
'customer/glsx'
:
'广联赛讯'
'customer/voice'
:
'语音活动管理'
,
'customer/brand'
:
'品牌表情管理'
}
vue.config.js
View file @
9a16701
...
...
@@ -20,14 +20,17 @@ module.exports = {
// config.mode = mode
},
devServer
:
{
port
:
808
0
,
host
:
'
192.168.1.169
'
,
open
:
true
,
port
:
808
5
,
host
:
'
0.0.0.0
'
,
// open: process.platform === '192.168.0.21'
,
proxy
:
{
'/api'
:
{
target
:
'http://1
27.0.0.
1:8080'
,
target
:
'http://1
92.168.0.2
1:8080'
,
changeOrigin
:
true
,
pathRewrite
:
{
'^/api'
:
''
}
pathRewrite
:
{
'^/api'
:
''
},
ws
:
false
}
}
}
...
...
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