1.优化首页定位问题

master
杨杰 1 year ago
parent aac6ef4e1e
commit 9ad6909d34
  1. 8
      App.vue
  2. 14
      pages/tabBar/home/home.vue
  3. 1
      pages/user/positioning/positioning.vue

@ -66,6 +66,8 @@
pelletoilList: '',
//
shareNum: 0,
//
isSelect: false
},
@ -263,6 +265,7 @@
border: solid 1px #cccccc !important;
overflow: hidden;
}
//
checkbox.mycheck .uni-checkbox-input-checked::before,
checkbox.mycheck .wx-checkbox-input-checked::before {
@ -276,6 +279,7 @@
::-webkit-scrollbar {
display: none;
}
/* #endif */
/* 解决H5 的问题 */
/* #ifdef H5 */
@ -283,6 +287,7 @@
/* 隐藏滚动条,但依旧具备可以滚动的功能 */
display: none
}
/* #endif */
@ -292,12 +297,13 @@
border-top-left-radius: 10px !important;
border-bottom-left-radius: 10px !important;
}
.cart-num .uni-numbox-btns {
background-color: #f6f6f6 !important;
}
.cart-num .uni-numbox__plus {
border-top-right-radius: 10px !important;
border-bottom-right-radius: 10px !important;
}
</style>

@ -138,8 +138,7 @@
</view>
</view>
<!-- 大图 -->
<view class="width90 mart20 alijusstart" v-if="item.type == 4"
@click="goGoodsList(item.jumpUrl)">
<view class="width90 mart20 alijusstart" v-if="item.type == 4" @click="goGoodsList(item.jumpUrl)">
<view class="width70 font18 fcor333">
{{item.name}}
</view>
@ -222,10 +221,12 @@
onShow() {
// this.homeCateList = [];
// if (app.globalData.cityName != '') {
// this.city = app.globalData.qianzhuCityName;
// this.getCmsContentcmsContent();
// }
if (app.globalData.cityName != '') {
this.city = app.globalData.qianzhuCityName;
if (app.globalData.isSelect) {
this.getCmsContentcmsContent();
}
}
},
onLoad(options) {
let that = this;
@ -338,6 +339,7 @@
getCmsContent(params).then(res => {
this.isdisplay = false;
if (res.return_code == '000000') {
app.globalData.isSelect = false;
this.homeCateList = res.return_data;
}
});

@ -111,6 +111,7 @@
app.globalData.qianzhuCityName = res.return_data.cityName;
app.globalData.cityId = res.return_data.regionId;
app.globalData.companyId = res.return_data.companyId;
app.globalData.isSelect = true;
uni.navigateBack({})
} else {
uni.showToast({

Loading…
Cancel
Save