Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
e1398836
Commit
e1398836
authored
Oct 22, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
721e47e5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1042 additions
and
528 deletions
+1042
-528
index.vue
pages/MallMange/index.vue
+634
-513
order.vue
pages/MallMange/order.vue
+1
-1
set.vue
pages/MallMange/set.vue
+132
-6
timeQuantum.vue
pages/MallMange/timeQuantum.vue
+275
-8
No files found.
pages/MallMange/index.vue
View file @
e1398836
This diff is collapsed.
Click to expand it.
pages/MallMange/order.vue
View file @
e1398836
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
:value=
"value"
:value=
"value"
@
change=
"bindChange"
@
change=
"bindChange"
class=
"picker-view"
class=
"picker-view"
:indicator-style=
"indicatorStyle
"
indicator-style=
"height: 60rpx
"
:indicator-class=
"activeClass"
:indicator-class=
"activeClass"
>
>
<picker-view-column>
<picker-view-column>
...
...
pages/MallMange/set.vue
View file @
e1398836
...
@@ -91,15 +91,117 @@
...
@@ -91,15 +91,117 @@
</u-modal>
</u-modal>
<view
class=
"boxItem"
v-if=
"businessKey == 2"
>
<view
class=
"boxItem"
v-if=
"businessKey == 2"
>
<view
class=
"leftBox"
></view>
<view
class=
"leftBox"
></view>
<view
class=
"rightBox"
style=
"border: none"
>
<view
class=
"rightBox"
style=
"border: none"
@
click=
"jumpPage('/pages/MallMange/timeQuantum')"
>
<view
class=
"name"
>
选择时间段
</view>
<view
class=
"name"
>
选择时间段
</view>
<view
class=
"flex-center"
>
<view
class=
"flex-center"
>
<view
class=
"weeek"
>
{{
weekStr
}}
</view>
<view
class=
"weeek"
>
{{
timeArr
.
join
(
"、"
)
}}
</view>
<u-icon
name=
"arrow"
style=
"margin-left: 10rpx"
></u-icon
<u-icon
name=
"arrow"
style=
"margin-left: 10rpx"
></u-icon
></view>
></view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"boxGroup"
>
<view
class=
"boxItem"
>
<view
class=
"leftBox flex-center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode=
"widthFix"
style=
"width: 100%"
/>
</view>
<view
class=
"rightBox"
style=
"border: none"
>
<view
class=
"name"
>
短信通知
</view>
<u-switch
v-model=
"msg.business"
></u-switch>
</view>
</view>
</view>
<view
class=
"boxGroup"
>
<view
class=
"boxItem"
>
<view
class=
"leftBox flex-center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode=
"widthFix"
style=
"width: 100%"
/>
</view>
<view
class=
"rightBox"
@
click=
"showBox3 = true"
>
<view
class=
"name"
>
删除未支付订单限时
</view>
<view
class=
"flex-center"
>
{{
msg
.
delOrderTime
}}
分
<u-icon
name=
"arrow"
style=
"margin-left: 10rpx"
></u-icon
></view>
</view>
</view>
<view
class=
"boxItem"
>
<view
class=
"leftBox flex-center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode=
"widthFix"
style=
"width: 100%"
/>
</view>
<view
class=
"rightBox"
@
click=
"showBox4 = true"
>
<view
class=
"name"
>
自动确认收货时间
</view>
<view
class=
"flex-center"
>
{{
msg
.
incomeDay
}}
天
<u-icon
name=
"arrow"
style=
"margin-left: 10rpx"
></u-icon
></view>
</view>
</view>
<view
class=
"boxItem"
>
<view
class=
"leftBox flex-center"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/mallManage/shortmsg.png"
mode=
"widthFix"
style=
"width: 100%"
/>
</view>
<view
class=
"rightBox"
style=
"border: none"
@
click=
"showBox5 = true"
>
<view
class=
"name"
>
可申请售后时间
</view>
<view
class=
"flex-center"
>
{{
msg
.
afterSaleDay
}}
天
<u-icon
name=
"arrow"
style=
"margin-left: 10rpx"
></u-icon
></view>
</view>
</view>
<u-modal
v-model=
"showBox3"
:show-cancel-button=
"true"
title=
"删除未支付订单限时"
contentSlot
@
confirm=
"showBox3 = false"
>
<view
class=
"modelBox3 flex-center"
>
<input
type=
"number"
class=
"input3"
v-model=
"msg.delOrderTime"
/>
分钟
</view>
</u-modal>
<u-modal
v-model=
"showBox4"
:show-cancel-button=
"true"
title=
"自动确认收货时间"
contentSlot
@
confirm=
"showBox4 = false"
>
<view
class=
"modelBox3 flex-center"
>
<input
type=
"number"
class=
"input3"
v-model=
"msg.incomeDay"
/>
天
</view>
</u-modal>
<u-modal
v-model=
"showBox5"
:show-cancel-button=
"true"
title=
"可申请售后时间"
contentSlot
@
confirm=
"showBox5 = false"
>
<view
class=
"modelBox3 flex-center"
>
<input
type=
"number"
class=
"input3"
v-model=
"msg.afterSaleDay"
/>
天
</view>
</u-modal>
</view>
<tabbar></tabbar>
<tabbar></tabbar>
</view>
</view>
</
template
>
</
template
>
...
@@ -114,9 +216,15 @@ export default {
...
@@ -114,9 +216,15 @@ export default {
showBox1
:
false
,
showBox1
:
false
,
username
:
""
,
username
:
""
,
showBox2
:
false
,
showBox2
:
false
,
showBox3
:
false
,
showBox4
:
false
,
showBox5
:
false
,
msg
:
{
msg
:
{
business
:
false
,
business
:
false
,
businessTime
:
1
,
businessTime
:
1
,
delOrderTime
:
0
,
incomeDay
:
1
,
afterSaleDay
:
1
},
},
businessTimeList
:
[
businessTimeList
:
[
{
{
...
@@ -167,6 +275,7 @@ export default {
...
@@ -167,6 +275,7 @@ export default {
},
},
],
],
weekStr
:
""
,
weekStr
:
""
,
timeArr
:
[],
};
};
},
},
methods
:
{
methods
:
{
...
@@ -182,11 +291,16 @@ export default {
...
@@ -182,11 +291,16 @@ export default {
.
map
((
item
)
=>
item
.
name
)
.
map
((
item
)
=>
item
.
name
)
.
join
(
"、"
);
.
join
(
"、"
);
},
},
jumpPage
(
url
){
jumpPage
(
url
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
url
,
url
:
url
,
});
});
}
},
getTimeArr
(
arr
)
{
this
.
timeArr
=
arr
;
this
.
$forceUpdate
();
console
.
log
(
193
,
this
.
timeArr
.
join
(
"、"
));
},
},
},
onLoad
()
{
onLoad
()
{
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
...
@@ -245,7 +359,7 @@ export default {
...
@@ -245,7 +359,7 @@ export default {
.boxGroup
{
.boxGroup
{
width
:
700rpx
;
width
:
700rpx
;
padding
:
0
30rpx
;
padding
:
0
30rpx
;
margin
:
1
0rpx
auto
;
margin
:
2
0rpx
auto
;
background-color
:
#fff
;
background-color
:
#fff
;
border-radius
:
10rpx
;
border-radius
:
10rpx
;
.boxItem
{
.boxItem
{
...
@@ -331,4 +445,16 @@ export default {
...
@@ -331,4 +445,16 @@ export default {
color
:
#111
;
color
:
#111
;
}
}
}
}
.modelBox3
{
margin
:
40rpx
auto
;
font-size
:
26rpx
;
.input3
{
width
:
280rpx
;
height
:
80rpx
;
border-radius
:
10rpx
;
background-color
:
#f7f7f7
;
padding
:
0
30rpx
;
font-size
:
26rpx
;
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/MallMange/timeQuantum.vue
View file @
e1398836
<
template
>
<
template
>
<view
class=
"timepage"
>
<view
class=
"timepage"
>
<view
class=
"timeBox"
>
<view
v-for=
"(item, index) in timeArr"
:key=
"index"
class=
"timeItem"
>
<u-icon
name=
"clear"
color=
"#FF5C5C"
:size=
"40"
class=
"left"
@
click=
"delTime(index)"
></u-icon>
<view
class=
"right"
@
click=
"handleTime(index)"
>
<text
v-if=
"item"
>
{{
item
}}
</text>
<text
v-else
style=
"opacity: 0.5"
>
请选择时间段
</text>
<u-icon
name=
"arrow"
:size=
"30"
></u-icon>
</view>
</view>
</view>
<view
class=
"addBox"
v-if=
"timeArr.length
<
3
"
>
<view
class=
"addBtn"
@
click=
"addTime"
>
<u-icon
name=
"add-o"
:size=
"40"
style=
"margin-right: 10rpx"
></u-icon>
新增时间段
</view>
</view>
<view
class=
"saveBox"
>
<view
class=
"saveBtn"
@
click=
"save"
>
保存
</view>
</view>
<u-modal
v-model=
"showModel"
@
confirm=
"confirm"
:show-cancel-button=
"true"
title=
"筛选时间"
contentSlot
width=
"85%"
>
<view
class=
"contentSlot"
>
<view
class=
"timeTitle"
>
开始时间
</view>
<view
class=
"time-picker"
>
<picker-view
:value=
"valueS"
@
change=
"bindChangeS"
class=
"picker-view"
indicator-style=
"height: 60rpx"
:indicator-class=
"activeClass"
>
<picker-view-column>
<view
class=
"picker-item flex-center"
v-for=
"(item, index) in h"
:key=
"index"
>
{{
item
}}
</view
>
</picker-view-column>
<view
style=
"line-height: 180rpx"
>
时
</view>
<picker-view-column>
<view
class=
"picker-item flex-center"
v-for=
"(item, index) in m"
:key=
"index"
>
{{
item
}}
</view
>
</picker-view-column>
<view
style=
"line-height: 180rpx"
>
分
</view>
<picker-view-column>
<view
class=
"picker-item flex-center"
v-for=
"(item, index) in s"
:key=
"index"
>
{{
item
}}
</view
>
</picker-view-column>
<view
style=
"line-height: 180rpx"
>
秒
</view>
</picker-view>
</view>
<view
class=
"timeTitle"
>
结束时间
</view>
<view
class=
"time-picker"
>
<picker-view
:value=
"valueE"
@
change=
"bindChangeE"
class=
"picker-view"
indicator-style=
"height: 60rpx"
indicator-class=
"activeClass"
>
<picker-view-column>
<view
class=
"picker-item flex-center"
v-for=
"(item, index) in h"
:key=
"index"
>
{{
item
}}
</view
>
</picker-view-column>
<view
style=
"line-height: 180rpx"
>
时
</view>
<picker-view-column>
<view
class=
"picker-item flex-center"
v-for=
"(item, index) in m"
:key=
"index"
>
{{
item
}}
</view
>
</picker-view-column>
<view
style=
"line-height: 180rpx"
>
分
</view>
<picker-view-column>
<view
class=
"picker-item flex-center"
v-for=
"(item, index) in s"
:key=
"index"
>
{{
item
}}
</view
>
</picker-view-column>
<view
style=
"line-height: 180rpx"
>
秒
</view>
</picker-view>
</view>
</view>
</u-modal>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
return
{};
let
h
=
[];
//时
let
m
=
[];
//分
let
s
=
[];
//秒
for
(
let
i
=
0
;
i
<=
23
;
i
++
)
{
let
n
=
i
;
h
.
push
(
n
<
10
?
"0"
+
n
:
n
);
}
for
(
let
i
=
0
;
i
<=
59
;
i
++
)
{
let
n
=
i
;
m
.
push
(
n
<
10
?
"0"
+
n
:
n
);
s
.
push
(
n
<
10
?
"0"
+
n
:
n
);
}
return
{
timeArr
:
[],
h
,
m
,
s
,
showModel
:
false
,
valueS
:
[
0
,
0
,
0
],
valueE
:
[
0
,
0
,
0
],
curIndex
:
0
,
StartStr
:
"00:00:00"
,
EndStr
:
"00:00:00"
,
};
},
methods
:
{
addTime
()
{
this
.
timeArr
.
push
(
""
);
},
handleTime
(
index
)
{
this
.
showModel
=
true
;
this
.
curIndex
=
index
;
},
delTime
(
index
)
{
this
.
timeArr
.
splice
(
index
,
1
);
},
// 开始时间
bindChangeS
(
e
)
{
const
val
=
e
.
detail
.
value
;
let
H
=
this
.
h
[
val
[
0
]];
let
M
=
this
.
m
[
val
[
1
]];
let
S
=
this
.
s
[
val
[
2
]];
this
.
StartStr
=
H
+
":"
+
M
+
":"
+
S
;
},
// 结束时间
bindChangeE
(
e
)
{
const
val
=
e
.
detail
.
value
;
let
H
=
this
.
h
[
val
[
0
]];
let
M
=
this
.
m
[
val
[
1
]];
let
S
=
this
.
s
[
val
[
2
]];
this
.
EndStr
=
H
+
":"
+
M
+
":"
+
S
;
},
confirm
()
{
this
.
timeArr
[
this
.
curIndex
]
=
this
.
StartStr
+
"-"
+
this
.
EndStr
;
console
.
log
(
159
,
this
.
StartStr
,
this
.
EndStr
);
},
save
()
{
let
pages
=
getCurrentPages
();
let
page
=
pages
[
pages
.
length
-
2
];
page
.
$vm
.
getTimeArr
(
this
.
timeArr
);
uni
.
navigateBack
({
delta
:
1
});
},
},
},
onLoad
()
{
onLoad
()
{
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
"设置时间段"
,
title
:
"设置时间段"
,
});
});
let
pages
=
getCurrentPages
();
let
page
=
pages
[
pages
.
length
-
2
];
this
.
timeArr
=
page
.
$vm
.
timeArr
;
console
.
log
(
41
,
page
.
$vm
.
timeArr
);
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.timepage
{
.timepage
{
min-height
:
100vh
;
min-height
:
100vh
;
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-bottom
:
var
(
–
safe-area-inset-bottom
);
padding-bottom
:
var
(
–
safe-area-inset-bottom
);
}
.timeBox
{
margin-bottom
:
20rpx
;
.timeItem
{
height
:
90rpx
;
display
:
flex
;
align-items
:
center
;
background-color
:
#fff
;
padding
:
0
20rpx
;
.left
{
width
:
40rpx
;
margin-right
:
20rpx
;
}
.right
{
width
:
640rpx
;
height
:
90rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
border-bottom
:
2rpx
solid
#ccced5
;
font-size
:
30rpx
;
}
}
}
}
.addBox
{
height
:
110rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#fff
;
.addBtn
{
width
:
320rpx
;
height
:
80rpx
;
border-radius
:
40rpx
;
border
:
2rpx
solid
#446dfc
;
color
:
#446dfc
;
font-size
:
30rpx
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
}
.contentSlot
{
background-color
:
#fff
;
box-sizing
:
border-box
;
padding
:
40rpx
;
border-radius
:
20rpx
;
.timeTitle
{
margin
:
20rpx
0
;
font-size
:
30rpx
;
}
}
.picker-view
{
width
:
100%
;
height
:
180rpx
;
margin-top
:
20rpx
;
.picker-item
{
height
:
100rpx
;
}
}
.flex-center
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.saveBox
{
width
:
750rpx
;
height
:
120rpx
;
background-color
:
#fff
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
position
:
fixed
;
left
:
0
;
bottom
:
0
;
.saveBtn
{
width
:
700rpx
;
height
:
80rpx
;
border-radius
:
40rpx
;
margin
:
0
auto
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
background-color
:
#446dfc
;
color
:
#fff
;
font-size
:
36rpx
;
}
}
</
style
>
</
style
>
\ No newline at end of file
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