Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xulili
ybf
Commits
9b0dbe03
Commit
9b0dbe03
authored
Apr 08, 2020
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
c51bb914
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
96 additions
and
17 deletions
+96
-17
public.scss
wx_application/src/assets/style/public.scss
+6
-0
main.js
wx_application/src/main.js
+1
-1
index.js
wx_application/src/router/index.js
+5
-0
changeCounter.vue
wx_application/src/views/counter/changeCounter.vue
+7
-1
counterEdit.vue
wx_application/src/views/counter/counterEdit.vue
+1
-1
counterInfo.vue
wx_application/src/views/counter/counterInfo.vue
+2
-6
noSet.vue
wx_application/src/views/counter/noSet.vue
+53
-0
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+17
-4
addStore.vue
ybf_admin/src/pages/in/contact/components/addStore.vue
+4
-4
No files found.
wx_application/src/assets/style/public.scss
View file @
9b0dbe03
...
...
@@ -71,4 +71,10 @@ input:focus{ outline: none;}
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
}
.contain
{
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
}
\ No newline at end of file
wx_application/src/main.js
View file @
9b0dbe03
...
...
@@ -9,7 +9,7 @@ import { Toast } from 'vant';
import
'vant/lib/index.css'
;
import
vConsole
from
'vconsole'
// import VeeValidate, { Validator } from 'vee-validate'
import
cn
from
'vee-validate/dist/locale/zh_CN'
;
//
import cn from 'vee-validate/dist/locale/zh_CN';
// Validator.addLocale(cn)
// Vue.use(VeeValidate, {
...
...
wx_application/src/router/index.js
View file @
9b0dbe03
...
...
@@ -161,6 +161,11 @@ const routes = [
path
:
'/qrCode'
,
name
:
'qrCode'
,
component
:
()
=>
import
(
'@/views/qrCode/index'
)
},
{
path
:
'/noSet'
,
name
:
'noSet'
,
component
:
()
=>
import
(
'@/views/counter/noSet'
)
},
...
mineRoute
// {
...
...
wx_application/src/views/counter/changeCounter.vue
View file @
9b0dbe03
...
...
@@ -42,11 +42,17 @@ export default {
getStoreList
(
params
).
then
(
res
=>
{
console
.
log
(
res
.
data
);
this
.
list
=
res
.
data
})
},
handleStoreChange
(
val
)
{
sessionStorage
.
setItem
(
'oyStallCode'
,
val
)
sessionStorage
.
setItem
(
'oyStallCode'
,
val
)
let
obj
=
this
.
list
.
find
(
function
(
obj
)
{
return
obj
.
oyStallCode
==
val
;
//取出this.studentL里的id为1的那条数据所有的信息
})
console
.
log
(
obj
,
'obj'
)
sessionStorage
.
setItem
(
"barFrom"
,
obj
.
name
)
}
}
};
...
...
wx_application/src/views/counter/counterEdit.vue
View file @
9b0dbe03
...
...
@@ -170,7 +170,7 @@ export default {
beforeRead
(
file
)
{
//上传之前校验
if
(
file
.
type
!==
"image/jpeg"
&&
file
.
type
!==
"image/png"
)
{
Toast
(
"只允许上传jpg/png格式的图片!"
);
this
.
$toast
(
"只允许上传jpg/png格式的图片!"
)
return
false
;
}
return
true
;
...
...
wx_application/src/views/counter/counterInfo.vue
View file @
9b0dbe03
...
...
@@ -69,15 +69,11 @@ export default {
this
.
$router
.
push
(
"counterEdit"
)
},
getChargeCode
()
{
if
(
this
.
info
==
1
)
{
this
.
$router
.
push
(
'pushStoreInfo'
)
}
else
{
this
.
$router
.
push
(
"chargeCode"
)
}
this
.
$router
.
push
(
"chargeCode"
)
},
handleCounterHome
()
{
if
(
this
.
info
==
1
)
{
this
.
$router
.
push
(
'
pushStoreInfo
'
)
this
.
$router
.
push
(
'
noSet
'
)
}
else
{
this
.
$router
.
push
(
"counterHome"
)
}
...
...
wx_application/src/views/counter/noSet.vue
0 → 100644
View file @
9b0dbe03
<
template
>
<div
class=
"contain"
>
<div>
<div
style=
"text-align:center;margin-top: 50%;"
>
<div
class=
"circle"
></div>
</div>
<h6>
专柜未配置
</h6>
<p>
当前专柜未配置任何信息,请尽快完成配置
</p>
<van-button
class=
"back"
plain
type=
"info"
size=
"large"
@
click=
"handleBack"
>
返回
</van-button>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
}
},
methods
:
{
handleBack
()
{
this
.
$router
.
push
(
'counterInfo'
)
}
}
}
</
script
>
<
style
scoped
>
.circle
{
display
:
inline-block
;
width
:
100px
;
height
:
100px
;
border-radius
:
100%
;
background-color
:
#7b7b7b
;
}
.contain
{
justify-content
:
center
;
height
:
100%
;
text-align
:
center
;
}
h6
{
margin-top
:
30px
;
}
p
{
font-size
:
16px
;
margin-top
:
10px
;
}
.back
{
width
:
70%
;
margin-top
:
30px
;
}
</
style
>
wx_application/src/views/mainSale/active/main/index.vue
View file @
9b0dbe03
...
...
@@ -208,8 +208,20 @@ export default {
}
},
created
()
{
if
(
sessionStorage
.
getItem
(
'personalFan'
))
{
console
.
log
(
sessionStorage
.
getItem
(
'personalFan'
),
'已有个人粉丝数'
);
this
.
test
.
barInfo
.
personalFans
=
sessionStorage
.
getItem
(
'personalFan'
)
}
if
(
sessionStorage
.
getItem
(
'barFrom'
))
{
this
.
test
.
manInfo
.
barFrom
=
sessionStorage
.
getItem
(
'barFrom'
)
console
.
log
(
sessionStorage
.
getItem
(
'barFrom'
),
'已有昵称'
)
}
if
(
sessionStorage
.
getItem
(
'barName'
))
{
this
.
test
.
manInfo
.
barFrom
=
sessionStorage
.
getItem
(
'barName'
)
console
.
log
(
sessionStorage
.
getItem
(
'barName'
),
'已有专柜名称'
)
}
this
.
checkNowMenuBar
()
this
.
zReadyUserId
()
//
this.zReadyUserId()
this
.
zTestGetNowUrlInfo
()
// this.oyStallCode = sessionStorage.getItem('oyStallCode')
// this.userId = sessionStorage.getItem('userId')
...
...
@@ -231,6 +243,7 @@ export default {
})
.
then
(
res
=>
{
this
.
test
.
manInfo
.
barFrom
=
res
.
data
.
data
.
name
sessionStorage
.
setItem
(
"barFrom"
,
res
.
data
.
data
.
name
)
this
.
test
.
manInfo
.
logoUrl
=
res
.
data
.
data
.
avatar
sessionStorage
.
setItem
(
"avatar"
,
res
.
data
.
data
.
avatar
)
})
...
...
@@ -251,6 +264,7 @@ export default {
})
.
then
(
res
=>
{
this
.
test
.
barInfo
.
personalFans
=
res
.
data
.
data
.
length
sessionStorage
.
setItem
(
"personalFan"
,
res
.
data
.
data
.
length
)
})
.
catch
(
err
=>
{
console
.
log
(
err
);
...
...
@@ -264,15 +278,14 @@ export default {
getStoreDetail
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
stallInfo
!=
null
)
{
this
.
test
.
manInfo
.
barName
=
res
.
data
.
stallInfo
.
name
sessionStorage
.
setItem
(
"barName"
,
res
.
data
.
stallInfo
.
name
)
}
})
},
checkNowMenuBar
()
{
let
inData
=
"1"
;
this
.
test
.
menuBarInfo
.
icon
.
now
=
this
.
test
.
menuBarInfo
.
icon
.
ua
;
this
.
test
.
menuBarInfo
.
icon
.
now
[
inData
]
=
this
.
test
.
menuBarInfo
.
icon
.
ac
[
inData
];
this
.
test
.
menuBarInfo
.
icon
.
now
[
inData
]
=
this
.
test
.
menuBarInfo
.
icon
.
ac
[
inData
];
},
manInfoClick
()
{
this
.
$router
.
push
(
"counterInfo"
);
...
...
ybf_admin/src/pages/in/contact/components/addStore.vue
View file @
9b0dbe03
...
...
@@ -106,17 +106,17 @@
</
template
>
<
script
>
import
{
ApiStoreAddStore
}
from
"@api/in/store"
;
import
{
ApiStoreAddStore
}
from
"@api/in/store"
const
zlog
=
console
.
log
.
bind
(
console
)
;
const
zlog
=
console
.
log
.
bind
(
console
)
export
default
{
data
()
{
// 中英文验证规则
const
nameValidate
=
(
rule
,
value
,
callback
)
=>
{
let
reg
=
/^
[
a-zA-Z
\u
4e00-
\u
9fa5
]
+$/
;
let
reg
=
/^
[
a-zA-Z
\u
4e00-
\u
9fa5
]
+$/
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
"含有非法字符(只能输入字母、汉字)!"
))
;
callback
(
new
Error
(
"含有非法字符(只能输入字母、汉字)!"
))
}
else
{
callback
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment