Commit 499e8fc9 by hank

修改分页不过

parent ef6e1194
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'
// export const WEBVIEW_URL = 'http://127.0.0.1:8080'
/** 蓝牙的服务 uuid */
......
......@@ -60,9 +60,11 @@
&-detail {
height: 55px;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 22px;
color: #666;
word-break: break-all;
margin-bottom: 5px;
}
......
......@@ -58,6 +58,7 @@ class Films extends Component {
this.getData()
}
componentDidShow() {
this.page = 1
this.getData()
}
async getData() {
......
......@@ -67,6 +67,7 @@ class Films extends Component {
this.getData()
}
componentDidShow() {
this.page = 1
this.getData()
this.onClose()
}
......
......@@ -103,6 +103,7 @@ class Films extends Component {
})
}
componentDidShow() {
this.page = 1
this.getData()
}
async getData() {
......
......@@ -70,7 +70,6 @@ class ScheduleAdd extends Component {
} catch (err) {}
}
componentDidShow() {
console.log('componentDidShow')
Taro.getStorage({ key: 'schedule-add-films' }).then(res => {
this.setState({
filmList: JSON.parse(res.data)
......
......@@ -64,6 +64,7 @@ class Schedule extends Component {
this.getData()
}
componentDidShow() {
this.page = 1
this.getData()
}
async getData() {
......
......@@ -120,11 +120,15 @@ class Tempaltes extends Component {
templateId: ''
})
})
this.setState({
page: 1,
templateId: ''
})
this.getData()
this.setState(
{
page: 1,
templateId: ''
},
() => {
this.getData()
}
)
}
getData(showTempalte2?) {
Taro.showLoading({
......
......@@ -66,10 +66,14 @@ class Tempaltes extends Component {
}
componentDidShow() {
this.setState({
page: 1
})
this.getData()
this.setState(
{
page: 1
},
() => {
this.getData()
}
)
}
getData() {
const { page } = this.state
......
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