Commit 96a2c5f6 by hank

修改bug

parent ad13e7c3
export const FETCH_TIME_OUT = 5000
// export const BASE_URL = 'https://server.bdideal.com'
// export const WEBVIEW_URL = 'https://visual.bdideal.com'
export const BASE_URL = 'https://dev-server.bdideal.com'
export const WEBVIEW_URL = 'https://dev-visual.bdideal.com'
export const BASE_URL = 'https://server.bdideal.com'
export const WEBVIEW_URL = 'https://visual.bdideal.com'
// export const BASE_URL = 'https://dev-server.bdideal.com'
// export const WEBVIEW_URL = 'https://dev-visual.bdideal.com'
/** 蓝牙的服务 uuid */
export const BLE_SERVICE_ID = '000088A0-0000-1000-8000-00805F9B34FB'
......
......@@ -41,8 +41,8 @@ class FilmListItem extends Component {
} = this.props
templateUrl = templateUrl || ''
return (
<View className="films-item" onClick={() => onClick && onClick()}>
<View className="films-item-img-box">
<View className="films-item">
<View className="films-item-img-box" onClick={() => onClick && onClick()}>
{/* {templateShow === 'HORIZONTAL' ? null : (
<View
className="films-item-img-bg"
......@@ -57,8 +57,12 @@ class FilmListItem extends Component {
/>
</View>
<View className="films-item-info">
<Text className="films-item-info-name">{filmName}</Text>
<Text className="films-item-info-detail">{filmDescribe ? filmDescribe : '无'}</Text>
<Text className="films-item-info-name" onClick={() => onClick && onClick()}>
{filmName}
</Text>
<Text className="films-item-info-detail" onClick={() => onClick && onClick()}>
{filmDescribe ? filmDescribe : '无'}
</Text>
<View className="films-item-info-time">
<Text className="films-item-info-count">{updateTime}</Text>
{isChoose ? null : (
......
......@@ -221,7 +221,7 @@ class DeviceDetail extends Component {
className="item-input"
value={equipmentName}
placeholder="请输入设备名称"
onInput={this.setDeviceDescribe}
onInput={this.setDeviceName}
/>
</View>
<View className="device-detail-item">
......
......@@ -122,14 +122,16 @@ class Films extends Component {
autoClose
key={item.filmId}
onClick={() => this.handleItem(item)}
options={[
{
text: '删除',
style: {
backgroundColor: '#F32B2B'
}
}
]}
options={
[
// {
// text: '删除',
// style: {
// backgroundColor: '#F32B2B'
// }
// }
]
}
>
<FilmListItem
onClick={() => this.goDetail(item)}
......
......@@ -107,7 +107,7 @@ class Films extends Component {
}
goDetail(item: IMilmListItme) {
// Taro.navigateTo({ url: `/pages/home/tempaltes/film_detail?filmId=${item.filmId}` })
Taro.navigateTo({ url: `/pages/home/tempaltes/film_detail?filmId=${item.filmId}` })
}
onSetting(item) {
if (process.env.TARO_ENV !== 'rn') {
......@@ -238,12 +238,12 @@ class Films extends Component {
key={item.filmId}
onClick={() => this.handleItem(item)}
options={[
{
text: '删除',
style: {
backgroundColor: '#F32B2B'
}
}
// {
// text: '删除',
// style: {
// backgroundColor: '#F32B2B'
// }
// }
]}
>
<FilmListItem onClick={() => this.goDetail(item)} {...item} onSetting={() => {this.onSetting(item)}}/>
......
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