细节优化

master
gongfuxiang 2023-10-10 18:51:01 +08:00
parent e6d851f13b
commit 8f2f543f3d
7 changed files with 13 additions and 36 deletions

View File

@ -53,7 +53,7 @@
category_goods_model_icon_type: 0,
// 使logologo->logo->->
is_logo_use_text: 0,
// 0 , 1
// 0 , 1
user_center_nav_show_model_type: 0,
// 0, 1
is_goods_list_show_cart_opt: 1,
@ -1879,7 +1879,7 @@
// url
// query:[{key:'',value:''}]
updateQueryStringParameter(query = []) {
update_query_string_parameter(query = []) {
// #ifdef H5
let url = window.location.href;
//

View File

@ -87,13 +87,6 @@
/* #endif */
}
.search-content-animation {
transition: all 0.2s ease;
/* #ifdef MP-WEIXIN */
transition: all 0.2s linear;
/* #endif */
}
/* #ifdef H5 || MP-TOUTIAO || APP */
.search-content-fixed .nav-top-right-icon {
top: 9px !important;

View File

@ -60,7 +60,7 @@
<!-- 轮播 -->
<view class="banner-content padding-horizontal-main" v-if="banner_list.length > 0">
<component-banner :propData="banner_list" @changeBanner="changeBanner"></component-banner>
<component-banner :propData="banner_list" @changeBanner="change_banner"></component-banner>
</view>
<!-- 导航 -->
<view v-if="navigation.length > 0" class="spacing-mt">
@ -631,8 +631,9 @@
});
clearInterval(this.plugins_popupscreen_timer);
},
//
changeBanner(color) {
change_banner(color) {
if (color) {
this.slider_bg = 'background: linear-gradient(180deg,' + color + ' 0%, #f5f5f5 80%);padding-top:' + (bar_height + 5) + 'px;';
} else {

View File

@ -12,7 +12,7 @@
<image :src="signin_static_url + 'signin-bg.png'" mode="widthFix" class="wh-auto"></image>
<view class="signin-opration-group pa right-0 flex-col cr-white">
<view v-if="(data_base.is_share || 0) == 1" class="share oh flex-row">
<button class="content" open-type="share" @tap="share_event">
<button type="default" class="content" @tap="share_event">
<iconfont name="icon-qiandao-fenxiang" class="pr top-sm" size="32rpx"></iconfont>
分享
</button>

View File

@ -159,7 +159,7 @@
this.setData({
current: e.currentTarget.dataset.index || 0,
});
app.globalData.updateQueryStringParameter([{ key: 'type', value: e.currentTarget.dataset.index }]);
app.globalData.update_query_string_parameter([{ key: 'type', value: e.currentTarget.dataset.index }]);
},
//
scroll_lower(e) {

View File

@ -153,7 +153,7 @@
current: pay_data.type || 0,
});
setTimeout(() => {
app.globalData.updateQueryStringParameter([{ key: 'type', value: pay_data.type }]);
app.globalData.update_query_string_parameter([{ key: 'type', value: pay_data.type }]);
}, 200);
}
this.init();
@ -248,7 +248,7 @@
this.setData({
current: e.currentTarget.dataset.index || 0,
});
app.globalData.updateQueryStringParameter([{ key: 'type', value: e.currentTarget.dataset.index }]);
app.globalData.update_query_string_parameter([{ key: 'type', value: e.currentTarget.dataset.index }]);
},
//

View File

@ -63,19 +63,13 @@
</view>
</view>
<!-- 中间导航 -->
<view class="user-bottom padding-horizontal-main" :style="(payment_page_url || null) !== null || (membership_page_url || null) !== null ? 'box-shadow: 0px -8px 8px 2px rgba(0, 0, 0, 0.2);' : ''">
<!-- 订单导航 -->
<view v-if="(navigation_order || null) != null" class="nav-list bg-white bg-white padding-vertical-main border-radius-main spacing-mb">
<!-- 订单导航 -->
<view class="nav-content flex-row jc-sb align-c">
<!-- 主导航 -->
<!-- <view :data-value="navigation_order.event_value" :data-type="navigation_order.event_type" @tap="navigation_event" class="nav-item br-b cp padding-main">
<view class="arrow-right">
<image :src="navigation_order.images_url" class="item-icon va-m" mode="widthFix"></image>
<text class="item-name va-m cr-base margin-left-sm">{{navigation_order.name}}</text>
<text v-if="(navigation_order.desc || null) != null" class="item-desc fr tr single-text cr-grey">{{navigation_order.desc}}</text>
</view>
</view> -->
<view class="nav-list-sub oh flex-row jc-sa align-c flex-1">
<!-- 订单自定义副导航 -->
<block v-for="(items, index) in user_order_status_list" :key="index">
@ -101,16 +95,12 @@
<!-- 聚合导航 -->
<view class="service-nav padding-main border-radius-main bg-white spacing-mb">
<view class="padding-main pr">
<text class="fw-b text-size">我的服务</text>
<image class="show-type-submit pa cp" :src="common_static_url + 'show-' + (nav_show_model_type == 0 ? 'list' : 'grid') + '-icon.png'" mode="aspectFill" @tap="nav_show_type_event"> </image>
</view>
<!-- 列表模式 -->
<view v-if="nav_show_model_type == 1" class="nav-list">
<block v-for="(item, index) in navigation" :key="index">
<!-- 这里不展示订单导航 -->
<block v-if="item.event_value != '/pages/user-order/user-order'">
<view :data-value="item.event_value" :data-type="item.event_type" @tap="navigation_event" class="nav-item br-t cp padding-main">
<view :data-value="item.event_value" :data-type="item.event_type" @tap="navigation_event" :class="'nav-item cp padding-main '+(index > 0 ? 'br-t-e' : '')">
<view class="arrow-right">
<image :src="item.images_url" class="item-icon va-m" mode="widthFix"></image>
<text class="item-name va-m cr-base margin-left-sm text-size-sm">{{ item.name }}</text>
@ -135,7 +125,7 @@
</view>
</view>
<!-- 默认九方格模式 -->
<view v-else class="nav-box oh br-t margin-top-sm">
<view v-else class="nav-box oh margin-top-sm">
<block v-for="(item, index) in navigation" :key="index">
<!-- 这里不展示订单导航 -->
<block v-if="item.event_value != '/pages/user-order/user-order'">
@ -492,14 +482,7 @@
// url
url_event(e) {
app.globalData.url_event(e);
},
//
nav_show_type_event(e) {
this.setData({
nav_show_model_type: this.nav_show_model_type == 0 ? 1 : 0,
});
},
}
},
};
</script>