更新优化

This commit is contained in:
weipengfei 2023-11-07 18:46:26 +08:00
parent 44421c4ded
commit 6480227fd3
6 changed files with 20 additions and 8 deletions

View File

@ -18,7 +18,7 @@
<image src='../../static/images/noAddress.png'></image> <image src='../../static/images/noAddress.png'></image>
<view>暂无地址</view> <view>暂无地址</view>
</view> </view>
<view class='addressBnt' @tap='goAddressPages'>添加地址</view> <view class='addressBnt' @tap='goAddressPages'>添加/编辑地址</view>
</view> </view>
<view class='mask' catchtouchmove="true" :hidden='address.address==false' @tap='close'></view> <view class='mask' catchtouchmove="true" :hidden='address.address==false' @tap='close'></view>
</view> </view>

View File

@ -12,6 +12,9 @@
"nvueCompiler" : "uni-app", "nvueCompiler" : "uni-app",
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,
"compatible":{
"ignoreVersion": true //trueHBuilderX1.9.0
},
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender" : true,
"waiting" : true, "waiting" : true,

View File

@ -34,6 +34,7 @@
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"onReachBottomDistance": 300,
// #ifdef APP-PLUS // #ifdef APP-PLUS
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
// #endif // #endif

View File

@ -302,9 +302,9 @@ export default {
onReachBottom() { onReachBottom() {
if (this.productList.length > 0) { if (this.productList.length > 0) {
setTimeout(() => { this.$u.sleep(50).then(()=>{
this.getGoods(false); this.getGoods(false);
}, 1000) })
} }
}, },

View File

@ -185,7 +185,7 @@
</view> </view>
</view> </view>
<!-- 购物车 --> <!-- 购物车 -->
<view class="card" :style="`bottom:${appInfo.bottom}px`" <view class="card" :style="`bottom:${appInfo.bottom+10}px`"
@click="navgo('/pages/order_addcart/order_addcart?product_type=98')"> @click="navgo('/pages/order_addcart/order_addcart?product_type=98')">
<view class="left"> <view class="left">
<view class="cart" :class="{ act_cart: act_cart }" style="position: relative; z-index: 9999999"> <view class="cart" :class="{ act_cart: act_cart }" style="position: relative; z-index: 9999999">
@ -263,7 +263,7 @@
<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"> <authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse">
</authorize> </authorize>
<view class="" :style="`height:${appInfo.bottom}px;`"> </view> <view class="" :style="`height:${appInfo.bottom+10}px;`"> </view>
</view> </view>
<view class=""> <view class="">
@ -420,7 +420,7 @@
// ...mapGetters(['isLogin', 'viewColor', 'uid']), // ...mapGetters(['isLogin', 'viewColor', 'uid']),
onLoad(e) { onLoad(e) {
// this.cartFn() // this.cartFn()
this.location = e.location; this.location = e.location;
this.appInfo = this.$appInfo.safeAreaInsets this.appInfo = this.$appInfo.safeAreaInsets
this.winHeight = this.$appInfo.windowHeight this.winHeight = this.$appInfo.windowHeight
this.street_code = e.street this.street_code = e.street

View File

@ -210,11 +210,19 @@ export default {
type: 'routine' type: 'routine'
}; };
//#endif //#endif
// #ifndef MP
params = {
type: 'app'
};
//#endif
merchantQrcode(this.id, params) merchantQrcode(this.id, params)
.then(res => { .then(res => {
console.log('二维码', res);
this.storeCode = res.data.url; this.storeCode = res.data.url;
}) })
.catch(err => {}); .catch(err => {
console.log('二维码错误', err);
});
}, },
// #ifdef MP // #ifdef MP
// //