Commit cc3f53b8 authored by 黄奎's avatar 黄奎

1

parent 6fcd69df
......@@ -105,7 +105,7 @@
<view class="triangle-up" :style="{ top: pagePaddingBottom }"></view>
</view>
<coupon v-if="showCoupons" :coupon-message="couponMessage" :cform="ComeFrom" @goLook="goLook" @closeBtn="closeBtn"></coupon>
<template v-show="setting&&setting.is_show_auth==1">
<template v-if="setting&&setting.is_show_auth&& setting.is_show_auth==1">
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</template>
<!-- <official-account></official-account> -->
......@@ -425,12 +425,14 @@
let set = uni.getStorageSync("basedata") ?
uni.getStorageSync("basedata").mall.setting : {};
this.setting = set;
if (!uni.getStorageSync("add_top_app")) {
uni.setStorageSync("add_top_app", {
add_top_app_show: 1,
});
}
this.setting = set;
this.add_show = uni.getStorageSync("add_top_app") ?
uni.getStorageSync("add_top_app").add_top_app_show :
1;
......@@ -537,34 +539,7 @@
},
methods: {
getunilogin(res) {
let that = this;
//静默登录操作
uni.login({
provider: "weixin",
success: (info) => {
let obj = {
Name: res.userInfo.nickName,
Photo: res.userInfo.avatarUrl,
code: info.code,
};
that.getCode(obj);
},
fail: () => {
uni.showToast({
title: "微信登录授权失败",
icon: "none",
});
if (!that.u) {
that.u = {
nickName: "未登录",
avatarUrl: "",
};
that.showAuth = true;
}
},
});
},
//获取IsOpenReserve
getIsOpenReserve() {
this.request2({
......@@ -644,6 +619,34 @@
},
});
},
getunilogin(res) {
let that = this;
//静默登录操作
uni.login({
provider: "weixin",
success: (info) => {
let obj = {
Name: res.userInfo.nickName,
Photo: res.userInfo.avatarUrl,
code: info.code,
};
that.getCode(obj);
},
fail: () => {
uni.showToast({
title: "微信登录授权失败",
icon: "none",
});
if (!that.u) {
that.u = {
nickName: "未登录h",
avatarUrl: "",
};
that.showAuth = true;
}
},
});
},
//调用获取code
getCode(obj) {
var that = this;
......
......@@ -3,8 +3,8 @@
<scroll-view scroll-y="true" style="height: 1px; flex: 1; box-sizing: border-box" @scroll="scroll">
<view class="jz_TopImg">
<view class="media" :style="{ opacity: 100 - boxOption + '%' }">
<u-swiper :list="dataList.tempImgCover" :effect3d="false" :height="535" :interval="5000"
:border-radius="0" @click="openPicture" name="Url"></u-swiper>
<u-swiper :list="dataList.tempImgCover" :effect3d="false" :height="535" :interval="5000" :border-radius="0" @click="openPicture"
name="Url"></u-swiper>
<view class="media-info">
<view style="display: flex; align-items: center">
<view class="mi-left">
......@@ -23,13 +23,11 @@
</view>
</view>
</view>
<view class="sharebox"
v-if=" hideshare == false && shareData && shareData.IsShow && (shareData.Data.MaxShare>0|| shareData.Data.MyBuyCommission>0)"
<view class="sharebox" v-if=" hideshare == false && shareData && shareData.IsShow && (shareData.Data.MaxShare>0|| shareData.Data.MyBuyCommission>0)"
:style="{top:topheight+'px'}">
</view>
<!-- #ifdef MP-WEIXIN -->
<view @click="goback" :style="[titleStyle, { opacity: '100% !important' }]"
style="position: fixed; top: 0; left: 0; padding-left: 6rpx">
<view @click="goback" :style="[titleStyle, { opacity: '100% !important' }]" style="position: fixed; top: 0; left: 0; padding-left: 6rpx">
<u-icon name="arrow-left" size="44" color="#FFF" style="margin-top: 22rpx"></u-icon>
</view>
<!-- #endif -->
......@@ -40,15 +38,13 @@
<u-icon name="arrow-left" size="44"></u-icon>
<!-- #endif -->
</view>
<view
style="margin-left: 30rpx;text-align: left;width: 60vw;overflow: hidden;text-overflow: ellipsis;white-space: nowrap; "
<view style="margin-left: 30rpx;text-align: left;width: 60vw;overflow: hidden;text-overflow: ellipsis;white-space: nowrap; "
class="name-ali">{{ dataList.title }}</view>
</view>
</view>
<view class="jz_TopPrice">
<view class="jz_LineTitle">
<text class="jz_renmin">¥</text><text
class="jz_B2bPrice">{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}</text>
<text class="jz_renmin">¥</text><text class="jz_B2bPrice">{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}</text>
<text style="color: #999999; font-size: 28rpx; font-weight: 400">/人起</text>
</view>
<view class="jz_MainTitle">
......@@ -70,8 +66,7 @@
font-size: 36rpx;
font-weight: bold;
">
<text
v-if="dataList.startCityName || (dataList.currentPriceInfo.priceUnion && dataList.currentPriceInfo.priceUnion.startCityName)">{{
<text v-if="dataList.startCityName || (dataList.currentPriceInfo.priceUnion && dataList.currentPriceInfo.priceUnion.startCityName)">{{
dataList.currentPriceInfo.priceUnion && dataList.currentPriceInfo.priceUnion.startCityName?dataList.currentPriceInfo.priceUnion.startCityName:dataList.startCityName
}}</text>出发
</text>
......@@ -87,19 +82,16 @@
"></span>
</span>
</view>
<view @click="showStartCities=true"
style="font-size: 12px;padding:5px;display: flex; align-items: center;"
v-if="startCities && startCities.length>1">
<span
style="width:4px;height: 4px;background-color: #ff3166;border-radius: 4px;display: inline-block;"></span>
<view @click="showStartCities=true" style="font-size: 12px;padding:5px;display: flex; align-items: center;" v-if="startCities && startCities.length>1">
<span style="width:4px;height: 4px;background-color: #ff3166;border-radius: 4px;display: inline-block;"></span>
<text style="margin:0 5px">选择其它出发城市</text>
<u-icon name="arrow" color="#000" size="28"></u-icon>
</view>
</view>
<view style="display: flex; overflow-x: auto">
<template v-for="(item, pindex) in dataList.priceList">
<view class="jz_StartList" v-if="pindex < 3" :class="{ active: delMsg.tcid == item.tcid }"
@click="getDayInfo(item)" :key="pindex">
<view class="jz_StartList" v-if="pindex < 3" :class="{ active: delMsg.tcid == item.tcid }" @click="getDayInfo(item)"
:key="pindex">
<view class="jz_StartTop">{{ getMonth(item.startDate) }} </view>
<view class="jz_StartHoubu" v-if="item.remainNum > 0">
<text></text>
......@@ -112,8 +104,8 @@
</view>
</view>
</template>
<view class="jz_StartList" v-if="dataList.priceList.length > 3"
:class="{ active: delMsg.tcid == customerDate.tcid }" @click="openDate">
<view class="jz_StartList" v-if="dataList.priceList.length > 3" :class="{ active: delMsg.tcid == customerDate.tcid }"
@click="openDate">
<view class="jz_StartTop" v-if="customerDate.startDate">
{{ customerDate.startDate ? getMonth(customerDate.startDate) : "" }}
</view>
......@@ -123,8 +115,7 @@
</view>
<view style="color: #ff3166; font-size: 26rpx" v-if="customerDate.b2BPrice">
¥{{ $utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice }}</view>
<view v-if="!customerDate.startDate"
style="height: 100%;width: 100%; display: flex; align-items: center;justify-content: center;">
<view v-if="!customerDate.startDate" style="height: 100%;width: 100%; display: flex; align-items: center;justify-content: center;">
<view style="font-size: 24rpx; color: #999999">更多<br />班期</view>
</view>
</view>
......@@ -132,15 +123,12 @@
</view>
<view class="jz_TripDays" style="display: none">
<span style="display: inline-block; position: relative">
<text
style="position: relative;z-index: 2;color: #1f1f1f;font-size: 36rpx;font-weight: bold;">摘要</text>
<span
style="width:40px;background-color:#dfbe6e;height: 6px;bottom: 2px;left: 0; right: 0;position: absolute;z-index: 1;"></span>
<text style="position: relative;z-index: 2;color: #1f1f1f;font-size: 36rpx;font-weight: bold;">摘要</text>
<span style="width:40px;background-color:#dfbe6e;height: 6px;bottom: 2px;left: 0; right: 0;position: absolute;z-index: 1;"></span>
</span>
<view class="jz_ZhaiTitle"> <text class="jz_Dian"></text>住宿 </view>
<view class="jz_ZhaiInner"> {{ dataList.nightNum }}晚酒店 </view>
<template
v-if="dataList.feature && dataList.feature.shopRemarkText != null && dataList.feature.shopRemarkText != ''">
<template v-if="dataList.feature && dataList.feature.shopRemarkText != null && dataList.feature.shopRemarkText != ''">
<view class="jz_ZhaiTitle"> <text class="jz_Dian"></text>购物 </view>
<view class="jz_ZhaiInner">
{{ dataList.feature.shopRemarkText }}
......@@ -160,8 +148,7 @@
</view>
<view class="jz_Zhankai" style="display: none">展开全部</view>
</view>
<view class="jz_TripDays"
v-if="dataList.currentPriceInfo.priceFlight &&dataList.currentPriceInfo.priceFlight.length > 0">
<view class="jz_TripDays" v-if="dataList.currentPriceInfo.priceFlight &&dataList.currentPriceInfo.priceFlight.length > 0">
<span style="
display: inline-block;
position: relative;
......@@ -187,8 +174,7 @@
</span>
<view class="jz_TripMain">
<view>
<view class="jz_Flight" v-for="(fItem, fIndex) in dataList.currentPriceInfo.priceFlight"
:key="fIndex">
<view class="jz_Flight" v-for="(fItem, fIndex) in dataList.currentPriceInfo.priceFlight" :key="fIndex">
<view class="jz_FlightItem">
<view style="width: 150rpx">
<view class="jz_FlightTitle">{{ fItem.departureAirPortName }}</view>
......@@ -196,17 +182,14 @@
</view>
<view class="jz_FlightIcon">
<view style="display: flex; align-items: center; font-size: 24rpx">
<img v-if="fItem.trafficType == 1" style="width: 30rpx; height: 30rpx"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/airfly.png"
<img v-if="fItem.trafficType == 1" style="width: 30rpx; height: 30rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/airfly.png"
alt="" />
<img v-if="fItem.trafficType == 2" style="width: 30rpx; height: 30rpx"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/train.png"
<img v-if="fItem.trafficType == 2" style="width: 30rpx; height: 30rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/train.png"
alt="" />
<view style="margin-left: 10rpx">{{ fItem.flightNumber }}</view>
</view>
<view class="jz_Arrow">
<img style="width: 110rpx; height: 8rpx"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/b_arrow.png" />
<img style="width: 110rpx; height: 8rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/b_arrow.png" />
</view>
<view class="jz_StartDate">
{{ getFlightDay(fItem.startDate) }}
......@@ -221,8 +204,7 @@
</view>
</view>
</view>
<view class="jz_TripDays"
v-if="dataList.feature && dataList.feature.tripImageList && dataList.feature.tripImageList.length > 0">
<view class="jz_TripDays" v-if="dataList.feature && dataList.feature.tripImageList && dataList.feature.tripImageList.length > 0">
<span style="
display: inline-block;
position: relative;
......@@ -247,8 +229,8 @@
"></span>
</span>
<view class="jz_TripMain" style="margin:0 -22px;">
<image v-for="x in dataList.feature.tripImageList" :src="x" mode="widthFix"
@click='previewTravelPicHandler(x,dataList.feature.tripImageList)' style="width: 100%"></image>
<image v-for="x in dataList.feature.tripImageList" :src="x" mode="widthFix" @click='previewTravelPicHandler(x,dataList.feature.tripImageList)'
style="width: 100%"></image>
</view>
</view>
<view class="jz_TripDays" v-if="dataList.dayList && dataList.dayList.length > 0">
......@@ -399,8 +381,7 @@
<view v-for="(x,i) in d" :key="i">
<view style="font-size: 32rpx;font-family: nav-font;font-weight: 600;display: flex;">
<text>第 {{(i+1)}} 天</text>
<text
style="flex:1;width:1px;margin-left:10px;font-family: microsoft yahei ui light; line-height: 1;">
<text style="flex:1;width:1px;margin-left:10px;font-family: microsoft yahei ui light; line-height: 1;">
{{x.title}}
</text>
</view>
......@@ -428,8 +409,7 @@
<view class="right">
<view class="tag-play">
<view class="subtitle" style="flex: 1;">景点/场馆</view>
<view class="tag-play-box"
v-if="y.childItem.playTimeHour > 0 || y.childItem.playTimeMinutes > 0">
<view class="tag-play-box" v-if="y.childItem.playTimeHour > 0 || y.childItem.playTimeMinutes > 0">
<view class="remark">推荐游玩</view>
<view class="play-time">
<span v-if="y.childItem.playTimeHour > 0">{{ y.childItem.playTimeHour }}
......@@ -445,8 +425,7 @@
<rich-text :nodes="y.childItem.description"></rich-text>
<view class="sec-images">
<template v-for="(z,zi) in y.childItem.imaArray">
<image @click="previewImages(y.childItem.imaArray,zi)" :src="z.url"
mode="aspectFill" v-if="zi<3" :key="zi"></image>
<image @click="previewImages(y.childItem.imaArray,zi)" :src="z.url" mode="aspectFill" v-if="zi<3" :key="zi"></image>
</template>
</view>
</view>
......@@ -467,8 +446,7 @@
<rich-text :nodes="y.childItem.description"></rich-text>
<view class="sec-images">
<template v-for="(z,zi) in y.childItem.imaArray">
<image @tap="previewImages(y.childItem.imaArray,zi)" :src="z.url"
mode="aspectFill" v-if="zi<3" :key="zi"></image>
<image @tap="previewImages(y.childItem.imaArray,zi)" :src="z.url" mode="aspectFill" v-if="zi<3" :key="zi"></image>
</template>
</view>
</view>
......@@ -487,8 +465,7 @@
<rich-text :nodes="y.childItem.description"></rich-text>
<view class="sec-images">
<template v-for="(z,zi) in y.childItem.imaArray">
<image @tap="previewImages(y.childItem.imaArray,zi)" :src="z.url"
mode="aspectFill" v-if="zi<3" :key="zi"></image>
<image @tap="previewImages(y.childItem.imaArray,zi)" :src="z.url" mode="aspectFill" v-if="zi<3" :key="zi"></image>
</template>
</view>
</view>
......@@ -507,8 +484,7 @@
<rich-text :nodes="y.childItem.description"></rich-text>
<view class="sec-images">
<template v-for="(z,zi) in y.childItem.imaArray">
<image @tap="previewImages(y.childItem.imaArray,zi)" :src="z.url"
mode="aspectFill" v-if="zi<3" :key="zi"></image>
<image @tap="previewImages(y.childItem.imaArray,zi)" :src="z.url" mode="aspectFill" v-if="zi<3" :key="zi"></image>
</template>
</view>
</view>
......@@ -519,10 +495,8 @@
</view>
</view>
<view style="padding-bottom: 22px;background-color: #FFF;"
v-if="dataList.feature.detailsImageList && d.length>0">
<image :src="x" @click='previewTravelPicHandler(x,dataList.feature.detailsImageList)' mode="widthFix"
style="width: 100%;height: auto;margin-bottom: 10px;"
<view style="padding-bottom: 22px;background-color: #FFF;" v-if="dataList.feature.detailsImageList && d.length>0">
<image :src="x" @click='previewTravelPicHandler(x,dataList.feature.detailsImageList)' mode="widthFix" style="width: 100%;height: auto;margin-bottom: 10px;"
v-for="x in dataList.feature.detailsImageList"></image>
</view>
<view class="jz_TripDays" v-if="dataList.feature && dataList.feature.feeInclude">
......@@ -612,8 +586,7 @@
<view style="padding:10px;background-color: #eaeaea;">
自费项目
</view>
<view v-for="(x,i) in dataList.selfpayingList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;background: #FFF;">
<view v-for="(x,i) in dataList.selfpayingList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;background: #FFF;">
{{x.itemName}}
</view>
</view>
......@@ -621,8 +594,7 @@
<view style="padding:10px;background-color: #eaeaea;">
城市
</view>
<view v-for="(x,i) in dataList.selfpayingList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
<view v-for="(x,i) in dataList.selfpayingList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
{{x.cityName}}
</view>
</view>
......@@ -630,8 +602,7 @@
<view style="padding:10px;background-color: #eaeaea;">
预估费用
</view>
<view v-for="(x,i) in dataList.selfpayingList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
<view v-for="(x,i) in dataList.selfpayingList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
{{x.estimatedCost}}
</view>
</view>
......@@ -639,8 +610,7 @@
<view style="padding:10px;background-color: #eaeaea;">
说明
</view>
<view v-for="(x,i) in dataList.selfpayingList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
<view v-for="(x,i) in dataList.selfpayingList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
{{x.explain}}
</view>
</view>
......@@ -735,8 +705,7 @@
<view style="padding:10px;background-color: #eaeaea;">
购物店名称
</view>
<view v-for="(x,i) in dataList.shopList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;background: #FFF;">
<view v-for="(x,i) in dataList.shopList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;background: #FFF;">
{{x.shopName}}
</view>
</view>
......@@ -744,8 +713,7 @@
<view style="padding:10px;background-color: #eaeaea;">
城市
</view>
<view v-for="(x,i) in dataList.shopList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
<view v-for="(x,i) in dataList.shopList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
{{x.cityName}}
</view>
</view>
......@@ -753,8 +721,7 @@
<view style="padding:10px;background-color: #eaeaea;">
参观时长
</view>
<view v-for="(x,i) in dataList.shopList" :key="i"
style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
<view v-for="(x,i) in dataList.shopList" :key="i" style="white-space: nowrap;padding:10px;border-bottom:1px solid #eaeaea;">
{{x.visitTime}}
</view>
</view>
......@@ -849,13 +816,10 @@
<!-- <view class="jz_TripDays" style="width:100%;height:50rpx;background-color: transparent;">
</view> -->
<u-popup v-model="showDateChosen" mode="bottom" border-radius="20" length="90%"
:safe-area-inset-bottom="true">
<canlendar @finish="chosenDateResult" :defaultDate="currentPrice.startDate"
:priceList="dataList.priceList"></canlendar>
<u-popup v-model="showDateChosen" mode="bottom" border-radius="20" length="90%" :safe-area-inset-bottom="true">
<canlendar @finish="chosenDateResult" :defaultDate="currentPrice.startDate" :priceList="dataList.priceList"></canlendar>
</u-popup>
<u-popup v-model="showOrderPreviwe" mode="bottom" border-radius="20" length="90%"
:safe-area-inset-bottom="true">
<u-popup v-model="showOrderPreviwe" mode="bottom" border-radius="20" length="90%" :safe-area-inset-bottom="true">
<view style="
width: 100%;
height: 100%;
......@@ -863,8 +827,8 @@
flex-direction: column;
">
<view style="flex: 1; width: 100%; height: 1rpx">
<canlendar @finish="chosenDateResult" :immediately="true" :defaultDate="currentPrice.startDate"
:priceList="dataList.priceList" title="确定日期和人数"></canlendar>
<canlendar @finish="chosenDateResult" :immediately="true" :defaultDate="currentPrice.startDate" :priceList="dataList.priceList"
title="确定日期和人数"></canlendar>
</view>
<view style="background: #ecf1f4; padding: 20rpx 0">
<view class="line-flex" style="padding: 30rpx; background: #fff">
......@@ -875,8 +839,7 @@
margin-left: 30rpx;
flex: 1;
">18周岁以上</text>
<u-number-box size="28" :min="1" :max="currentPrice.remainNum - etCount - etbCount"
@change="crChange" v-model="crCount"></u-number-box>
<u-number-box size="28" :min="1" :max="currentPrice.remainNum - etCount - etbCount" @change="crChange" v-model="crCount"></u-number-box>
</view>
<view class="line-flex" style="padding: 30rpx; background: #fff">
<text style="font-size: 28rpx; color: #111; font-weight: 500">儿童(占床)</text>
......@@ -886,8 +849,7 @@
margin-left: 30rpx;
flex: 1;
">2-18周岁(不含)</text>
<u-number-box size="28" :min="0" :max="currentPrice.remainNum - crCount - etbCount"
@change="etChange" v-model="etCount"></u-number-box>
<u-number-box size="28" :min="0" :max="currentPrice.remainNum - crCount - etbCount" @change="etChange" v-model="etCount"></u-number-box>
</view>
<view class="line-flex" style="padding: 30rpx; background: #fff">
<text style="font-size: 28rpx; color: #111; font-weight: 500">儿童(不占床)</text>
......@@ -897,8 +859,7 @@
margin-left: 30rpx;
flex: 1;
">2-18周岁(不含)</text>
<u-number-box size="28" :min="0" :max="currentPrice.remainNum - crCount - etCount"
@change="etbChange" v-model="etbCount"></u-number-box>
<u-number-box size="28" :min="0" :max="currentPrice.remainNum - crCount - etCount" @change="etbChange" v-model="etbCount"></u-number-box>
</view>
<view class="line-flex" style="padding: 30rpx; background: #fff">
<text style="font-size: 28rpx; color: #111; font-weight: 500">婴儿</text>
......@@ -908,8 +869,7 @@
margin-left: 30rpx;
flex: 1;
">0-2周岁(不含)</text>
<u-number-box size="28" @change="yeChange" :min="0" :max="crCount"
v-model="yeCount"></u-number-box>
<u-number-box size="28" @change="yeChange" :min="0" :max="crCount" v-model="yeCount"></u-number-box>
</view>
</view>
<view class="jz_OrderDiv" style="box-shadow: none; width: 100%; padding: 20rpx">
......@@ -922,16 +882,14 @@
<view style="display: flex; align-items: center">
<!-- #ifdef MP-WEIXIN -->
<button open-type="contact" class="jz_ConButton">
<img style="width: 36rpx; height: 38rpx"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
<img style="width: 36rpx; height: 38rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
alt="" />
<view style="color: #111111; font-size: 22rpx">客服</view>
</button>
<!-- #endif -->
<!-- #ifdef MP-ALIPAY -->
<button class="jz_ConButton" style="margin-right: 20rpx">
<contact-button tnt-inst-id="QqR_ZV6m" scene="SCE01203509"
icon="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
<contact-button tnt-inst-id="QqR_ZV6m" scene="SCE01203509" icon="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
size="38rpx" :alipay-card-no="2088 + userId" :ext-info="appid">
</contact-button>
<view style="color: #111111; font-size: 22rpx">客服</view>
......@@ -948,23 +906,20 @@
<view style="color: #ff3166; font-weight: bold">
<text style="font-size: 22rpx">¥</text>
<!-- b2b -->
<text
style="font-size: 40rpx;font-family: nav-font;">{{$utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice}}</text>
<text style="font-size: 40rpx;font-family: nav-font;">{{$utils.getretailer()?currentPrice.b2BPrice:currentPrice.b2CPrice}}</text>
<text style="font-size: 22rpx">/起</text>
</view>
<view style="display: flex; align-items: center">
<!-- #ifdef MP-WEIXIN -->
<button @click="downloadTripPlanHandler" class="jz_ConButton" v-if="d.length>3">
<img style="width: 36rpx; height: 38rpx"
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1695376860000_131.png"
<img style="width: 36rpx; height: 38rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1695376860000_131.png"
alt="" />
<view style="color: #111111; font-size: 22rpx">下载行程</view>
</button>
<!-- #endif -->
<!-- #ifdef MP-ALIPAY -->
<button class="jz_ConButton" style="margin-right: 20rpx">
<contact-button tnt-inst-id="QqR_ZV6m" scene="SCE01203509"
icon="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
<contact-button tnt-inst-id="QqR_ZV6m" scene="SCE01203509" icon="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
size="38rpx" :alipay-card-no="2088 + userId" :ext-info="appid">
</contact-button>
<view style="color: #111111; font-size: 22rpx">客服</view>
......@@ -975,7 +930,7 @@
</view>
</view>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<auth v-if="showAuth&&is_show_auth==1" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
<u-popup v-model="showStartCities" mode="bottom" border-radius="20" length="60%" :safe-area-inset-bottom="true">
<view style="display: flex;flex-direction: column;height:100%;width:100%;">
<view style="font-size: 24px; font-weight: 700;padding: 20px;font-family: city-font;">
......@@ -983,16 +938,13 @@
</view>
<scroll-view scroll-y="true" style="width: 100%;height: 1px; flex: 1;">
<view style="padding:20px">
<view @click="changeStartCity(x)"
:style="{'background': delMsg.cityId==x.StartCityId?'#DFBE6E':''}"
style="padding:20px;display: flex;align-items: center;margin-bottom: 20px;box-shadow: 0px 0px 20px 0px rgba(76,87,125,0.2); border-radius: 8px;"
<view @click="changeStartCity(x)" :style="{'background': delMsg.cityId==x.StartCityId?'#DFBE6E':''}" style="padding:20px;display: flex;align-items: center;margin-bottom: 20px;box-shadow: 0px 0px 20px 0px rgba(76,87,125,0.2); border-radius: 8px;"
v-for="(x,i) in startCities">
<view style="font-size: 18px;font-family: city-font;width:1px;flex:1;">{{ x.StartCityName }}
</view>
<view style="color: #ff3166;">
<text class="jz_renmin">¥</text>
<text
class="jz_B2bPrice">{{ $utils.getretailer()?(currentPrice.originalB2BPrice+x.BackAddPrice+x.GoAddPrice):(currentPrice.originalB2CPrice+x.BackAddPrice+x.GoAddPrice) }}</text>
<text class="jz_B2bPrice">{{ $utils.getretailer()?(currentPrice.originalB2BPrice+x.BackAddPrice+x.GoAddPrice):(currentPrice.originalB2CPrice+x.BackAddPrice+x.GoAddPrice) }}</text>
<text style="color: #999999; font-size: 28rpx; font-weight: 400">/人起</text>
</view>
</view>
......@@ -1058,7 +1010,8 @@
topheight: 0,
shareData: null,
isDownloading: false,
startCities: []
startCities: [],
is_show_auth: 0, //是否配置启用授权(1-开启)
};
},
created() {},
......@@ -1096,7 +1049,12 @@
}
this.getDetails();
this.U = uni.getStorageSync("mall_UserInfo");
let basedata = uni.getStorageSync("basedata");
//判断后台是否开启自动授权
if (basedata && basedata.mall && basedata.mall.setting && basedata.mall.setting && basedata.mall.setting.is_show_auth ==
1) {
this.is_show_auth = 1;
}
if (!this.U) {
this.U = {
......@@ -1494,6 +1452,7 @@
avatarUrl: "",
};
this.showAuth = true;
this.is_show_auth = 1;
return;
}
let myObj = {};
......
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