|
|
@@ -107,12 +107,12 @@ Page({
|
|
|
this.experience();
|
|
|
},
|
|
|
experience(e) {
|
|
|
- console.log(e, 11111111);
|
|
|
+ // console.log(e, 11111111);
|
|
|
if (
|
|
|
e.currentTarget.dataset.index == 4 ||
|
|
|
e.currentTarget.dataset.index == 3
|
|
|
) {
|
|
|
- if (wx.getStorageSync("USER")) {
|
|
|
+ // if (wx.getStorageSync("USER")) {
|
|
|
const obj = this.data.goodsClassfiyList.find(v => v.name == '联名福利') || '';
|
|
|
// console.log(obj);
|
|
|
wx.setStorageSync('classfiyId', obj ? obj.id : '')
|
|
|
@@ -120,11 +120,11 @@ Page({
|
|
|
url: e.currentTarget.dataset.index == 4 ?
|
|
|
"/invitationCode/index" : `/pages/quality/index/index`,
|
|
|
});
|
|
|
- } else {
|
|
|
- wx.navigateTo({
|
|
|
- url: "/pages/login",
|
|
|
- });
|
|
|
- }
|
|
|
+ // } else {
|
|
|
+ // wx.navigateTo({
|
|
|
+ // url: "/pages/login",
|
|
|
+ // });
|
|
|
+ // }
|
|
|
} else {
|
|
|
app.params.pePageToIndex =
|
|
|
e === undefined ? 0 : e.currentTarget.dataset.index + 1;
|
|
|
@@ -649,6 +649,7 @@ Page({
|
|
|
platform,
|
|
|
statusBarHeight
|
|
|
} = wx.getSystemInfoSync();
|
|
|
+ console.log("statusBarHeight======", statusBarHeight);
|
|
|
let statusBarHeightTop = statusBarHeight;
|
|
|
let height = statusBarHeight + 4; //ios 24px
|
|
|
let mH = statusBarHeight + 4;
|
|
|
@@ -659,11 +660,25 @@ Page({
|
|
|
height = height + 100;
|
|
|
// height = height + 38 + 118;
|
|
|
// 胶囊高度 32px 下边框6px height 状态栏高度
|
|
|
+ let then = this
|
|
|
this.setData({
|
|
|
statusBarHeightTop: statusBarHeightTop + "px",
|
|
|
- statusBarHeight: height - 12 + "px",
|
|
|
+ statusBarHeight: statusBarHeight + 88 + "px",
|
|
|
statusBarMH: mH + "px",
|
|
|
+ }, res => {
|
|
|
+ // console.log("加载完成======", height);
|
|
|
+ // 创建选择器查询
|
|
|
+ // const query = wx.createSelectorQuery();
|
|
|
+ // console.log("query======", query);
|
|
|
+ // 选择 id 为 diy-top 的节点
|
|
|
+ wx.createSelectorQuery().in(this).select('#diy-top').boundingClientRect(rect => {
|
|
|
+ // console.log("rect===", rect) //这 里有值
|
|
|
+ then.setData({
|
|
|
+ statusBarHeight: rect.height + "px"
|
|
|
+ })
|
|
|
+ }).exec();
|
|
|
});
|
|
|
+
|
|
|
},
|
|
|
loadDictionary() {
|
|
|
let _this = this;
|