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
a31a75fb
Commit
a31a75fb
authored
Dec 03, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
5777da72
126761d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
11 deletions
+50
-11
ic_guanbi@2x.png
miniprogram/images/ic_guanbi@2x.png
+0
-0
areaSelect.js
miniprogram/pages/areaSelect/areaSelect.js
+0
-0
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
+0
-0
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 @
a31a75fb
1.06 KB
miniprogram/pages/areaSelect/areaSelect.js
View file @
a31a75fb
This diff is collapsed.
Click to expand it.
miniprogram/pages/areaSelect/areaSelect.ts
View file @
a31a75fb
...
@@ -12,6 +12,7 @@ Page({
...
@@ -12,6 +12,7 @@ Page({
areaList
:
[],
areaList
:
[],
filterList
:
[],
filterList
:
[],
methodName
:
''
,
methodName
:
''
,
inputValue
:
''
,
},
},
/**
/**
...
@@ -48,6 +49,7 @@ Page({
...
@@ -48,6 +49,7 @@ Page({
if
(
index
>
-
1
)
{
if
(
index
>
-
1
)
{
this
.
setData
({
this
.
setData
({
selectedIndex
:
index
,
selectedIndex
:
index
,
inputValue
:
res
.
data
[
index
].
areaName
,
});
});
}
}
}
}
...
@@ -74,6 +76,14 @@ Page({
...
@@ -74,6 +76,14 @@ Page({
console
.
log
(
e
,
value
);
console
.
log
(
e
,
value
);
this
.
getFilterListByName
(
value
);
this
.
getFilterListByName
(
value
);
},
},
clearInputValue
()
{
console
.
log
(
'in clearInputValue'
);
this
.
setData
!
({
inputValue
:
''
,
selected
:
''
,
selectedIndex
:
''
,
});
},
getFilterListByName
(
name
:
string
)
{
getFilterListByName
(
name
:
string
)
{
let
filterList
=
[];
let
filterList
=
[];
if
(
name
)
{
if
(
name
)
{
...
@@ -83,7 +93,7 @@ Page({
...
@@ -83,7 +93,7 @@ Page({
}
else
{
}
else
{
filterList
=
this
.
data
.
areaList
;
filterList
=
this
.
data
.
areaList
;
}
}
this
.
setData
({
this
.
setData
!
({
filterList
,
filterList
,
});
});
},
},
...
@@ -104,7 +114,7 @@ Page({
...
@@ -104,7 +114,7 @@ Page({
var
pages
=
getCurrentPages
();
var
pages
=
getCurrentPages
();
var
prevPage
=
pages
[
pages
.
length
-
2
];
//上一个页面
var
prevPage
=
pages
[
pages
.
length
-
2
];
//上一个页面
let
entity
=
{
let
entity
=
{
id
:
value
,
id
:
this
.
data
.
filterList
[
value
].
id
,
name
:
this
.
data
.
filterList
[
value
].
areaName
,
name
:
this
.
data
.
filterList
[
value
].
areaName
,
};
};
...
...
miniprogram/pages/areaSelect/areaSelect.wxml
View file @
a31a75fb
<!-- miniprogram/pages/areaSelect/areaSelect.wxml -->
<!-- miniprogram/pages/areaSelect/areaSelect.wxml -->
<view class="areaselect-pickBox">
<view class="areaselect-pickBox">
<view class="areaselect-pickFilter">
<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 class="areaselect-pickBtn" bindtap="bindPickerChange">确认</view>
</view>
</view>
<view class="areaselect-list">
<view class="areaselect-list">
...
...
miniprogram/pages/areaSelect/areaSelect.wxss
View file @
a31a75fb
...
@@ -13,6 +13,7 @@ page {
...
@@ -13,6 +13,7 @@ page {
flex-direction: column;
flex-direction: column;
}
}
.areaselect-pickFilter {
.areaselect-pickFilter {
position: relative;
display: flex;
display: flex;
padding: 40rpx 40rpx 0;
padding: 40rpx 40rpx 0;
align-items: center;
align-items: center;
...
@@ -20,6 +21,17 @@ page {
...
@@ -20,6 +21,17 @@ page {
.areaselect-pickInput {
.areaselect-pickInput {
flex: 1;
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 {
.areaselect-pickBtn {
color: #6895fe;
color: #6895fe;
margin-left: 20rpx;
margin-left: 20rpx;
...
...
miniprogram/pages/components/PayTypeChart/PayTypeChart.js
View file @
a31a75fb
This diff is collapsed.
Click to expand it.
miniprogram/pages/components/PayTypeChart/PayTypeChart.ts
View file @
a31a75fb
...
@@ -63,7 +63,11 @@ function initChart(canvas, width, height, F2) {
...
@@ -63,7 +63,11 @@ function initChart(canvas, width, height, F2) {
const
coord
=
paytypeChart
.
get
(
'coord'
);
// 获取坐标系对象
const
coord
=
paytypeChart
.
get
(
'coord'
);
// 获取坐标系对象
frontPlot
.
addShape
(
'sector'
,
{
frontPlot
.
addShape
(
'sector'
,
{
attrs
:
{
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
();
paytypeChart
.
get
(
'canvas'
).
draw
();
...
@@ -84,7 +88,15 @@ Component({
...
@@ -84,7 +88,15 @@ Component({
marker
:
'square'
,
marker
:
'square'
,
itemFormatter
:
val
=>
{
itemFormatter
:
val
=>
{
let
item
=
newVal
.
find
(
item
=>
item
.
key
===
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,
// custom: true,
// items: newVal.map(item => ({
// items: newVal.map(item => ({
...
...
miniprogram/pages/index/index.wxss
View file @
a31a75fb
...
@@ -18,17 +18,19 @@
...
@@ -18,17 +18,19 @@
}
}
.login-input-password {
.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 {
.password-eyes {
position: absolute;
width: 44rpx;
width: 44rpx;
height: 44rpx;
height: 44rpx;
right: 40rpx;
top: 10rpx;
z-index: 2;
z-index: 2;
padding:
1
0rpx;
padding:
2
0rpx;
}
}
.password-eyes-icon {
.password-eyes-icon {
width: 100%;
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