换标题组件

parent 1b2c9f8c
...@@ -10,21 +10,21 @@ ...@@ -10,21 +10,21 @@
"path": "pages/index/loading", "path": "pages/index/loading",
"style": { "style": {
"navigationBarTitleText": "加载", "navigationBarTitleText": "加载",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/assistingAgriculture/searchPage/searchPage", "path": "pages/assistingAgriculture/searchPage/searchPage",
"style": { "style": {
"navigationBarTitleText": "搜索", "navigationBarTitleText": "搜索",
"navigationStyle":"custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "小程序平台", "navigationBarTitleText": "小程序平台",
"navigationStyle":"custom", "navigationStyle": "custom",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
"style": { "style": {
"navigationBarTitleText": "商店首页", "navigationBarTitleText": "商店首页",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"" "navigationStyle": "custom"
} }
}, },
{ {
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
"style": { "style": {
"navigationBarTitleText": "用户相册", "navigationBarTitleText": "用户相册",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"" "navigationStyle": ""
} }
}, },
{ {
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
"style": { "style": {
"navigationBarTitleText": "购物车", "navigationBarTitleText": "购物车",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"" "navigationStyle": ""
} }
}, },
{ {
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
"style": { "style": {
"navigationBarTitleText": "确认订单", "navigationBarTitleText": "确认订单",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"" "navigationStyle": "custom"
} }
}, },
{ {
...@@ -214,13 +214,12 @@ ...@@ -214,13 +214,12 @@
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
} }
}, },
{ {
"path": "pages/assistingAgriculture/reviewDetails/reviewDetails", "path": "pages/assistingAgriculture/reviewDetails/reviewDetails",
"style": { "style": {
"navigationBarTitleText": "点评详情", "navigationBarTitleText": "点评详情",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"" "navigationStyle": "custom"
} }
}, },
{ {
...@@ -228,7 +227,7 @@ ...@@ -228,7 +227,7 @@
"style": { "style": {
"navigationBarTitleText": "景点详情", "navigationBarTitleText": "景点详情",
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationStyle":"", "navigationStyle": "custom",
"onReachBottomDistance": 50 "onReachBottomDistance": 50
} }
}, },
...@@ -267,4 +266,4 @@ ...@@ -267,4 +266,4 @@
"globalStyle": { "globalStyle": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }
\ No newline at end of file
<template> <template>
<view class="special-offer-zone-list-page"> <view class="special-offer-zone-list-page">
<view class="search"> <search
<wd-icon color="#fff" name="thin-arrow-left" class="icon" @tap="back"></wd-icon> style="position: fixed; top: 0; z-index: 99; width: 100%"
</view> :type="2"
title="特价专区"
showTitles="true"
:backgroundBox="backIconColor"
>
<view
v-if="backIconColor === 'white'"
:style="{ color: textColor }"
style="width: 100%; text-align: center; font-size: 36rpx"
>
特价专区
</view>
</search>
<view class="swiper"> <view class="swiper">
<wd-swiper <wd-swiper
customClass="swiper-custom" customClass="swiper-custom"
...@@ -124,6 +136,8 @@ const imgUrl = import.meta.env.VITE_APP_IMG_URL; ...@@ -124,6 +136,8 @@ const imgUrl = import.meta.env.VITE_APP_IMG_URL;
const rotate2 = ref(false); const rotate2 = ref(false);
const rotate3 = ref(false); const rotate3 = ref(false);
const rotate4 = ref(false); const rotate4 = ref(false);
const textColor = ref('#ffffff');
const backIconColor = ref('white');
const current = ref(0); const current = ref(0);
const isLoadReachBottom = ref(null); const isLoadReachBottom = ref(null);
const params = ref({ const params = ref({
...@@ -132,6 +146,15 @@ const params = ref({ ...@@ -132,6 +146,15 @@ const params = ref({
isEnd: false, isEnd: false,
}); });
const shopSwiperList = ref([]); const shopSwiperList = ref([]);
onPageScroll((e) => {
if (e.scrollTop > 20) {
backIconColor.value = 'white';
textColor.value = 'black';
} else {
backIconColor.value = '';
textColor.value = 'white';
}
});
const locationFiltering = (index) => { const locationFiltering = (index) => {
const rotates = [rotate, rotate2, rotate3, rotate4]; const rotates = [rotate, rotate2, rotate3, rotate4];
rotates.forEach((rotate, i) => { rotates.forEach((rotate, i) => {
......
<template> <template>
<search style="z-index: 99; width: 100%" :type="2" backgroundBox="#fff">
<view style="width: 100%; text-align: center; font-size: 36rpx; font-weight: bold">
确认订单
</view>
</search>
<view class="confirm-order"> <view class="confirm-order">
<wd-popup <wd-popup
v-model="showpopup" v-model="showpopup"
......
<template> <template>
<!-- 点评详情页面 --> <!-- 点评详情页面 -->
<search style="z-index: 99; width: 100%" :type="2" backgroundBox="#fff">
<view style="width: 100%; text-align: center; font-size: 36rpx; font-weight: bold">
点评详情
</view>
</search>
<view class="review-details-pages"> <view class="review-details-pages">
<view class="swiper-list"> <view class="swiper-list">
<wd-swiper <wd-swiper
......
<template> <template>
<!-- 点评详情页面 --> <!-- 点评详情页面 -->
<!-- 点评详情页面 -->
<search style="z-index: 99; width: 100%" :type="2" backgroundBox="#fff">
<view style="width: 100%; text-align: center; font-size: 36rpx; font-weight: bold">
点评详情
</view>
</search>
<view class="review-details-pages"> <view class="review-details-pages">
<view class="list"> <view class="list">
<view class="item" v-for="(item, index) in list" :key="index"> <view class="item" v-for="(item, index) in list" :key="index">
......
<template> <template>
<search style="z-index: 99; width: 100%" :type="2" backgroundBox="#fff">
<view style="width: 100%; text-align: center; font-size: 36rpx; font-weight: bold">
确认订单
</view>
</search>
<view class="page"> <view class="page">
<view class="banner"> <view class="banner">
<wd-swiper :list="shopImgList" height="236rpx" autoplay></wd-swiper> <wd-swiper :list="shopImgList" height="236rpx" autoplay></wd-swiper>
...@@ -249,20 +254,20 @@ uni-page-body { ...@@ -249,20 +254,20 @@ uni-page-body {
.page { .page {
height: 100%; height: 100%;
background-color: #f6f6f6; background-color: #f6f6f6;
padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.banner { .banner {
width: 710rpx; width: 710rpx;
height: 236rpx; padding: 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
:deep(.wd-swiper__track) { :deep(.wd-swiper__track) {
border-radius: 0; border-radius: 0;
} }
} }
.commodity-wrap { .commodity-wrap {
padding: 20rpx;
height: 40rpx; height: 40rpx;
flex-grow: 1; flex-grow: 1;
background-color: #fff; background-color: #fff;
......
<template> <template>
<!-- 确认订单页面 --> <!-- 确认订单页面 -->
<search
title="确认订单"
:showTitle="true"
style="z-index: 99; width: 100%"
:type="2"
backgroundBox="#fff"
></search>
<view class="confirm-order-pages"> <view class="confirm-order-pages">
<wd-popup <wd-popup
v-model="showpopup" v-model="showpopup"
...@@ -82,13 +89,6 @@ ...@@ -82,13 +89,6 @@
<wd-status-tip v-if="orderInfo.shopCoupon.length === 0" image="content" tip="暂无优惠券" /> <wd-status-tip v-if="orderInfo.shopCoupon.length === 0" image="content" tip="暂无优惠券" />
</view> </view>
</wd-popup> </wd-popup>
<search
style="position: fixed; top: 0; z-index: 99; width: 100%"
:type="2"
backgroundBox="#fff"
>
<view style="width: 100%; text-align: center; font-size: 36rpx">确认订单</view>
</search>
<!-- 商品卡 --> <!-- 商品卡 -->
<view class="order-detail-card"> <view class="order-detail-card">
<view class="title">{{ orderInfo.shopName }}</view> <view class="title">{{ orderInfo.shopName }}</view>
......
<template> <template>
<!-- 支付成功页面 --> <!-- 支付成功页面 -->
<search style="z-index: 99; width: 100%" :type="2" backgroundBox="#fff">
<view style="width: 100%; text-align: center; font-size: 36rpx; font-weight: bold">
确认订单
</view>
</search>
<view class="container"> <view class="container">
<search
style="position: fixed; top: 0; z-index: 99; width: 100%"
:type="2"
backgroundBox="#fff"
>
<view style="width: 100%; text-align: center; font-size: 36rpx">确认订单</view>
</search>
<view class="content"> <view class="content">
<!-- 使用状态 --> <!-- 使用状态 -->
<view class="status"> <view class="status">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment