1.测试优化

master
sws 2023-11-08 11:25:55 +08:00
parent 5fd7b0385a
commit 2d16bdae38
4 changed files with 32 additions and 26 deletions

View File

@ -467,7 +467,7 @@
onLoad(params) {
this.setData({
params: params
params: params,
});
},
@ -497,17 +497,6 @@
this.popup_top = '98rpx';
// #endif
},
mounted() {
const query = uni.createSelectorQuery();
query.select('.nav-search').boundingClientRect((res) => {
if((res || null) != null) {
//
this.setData({
search_height: res.height,
});
}
}).exec();
},
methods: {
//
@ -595,10 +584,15 @@
this.get_cart_data();
}
}
//
this.setData({
is_first: 0,
});
//
this.search_height_computer();
} else {
this.setData({
data_list_loding_status: 2,
@ -1250,6 +1244,19 @@
url: '/pages/buy/buy?data=' + encodeURIComponent(base64.encode(JSON.stringify(data))),
});
},
//
search_height_computer() {
const query = uni.createSelectorQuery();
query.select('.nav-search').boundingClientRect((res) => {
if ((res || null) != null) {
//
this.setData({
search_height: res.height,
});
}
}).exec();
},
},
};
</script>

View File

@ -3,9 +3,6 @@
*/
.signin-container {
min-height: 100vh;
}
.signin-bg {
background-color: rgb(255 209 133);
}

View File

@ -1,8 +1,8 @@
<template>
<view :class="theme_view">
<view class="signin-container">
<component-nav-back></component-nav-back>
<view v-if="(data || null) != null" class="pr signin-bg oh">
<view v-if="(data || null) != null" class="signin-container">
<view class="pr oh">
<image :src="signin_static_url + 'signin-bg.png'" mode="widthFix" class="wh-auto"></image>
<view class="signin-opration-group pa flex-col cr-white">
<view v-if="(data_base.is_share || 0) == 1" class="share oh flex-row">
@ -122,12 +122,12 @@
</view>
<component-share-popup ref="share"></component-share-popup>
</view>
</view>
<view v-else>
<!-- 提示信息 -->
<component-no-data :propStatus="data_list_loding_status" :propMsg="data_list_loding_msg"></component-no-data>
</view>
</view>
</view>
</template>
<script>
const app = getApp();

View File

@ -10,7 +10,7 @@
<view class="text-size-lg fw-b">账号余额</view>
<view class="margin-top-sm">
<text class="unit">{{ currency_symbol }}</text>
<text class="price fw-b">380</text>
<text class="price fw-b">{{ user_wallet.normal_money }}</text>
</view>
</view>
<view class="recharge-content bg-white spacing-mt">
@ -88,6 +88,7 @@
form_submit_disabled_status: false,
data: [],
recharge_desc: '',
user_wallet: null,
select_index: null,
//
@ -168,6 +169,7 @@
data: data.preset_data || [],
payment_id: data.default_payment_id || 0,
recharge_desc: data.recharge_desc || '',
user_wallet: data.user_wallet || null,
data_list_loding_msg: '',
data_list_loding_status: 0,
});