Browse Source

上传

master
前端-胡立永 5 months ago
parent
commit
9da4f30b00
4 changed files with 30 additions and 4 deletions
  1. +16
    -1
      components/base/navbar.vue
  2. +11
    -0
      components/tourGuide/selectionPopup.vue
  3. +1
    -1
      pages_order/service/situation.vue
  4. +2
    -2
      store/store.js

+ 16
- 1
components/base/navbar.vue View File

@ -4,8 +4,14 @@
<view class="title" <view class="title"
:style="{backgroundColor : bgColor}"> :style="{backgroundColor : bgColor}">
<view class="left"> <view class="left">
<uv-icon name="home"
v-if="leftClick && length == 1"
@click="toHome"
color="#333" size="46rpx"></uv-icon>
<uv-icon name="arrow-left" <uv-icon name="arrow-left"
v-if="leftClick"
v-else-if="leftClick"
@click="$emit('leftClick')" @click="$emit('leftClick')"
color="#333" size="46rpx"></uv-icon> color="#333" size="46rpx"></uv-icon>
</view> </view>
@ -72,9 +78,18 @@
}, },
data() { data() {
return { return {
length : getCurrentPages().length
}; };
}, },
methods : { methods : {
toHome(){
if(this.length != 1){
return
}
uni.reLaunch({
url: '/pages/index/index'
})
}
} }
} }
</script> </script>


+ 11
- 0
components/tourGuide/selectionPopup.vue View File

@ -1,6 +1,10 @@
<template> <template>
<uv-popup ref="popup" :round="30" :customStyle="{height: '60vh'}"> <uv-popup ref="popup" :round="30" :customStyle="{height: '60vh'}">
<view class="content"> <view class="content">
<view class="btn"
@click="select({spotName : 'all'})">
全部
</view>
<uv-vtabs <uv-vtabs
:chain="chain" :chain="chain"
:list="areaList" :list="areaList"
@ -97,6 +101,13 @@
/deep/ .uv-vtabs__content{ /deep/ .uv-vtabs__content{
height: 60vh !important; height: 60vh !important;
} }
.btn{
display: flex;
justify-content: center;
align-items: center;
padding: 30rpx;
border-bottom: 1px solid #00000022;
}
.category-title{ .category-title{
position: relative; position: relative;
display: flex; display: flex;


+ 1
- 1
pages_order/service/situation.vue View File

@ -5,7 +5,7 @@
<view class="top-img"> <view class="top-img">
<uv-swiper <uv-swiper
:list="banner.follow"
:list="banner.yc"
indicator indicator
height="420rpx" height="420rpx"
keyName="imageContent"></uv-swiper> keyName="imageContent"></uv-swiper>


+ 2
- 2
store/store.js View File

@ -96,8 +96,8 @@ const store = new Vuex.Store({
// 获取所有页面的轮播图 // 获取所有页面的轮播图
getBanner(state){ getBanner(state){
// 0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5申遗历程
let config = ['path', 'follow', 'experience', 'service', 'course']
// 0-首页 1-遗产路径 2-我要跟拍 3-非遗体验 4-无忧服务 5申遗历程 6-遗产概况
let config = ['path', 'follow', 'experience', 'service', 'course', 'yc']
config.forEach((k, i) => { config.forEach((k, i) => {
api('queryBannerList', { api('queryBannerList', {
bannerCategoryType : i + 1, bannerCategoryType : i + 1,


Loading…
Cancel
Save