Browse Source

上传代码

zys
杨豪 3 years ago
parent
commit
8e2f9bc920
  1. 6
      App.vue
  2. 2
      pages/life/index.vue
  3. 3
      pages/user/index.vue

6
App.vue

@ -55,7 +55,7 @@ export default {
methods: {
sceneInfo(s) {
console.log(s)
console.log(s,'sssssssssssss')
var scene = [];
switch (s) {
case 1001:
@ -248,7 +248,7 @@ export default {
setMenuHeight() {
uni.getSystemInfo({
success: res => {
console.log(res,'resaaaaa')
// console.log(res,'resaaaaa')
this.globalData.navTopHeight = res.statusBarHeight;
this.globalData.CustomBar = res.statusBarHeight + 45;
this.globalData.systemInfo = res;
@ -259,7 +259,7 @@ export default {
}
});
let menuButtonObj = uni.getMenuButtonBoundingClientRect();
console.log(menuButtonObj,'menuButtonObj')
// console.log(menuButtonObj,'menuButtonObj')
this.globalData.menuTop = menuButtonObj.top;
this.globalData.menuHeight = menuButtonObj.height;
this.globalData.topHeight = menuButtonObj.top + menuButtonObj.height;

2
pages/life/index.vue

@ -230,7 +230,7 @@ export default {
this.active = i;
},
getProducts() {
console.log(getProducts,'//////getProducts')
// console.log(getProducts,'//////getProducts')
this.loadStatus = "loading";
getProducts({ page: this.page, limit: this.limit }).then((res) => {
// console.log(res)

3
pages/user/index.vue

@ -53,7 +53,8 @@
</view>
</view>
</view>
<view style="padding: 58rpx 40rpx 0; border-radius: 12rpx; overflow: hidden;" v-if="(userInfo.mpOpenId == 0 || !userInfo.mpOpenId) && scene == 1011">
<view style="padding: 58rpx 40rpx 0; border-radius: 12rpx; overflow: hidden;"
v-if="(userInfo.mpOpenId == 0 || !userInfo.mpOpenId) && (scene == 1047 || scene == 1001 || scene == 1011)">
<official-account></official-account>
</view>
<view class="menu-list-box">

Loading…
Cancel
Save