|
@@ -185,29 +185,9 @@ export default {
|
|
|
console.log('查看返回的onloaddddd')
|
|
|
this.param.mockStatus = option.state || 0
|
|
|
|
|
|
- // this.endDate = this.$method.timestampToTime(new Date().getTime() / 1000).replace(/-/g,'/');
|
|
|
-
|
|
|
- // this.mockSubscribeListSubscribe();
|
|
|
- // uni.getSystemInfo({
|
|
|
- // success:(e) => {
|
|
|
- // let info = uni.createSelectorQuery().select(".nav");
|
|
|
- // info.boundingClientRect((navData) => { //data - 各种参数
|
|
|
-
|
|
|
- // let info = uni.createSelectorQuery().select(".tabs");
|
|
|
- // info.boundingClientRect((tabData) => { //data - 各种参数
|
|
|
- // this.modalTop = navData.height + tabData.height
|
|
|
- // console.log(navData) // 获取元素宽度
|
|
|
- // console.log(tabData) // 获取元素宽度
|
|
|
- // }).exec()
|
|
|
- // }).exec()
|
|
|
- // }
|
|
|
- // })
|
|
|
- },
|
|
|
- onShow() {
|
|
|
- console.log('查看返回的oonshow')
|
|
|
this.endDate = this.$method.timestampToTime(new Date().getTime() / 1000).replace(/-/g,'/');
|
|
|
|
|
|
- this.mockSubscribeListSubscribe();
|
|
|
+ // this.mockSubscribeListSubscribe();
|
|
|
uni.getSystemInfo({
|
|
|
success:(e) => {
|
|
|
let info = uni.createSelectorQuery().select(".nav");
|
|
@@ -240,10 +220,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
+ console.log('sfhdsofhsoh-----onshow', this.itemIndex)
|
|
|
this.nowTime = +this.$method.timest();
|
|
|
- if(this.itemIndex !== '') {
|
|
|
- this.refreshByIndex();
|
|
|
- }
|
|
|
+ // if(this.itemIndex !== '') {
|
|
|
+ // this.refreshByIndex();
|
|
|
+ // }
|
|
|
+ this.recordList = []
|
|
|
+ this.mockSubscribeListSubscribe();
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
@@ -323,7 +306,8 @@ export default {
|
|
|
}
|
|
|
// mock/subscribe/listSubscribe
|
|
|
this.$api.mockSubscribeListSubscribe(param).then(res => {
|
|
|
- this.recordList = []
|
|
|
+ console.log('请求请求')
|
|
|
+
|
|
|
this.recordList.push(...res.data.rows)
|
|
|
this.total = res.data.total
|
|
|
})
|
|
@@ -340,6 +324,7 @@ export default {
|
|
|
param.pageNum = this.itemIndex+1;
|
|
|
param.pageSize = 1
|
|
|
this.$api.mockSubscribeListSubscribe(param).then(res => {
|
|
|
+ console.log('res.data.rows[0]', res.data.rows[0])
|
|
|
this.$set(this.recordList,this.itemIndex,res.data.rows[0])
|
|
|
this.itemIndex = ''
|
|
|
})
|