优化
This commit is contained in:
+20
-20
@@ -110,8 +110,8 @@ Page({
|
||||
let top = 0;
|
||||
|
||||
top = wx.getMenuButtonBoundingClientRect().top - stateHeight; // 获取top值
|
||||
console.log('navHeight', navHeight);
|
||||
console.log('top', top);
|
||||
// console.log('navHeight', navHeight);
|
||||
// console.log('top', top);
|
||||
|
||||
this.setData({
|
||||
// navHeight: navHeight + top * 2, // 导航栏高度
|
||||
@@ -120,10 +120,10 @@ Page({
|
||||
});
|
||||
},
|
||||
getFunboxHeight(){
|
||||
console.log("109: ", rpxTopx(109))
|
||||
console.log("113: ", rpxTopx(113))
|
||||
// console.log("109: ", rpxTopx(109))
|
||||
// console.log("113: ", rpxTopx(113))
|
||||
const { statusBarHeight } = wx.getSystemInfoSync();
|
||||
console.log("statusBarHeight: ", rpxTopx(statusBarHeight));
|
||||
// console.log("statusBarHeight: ", rpxTopx(statusBarHeight));
|
||||
let funbox_height = wx.getSystemInfoSync().windowHeight - (this.data.stateHeight + this.data.navHeight + 10) - 55;//减去底部空白
|
||||
funbox_height = rpxTopx(funbox_height);
|
||||
// 147 userinfo的高度
|
||||
@@ -174,26 +174,26 @@ Page({
|
||||
})
|
||||
},
|
||||
cancelContactDialog(){
|
||||
console.log("cancelContactDialogcancelContactDialogcancelContactDialog");
|
||||
// console.log("cancelContactDialogcancelContactDialogcancelContactDialog");
|
||||
this.setData({
|
||||
contactKeFu: false
|
||||
})
|
||||
},
|
||||
onPullDownRefresh(){
|
||||
console.log("用户下拉动作")
|
||||
// console.log("用户下拉动作")
|
||||
this.onShow();
|
||||
},
|
||||
onLoad(){
|
||||
|
||||
},
|
||||
onUnload(){
|
||||
console.log("index onUnload() onUnload() ");
|
||||
// console.log("index onUnload() onUnload() ");
|
||||
this.setData({
|
||||
swiperList: []
|
||||
})
|
||||
},
|
||||
onHide(){
|
||||
console.log("index onHide() onHide() ");
|
||||
// console.log("index onHide() onHide() ");
|
||||
|
||||
wx.offCopyUrl(this.Copylistener) // 需传入与监听时同一个的函数对象
|
||||
|
||||
@@ -233,7 +233,7 @@ Page({
|
||||
this.getMenuButtonBound();
|
||||
|
||||
api.yiShiIndex().then(response => {
|
||||
console.log(response);
|
||||
// console.log(response);
|
||||
let avatar = response.data.info.avatar;
|
||||
this.setData({
|
||||
"info.user_name": response.data.info.user_name,
|
||||
@@ -323,7 +323,7 @@ Page({
|
||||
},
|
||||
onTapAD(e) {
|
||||
let item = e.currentTarget.dataset.item;
|
||||
console.log(item);
|
||||
// console.log(item);
|
||||
let open_with = item.open_with;
|
||||
let banner_link = item.banner_link;
|
||||
if(open_with == 1){//小程序页面
|
||||
@@ -338,10 +338,10 @@ Page({
|
||||
},
|
||||
go(e){
|
||||
let checkDialog = this.checkDialog(e);
|
||||
console.log("checkDialog: ", checkDialog);
|
||||
// console.log("checkDialog: ", checkDialog);
|
||||
if(checkDialog){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
console.log(url);
|
||||
// console.log(url);
|
||||
if(url.indexOf("wenzhen") > -1){
|
||||
wx.switchTab({
|
||||
url: url,
|
||||
@@ -381,9 +381,9 @@ Page({
|
||||
app.go(e.currentTarget.dataset.url);
|
||||
},
|
||||
confirmDialog(e){
|
||||
console.log(e)
|
||||
// console.log(e)
|
||||
let url = e.currentTarget.dataset.url;
|
||||
console.log("confirmDialog: ", url)
|
||||
// console.log("confirmDialog: ", url)
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
@@ -637,11 +637,11 @@ Page({
|
||||
|
||||
let checkDialog = this.checkDialog(e);
|
||||
if(checkDialog){
|
||||
console.log("concatKeFu");
|
||||
// console.log("concatKeFu");
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['JMPmlYGh1HcUSuEfJCVQUIsZv4H5ar3QvXZfrNYNFuc'],
|
||||
success (res) {
|
||||
console.log(res);
|
||||
// console.log(res);
|
||||
_this.setData({
|
||||
contactKeFu: true
|
||||
})
|
||||
@@ -700,15 +700,15 @@ Page({
|
||||
let now_case = this.data.mycase.find(item => {
|
||||
return item.case_status == status;
|
||||
});
|
||||
console.log("now_case: ", now_case);
|
||||
// console.log("now_case: ", now_case);
|
||||
//所属模块
|
||||
let moudle = e.currentTarget.dataset.moudle;
|
||||
console.log("moudle: ", moudle);
|
||||
// console.log("moudle: ", moudle);
|
||||
if(now_case){
|
||||
let now_moudle = now_case.case_module.find(item => {
|
||||
return item == moudle;
|
||||
})
|
||||
console.log("now_moudle: ", now_moudle);
|
||||
// console.log("now_moudle: ", now_moudle);
|
||||
if(now_moudle != undefined){
|
||||
this.setData({
|
||||
dialog_content: now_case.case_text,
|
||||
|
||||
Reference in New Issue
Block a user