Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client-taro
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0dba328e
authored
Dec 25, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改UI
parent
0ce7625a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
19 deletions
+21
-19
src/app.tsx
+1
-2
src/common/bluetooth.ts
+6
-6
src/conpoments/film_list_item/index.scss
+2
-2
src/pages/home/device/group_detail/index.tsx
+4
-4
src/pages/home/film/film_list/index.scss
+1
-1
src/pages/home/film/schedule_add/components/device/index.scss
+1
-0
src/pages/home/film/schedule_add/components/films/index.scss
+1
-1
src/pages/home/tempaltes/index.tsx
+3
-1
src/pages/home/tempaltes/scss/index.scss
+2
-2
No files found.
src/app.tsx
View file @
0dba328e
...
...
@@ -35,11 +35,10 @@ class App extends Component {
*/
config
:
Config
=
{
pages
:
[
'pages/index'
,
'pages/
login/
index'
,
'pages/home/device/index'
,
'pages/home/tempaltes/index'
,
'pages/home/film/index'
,
'pages/login/index'
,
'pages/agreement/index'
,
'pages/home/device/device_detail/index'
,
'pages/home/device/shop_device_detail/index'
,
...
...
src/common/bluetooth.ts
View file @
0dba328e
...
...
@@ -244,15 +244,15 @@ class Bluetooth {
await
bluetooth
.
notifyBLECharacteristicValueChange
({
deviceId
,
state
:
true
,
serviceId
:
BLE_SERVICE_ID
,
characteristicId
:
DEVICE_TOKEN_TOKEN
})
await
bluetooth
.
notifyBLECharacteristicValueChange
({
deviceId
,
state
:
true
,
serviceId
:
BLE_DEVICE_SERVICE_ID
,
characteristicId
:
DEVICE_TOKEN_ID
})
await
bluetooth
.
writeBLECharacteristicValue
({
deviceId
,
serviceId
:
BLE_SERVICE_ID
,
value
:
strToAb
(
id
,
pass
),
characteristicId
:
POST_WIFI_PASS_ID
})
return
bluetooth
.
writeBLECharacteristicValue
({
deviceId
,
serviceId
:
BLE_SERVICE_ID
,
...
...
src/conpoments/film_list_item/index.scss
View file @
0dba328e
...
...
@@ -46,10 +46,10 @@
&
-name
{
font-size
:
32px
;
color
:
#333
;
margin-bottom
:
1
5
px
;
margin-bottom
:
1
3
px
;
font-weight
:
bold
;
overflow
:
hidden
;
height
:
35
px
;
height
:
40
px
;
word-break
:
break-all
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
...
...
src/pages/home/device/group_detail/index.tsx
View file @
0dba328e
...
...
@@ -97,13 +97,13 @@ class DeviceGroup extends Component {
const
{
text
}
=
info
const
{
equipmentId
}
=
item
const
{
id
}
=
this
.
$router
.
params
if
(
text
===
'
删
除'
)
{
Taro
.
showModal
({
content
:
'确定要
删
除?'
}).
then
(
async
({
confirm
})
=>
{
if
(
text
===
'
移
除'
)
{
Taro
.
showModal
({
content
:
'确定要
移
除?'
}).
then
(
async
({
confirm
})
=>
{
if
(
confirm
)
{
try
{
await
api
.
common
.
deleteGroupDevice
(
id
,
equipmentId
)
this
.
getDate
()
showMyToast
({
title
:
'
删
除成功~'
})
showMyToast
({
title
:
'
移
除成功~'
})
}
catch
(
error
)
{
console
.
error
(
error
)
showMyToast
({
result
:
error
,
title
:
'失败~'
})
...
...
@@ -151,7 +151,7 @@ class DeviceGroup extends Component {
onClick=
{
info
=>
this
.
handleItem
(
item
,
info
)
}
options=
{
[
{
text
:
'
删
除'
,
text
:
'
移
除'
,
style
:
{
backgroundColor
:
'#F32B2B'
}
...
...
src/pages/home/film/film_list/index.scss
View file @
0dba328e
...
...
@@ -29,7 +29,7 @@
// width: 50%;
// display: inline-block;
// text-align: center;
padding
:
0
80
px
;
padding
:
0
42
px
;
position
:
relative
;
}
...
...
src/pages/home/film/schedule_add/components/device/index.scss
View file @
0dba328e
...
...
@@ -229,6 +229,7 @@
.device-tab-item-word
{
position
:
relative
;
padding-right
:
40px
;
font-weight
:
500
;
display
:
inline-block
;
}
...
...
src/pages/home/film/schedule_add/components/films/index.scss
View file @
0dba328e
...
...
@@ -61,7 +61,7 @@
color
:
#969799
;
.type-tab-item
{
padding
:
0
80
px
;
padding
:
0
42
px
;
position
:
relative
;
}
...
...
src/pages/home/tempaltes/index.tsx
View file @
0dba328e
...
...
@@ -129,7 +129,9 @@ class Tempaltes extends Component {
this
.
getData
()
}
getData
(
showTempalte2
?)
{
Taro
.
showLoading
()
Taro
.
showLoading
({
title
:
'数据加载中'
})
const
{
page
,
showTempalte
}
=
this
.
state
// this.props.getTempListData(page)
Api
.
tempalte
...
...
src/pages/home/tempaltes/scss/index.scss
View file @
0dba328e
...
...
@@ -30,7 +30,7 @@
margin-bottom
:
10px
;
.type-tab-item
{
padding
:
0
4
0
px
;
padding
:
0
4
2
px
;
position
:
relative
;
}
...
...
@@ -113,7 +113,7 @@
color
:
#969799
;
.type-tab-item
{
padding
:
0
20
px
;
padding
:
0
42
px
;
}
.type-tab-item-active
{
...
...
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