Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
Overview
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
姜雷
wx-boss
Commits
892f8545
Commit
892f8545
authored
Dec 03, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改区域选择交互
parent
c0fd44fd
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
80 additions
and
18 deletions
+80
-18
ic_guanbi@2x.png
miniprogram/images/ic_guanbi@2x.png
+0
-0
areaSelect.js
miniprogram/pages/areaSelect/areaSelect.js
+13
-3
areaSelect.ts
miniprogram/pages/areaSelect/areaSelect.ts
+12
-2
areaSelect.wxml
miniprogram/pages/areaSelect/areaSelect.wxml
+4
-1
areaSelect.wxss
miniprogram/pages/areaSelect/areaSelect.wxss
+12
-0
PayTypeChart.js
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
+17
-4
PayTypeChart.ts
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
+14
-2
index.wxss
miniprogram/pages/index/index.wxss
+8
-6
No files found.
miniprogram/images/ic_guanbi@2x.png
0 → 100644
View file @
892f8545
1.06 KB
miniprogram/pages/areaSelect/areaSelect.js
View file @
892f8545
...
...
@@ -9,6 +9,7 @@ Page({
areaList
:
[],
filterList
:
[],
methodName
:
''
,
inputValue
:
''
,
},
onLoad
:
function
(
options
)
{
console
.
log
(
options
);
...
...
@@ -37,6 +38,7 @@ Page({
if
(
index
>
-
1
)
{
_this
.
setData
({
selectedIndex
:
index
,
inputValue
:
res
.
data
[
index
].
areaName
,
});
}
}
...
...
@@ -65,6 +67,14 @@ Page({
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
},
clearInputValue
:
function
()
{
console
.
log
(
'in clearInputValue'
);
this
.
setData
({
inputValue
:
''
,
selected
:
''
,
selectedIndex
:
''
,
});
},
getFilterListByName
:
function
(
name
)
{
var
filterList
=
[];
if
(
name
)
{
...
...
@@ -85,7 +95,7 @@ Page({
var
pages
=
getCurrentPages
();
var
prevPage
=
pages
[
pages
.
length
-
2
];
var
entity
=
{
id
:
value
,
id
:
this
.
data
.
filterList
[
value
].
id
,
name
:
this
.
data
.
filterList
[
value
].
areaName
,
};
if
(
this
.
data
.
methodName
&&
prevPage
[
this
.
data
.
methodName
])
{
...
...
@@ -113,4 +123,4 @@ Page({
wx
.
navigateBack
({
delta
:
1
});
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBNEM7QUFDNUMseUNBQXlDO0FBR3pDLElBQUksQ0FBQztJQUlILElBQUksRUFBRTtRQUNKLFFBQVEsRUFBRSxFQUFFO1FBQ1osYUFBYSxFQUFFLEVBQUU7UUFDakIsUUFBUSxFQUFFLEVBQUU7UUFDWixVQUFVLEVBQUUsRUFBRTtRQUNkLFVBQVUsRUFBRSxFQUFFO0tBQ2Y7SUFLRCxNQUFNLEVBQUUsVUFBUyxPQUFPO1FBQ3RCLE9BQU8sQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDYixJQUFBLCtCQUFVLEVBQUUscUJBQUssQ0FBYTtRQUN0QyxJQUFJLENBQUMsYUFBYSxFQUFFLENBQUM7UUFDckIsSUFBSSxDQUFDLE9BQVEsQ0FBQztZQUNaLFVBQVUsWUFBQTtZQUNWLFFBQVEsRUFBRSxLQUFLO1N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AgIGZpbHRlckxpc3Q6IHJlcy5kYXRhLFxuICAgICAgICAgIH0pO1xuICAgICAgICAgIGlmICh0aGlzLmRhdGEuc2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGxldCBpbmRleCA9IHJlcy5kYXRhLmZpbmRJbmRleChcbiAgICAgICAgICAgICAgaXRlbSA9PiBpdGVtLmlkID09IHRoaXMuZGF0YS5zZWxlY3RlZCxcbiAgICAgICAgICAgICk7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyh0aGlzLmRhdGEuc2VsZWN0ZWQsIGluZGV4KTtcbiAgICAgICAgICAgIGlmIChpbmRleCA+IC0xKSB7XG4gICAgICAgICAgICAgIHRoaXMuc2V0RGF0YSh7XG4gICAgICAgICAgICAgICAgc2VsZWN0ZWRJbmRleDogaW5kZXgsXG4gICAgICAgICAgICAgICAgaW5wdXRWYWx1ZTogcmVzLmRhdGFbaW5kZXhdLmFyZWFOYW1lLFxuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5zZXREYXRhISh7XG4gICAgICAgICAgICBhcmVhTGlzdDogW10sXG4gICAgICAgICAgICBmaWx0ZXJMaXN0OiBbXSxcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSlcbiAgICAgIC5jYXRjaChlcnIgPT4ge1xuICAgICAgICBjb25zb2xlLmxvZyhlcnIpO1xuICAgICAgfSk7XG4gIH0sXG4gIGlucHV0SGFuZGxlKGUpIHtcbiAgICBjb25zdCB7IHZhbHVlIH0gPSBlLmRldGFpbDtcbiAgICBjb25zb2xlLmxvZyhlLCB2YWx1ZSk7XG4gICAgZGVsYXkoKCkgPT4ge1xuICAgICAgdGhpcy5nZXRGaWx0ZXJMaXN0QnlOYW1lKHZhbHVlKTtcbiAgICB9LCA1MDApO1xuICB9LFxuICBjb25maXJtSGFuZGxlKGUpIHtcbiAgICBjb25zdCB7IHZ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4gOS4qumhtemdolxuICAgIGxldCBlbnRpdHkgPSB7fTtcbiAgICBpZiAodmFsdWUpIHtcbiAgICAgIGVudGl0eSA9IHtcbiAgICAgICAgaWQ6IHZhbHVlLFxuICAgICAgICBuYW1lOiB0aGlzLmRhdGEuZmlsdGVyTGlzdFt0aGlzLmRhdGEuc2VsZWN0ZWRJbmRleF0uYXJlYU5hbWUsXG4gICAgICB9O1xuICAgIH0gZWxzZSB7XG4gICAgICBlbnRpdHkgPSB7IGlkOiAnJywgbmFtZTogJycgfTtcbiAgICB9XG4gICAgaWYgKHRoaXMuZGF0YS5tZXRob2ROYW1lICYmIHByZXZQYWdlW3RoaXMuZGF0YS5tZXRob2ROYW1lXSkge1xuICAgICAgcHJldlBhZ2VbdGhpcy5kYXRhLm1ldGhvZE5hbWVdKGVudGl0eSk7XG4gICAgfVxuICAgIHd4Lm5hdmlnYXRlQmFjayh7IGRlbHRhOiAxIH0pO1xuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/areaSelect/areaSelect.ts
View file @
892f8545
...
...
@@ -12,6 +12,7 @@ Page({
areaList
:
[],
filterList
:
[],
methodName
:
''
,
inputValue
:
''
,
},
/**
...
...
@@ -48,6 +49,7 @@ Page({
if
(
index
>
-
1
)
{
this
.
setData
({
selectedIndex
:
index
,
inputValue
:
res
.
data
[
index
].
areaName
,
});
}
}
...
...
@@ -74,6 +76,14 @@ Page({
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
},
clearInputValue
()
{
console
.
log
(
'in clearInputValue'
);
this
.
setData
!
({
inputValue
:
''
,
selected
:
''
,
selectedIndex
:
''
,
});
},
getFilterListByName
(
name
:
string
)
{
let
filterList
=
[];
if
(
name
)
{
...
...
@@ -83,7 +93,7 @@ Page({
}
else
{
filterList
=
this
.
data
.
areaList
;
}
this
.
setData
({
this
.
setData
!
({
filterList
,
});
},
...
...
@@ -104,7 +114,7 @@ Page({
var
pages
=
getCurrentPages
();
var
prevPage
=
pages
[
pages
.
length
-
2
];
//上一个页面
let
entity
=
{
id
:
value
,
id
:
this
.
data
.
filterList
[
value
].
id
,
name
:
this
.
data
.
filterList
[
value
].
areaName
,
};
...
...
miniprogram/pages/areaSelect/areaSelect.wxml
View file @
892f8545
<!-- miniprogram/pages/areaSelect/areaSelect.wxml -->
<view class="areaselect-pickBox">
<view class="areaselect-pickFilter">
<input class="areaselect-pickInput" type="text" bindinput="inputHandle" bindconfirm="confirmHandle" />
<input class="areaselect-pickInput" type="text" value="{{inputValue}}" bindinput="inputHandle" bindconfirm="confirmHandle" />
<view class="areaselect-pickInput-clear" wx:if="{{inputValue}}" catch:tap="clearInputValue">
<image class="areaselect-pickInput-clear-icon" src="../../images/ic_guanbi@2x.png" />
</view>
<view class="areaselect-pickBtn" bindtap="bindPickerChange">确认</view>
</view>
<view class="areaselect-list">
...
...
miniprogram/pages/areaSelect/areaSelect.wxss
View file @
892f8545
...
...
@@ -13,6 +13,7 @@ page {
flex-direction: column;
}
.areaselect-pickFilter {
position: relative;
display: flex;
padding: 40rpx 40rpx 0;
align-items: center;
...
...
@@ -20,6 +21,17 @@ page {
.areaselect-pickInput {
flex: 1;
}
.areaselect-pickInput-clear {
position: absolute;
width: 40rpx;
height: 40rpx;
right: 175rpx;
z-index: 2;
}
.areaselect-pickInput-clear-icon {
width: 100%;
height: 100%;
}
.areaselect-pickBtn {
color: #6895fe;
margin-left: 20rpx;
...
...
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
View file @
892f8545
...
...
@@ -58,7 +58,11 @@ function initChart(canvas, width, height, F2) {
var
coord
=
paytypeChart
.
get
(
'coord'
);
frontPlot
.
addShape
(
'sector'
,
{
attrs
:
{
fill
:
'#000'
,
x
:
coord
.
center
.
x
-
coord
.
circleRadius
-
coord
.
start
.
x
+
coord
.
endAngle
,
y
:
coord
.
center
.
y
,
r
:
0
,
r0
:
coord
.
circleRadius
*
coord
.
innerRadius
,
fill
:
'#fff'
,
},
});
paytypeChart
.
get
(
'canvas'
).
draw
();
...
...
@@ -77,7 +81,16 @@ Component({
marker
:
'square'
,
itemFormatter
:
function
(
val
)
{
var
item
=
newVal
.
find
(
function
(
item
)
{
return
item
.
key
===
val
;
});
return
item
?
item
.
name
+
' '
+
util_1
.
formatPrice
(
item
.
count
)
:
''
;
if
(
item
)
{
var
name_1
=
item
.
name
;
if
(
item
&&
item
.
name
.
length
<
4
)
{
name_1
+=
'
\
xa0
\
xa0
\
xa0'
;
}
return
name_1
+
' '
+
util_1
.
formatPrice
(
item
.
count
);
}
else
{
return
''
;
}
},
});
paytypeChart
&&
paytypeChart
.
changeData
(
newVal
);
...
...
@@ -97,4 +110,4 @@ Component({
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGF5VHlwZUNoYXJ0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiUGF5VHlwZUNoYXJ0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsNENBQWtEO0FBR2xELElBQUksWUFBWSxHQUFHLElBQUksQ0FBQztBQUN4QixJQUFJLEtBQUssR0FBRyxFQUFFLENBQUM7QUFDZixJQUFNLFFBQVEsR0FBRztJQUNmLElBQUksRUFBRSxTQUFTO0lBQ2YsSUFBSSxFQUFFLFNBQVM7SUFDZixRQUFRLEVBQUUsU0FBUztJQUNuQixNQUFNLEVBQUUsU0FBUztDQUNsQixDQUFDO0FBRUYsbUJBQW1CLE1BQU0sRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLEVBQUU7SUFDMUMsSUFBTSxJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQ2hCLFlBQVksR0FBRyxJQUFJLEVBQUUsQ0FBQyxLQUFLLENBQUM7UUFDMUIsRUFBRSxFQUFFLE1BQU07UUFDVixLQUFLLE9BQUE7UUFDTCxNQUFNLFFBQUE7S0FDUCxDQUFDLENBQUM7SUFFSCxZQUFZLENBQUMsTUFBTSxDQUFDLElBQUksR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gIH0sXG4gICAgICAgICAgICAvLyBjdXN0b206IHRydWUsXG4gICAgICAgICAgICAvLyBpdGVtczogbmV3VmFsLm1hcChpdGVtID0+ICh7XG4gICAgICAgICAgICAvLyAgIG5hbWU6IGl0ZW0ubmFtZSxcbiAgICAgICAgICAgIC8vICAgdmFsdWU6ICcgJyArIGZvcm1hdFByaWNlKGl0ZW0uY291bnQpLFxuICAgICAgICAgICAgLy8gICBtYXJrZXI6IHtcbiAgICAgICAgICAgIC8vICAgICBzeW1ib2w6ICdzcXVhcmUnLFxuICAgICAgICAgICAgLy8gICAgIGZpbGw6IGNvbG9yTWFwW2l0ZW0ua2V5XSxcbiAgICAgICAgICAgIC8vICAgICByYWRpdXM6IDQsXG4gICAgICAgICAgICAvLyAgIH0sXG4gICAgICAgICAgICAvLyB9KSksXG4gICAgICAgICAgfSk7XG4gICAgICAgIHBheXR5cGVDaGFydCAmJiBwYXl0eXBlQ2hhcnQuY2hhbmdlRGF0YShuZXdWYWwpO1xuICAgICAgfSxcbiAgICB9LFxuICAgIG1vbnRoOiB7XG4gICAgICB0eXBlOiBTdHJpbmcsXG4gICAgICB2YWx1ZTogJycsXG4gICAgICBvYnNlcnZlcihuZXdWYWwpIHtcbiAgICAgICAgbW9udGggPSBuZXdWYWw7XG4gICAgICB9LFxuICAgIH0sXG4gIH0sXG4gIGRhdGE6IHtcbiAgICBvcHRzOiB7XG4gICAgICBvbkluaXQ6IGluaXRDaGFydCxcbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
View file @
892f8545
...
...
@@ -63,7 +63,11 @@ function initChart(canvas, width, height, F2) {
const
coord
=
paytypeChart
.
get
(
'coord'
);
// 获取坐标系对象
frontPlot
.
addShape
(
'sector'
,
{
attrs
:
{
fill
:
'#000'
,
x
:
coord
.
center
.
x
-
coord
.
circleRadius
-
coord
.
start
.
x
+
coord
.
endAngle
,
y
:
coord
.
center
.
y
,
r
:
0
,
// 全半径
r0
:
coord
.
circleRadius
*
coord
.
innerRadius
,
fill
:
'#fff'
,
},
});
paytypeChart
.
get
(
'canvas'
).
draw
();
...
...
@@ -84,7 +88,15 @@ Component({
marker
:
'square'
,
itemFormatter
:
val
=>
{
let
item
=
newVal
.
find
(
item
=>
item
.
key
===
val
);
return
item
?
item
.
name
+
' '
+
formatPrice
(
item
.
count
)
:
''
;
if
(
item
)
{
let
name
=
item
.
name
;
if
(
item
&&
item
.
name
.
length
<
4
)
{
name
+=
'
\
xa0
\
xa0
\
xa0'
;
}
return
name
+
' '
+
formatPrice
(
item
.
count
);
}
else
{
return
''
;
}
},
// custom: true,
// items: newVal.map(item => ({
...
...
miniprogram/pages/index/index.wxss
View file @
892f8545
...
...
@@ -18,17 +18,19 @@
}
.login-input-password {
position: relative;
display: flex;
align-items: center;
}
.login-input-password .login-input {
flex: 1;
margin-bottom: 0;
margin-right: 10rpx;
}
.password-eyes {
position: absolute;
width: 44rpx;
height: 44rpx;
right: 40rpx;
top: 10rpx;
z-index: 2;
padding:
1
0rpx;
padding:
2
0rpx;
}
.password-eyes-icon {
width: 100%;
...
...
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