Commit 0dba328e by hank

修改UI

parent 0ce7625a
......@@ -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',
......
......@@ -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,
......
......@@ -46,10 +46,10 @@
&-name {
font-size: 32px;
color: #333;
margin-bottom: 15px;
margin-bottom: 13px;
font-weight: bold;
overflow: hidden;
height: 35px;
height: 40px;
word-break: break-all;
text-overflow: ellipsis;
white-space: nowrap;
......
......@@ -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'
}
......
......@@ -29,7 +29,7 @@
// width: 50%;
// display: inline-block;
// text-align: center;
padding: 0 80px;
padding: 0 42px;
position: relative;
}
......
......@@ -229,6 +229,7 @@
.device-tab-item-word {
position: relative;
padding-right: 40px;
font-weight: 500;
display: inline-block;
}
......
......@@ -61,7 +61,7 @@
color: #969799;
.type-tab-item {
padding: 0 80px;
padding: 0 42px;
position: relative;
}
......
......@@ -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
......
......@@ -30,7 +30,7 @@
margin-bottom: 10px;
.type-tab-item {
padding: 0 40px;
padding: 0 42px;
position: relative;
}
......@@ -113,7 +113,7 @@
color: #969799;
.type-tab-item {
padding: 0 20px;
padding: 0 42px;
}
.type-tab-item-active {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment