细节优化
parent
e6d851f13b
commit
8f2f543f3d
4
App.vue
4
App.vue
|
|
@ -53,7 +53,7 @@
|
|||
category_goods_model_icon_type: 0,
|
||||
// 强制使用文字作为logo(默认当前指定logo->后台站点设置手机端图片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;
|
||||
// 判断没有参数时
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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 }]);
|
||||
},
|
||||
|
||||
// 滚动加载
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue