Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
097c21d5
Commit
097c21d5
authored
5 years ago
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
差表单验证和粉丝数显示
parent
003e4135
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
102 additions
and
60 deletions
+102
-60
voucher.js
wx_application/src/api/sidebar/voucher.js
+9
-1
changeCounter.vue
wx_application/src/views/counter/changeCounter.vue
+29
-7
counterEdit.vue
wx_application/src/views/counter/counterEdit.vue
+2
-3
counterInfo.vue
wx_application/src/views/counter/counterInfo.vue
+33
-18
pushStoreInfo.vue
wx_application/src/views/counter/pushStoreInfo.vue
+28
-30
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+1
-1
No files found.
wx_application/src/api/sidebar/voucher.js
View file @
097c21d5
...
...
@@ -24,3 +24,11 @@ export function getStoreDetail(params) {
params
})
}
// 获取专柜列表
export
function
getStoreList
(
params
)
{
return
requestCF
({
url
:
'/admin/auth/stall/getStallInfoListByUserId'
,
method
:
'get'
,
params
})
}
This diff is collapsed.
Click to expand it.
wx_application/src/views/counter/changeCounter.vue
View file @
097c21d5
<
template
>
<div
class=
"container"
>
<van-radio-group
v-model=
"radio"
class=
"nobr"
>
<van-cell-group>
<van-cell
clickable
@
click=
"radio = '1'"
>
<van-cell-group
@
change=
"handleStoreChange"
>
<van-cell
v-for=
"(item,index) in list"
:key=
"index"
:name=
"item.oyStallCode"
>
<div
class=
"list"
>
<div
class=
"left"
>
<img
src=
"../../../public/img/counter.png
"
alt=
""
/>
<img
:src=
"item.logo
"
alt=
""
/>
</div>
<div
class=
"right"
>
<h3>
欧亚一号专柜
</h3>
<p>
由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状。
</p>
<h3>
{{
item
.
name
}}
</h3>
<p>
{{
item
.
summaryTitle
}}
</p>
</div>
</div>
<van-radio
slot=
"right-icon"
name=
"1"
/>
...
...
@@ -20,11 +20,33 @@
</
template
>
<
script
>
import
{
getStoreList
}
from
"@/api/sidebar/voucher"
export
default
{
data
()
{
return
{
radio
:
""
};
radio
:
"1"
,
userId
:
''
,
list
:
[]
}
},
created
()
{
this
.
getList
()
this
.
userId
=
sessionStorage
.
getItem
(
'userId'
)
},
methods
:
{
getList
()
{
let
params
=
{
user_id
:
'shanDian'
}
getStoreList
(
params
).
then
(
res
=>
{
console
.
log
(
res
.
data
);
this
.
list
=
res
.
data
})
},
handleStoreChange
(
val
)
{
sessionStorage
.
setItem
(
'oyStallCode'
,
val
)
}
}
};
</
script
>
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/counter/counterEdit.vue
View file @
097c21d5
...
...
@@ -19,12 +19,12 @@
</van-cell>
<van-cell
title=
"专柜地址"
>
<
template
slot=
"default"
>
<van-field
v-model=
"addForm.location"
placeholder=
"输入
名称
"
class=
"input"
/>
<van-field
v-model=
"addForm.location"
placeholder=
"输入
地址
"
class=
"input"
/>
</
template
>
</van-cell>
<van-cell
title=
"电话"
>
<
template
slot=
"default"
>
<van-field
v-model=
"addForm.phone"
placeholder=
"输入
名称
"
class=
"input"
/>
<van-field
v-model=
"addForm.phone"
placeholder=
"输入
电话
"
class=
"input"
/>
</
template
>
</van-cell>
<div
class=
"border"
>
...
...
@@ -118,7 +118,6 @@ export default {
},
mounted
()
{
this
.
addForm
.
oyStallCode
=
sessionStorage
.
getItem
(
'oyStallCode'
)
console
.
log
(
this
.
addForm
.
oyStallCode
,
'编辑专柜信息oyStallCode'
);
this
.
getDetail
()
},
methods
:
{
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/counter/counterInfo.vue
View file @
097c21d5
...
...
@@ -34,12 +34,12 @@ import "quill/dist/quill.bubble.css"
export
default
{
data
()
{
return
{
info
:
1
,
oyStallCode
:
''
,
storeInfo
:
{
logo
:
'./img/counter.png'
,
name
:
'only专柜'
,
summaryTitle
:
'ONLY是丹麦著名的国际时装公司BESTSELLER拥有的众多著名品牌之一'
,
},
carousel
:[
'./img/cswiper.png'
,
'./img/cswiper.png'
,
'./img/cswiper.png'
,
'./img/cswiper.png'
]
}
...
...
@@ -56,9 +56,12 @@ export default {
}
getStoreDetail
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
stallInfo
!=
null
)
{
this
.
info
=
2
console
.
log
(
res
,
'res'
);
this
.
carousel
=
res
.
data
.
carousel
this
.
storeInfo
=
res
.
data
.
stallInfo
}
else
{
this
.
info
=
1
}
})
},
...
...
@@ -66,12 +69,23 @@ export default {
this
.
$router
.
push
(
"counterEdit"
)
},
getChargeCode
()
{
if
(
this
.
info
==
1
)
{
this
.
$router
.
push
(
'pushStoreInfo'
)
}
else
{
this
.
$router
.
push
(
"chargeCode"
)
}
},
handleCounterHome
()
{
if
(
this
.
info
==
1
)
{
this
.
$router
.
push
(
'pushStoreInfo'
)
}
else
{
this
.
$router
.
push
(
"counterHome"
)
}
},
handlePushInfo
()
{
if
(
this
.
info
==
1
)
{
this
.
$router
.
push
(
'pushStoreInfo'
)
}
else
{
let
url
=
`http://oysales.oywanhao.com:8087/counterPageHome?oyStallCode=
${
this
.
oyStallCode
}
`
wx
.
invoke
(
"shareToExternalContact"
,
{
title
:
'专柜首页'
,
// 消息的标题
...
...
@@ -88,6 +102,7 @@ export default {
}
}
}
}
</
script
>
<
style
scoped
>
...
...
This diff is collapsed.
Click to expand it.
wx_application/src/views/counter/pushStoreInfo.vue
View file @
097c21d5
<
template
>
<div
class=
"
container
"
>
<div
class=
"
main"
style=
"display: flex;flex-direction: column;justify-content: flex-start;font-size: 14px;
"
>
<div>
建设中...
</div>
</div>
</
template
>
<
script
>
import
Vue
from
"vue"
;
const
zlog
=
console
.
log
.
bind
(
console
);
export
default
{
name
:
"goodPostIndex"
,
data
()
{
return
{
};
},
created
()
{
}
},
mounted
()
{
},
methods
:
{
}
}
}
;
</
script
>
<
style
scoped
>
.content
{
align-items
:
center
;
}
.content
>>>
.van-icon-arrow
:before
{
margin-top
:
10px
;
color
:
#2d476a
;
}
.main
{
background-color
:
white
;
width
:
100%
;
height
:
100%
;
.custom-title
{
margin-left
:
12px
;
font-size
:
16px
;
font-weight
:
bold
;
color
:
rgba
(
45
,
71
,
106
,
1
);
}
.content
img
{
width
:
44px
;
height
:
44px
;
border-radius
:
50%
;
vertical-align
:
middle
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
start
;
}
</
style
>
This diff is collapsed.
Click to expand it.
wx_application/src/views/mainSale/active/main/index.vue
View file @
097c21d5
...
...
@@ -265,7 +265,7 @@ export default {
this
.
$router
.
push
(
"counterInfo"
);
},
switchBarClick
()
{
this
.
$router
.
push
(
"
c
hangeCounter"
);
this
.
$router
.
push
(
"
C
hangeCounter"
);
},
testButtonClick
()
{},
menu01Click
()
{},
...
...
This diff is collapsed.
Click to expand it.
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