Commit 2e5a7791 authored by youjie's avatar youjie

线路列表

parent e9e48fbc
...@@ -536,7 +536,13 @@ ...@@ -536,7 +536,13 @@
{ {
"root": "pages/jiuzhai", "root": "pages/jiuzhai",
"pages": [{ "pages": [{
"path": "jz_Line" //九寨-线路 "path": "jz_Line", //九寨-线路
"style": {
"navigationStyle": "custom"
},
"globalStyle": {
"navigationStyle": "custom"
}
}, { }, {
"path": "jz_LineDetail", "path": "jz_LineDetail",
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
......
<template>
<view class="lienHeader" :style="[titleStyle]">
<view class="lienHeaderBox">
<view class="lienHeader-left">
<view class="lienHeader-left-icon" @click="goBack">
<u-icon name="arrow-left" size="38" :color="type==1?'#000':'#000'"></u-icon>
</view>
</view>
<!-- <view class="lienHeader-title" :style="{'color':type==1?'#FFF':'#000'}">
<slot>{{title}}</slot>
</view> -->
</view>
</view>
</template>
<script>
export default {
props:['title','type'],
data() {
return {
titleStyle:{}
}
},
mounted() {
const that = this
uni.getSystemInfo({
success(res) {
that.titleStyle = {
paddingTop: `${res.statusBarHeight}px`
};
},
});
},
methods:{
goBack(){
uni.navigateBack({delta:-1})
}
}
}
</script>
<style>
.lienHeader-title{
width: 100%;
position: relative;
left: 0;
right: 0;
text-align: center;
font-size: 32rpx;
}
.lienHeader-left{
position: absolute;
left: 32rpx;
top: 83rpx;
z-index: 3;
}
.lienHeaderBox{
width: 100%;
height: 88rpx;
padding: 0 32rpx;
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
.lienHeader{
padding-top: 48rpx;
}
</style>
\ No newline at end of file
<style> <style>
.jz_LineHeadeBox{
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 1;
}
.jz_LineHeade{
height: 310rpx;
}
.jz_LineHeade.active0{
background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638731577125637216.png') no-repeat;
background-size: 100% auto;
}
.jz_LineHeade.active1{
background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638731577133752446.png') no-repeat;
background-size: 100% auto;
}
.jz_LineHeade.active2{
background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638731577175977264.png') no-repeat;
background-size: 100% auto;
}
.jz_Line {} .jz_Line {}
.jz_Content { .jz_Content {
...@@ -165,8 +187,8 @@ ...@@ -165,8 +187,8 @@
.jz_Content .search-box { .jz_Content .search-box {
height: 88rpx; height: 88rpx;
background: #ECF1F4; background: #FFF;
border-radius: 44rpx; border-radius:18rpx;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 19rpx 30rpx; padding: 19rpx 30rpx;
...@@ -303,17 +325,30 @@ ...@@ -303,17 +325,30 @@
<template> <template>
<div class="jz_Line"> <div class="jz_Line">
<view class="jz_Content"> <view class="jz_Content">
<view class="search-box"> <view class="jz_LineHeadeBox"
>
<view class="jz_LineHeade" :class="{
'active0':msg.teamType==0,
'active1':msg.teamType==1,
'active2':msg.teamType==2}">
<headerLine :type="msg.teamType" :title="msg.teamType==1?'小包团':''"></headerLine>
<view class="search-box" style="margin-top: 76rpx;">
<view class="date" @click="showBranch=true"> <view class="date" @click="showBranch=true">
<u-icon name="location" color="#111" size="24"></u-icon> <u-icon name="location" color="#B99846" size="24"></u-icon>
<text style="margin-left: 20rpx;">{{currentBrachName}}</text> <text style="margin-left: 20rpx;color: #B99846;">{{currentBrachName}}</text>
</view>
<view style="width: 1px;height: 26rpx;margin-right: 10rpx; background: #E5E3E1;flex-shrink: 0;">
<view style="opacity: 0;">
1
</view>
</view> </view>
<view style="width: 1px; flex: 1;"> <view style="width: 1px; flex: 1;">
<u-search placeholder="关键字搜索" v-model="msg.searchKey" @search="getList(1)" input-align="left" :value="msg.searchKey" <u-search placeholder="关键字搜索" v-model="msg.searchKey" @search="getList(1)" input-align="left" :value="msg.searchKey"
text-color="#111" bg-color="rgba(0,0,0,0)" :show-action="false"></u-search> text-color="#111" bg-color="rgba(0,0,0,0)" :show-action="false"></u-search>
</view> </view>
</view> </view>
<view> </view>
<view style="height: 100rpx;">
<u-dropdown ref="uDropdown" @open="open" @close="close" active-color="#000" inactive-color="#444"> <u-dropdown ref="uDropdown" @open="open" @close="close" active-color="#000" inactive-color="#444">
<u-dropdown-item v-model="msg.orderBy" :title="optionsTitle[0]" :options="orderBys" @change="changeOrderBy"> <u-dropdown-item v-model="msg.orderBy" :title="optionsTitle[0]" :options="orderBys" @change="changeOrderBy">
</u-dropdown-item> </u-dropdown-item>
...@@ -413,10 +448,14 @@ ...@@ -413,10 +448,14 @@
</u-dropdown-item> </u-dropdown-item>
</u-dropdown> </u-dropdown>
</view> </view>
</view>
<view style="margin-top: 390rpx;">
<view v-if="screenshow==true" class="Jz_Mask" @click="screenshow=false"></view> <view v-if="screenshow==true" class="Jz_Mask" @click="screenshow=false"></view>
<u-empty v-if="dataList.length==0 && !loading" text="暂无数据" mode="data"></u-empty> <u-empty v-if="dataList.length==0 && !loading" text="暂无数据" mode="data"></u-empty>
<template v-else> <template v-else>
<view style="height: calc(100vh - 120px);overflow: hidden;"> <view style="height: calc(100vh - 230px);overflow: hidden;">
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }"> <scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lower" :style="{ height: '100%' }">
<view class="jz_ListMain" v-for="(item,index) in dataList" :key="index" @click="goJzDetail(item)"> <view class="jz_ListMain" v-for="(item,index) in dataList" :key="index" @click="goJzDetail(item)">
<view class="jz_List"> <view class="jz_List">
...@@ -457,6 +496,8 @@ ...@@ -457,6 +496,8 @@
</view> </view>
</template> </template>
</view> </view>
</view>
<auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth> <auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<u-picker mode="time" v-model="isShowDate" @confirm='getStratDate' :params="params"></u-picker> <u-picker mode="time" v-model="isShowDate" @confirm='getStratDate' :params="params"></u-picker>
<u-popup v-model="showTimePopup" mode="bottom" border-radius="20" length="90%" :safe-area-inset-bottom="true"> <u-popup v-model="showTimePopup" mode="bottom" border-radius="20" length="90%" :safe-area-inset-bottom="true">
...@@ -469,10 +510,12 @@ ...@@ -469,10 +510,12 @@
<script> <script>
import canlendar from "./components/time/index.vue" import canlendar from "./components/time/index.vue"
import auth from "@/components/auth/index.vue"; import auth from "@/components/auth/index.vue";
import headerLine from "./components/headerLine";
export default { export default {
components: { components: {
canlendar, canlendar,
auth auth,
headerLine
}, },
data() { data() {
return { return {
...@@ -605,7 +648,8 @@ ...@@ -605,7 +648,8 @@
if (option && option.PlaceIds) { if (option && option.PlaceIds) {
this.msg.PlaceIds = option.PlaceIds; this.msg.PlaceIds = option.PlaceIds;
} }
if (option && option.teamType && option.teamType == "1") { // && option.teamType == "1"
if (option && option.teamType) {
this.msg.teamType = option.teamType; this.msg.teamType = option.teamType;
} }
let basedata = uni.getStorageSync("basedata"); let basedata = uni.getStorageSync("basedata");
...@@ -837,9 +881,11 @@ ...@@ -837,9 +881,11 @@
}, },
open(index) { open(index) {
this.$refs.uDropdown.highlight(); this.$refs.uDropdown.highlight();
console.log(this.$refs.uDropdown.active,'-----')
}, },
close(index) { close(index) {
this.$refs.uDropdown.highlight(index); this.$refs.uDropdown.highlight(index);
console.log(this.$refs.uDropdown.highlight(index),'-----33')
}, },
research() { research() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
......
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