Commit 72f18976 authored by 黄奎's avatar 黄奎

车修改

parent 55b84043
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UserNum" <input class="text-right" type="number" v-model="item.UserNum"
@input="handleInput($event, item, 'UserNum')" @blur="handleBlur(item, 'UserNum')" /> @input="handleInput($event, item,1, 'UserNum')" @blur="handleBlur(item,1, 'UserNum')" />
</view> </view>
</view> </view>
<view class="inputBox row justify-between"> <view class="inputBox row justify-between">
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
</view> </view>
<view class="inputBoxRight"> <view class="inputBoxRight">
<input class="text-right" type="number" v-model="item.UnitPrice" <input class="text-right" type="number" v-model="item.UnitPrice"
@input="handleInput($event, item, 'UnitPrice')" @blur="handleBlur(item, 'UnitPrice')" /> @input="handleInput($event, item,2, 'UnitPrice')" @blur="handleBlur(item,2, 'UnitPrice')" />
</view> </view>
</view> </view>
<view class="inputBox row justify-between noBorder"> <view class="inputBox row justify-between noBorder">
...@@ -249,7 +249,6 @@ ...@@ -249,7 +249,6 @@
watch: { watch: {
data: { data: {
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log("newVal", newVal);
if (oldVal.dataIndex1 != newVal.dataIndex1) { if (oldVal.dataIndex1 != newVal.dataIndex1) {
this.initData(); this.initData();
} else { } else {
...@@ -263,22 +262,39 @@ ...@@ -263,22 +262,39 @@
deep: true, deep: true,
immediate: false immediate: false
}, },
datas: {
handler(newVal, oldVal) {
this.updateData();
},
deep: true,
immediate: false
},
}, },
mounted() { mounted() {
this.initData(); this.initData();
}, },
methods: { methods: {
// 在模板中的使用示例 // 在模板中的使用示例
handleInput(e, item, field) { handleInput(e, item, type, field) {
const value = e.detail.value; const value = e.detail.value;
const validValue = this.$utils.checkInteger(value, true); var validValue = 0;
if (type == 1) {
validValue = this.$utils.checkInteger(value, true);
} else {
validValue = this.$utils.checkPrice(value, true);
}
// 更新数据 // 更新数据
item[field] = validValue; item[field] = validValue;
// 触发其他逻辑(如计算) // 触发其他逻辑(如计算)
this.getTotal(); this.getTotal();
}, },
handleBlur(item, field) { handleBlur(item, type, field) {
const formattedValue = this.$utils.checkPrice(item[field], true); var formattedValue = 0;
if (type == 1) {
formattedValue = this.$utils.checkInteger(item[field], true);
} else {
formattedValue = this.$utils.checkPrice(item[field], true);
}
// 更新数据 // 更新数据
item[field] = formattedValue; item[field] = formattedValue;
this.$set(item, field, formattedValue); this.$set(item, field, formattedValue);
...@@ -296,12 +312,10 @@ ...@@ -296,12 +312,10 @@
}, },
getTotal() { getTotal() {
let total = 0; let total = 0;
this.datas.ReimburseList.ReimburseDetailsList.forEach(x => { this.datas.ReimburseList.ReimburseDetailsList.forEach(x => {
total += x.UserNum * x.UnitPrice total += x.UserNum * x.UnitPrice
}) })
this.datas.TotalMoney = total this.datas.TotalMoney = total
this.updateData()
}, },
delInfor(index) { delInfor(index) {
this.datas.ReimburseList.ReimburseDetailsList.splice(index, 1) this.datas.ReimburseList.ReimburseDetailsList.splice(index, 1)
...@@ -312,7 +326,7 @@ ...@@ -312,7 +326,7 @@
}, },
getSettlementType(item) { getSettlementType(item) {
this.datas.ReimburseList.SettlementType = item.id this.datas.ReimburseList.SettlementType = item.id
this.updateData()
this.$forceUpdate() this.$forceUpdate()
}, },
updateData() { updateData() {
...@@ -342,7 +356,7 @@ ...@@ -342,7 +356,7 @@
let findIndex = this.optionList.findIndex(x => x.id == value) let findIndex = this.optionList.findIndex(x => x.id == value)
this.optionObj = this.optionList[findIndex] this.optionObj = this.optionList[findIndex]
this.datas.ReimburseList.ReimburseDetailsList[this.ReimIndex].UserTypeStr = this.optionObj.name this.datas.ReimburseList.ReimburseDetailsList[this.ReimIndex].UserTypeStr = this.optionObj.name
this.datas.ReimburseList.ReimburseDetailsList[this.ReimIndex].UserType = this.optionObj.id this.datas.ReimburseList.ReimburseDetailsList[this.ReimIndex].UserType = this.optionObj.id;
}, },
previewImage(src) { previewImage(src) {
uni.previewImage({ uni.previewImage({
......
<style lang="scss"> <style lang="scss">
@import url("@/asset/css/flex.css"); @import url("@/asset/css/flex.css");
.backBox{
.backBox {
width: 45rpx; width: 45rpx;
height:45rpx; height: 45rpx;
background: rgba(23,23,23,.5); background: rgba(23, 23, 23, .5);
border-radius: 50%; border-radius: 50%;
margin-top: 22rpx; margin-top: 22rpx;
} }
.backIcon{
.backIcon {
display: inline-block; display: inline-block;
margin-top: 6rpx; margin-top: 6rpx;
} }
.backBox img{
.backBox img {
width: 19rpx; width: 19rpx;
height: 24rpx; height: 24rpx;
display: inline-block; display: inline-block;
margin-top: 10rpx; margin-top: 10rpx;
} }
.itiner-title {
.itiner-title {
line-height: 45px !important; line-height: 45px !important;
font-size: 16px; font-size: 16px;
position: fixed; position: fixed;
...@@ -28,50 +32,62 @@ ...@@ -28,50 +32,62 @@
z-index: 5; z-index: 5;
background-color: #0072FF; background-color: #0072FF;
padding-left: 6rpx; padding-left: 6rpx;
} }
.itiner-titles{
.itiner-titles {
color: #fff; color: #fff;
} }
.bjLine{
.bjLine {
background: #F5F5F5; background: #F5F5F5;
height: 30rpx; height: 30rpx;
} }
.itiner-c-title{
.itiner-c-title {
font-weight: bold; font-weight: bold;
} }
.itiner-xincheng img{
.itiner-xincheng img {
width: 31rpx; width: 31rpx;
height: 33rpx; height: 33rpx;
} }
.itiner-xincheng-left{
.itiner-xincheng-left {
color: #838383; color: #838383;
} }
.itiner-xincheng-right view{
.itiner-xincheng-right view {
border: 1rpx solid #3581DA; border: 1rpx solid #3581DA;
color: #3581DA; color: #3581DA;
border-radius: 8rpx; border-radius: 8rpx;
padding: 0 8rpx; padding: 0 8rpx;
} }
.itiner-left-line{
.itiner-left-line {
width: 9rpx; width: 9rpx;
height: 25rpx; height: 25rpx;
border-radius: 100rpx; border-radius: 100rpx;
background: #000; background: #000;
} }
.itiner-titleBox{
.itiner-titleBox {
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.itiner-title-c{
.itiner-title-c {
padding: 25rpx 20rpx; padding: 25rpx 20rpx;
} }
.itiner-title-c.itiner-title-c-top{
.itiner-title-c.itiner-title-c-top {
padding: 0rpx 20rpx; padding: 0rpx 20rpx;
} }
.itiner-title-c.active{
.itiner-title-c.active {
position: relative; position: relative;
color: #327FDE; color: #327FDE;
} }
.itiner-title-c.active::after{
.itiner-title-c.active::after {
content: ''; content: '';
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -79,17 +95,20 @@ ...@@ -79,17 +95,20 @@
width: 100%; width: 100%;
height: 5rpx; height: 5rpx;
background: #3581DA; background: #3581DA;
} }
.itiner-feiyong{
.itiner-feiyong {
background: #FF9702; background: #FF9702;
color: #fff; color: #fff;
border-radius: 10rpx; border-radius: 10rpx;
padding: 0rpx 20rpx; padding: 0rpx 20rpx;
} }
.media{
.media {
position: relative; position: relative;
} }
.detailsType{
.detailsType {
position: absolute; position: absolute;
left: 20rpx; left: 20rpx;
bottom: 10rpx; bottom: 10rpx;
...@@ -98,33 +117,25 @@ ...@@ -98,33 +117,25 @@
border-radius: 25rpx; border-radius: 25rpx;
padding: 3rpx 20rpx 7rpx 20rpx; padding: 3rpx 20rpx 7rpx 20rpx;
z-index: 2; z-index: 2;
} }
.richText{
.richText {
// white-space: pre-wrap; // white-space: pre-wrap;
} }
.name-ali{
.name-ali {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
margin-right: 200rpx; margin-right: 200rpx;
} }
</style> </style>
<template> <template>
<scroll-view ref="scrollView" scroll-y="true" <scroll-view ref="scrollView" scroll-y="true" style="width: 100%; height: 100vh;" @scroll="scroll"
style="width: 100%; height: 100vh;"
@scroll="scroll"
:scroll-top="scrollTop"> :scroll-top="scrollTop">
<view class="media" :style="{ opacity: 100 - boxOption + '%' }" <view class="media" :style="{ opacity: 100 - boxOption + '%' }" @click="openPicture">
@click="openPicture"> <u-swiper :list="dataList.tempImgCover" :effect3d="false" :height="545" :interval="5000" :border-radius="0"
<u-swiper name="Url" mode="number" indicatorPos="bottomRight">
:list="dataList.tempImgCover"
:effect3d="false"
:height="545"
:interval="5000"
:border-radius="0"
name="Url"
mode="number"
indicatorPos="bottomRight">
</u-swiper> </u-swiper>
<view @click="goback" :style="[titleStyle, { opacity: '100% !important' }]" <view @click="goback" :style="[titleStyle, { opacity: '100% !important' }]"
style="position: fixed; top: 0; left: 0; padding-left: 6rpx"> style="position: fixed; top: 0; left: 0; padding-left: 6rpx">
...@@ -150,11 +161,8 @@ ...@@ -150,11 +161,8 @@
</view> </view>
</view> </view>
<view class="PX30 itiner-titleBox bgFFF row items-center justify-between"> <view class="PX30 itiner-titleBox bgFFF row items-center justify-between">
<view class="itiner-title-c itiner-title-c-top fz30" <view class="itiner-title-c itiner-title-c-top fz30" :class="[current==item.ID?'active':'']"
:class="[current==item.ID?'active':'']" v-for="(item,index) in titlesList" :key="index" @click="goTop(item)">
v-for="(item,index) in titlesList"
:key="index"
@click="goTop(item)">
{{ item.Name }} {{ item.Name }}
</view> </view>
</view> </view>
...@@ -167,32 +175,39 @@ ...@@ -167,32 +175,39 @@
</view> </view>
<view class="row justify-between items-center"> <view class="row justify-between items-center">
<view class="row items-center"> <view class="row items-center">
<view class="row items-center"><view class="fz28 color9C9C9C">同业价:</view> <text class="fontBold fz38 colorF99710">{{priceList&&priceList.length>0?priceList[0].b2BPrice:0}}</text><text class="fz24 ML10"> / 人</text></view> <!-- <view class="row items-center">
<view class="row items-center ML30"><view class="fz28 color9C9C9C">统一售价:</view> <text class="fontBold fz38 colorF99710">{{priceList&&priceList.length>0?priceList[0].b2CPrice:0}} </text><text class="fz24 ML10"> / 人</text></view> <view class="fz28 color9C9C9C">同业价:</view> <text
</view> class="fontBold fz38 colorF99710">{{priceList&&priceList.length>0?priceList[0].b2BPrice:0}}</text><text
<!-- <view> class="fz24 ML10"> / 人</text>
<u-icon class="backIcon" name="arrow-down" size="32" color="#9D9D9D"></u-icon>
<u-icon class="backIcon" name="arrow-up" size="32" color="#9D9D9D"></u-icon>
</view> --> </view> -->
<view class="row items-center ML30">
<view class="fz28 color9C9C9C">统一售价:</view> <text
class="fontBold fz38 colorF99710">{{priceList&&priceList.length>0?priceList[0].b2CPrice:0}}
</text><text class="fz24 ML10"> / 人</text>
</view>
</view>
</view> </view>
<!-- <view class="colorE1432E fz28 PT10">
op备注:
</view> -->
</view> </view>
<view class="bjLine"></view> <view class="bjLine"></view>
<view class="PX30 PB20"> <view class="PX30 PB20">
<view class="MT15 itiner-xincheng row items-center"> <view class="MT15 itiner-xincheng row items-center">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638875112655075900.png"/> <img
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638875112655075900.png" />
<view class="itiner-xincheng-left ML30 MR30 fz26">行程天数</view> <view class="itiner-xincheng-left ML30 MR30 fz26">行程天数</view>
<view class="itiner-xincheng-right fz28 row items-center"> {{ dataList.dayNum>=0?dataList.dayNum:'' }}<text class="ML10 MR10"></text> <view class="itiner-xincheng-right fz28 row items-center">
{{ dataList.nightNum>=0?dataList.nightNum:'' }} <tetx class="ML10 MR10"></tetx> {{ dataList.dayNum>=0?dataList.dayNum:'' }}<text class="ML10 MR10"></text>
{{ dataList.nightNum>=0?dataList.nightNum:'' }}
<tetx class="ML10 MR10"></tetx>
{{ dataList.teamType==0?'跟团游':dataList.teamType==1?'小包团':'一日游' }} {{ dataList.teamType==0?'跟团游':dataList.teamType==1?'小包团':'一日游' }}
<view class="ML30 MR10" @click="downloadTripPlanHandler">行程下载</view></view> <view class="ML30 MR10" @click="downloadTripPlanHandler">行程下载</view>
</view>
</view> </view>
<view class="MT10 itiner-xincheng row items-center"> <view class="MT10 itiner-xincheng row items-center">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638875112698474332.png"/> <img
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638875112698474332.png" />
<view class="itiner-xincheng-left ML30 MR30 fz26">出发城市</view> <view class="itiner-xincheng-left ML30 MR30 fz26">出发城市</view>
<view class="itiner-xincheng-right fz28 row items-center">{{ dataList.startCityName?dataList.startCityName:'' }}</view> <view class="itiner-xincheng-right fz28 row items-center">
{{ dataList.startCityName?dataList.startCityName:'' }}</view>
</view> </view>
</view> </view>
<view class="bjLine"></view> <view class="bjLine"></view>
...@@ -203,7 +218,8 @@ ...@@ -203,7 +218,8 @@
<text class="fz32 fontBold ML20">报名清单</text> <text class="fz32 fontBold ML20">报名清单</text>
</view> </view>
<view> <view>
<u-icon class="backIcon" :name="!showQinDan?'arrow-down':'arrow-up'" size="32" color="#9D9D9D"></u-icon> <u-icon class="backIcon" :name="!showQinDan?'arrow-down':'arrow-up'" size="32"
color="#9D9D9D"></u-icon>
</view> </view>
</view> </view>
<view class="" v-if="showQinDan"> <view class="" v-if="showQinDan">
...@@ -216,7 +232,8 @@ ...@@ -216,7 +232,8 @@
</template> </template>
</view> </view>
<view class="fz28 PT15 PB20">报名人数: <view class="fz28 PT15 PB20">报名人数:
<template v-if="priceList&&priceList.length>0">{{ priceList[0].offerFSeat+priceList[0].offerCSeat+priceList[0].offerYSeat }}</template> <template
v-if="priceList&&priceList.length>0">{{ priceList[0].offerFSeat+priceList[0].offerCSeat+priceList[0].offerYSeat }}</template>
</view> </view>
</view> </view>
</view> </view>
...@@ -228,7 +245,8 @@ ...@@ -228,7 +245,8 @@
<text class="fz32 fontBold ML20">本团卖点</text> <text class="fz32 fontBold ML20">本团卖点</text>
</view> </view>
<view> <view>
<u-icon class="backIcon" :name="!showMaiDian?'arrow-down':'arrow-up'" size="32" color="#9D9D9D"></u-icon> <u-icon class="backIcon" :name="!showMaiDian?'arrow-down':'arrow-up'" size="32"
color="#9D9D9D"></u-icon>
</view> </view>
</view> </view>
<view v-if="showMaiDian" class=""> <view v-if="showMaiDian" class="">
...@@ -246,7 +264,8 @@ ...@@ -246,7 +264,8 @@
<text class="fz32 fontBold ML20">航班信息</text> <text class="fz32 fontBold ML20">航班信息</text>
</view> </view>
<view> <view>
<u-icon class="backIcon" :name="!showHangBan?'arrow-down':'arrow-up'" size="32" color="#9D9D9D"></u-icon> <u-icon class="backIcon" :name="!showHangBan?'arrow-down':'arrow-up'" size="32"
color="#9D9D9D"></u-icon>
</view> </view>
</view> </view>
<view v-if="showHangBan" class=""> <view v-if="showHangBan" class="">
...@@ -257,7 +276,8 @@ ...@@ -257,7 +276,8 @@
<view class="flex1">起飞时间</view> <view class="flex1">起飞时间</view>
<view class="flex1">到达时间</view> <view class="flex1">到达时间</view>
</view> </view>
<view class="priceFlightText fz28 row color666 MT20" v-for="(item,index) in priceList[0].priceFlight"> <view class="priceFlightText fz28 row color666 MT20"
v-for="(item,index) in priceList[0].priceFlight">
<view class="flex1"> <view class="flex1">
<view class="fz24"> {{ item.flightNumber }}</view> <view class="fz24"> {{ item.flightNumber }}</view>
{{ item.alName }} {{ item.alName }}
...@@ -281,11 +301,8 @@ ...@@ -281,11 +301,8 @@
</view> </view>
<view class="bjLine"></view> <view class="bjLine"></view>
<view class="PX30 itiner-titleBox row items-center justify-between"> <view class="PX30 itiner-titleBox row items-center justify-between">
<view class="itiner-title-c fz30" <view class="itiner-title-c fz30" :class="[current==item.ID?'active':'']"
:class="[current==item.ID?'active':'']" v-for="(item,index) in titlesList" :key="index" @click="goTop(item)">
v-for="(item,index) in titlesList"
:key="index"
@click="goTop(item)">
{{ item.Name }} {{ item.Name }}
</view> </view>
</view> </view>
...@@ -295,10 +312,10 @@ ...@@ -295,10 +312,10 @@
<view class="itiner-left-line">&nbsp;</view> <view class="itiner-left-line">&nbsp;</view>
<text class="fz32 fontBold ML20">行程特色</text> <text class="fz32 fontBold ML20">行程特色</text>
</view> </view>
<view v-if="dataList.feature&&dataList.feature.tripImageList&&dataList.feature.tripImageList.length>0"> <view
v-if="dataList.feature&&dataList.feature.tripImageList&&dataList.feature.tripImageList.length>0">
<image v-for="x in dataList.feature.tripImageList" :src="x" mode="widthFix" <image v-for="x in dataList.feature.tripImageList" :src="x" mode="widthFix"
@click='previewTravelPicHandler(x,dataList.feature.tripImageList)' @click='previewTravelPicHandler(x,dataList.feature.tripImageList)' style="width: 100%">
style="width: 100%">
</image> </image>
</view> </view>
</view> </view>
...@@ -318,20 +335,19 @@ ...@@ -318,20 +335,19 @@
</view> </view>
<template v-for="(y,yi) in x.dayArray"> <template v-for="(y,yi) in x.dayArray">
<view v-if="y.childItem&&y.childItem.imaArray&&y.childItem.imaArray.length>0&&y.type==2" <view
class="MB20" v-if="y.childItem&&y.childItem.imaArray&&y.childItem.imaArray.length>0&&y.type==2"
style="border: 1px solid #ddd;"> class="MB20" style="border: 1px solid #ddd;">
<view v-for="(z,zi) in y.childItem.imaArray"> <view v-for="(z,zi) in y.childItem.imaArray">
<image <image @click="previewImages(y.childItem.imaArray,zi)" :src="z.url"
@click="previewImages(y.childItem.imaArray,zi)" mode="aspectFill" :key="zi" style="width: 100%;" v-if="y.type==2">
:src="z.url" mode="aspectFill" </image>
:key="zi" style="width: 100%;"
v-if="y.type==2"></image>
</view> </view>
<view :key="yi" v-if="y.type==2" class="PA20"> <view :key="yi" v-if="y.type==2" class="PA20">
<view class="fz30 fontBold PB20">{{`${y.childItem.couponsName}`}}</view> <view class="fz30 fontBold PB20">{{`${y.childItem.couponsName}`}}</view>
<view class="fz28 color666"> <view class="fz28 color666">
<rich-text :nodes="y.childItem.description" class="richText"></rich-text> <rich-text :nodes="y.childItem.description"
class="richText"></rich-text>
</view> </view>
</view> </view>
</view> </view>
...@@ -344,24 +360,24 @@ ...@@ -344,24 +360,24 @@
</template> </template>
<view class="row" v-if="x.canshi"> <view class="row" v-if="x.canshi">
<view> <view>
<image style="width: 45rpx;height: 45rpx;display: block;" <image style="width: 45rpx;height: 45rpx;display: block;" mode="aspectFill"
mode="aspectFill" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638876765053973357.png" />
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638876765053973357.png"/>
</view> </view>
<view class="PL20"> <view class="PL20">
<view class="row PB20" v-for="item in x.canshi"> <view class="row PB20" v-for="item in x.canshi">
<view class="fz34 fontBold MR20 flexS"> <view class="fz34 fontBold MR20 flexS">
{{`${item.childItem.timeStr} ${item.childItem.dinnerTypeName}`}} {{`${item.childItem.timeStr} ${item.childItem.dinnerTypeName}`}}
</view> </view>
<view class="fz28 MR20 color666">{{item.childItem.dinnerName?item.childItem.dinnerName:'方便游玩敬请自理'}}</view> <view class="fz28 MR20 color666">
{{item.childItem.dinnerName?item.childItem.dinnerName:'方便游玩敬请自理'}}
</view>
</view> </view>
</view> </view>
</view> </view>
<view class="row" v-if="x.zhusu"> <view class="row" v-if="x.zhusu">
<view> <view>
<image style="width: 45rpx;height: 45rpx;display: block;" <image style="width: 45rpx;height: 45rpx;display: block;" mode="aspectFill"
mode="aspectFill" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638876765089861843.png" />
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638876765089861843.png"/>
</view> </view>
<view class="PL20"> <view class="PL20">
<view class="row" v-for="item in x.zhusu"> <view class="row" v-for="item in x.zhusu">
...@@ -375,9 +391,10 @@ ...@@ -375,9 +391,10 @@
</view> </view>
</view> </view>
<view class="PB20 bgFFF" v-if="dataList.feature&&dataList.feature.detailsImageList.length>0"> <view class="PB20 bgFFF" v-if="dataList.feature&&dataList.feature.detailsImageList.length>0">
<image class="MB20" :src="x" @click='previewTravelPicHandler(x,dataList.feature.detailsImageList)' <image class="MB20" :src="x"
mode="widthFix" style="width: 100%;height: auto;" @click='previewTravelPicHandler(x,dataList.feature.detailsImageList)' mode="widthFix"
v-for="x in dataList.feature.detailsImageList"></image> style="width: 100%;height: auto;" v-for="x in dataList.feature.detailsImageList">
</image>
</view> </view>
</view> </view>
</view> </view>
...@@ -391,7 +408,8 @@ ...@@ -391,7 +408,8 @@
</view> </view>
<view class="PB20"> <view class="PB20">
<view class="fz26 color666"> <view class="fz26 color666">
<rich-text :nodes="dataList.feature.feeInclude?dataList.feature.feeInclude:'暂无'" class="richText"></rich-text> <rich-text :nodes="dataList.feature.feeInclude?dataList.feature.feeInclude:'暂无'"
class="richText"></rich-text>
</view> </view>
</view> </view>
<view class="PB20"> <view class="PB20">
...@@ -399,7 +417,8 @@ ...@@ -399,7 +417,8 @@
</view> </view>
<view class="PB20"> <view class="PB20">
<view class="fz26 color666"> <view class="fz26 color666">
<rich-text :nodes="dataList.feature.feeNonInclude?dataList.feature.feeNonInclude:'暂无'" class="richText"></rich-text> <rich-text :nodes="dataList.feature.feeNonInclude?dataList.feature.feeNonInclude:'暂无'"
class="richText"></rich-text>
</view> </view>
</view> </view>
...@@ -414,7 +433,8 @@ ...@@ -414,7 +433,8 @@
</view> </view>
<view class="PB20"> <view class="PB20">
<view class="fz26"> <view class="fz26">
<rich-text :nodes="dataList.feature.importantTipText?dataList.feature.importantTipText:'暂无'" class="richText"></rich-text> <rich-text :nodes="dataList.feature.importantTipText?dataList.feature.importantTipText:'暂无'"
class="richText"></rich-text>
</view> </view>
</view> </view>
<view class="PB20"> <view class="PB20">
...@@ -422,7 +442,8 @@ ...@@ -422,7 +442,8 @@
</view> </view>
<view class="PB20"> <view class="PB20">
<view class="fz26"> <view class="fz26">
<rich-text :nodes="dataList.feature.warmTip?dataList.feature.warmTip:'暂无'" class="richText"></rich-text> <rich-text :nodes="dataList.feature.warmTip?dataList.feature.warmTip:'暂无'"
class="richText"></rich-text>
</view> </view>
</view> </view>
<template v-if="dataList.feature.b2BRemarkText"> <template v-if="dataList.feature.b2BRemarkText">
...@@ -431,7 +452,8 @@ ...@@ -431,7 +452,8 @@
</view> </view>
<view class="PB20"> <view class="PB20">
<view class="fz26"> <view class="fz26">
<rich-text :nodes="dataList.feature.b2BRemarkText?dataList.feature.b2BRemarkText:'暂无'" class="richText"></rich-text> <rich-text :nodes="dataList.feature.b2BRemarkText?dataList.feature.b2BRemarkText:'暂无'"
class="richText"></rich-text>
</view> </view>
</view> </view>
</template> </template>
...@@ -441,7 +463,8 @@ ...@@ -441,7 +463,8 @@
</view> </view>
<view class="PB20"> <view class="PB20">
<view class="fz26"> <view class="fz26">
<rich-text :nodes="dataList.feature.shopRemarkText?dataList.feature.shopRemarkText:'暂无'" class="richText"></rich-text> <rich-text :nodes="dataList.feature.shopRemarkText?dataList.feature.shopRemarkText:'暂无'"
class="richText"></rich-text>
</view> </view>
</view> </view>
</template> </template>
...@@ -451,7 +474,7 @@ ...@@ -451,7 +474,7 @@
</scroll-view> </scroll-view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
scrollTop: 0, scrollTop: 0,
...@@ -462,8 +485,7 @@ export default { ...@@ -462,8 +485,7 @@ export default {
titleStyle: { titleStyle: {
opacity: 0, opacity: 0,
}, },
imgsList: [ imgsList: [{
{
url: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638874829612454395.png', url: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638874829612454395.png',
Path: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638874829612454395.png', Path: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638874829612454395.png',
}, },
...@@ -472,7 +494,7 @@ export default { ...@@ -472,7 +494,7 @@ export default {
Path: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638874829612454395.png', Path: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638874829612454395.png',
}, },
], ],
titlesList:[{ titlesList: [{
Name: '行程特色', Name: '行程特色',
ID: 1, ID: 1,
val: 'title1', val: 'title1',
...@@ -520,11 +542,11 @@ export default { ...@@ -520,11 +542,11 @@ export default {
}, },
onLoad(options) { onLoad(options) {
if(options.configId){ if (options.configId) {
this.msg.configId = options.configId this.msg.configId = options.configId
this.init() this.init()
} }
if(options.TCID){ if (options.TCID) {
this.msg.tcid = options.TCID this.msg.tcid = options.TCID
} }
this.Up = uni.getStorageSync("mall_UserInfo") ? this.Up = uni.getStorageSync("mall_UserInfo") ?
...@@ -544,23 +566,23 @@ export default { ...@@ -544,23 +566,23 @@ export default {
}); });
}, },
watch: { watch: {
d:{ d: {
handler(newVal,oldVal){ handler(newVal, oldVal) {
if(this.d&&this.d.length > 0){ if (this.d && this.d.length > 0) {
setTimeout(()=>{ setTimeout(() => {
this.titlesList.forEach((x,index) => { this.titlesList.forEach((x, index) => {
if(index==1) x.Name = `${this.dataList.dayNum}日行程` if (index == 1) x.Name = `${this.dataList.dayNum}日行程`
const query = uni.createSelectorQuery().select(`#${x.val}`); const query = uni.createSelectorQuery().select(`#${x.val}`);
if(query) query.boundingClientRect((rect) => { if (query) query.boundingClientRect((rect) => {
x.top = rect.top-130; x.top = rect.top - 130;
}).exec(); }).exec();
if(index==3) uni.hideLoading() if (index == 3) uni.hideLoading()
}) })
},10000) }, 10000)
} }
}, },
deep:true, deep: true,
immediate:false immediate: false
}, },
}, },
mounted() { mounted() {
...@@ -595,11 +617,11 @@ export default { ...@@ -595,11 +617,11 @@ export default {
t[parseInt(y.childItem.useDinnerType) - 1]; t[parseInt(y.childItem.useDinnerType) - 1];
} }
}); });
x.dayArray = x.dayArray.sort((a,b)=>{ x.dayArray = x.dayArray.sort((a, b) => {
return new Date(a.type) - new Date(b.type) return new Date(a.type) - new Date(b.type)
}) })
x.zhusu = x.dayArray.filter(z=>z.type==3) x.zhusu = x.dayArray.filter(z => z.type == 3)
x.canshi = x.dayArray.filter(z=>z.type==4) x.canshi = x.dayArray.filter(z => z.type == 4)
}); });
} }
}, },
...@@ -622,7 +644,7 @@ export default { ...@@ -622,7 +644,7 @@ export default {
}); });
return txt; return txt;
}, },
init(){ init() {
uni.showLoading({ uni.showLoading({
title: '加载中...', title: '加载中...',
}) })
...@@ -668,7 +690,7 @@ export default { ...@@ -668,7 +690,7 @@ export default {
openPicture() { openPicture() {
let imgObj = JSON.stringify(this.dataList.tempImgCover); let imgObj = JSON.stringify(this.dataList.tempImgCover);
uni.navigateTo({ uni.navigateTo({
url: "/pages/hotel/picture?imgObj=" + imgObj+"&isLine=1", url: "/pages/hotel/picture?imgObj=" + imgObj + "&isLine=1",
}); });
}, },
scroll(e) { scroll(e) {
...@@ -680,18 +702,18 @@ export default { ...@@ -680,18 +702,18 @@ export default {
Math.floor(e.detail.scrollTop - 650) / 100 > 1 ? Math.floor(e.detail.scrollTop - 650) / 100 > 1 ?
1 : 1 :
Math.floor(e.detail.scrollTop - 650) / 100; Math.floor(e.detail.scrollTop - 650) / 100;
this.titlesList.forEach((x,index)=>{ this.titlesList.forEach((x, index) => {
let pev let pev
let nex let nex
pev = this.titlesList[index-1] pev = this.titlesList[index - 1]
nex = this.titlesList[index+1] nex = this.titlesList[index + 1]
if(this.old.scrollTop>x.top&&nex!=undefined&&this.old.scrollTop<nex.top){ if (this.old.scrollTop > x.top && nex != undefined && this.old.scrollTop < nex.top) {
this.current = nex.ID this.current = nex.ID
}else if(this.old.scrollTop>x.top&&nex==undefined){ } else if (this.old.scrollTop > x.top && nex == undefined) {
this.current = 4 this.current = 4
} else if(this.old.scrollTop<x.top&&pev!=undefined&&this.old.scrollTop>pev.top){ } else if (this.old.scrollTop < x.top && pev != undefined && this.old.scrollTop > pev.top) {
this.current = pev.ID this.current = pev.ID
}else if(this.old.scrollTop<x.top&&pev==undefined){ } else if (this.old.scrollTop < x.top && pev == undefined) {
this.current = 1 this.current = 1
} }
}) })
...@@ -778,7 +800,7 @@ export default { ...@@ -778,7 +800,7 @@ export default {
"&configId=" + "&configId=" +
this.msg.configId + this.msg.configId +
"&cityId=" + "&cityId=" +
this.msg.cityId+this.$uiConfig.DIRECT_PARAMETER, this.msg.cityId + this.$uiConfig.DIRECT_PARAMETER,
imageUrl: imageUrl, imageUrl: imageUrl,
}; };
}, },
...@@ -809,7 +831,7 @@ export default { ...@@ -809,7 +831,7 @@ export default {
"&configId=" + "&configId=" +
this.msg.configId + this.msg.configId +
"&cityId=" + "&cityId=" +
this.msg.cityId+this.$uiConfig.DIRECT_PARAMETER, this.msg.cityId + this.$uiConfig.DIRECT_PARAMETER,
imageUrl: "", imageUrl: "",
// imageUrl: // imageUrl:
// this.dataList.tempImgCover && this.dataList.tempImgCover.length > 0 // this.dataList.tempImgCover && this.dataList.tempImgCover.length > 0
...@@ -818,5 +840,5 @@ export default { ...@@ -818,5 +840,5 @@ export default {
}; };
}, },
}, },
} }
</script> </script>
\ No newline at end of file
...@@ -542,8 +542,8 @@ ...@@ -542,8 +542,8 @@
title: '保存中...' title: '保存中...'
}) })
this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", this.params, (res) => { this.apipost("dmcstatistics_post_SetNewLeaderApplyList_V2", this.params, (res) => {
this.loading = false;
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.loading = false
uni.showToast({ uni.showToast({
title: '操作成功!', title: '操作成功!',
icon: 'success', icon: 'success',
......
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