Commit b4ef8d49 authored by huangyuanyuan's avatar huangyuanyuan

update

parent 735b4f75
...@@ -165,6 +165,11 @@ image{ ...@@ -165,6 +165,11 @@ image{
padding: 0 26rpx; padding: 0 26rpx;
position: relative; position: relative;
} }
.commonF .FlTitleView .more{
position: absolute;
right: 30rpx;
margin-top:7rpx;
}
.commonF .FlTitleView .text{ .commonF .FlTitleView .text{
font-size:20rpx;font-weight:700; font-size:20rpx;font-weight:700;
} }
......
{ {
"pages": [ "pages": [
"pages/Home/home",
"pages/freeTravel/PersonalTailor/PersonalTailor",
"pages/freeTravel/freeList/freeList",
"pages/GroupTour/GroupList/GroupList",
"pages/freeTravel/free",
"pages/GroupTour/ChDateNum/ChDateNum",
"pages/GroupTour/GroupTour", "pages/GroupTour/GroupTour",
"pages/SearchPage/SearchPage", "pages/SearchPage/SearchPage",
"pages/GroupTour/FillOrder/FillOrder", "pages/GroupTour/FillOrder/FillOrder",
"pages/GroupTour/ChDateNum/ChDateNum",
"pages/GroupTour/GroupDetails/GroupDetails", "pages/GroupTour/GroupDetails/GroupDetails",
"pages/product/product", "pages/product/product",
"pages/freeTravel/freeList/freeList",
"pages/local/localhome", "pages/local/localhome",
"pages/freeTravel/free",
"pages/Home/home",
"pages/login/login", "pages/login/login",
"pages/GroupTour/Pay/Pay", "pages/GroupTour/Pay/Pay",
"pages/GroupTour/GroupList/GroupList",
"pages/member/member", "pages/member/member",
"pages/member/memberCenter/memberCenter", "pages/member/memberCenter/memberCenter",
"pages/member/memberInfo/memberInfo", "pages/member/memberInfo/memberInfo",
......
...@@ -78,7 +78,6 @@ Component({ ...@@ -78,7 +78,6 @@ Component({
}) })
}, },
bindPickerChange: function(e) { bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({ this.setData({
index: e.detail.value index: e.detail.value
}) })
......
...@@ -50,6 +50,9 @@ Component({ ...@@ -50,6 +50,9 @@ Component({
}, },
getYearMonthDay() { getYearMonthDay() {
let that = this; let that = this;
wx.showLoading({
title: '加载中222',
});
let currentYear = that.data.currentDay.substring(0, 4); //当前年份 let currentYear = that.data.currentDay.substring(0, 4); //当前年份
let currentMonth = that.data.currentDay.substring(5, 7); //当前月份 let currentMonth = that.data.currentDay.substring(5, 7); //当前月份
that.setData({ that.setData({
...@@ -134,6 +137,7 @@ Component({ ...@@ -134,6 +137,7 @@ Component({
item.color=true; item.color=true;
} }
}) })
wx.hideLoading()
that.setData({ that.setData({
daysData: Arr daysData: Arr
}) })
......
images/free/1.png

2.6 KB | W: | H:

images/free/1.png

2.36 KB | W: | H:

images/free/1.png
images/free/1.png
images/free/1.png
images/free/1.png
  • 2-up
  • Swipe
  • Onion skin
images/free/2.png

3.04 KB | W: | H:

images/free/2.png

2.69 KB | W: | H:

images/free/2.png
images/free/2.png
images/free/2.png
images/free/2.png
  • 2-up
  • Swipe
  • Onion skin
images/free/3.png

2.71 KB | W: | H:

images/free/3.png

2.47 KB | W: | H:

images/free/3.png
images/free/3.png
images/free/3.png
images/free/3.png
  • 2-up
  • Swipe
  • Onion skin
images/free/4.png

3.57 KB | W: | H:

images/free/4.png

3.32 KB | W: | H:

images/free/4.png
images/free/4.png
images/free/4.png
images/free/4.png
  • 2-up
  • Swipe
  • Onion skin
images/free/more.png

6.51 KB | W: | H:

images/free/more.png

5.48 KB | W: | H:

images/free/more.png
images/free/more.png
images/free/more.png
images/free/more.png
  • 2-up
  • Swipe
  • Onion skin
images/free/p1.png

898 Bytes | W: | H:

images/free/p1.png

817 Bytes | W: | H:

images/free/p1.png
images/free/p1.png
images/free/p1.png
images/free/p1.png
  • 2-up
  • Swipe
  • Onion skin
images/free/p2.png

1.09 KB | W: | H:

images/free/p2.png

1.02 KB | W: | H:

images/free/p2.png
images/free/p2.png
images/free/p2.png
images/free/p2.png
  • 2-up
  • Swipe
  • Onion skin
images/free/t0.png

11.9 KB | W: | H:

images/free/t0.png

10.1 KB | W: | H:

images/free/t0.png
images/free/t0.png
images/free/t0.png
images/free/t0.png
  • 2-up
  • Swipe
  • Onion skin
images/free/t1.png

18.2 KB | W: | H:

images/free/t1.png

16.2 KB | W: | H:

images/free/t1.png
images/free/t1.png
images/free/t1.png
images/free/t1.png
  • 2-up
  • Swipe
  • Onion skin
images/free/t2.png

11.8 KB | W: | H:

images/free/t2.png

10.5 KB | W: | H:

images/free/t2.png
images/free/t2.png
images/free/t2.png
images/free/t2.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -7,7 +7,7 @@ Page({ ...@@ -7,7 +7,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
currentDay: "", currentDay: util.YYMMDD(new Date()),
priceData: [], priceData: [],
numer: 1, numer: 1,
GoodsView: false, GoodsView: false,
...@@ -53,7 +53,7 @@ Page({ ...@@ -53,7 +53,7 @@ Page({
price: 0, price: 0,
zaoniao: 0, zaoniao: 0,
sumSeat: 0, sumSeat: 0,
totalPersion:0, totalPersion: 0,
adultPrice: 0, adultPrice: 0,
childrenPrice: 0, childrenPrice: 0,
babyPrice: 0, babyPrice: 0,
...@@ -74,11 +74,15 @@ Page({ ...@@ -74,11 +74,15 @@ Page({
msg.tcid = options.tcid; msg.tcid = options.tcid;
// msg.configId = options.idDes = decodeURIComponent("5aEwngdTBnM%3D%0A"); // msg.configId = options.idDes = decodeURIComponent("5aEwngdTBnM%3D%0A");
// msg.tcid = options.tcid = "3458"; // msg.tcid = options.tcid = "3458";
msg.teamType = options.teamType = 0; if (options.teamType) {
that.data.teamType = options.teamType = 0; msg.teamType = options.teamType;
that.data.teamType = options.teamType;
}
cityId: that.data.cityId, cityId: that.data.cityId,
that.setData({ that.setData({
msg: msg msg: msg,
teamType: that.data.teamType
}) })
this.getData(that.data.msg); this.getData(that.data.msg);
this.getB2BSellByCustomerId(); this.getB2BSellByCustomerId();
...@@ -105,7 +109,7 @@ Page({ ...@@ -105,7 +109,7 @@ Page({
}) })
return; return;
} }
let youhuiMoney = 0 let youhuiMoney = 0
trip.lineTeamDiscountList.forEach(x => { trip.lineTeamDiscountList.forEach(x => {
if (x.startNum <= sumSeat && sumSeat <= x.endNum) { if (x.startNum <= sumSeat && sumSeat <= x.endNum) {
...@@ -253,7 +257,7 @@ Page({ ...@@ -253,7 +257,7 @@ Page({
let babyCount = chosenObj.yeCount; //婴儿 let babyCount = chosenObj.yeCount; //婴儿
let childrenCount = childrenNotPlaceholderCount + childrenPlaceholderCount; let childrenCount = childrenNotPlaceholderCount + childrenPlaceholderCount;
let totalPersion = adultCount + babyCount + childrenCount; let totalPersion = adultCount + babyCount + childrenCount;
let znyh = parseFloat(currentPriceInfo.discountPrice); // 早鸟优惠 let znyh = parseFloat(currentPriceInfo.discountPrice); // 早鸟优惠
...@@ -285,7 +289,7 @@ Page({ ...@@ -285,7 +289,7 @@ Page({
adultPrice: adultPrice, adultPrice: adultPrice,
childrenPrice: childrenPrice, childrenPrice: childrenPrice,
babyPrice: babyPrice, babyPrice: babyPrice,
zf:zf,//杂费 zf: zf,//杂费
zcf: zcf, zcf: zcf,
bzcf: bzcf, bzcf: bzcf,
qzPrice: qzPrice, qzPrice: qzPrice,
...@@ -293,12 +297,13 @@ Page({ ...@@ -293,12 +297,13 @@ Page({
}) })
}, },
getB2BSellByCustomerId() { getB2BSellByCustomerId() {
app.$api('b2b_get_GetCustomerSummary', {}).then(res => { app.$api('b2b_get_GetCustomerSummary', {}).then(res => {
this.setData({ this.setData({
customer: res, customer: res,
}) })
}).catch(err => { }).catch(err => {
}) })
...@@ -347,25 +352,30 @@ Page({ ...@@ -347,25 +352,30 @@ Page({
}, },
getData(msg) { getData(msg) {
let that = this; let that = this;
app.$api('b2b_get_GetB2BTravelInfoV1', msg).then(res => { app.$api('b2b_get_GetB2BTravelInfoV1', msg).then(res => {
let data = res; let data = res;
// console.log(data)
that.setData({ that.setData({
trip: data, trip: data,
priceList: data.priceList, priceList: data.priceList,
FlightList: data.currentPriceInfo && data.currentPriceInfo.priceFlight ? data.currentPriceInfo.priceFlight : '', FlightList: data.currentPriceInfo && data.currentPriceInfo.priceFlight ? data.currentPriceInfo.priceFlight : '',
}) })
this.getDateArr(that.data.priceList); this.getDateArr(that.data.priceList);
}).catch(err => { }).catch(err => {
this.CreatCalendar();
}) })
}, },
getDateArr(arr) { getDateArr(arr) {
let that = this; let that = this;
var new_arr = {}; var new_arr = {};
for (var i = 0, len = arr.length; i < len; i++) { for (var i = 0, len = arr.length; i < len; i++) {
var Month_index = arr[i].startDate.lastIndexOf('-'); var Month_index = arr[i].startDate.lastIndexOf('-');
...@@ -409,14 +419,14 @@ Page({ ...@@ -409,14 +419,14 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function() { onReady: function () {
}, },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function() { onShow: function () {
}, },
CreatCalendar() { CreatCalendar() {
...@@ -426,35 +436,35 @@ Page({ ...@@ -426,35 +436,35 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function() { onHide: function () {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function() { onUnload: function () {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function() { onPullDownRefresh: function () {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function() { onReachBottom: function () {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function() { onShareAppMessage: function () {
} }
}) })
\ No newline at end of file
...@@ -37,7 +37,8 @@ Page({ ...@@ -37,7 +37,8 @@ Page({
that.data.teamType = options.teamType; that.data.teamType = options.teamType;
cityId: that.data.cityId, cityId: that.data.cityId,
that.setData({ that.setData({
msg: msg msg: msg,
teamType: that.data.teamType
}) })
this.getData(msg); this.getData(msg);
} }
......
// pages/GroupTour/GroupDetails/GroupDetails.js
let app = getApp(); let app = getApp();
var WxParse = require('../../wxParse/wxParse.js'); var WxParse = require('../../wxParse/wxParse.js');
Page({ Page({
...@@ -48,7 +48,6 @@ Page({ ...@@ -48,7 +48,6 @@ Page({
that.setData({ that.setData({
msg: msg msg: msg
}) })
console.log("msg", that.data.msg)
this.getData(); this.getData();
} }
...@@ -56,7 +55,6 @@ Page({ ...@@ -56,7 +55,6 @@ Page({
getData() { getData() {
let that = this; let that = this;
app.$api('b2b_get_GetB2BTravelInfoV1', that.data.msg).then(res => { app.$api('b2b_get_GetB2BTravelInfoV1', that.data.msg).then(res => {
console.log(res);
let data = res; let data = res;
data.priceList.forEach(item => { data.priceList.forEach(item => {
item.date = item.startDate.split("-")[1] + "/" + item.startDate.split("-")[2]; item.date = item.startDate.split("-")[1] + "/" + item.startDate.split("-")[2];
...@@ -100,7 +98,6 @@ Page({ ...@@ -100,7 +98,6 @@ Page({
feature: data.feature.tripImageList, feature: data.feature.tripImageList,
dayList: data.dayList, dayList: data.dayList,
}) })
console.log("dayList", that.data.dayList)
WxParse.wxParse('feeInclude', 'html', res.feature.feeInclude, that, 0); WxParse.wxParse('feeInclude', 'html', res.feature.feeInclude, that, 0);
WxParse.wxParse('warmTip', 'html', res.feature.warmTip, that, 0); WxParse.wxParse('warmTip', 'html', res.feature.warmTip, that, 0);
WxParse.wxParse('visaRemark', 'html', res.feature.warmTip, that, 0); WxParse.wxParse('visaRemark', 'html', res.feature.warmTip, that, 0);
...@@ -137,7 +134,6 @@ Page({ ...@@ -137,7 +134,6 @@ Page({
}, },
StartYd() { StartYd() {
console.log(this.data.msg);
let msg = this.data.msg; let msg = this.data.msg;
wx.navigateTo({ wx.navigateTo({
url: '/pages/GroupTour/ChDateNum/ChDateNum?idDes=' + encodeURIComponent(msg.configId) + "&tcid=" + msg.tcid + "&teamType=" + msg.teamType, url: '/pages/GroupTour/ChDateNum/ChDateNum?idDes=' + encodeURIComponent(msg.configId) + "&tcid=" + msg.tcid + "&teamType=" + msg.teamType,
......
...@@ -60,11 +60,11 @@ Page({ ...@@ -60,11 +60,11 @@ Page({
dates: dates dates: dates
}) })
}, },
PXClick() { // PXClick() {
this.setData({ // this.setData({
StopResh: true, // StopResh: true,
}) // })
}, // },
ClosePXView(e) { ClosePXView(e) {
if (e.target.dataset.target == "self") { if (e.target.dataset.target == "self") {
this.setData({ this.setData({
...@@ -215,7 +215,7 @@ Page({ ...@@ -215,7 +215,7 @@ Page({
Godetail(e) { Godetail(e) {
let item = e.currentTarget.dataset; let item = e.currentTarget.dataset;
wx.navigateTo({ wx.navigateTo({
url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.id) + "&tcid=" + item.tcid, url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.id) + "&tcid=" + item.tcid + "&teamType=0",
}) })
}, },
ScreenOpen() { ScreenOpen() {
......
<view class='GroupList commonF' catchtouchmove="{{StopResh}}"> <view class='GroupList commonF'>
<view id="searchView"> <view id="searchView">
<search id="CityComp" bind:ChangeSite="ChangeSite"></search> <search id="CityComp" bind:ChangeSite="ChangeSite"></search>
</view> </view>
...@@ -64,6 +64,9 @@ ...@@ -64,6 +64,9 @@
</view> </view>
</view> </view>
</view> </view>
<view class="nodata">
<image style="width:190rpx;height:190rpx" src="/images/home/nodata.png"></image>
</view>
<!-- 筛选多条件 --> <!-- 筛选多条件 -->
<view bindtap='CloseScreen' data-target="self" class="screen" hidden="{{!ScreenStatus}}"> <view bindtap='CloseScreen' data-target="self" class="screen" hidden="{{!ScreenStatus}}">
<view> <view>
......
.PxView .jView image { .PxView .jView image {
width: 16rpx; width: 16rpx;
height: 8rpx; height: 8rpx;
position: relative; position: relative;
top:-2rpx; top:-2rpx;
} }
.nodata{
width: 100%;
height: 500rpx;
line-height: 500rpx;
text-align: center;
}
.PxView>view { .PxView>view {
display: inline-block; display: inline-block;
font-size: 28rpx; font-size: 28rpx;
......
...@@ -54,7 +54,7 @@ Page({ ...@@ -54,7 +54,7 @@ Page({
Godetail(e){ Godetail(e){
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
wx.navigateTo({ wx.navigateTo({
url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.idDes) + "&tcid=" + item.tcid, url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.idDes) + "&tcid=" + item.tcid + "&teamType=0",
}) })
...@@ -63,7 +63,7 @@ Page({ ...@@ -63,7 +63,7 @@ Page({
let item = e.currentTarget.dataset.item; let item = e.currentTarget.dataset.item;
console.log(item) console.log(item)
wx.navigateTo({ wx.navigateTo({
url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.id) + "&tcid=" + item.tcid, url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.id) + "&tcid=" + item.tcid + "&teamType=0",
}) })
}, },
Gourl(e) { Gourl(e) {
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<text class="text" style="color:#61DCD4"> \ \ \</text> <text class="text" style="color:#61DCD4"> \ \ \</text>
<text bindtap="Gourl" data-item="{{item}}" style="position: absolute;right:30rpx" class="f24 c88">查看更多</text> <text bindtap="Gourl" data-item="{{item}}" style="position: absolute;right:30rpx" class="f24 c88">查看更多</text>
</view> </view>
<view class="Gtour CommonList"> <view class="Gtour CommonList basefix">
<view bindtap="GodetailList" data-item="{{line}}" wx:for-item="line" wx:for="{{item.LineList[0]}}" wx:key="index2"> <view bindtap="GodetailList" data-item="{{line}}" wx:for-item="line" wx:for="{{item.LineList[0]}}" wx:key="index2">
<view class="imgView"> <view class="imgView">
<text class="country">日本</text> <text class="country">日本</text>
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
padding:30rpx; padding:30rpx;
} }
.group .CommonList>view{ .group .CommonList>view{
display: inline-block; float: left;
width:330rpx; width:330rpx;
border-radius: 12px; border-radius: 12px;
border: 1px solid #EDEDED; border: 1px solid #EDEDED;
......
...@@ -6,6 +6,7 @@ Page({ ...@@ -6,6 +6,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
background: ["http://imgfile.oytour.com/New/Upload/Cloud/2019-06/20190626103242285.png","http://imgfile.oytour.com/New/Upload/Cloud/2019-07/20190704061255480.jpg"],
homeTravelSpecialSale:[], homeTravelSpecialSale:[],
specialAirTicketItem:[], specialAirTicketItem:[],
isLogin:0, isLogin:0,
...@@ -16,6 +17,10 @@ Page({ ...@@ -16,6 +17,10 @@ Page({
cityId: app.state.cityId, cityId: app.state.cityId,
siteName: app.state.siteName, siteName: app.state.siteName,
}, },
gentuanList:[],
freeList:[],
scenList:[],
localList:[],
}, },
/** /**
...@@ -23,13 +28,18 @@ Page({ ...@@ -23,13 +28,18 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
// this.GetInitData(); // this.GetInitData();
this.GetCZTM();
this.GetAllTicket();
this.setData({ this.setData({
isLogin: app.isLogin, isLogin: app.isLogin,
}) })
let City = this.selectComponent('#CityComp'); let City = this.selectComponent('#CityComp');
City.getCityList(); City.getCityList();
this.GetGroup();
this.GetCZTM();
this.GetAllTicket();
this.getFree();
this.getScen();
this.getLocal()
}, },
ChangeSite(val){ ChangeSite(val){
console.log(val.detail); console.log(val.detail);
...@@ -50,34 +60,94 @@ Page({ ...@@ -50,34 +60,94 @@ Page({
*/ */
onShow: function () { onShow: function () {
},
goGroup(e){
let item = e.currentTarget.dataset.item;
wx.navigateTo({
url: '/pages/GroupTour/GroupDetails/GroupDetails?idDes=' + encodeURIComponent(item.idDes) + "&tcid=" + item.tcid + "&teamType=0",
})
},
goMore(e){
let url=e.target.dataset.url;
wx.navigateTo({
url: url,
})
}, },
Scroll(e){ Scroll(e){
this.setData({ this.setData({
ScrollView: e.target.dataset.id, ScrollView: e.target.dataset.id,
Scrollindex: e.target.dataset.index, Scrollindex: e.target.dataset.index,
}) })
console.log(this.data.ScrollView)
}, },
// 跟团 // 当地
GetGroup() { getLocal() {
let Msg = { let Msg = {
airTicketType: 0, fromOrigin: 1,
pageIndex: 1, pageIndex: 1,
pageSize: 2, pageSize: 4,
}; };
let that = this; let that = this;
app.$apiJavaNew('/api/b2b/home/getHomeSpecialAirTicketList', Msg).then(res => { app.$apiJavaNew('/api/b2b/home/getHomeDayTripPrice', Msg).then(res => {
that.setData({ that.setData({
specialAirTicketItem: res.pageData localList: res.pageData
}) })
}).catch(err => {
})
},
// 景点门票
getScen() {
let Msg = {
fromOrigin: 1,
pageIndex: 1,
pageSize: 4,
};
let that = this;
app.$apiJavaNew('/api/b2b/home/getHomeTicketCoupons', Msg).then(res => {
that.setData({
scenList: res.pageData
})
}).catch(err => { }).catch(err => {
wx.showToast({
title: err.message, })
icon: 'none', },
duration: 1000 // 自由行
getFree() {
let Msg = {
fromOrigin: 1,
teamType: 1,
pageIndex: 1,
pageSize: 4,
};
let that = this;
app.$apiJavaNew('/api/b2b/home/getHomeTravelPrice', Msg).then(res => {
that.setData({
freeList: res.pageData
})
}).catch(err => {
})
},
// 跟团游
GetGroup() {
let Msg = {
fromOrigin:1,
teamType: 0,
pageIndex: 1,
pageSize: 4,
};
let that = this;
app.$apiJavaNew('/api/b2b/home/getHomeTravelPrice', Msg).then(res => {
that.setData({
gentuanList: res.pageData
}) })
}).catch(err => {
}) })
}, },
// 超值特卖 // 超值特卖
...@@ -124,23 +194,7 @@ Page({ ...@@ -124,23 +194,7 @@ Page({
}) })
}) })
}, },
GetInitData(){
let that=this;
app.$apiJavaNew('/api/b2b/home/getHomeInitData', {}).then(res => {
console.log("首页数据",res);
that.setData({
homeTravelSpecialSale: res.homeTravelSpecialSale,
specialAirTicketItem: res.specialAirTicketItem,
})
}).catch(err => {
wx.showToast({
title: err.message,
icon: 'none',
duration: 1000
})
})
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
......
This diff is collapsed.
...@@ -106,9 +106,17 @@ ...@@ -106,9 +106,17 @@
.Home .CommonList{ .Home .CommonList{
width: 100%; width: 100%;
padding:30rpx; padding:30rpx;
}
.Home .CommonList:after {
clear: both;
content: '.';
display: block;
height: 0;
overflow: hidden;
} }
.Home .CommonList>view{ .Home .CommonList>view{
display: inline-block; float: left;
width:330rpx; width:330rpx;
border-radius: 12px; border-radius: 12px;
border: 1px solid #EDEDED; border: 1px solid #EDEDED;
...@@ -164,6 +172,10 @@ ...@@ -164,6 +172,10 @@
border-radius:12rpx; border-radius:12rpx;
position: relative; position: relative;
} }
.Home .CommonList .ScenimgView image{
border-radius:12rpx;
}
.Home .CommonList .ScenimgView .country{ .Home .CommonList .ScenimgView .country{
position: absolute; position: absolute;
width:90rpx; width:90rpx;
......
// pages/freeTravel/PersonalTailor/PersonalTailor.js
const date = new Date()
const years = []
const months = []
const days = []
for (let i = 1990; i <= date.getFullYear(); i++) {
years.push(i)
}
for (let i = 1; i <= 12; i++) {
months.push(i)
}
for (let i = 1; i <= 31; i++) {
days.push(i)
}
Page({
/**
* 页面的初始数据
*/
data: {
years: years,
year: date.getFullYear(),
months: months,
month: 2,
days: days,
day: 2,
value: [9999, 1, 1],
region: ['广东省', '广州市', '海珠区'],
customItem: '全部'
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
bindChange: function (e) {
const val = e.detail.value
this.setData({
year: this.data.years[val[0]],
month: this.data.months[val[1]],
day: this.data.days[val[2]]
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<view class="Personal commonF">
<view style="width:100%;height:200rpx">
<image src="http://imgfile.oytour.com/New/Upload/Cloud/2019-07/20190705050047885.png"></image>
</view>
<view class="InfoView">
<view class="title">个人定制</view>
<view class="writeView">
<view class="city">
<view class="site">
</view>
<view>-</view>
<view style="text-align:right" class="site">
</view>
</view>
</view>
</view>
</view>
<view class="CountrySelect">
<picker-view class="CountryPicker" indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindchange="bindChange">
<view class="PickerBtn">
<view>取消</view>
<view>确定</view>
</view>
<picker-view-column>
<view wx:for="{{years}}" style="line-height: 50px">{{item}}年</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{months}}" style="line-height: 50px">{{item}}月</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{days}}" style="line-height: 50px">{{item}}日</view>
</picker-view-column>
</picker-view>
</view>
\ No newline at end of file
.InfoView{
width:690rpx;
background:rgba(255,255,255,1);
box-shadow:0px 6rpx 10rpx 0px rgba(76,76,76,0.15);
border-radius:12rpx;
margin: 0 auto;
}
.InfoView .title{
width:100%;
height:90rpx;
line-height:90rpx;
border-bottom: 1px solid #E9E9E9;
text-align: center;
font-size: 28rpx;
font-weight: 600;
}
.writeView{
padding: 0 30rpx;
box-sizing: border-box;
}
.writeView .city{
font-size: 30rpx;
display: flex;
justify-content: space-between;
padding:30rpx 0;
}
.writeView .city .site{
width: 280rpx;
border-bottom: 1px solid #E9E9E9;
}
.CountrySelect{
position: fixed;
width: 100%;
height: 100%;
background: rgba(17,17,17,0.2);
top: 0;
}
.CountrySelect .CountryPicker{
position: absolute;
bottom: 0;
width: 100%;
background: #fff;
text-align: center;
font-size: 24rpx;
}
.CountrySelect .CountryPicker .PickerBtn{
display: flex;
padding: 30rpx;
box-sizing: border-box;
justify-content: space-between;
border-bottom: 1px solid #f5f5f5;
width:
}
\ No newline at end of file
...@@ -32,7 +32,11 @@ Page({ ...@@ -32,7 +32,11 @@ Page({
this.HotCrash(); this.HotCrash();
this.CustomDesigner(); this.CustomDesigner();
}, },
goMore(){
wx.navigateTo({
url: '/pages/freeTravel/freeList/freeList',
})
},
Treatment(){ Treatment(){
let that=this; let that=this;
app.$api('b2b_get_GetB2BFreeRecommendPageList', that.data.commonmsg).then(res => { app.$api('b2b_get_GetB2BFreeRecommendPageList', that.data.commonmsg).then(res => {
...@@ -58,7 +62,6 @@ Page({ ...@@ -58,7 +62,6 @@ Page({
that.setData({ that.setData({
HotCrashList: HotCrashList HotCrashList: HotCrashList
}) })
console.log("111", HotCrashList)
}).catch(err => { }) }).catch(err => { })
}, },
...@@ -73,7 +76,6 @@ Page({ ...@@ -73,7 +76,6 @@ Page({
CustomDesignerList: res.pageData CustomDesignerList: res.pageData
}) })
console.log("CustomDesignerList", that.data.CustomDesignerList)
}).catch(err => { }).catch(err => {
wx.showToast({ wx.showToast({
title: err.message, title: err.message,
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</view> </view>
</view> </view>
<view style="width:408rpx;height:122rpx;margin:30rpx auto"> <view style="width:408rpx;height:122rpx;margin:30rpx auto">
<image src="../../images/free/more.png"></image> <image bindtap="goMore" src="../../images/free/more.png"></image>
</view> </view>
</view> </view>
...@@ -121,10 +121,6 @@ ...@@ -121,10 +121,6 @@
</view> </view>
</view> </view>
<view style="width:408rpx;height:122rpx;margin:30rpx auto">
<image src="../../images/free/more.png"></image>
</view>
</view> </view>
......
...@@ -13,36 +13,6 @@ Page({ ...@@ -13,36 +13,6 @@ Page({
siteName: app.state.siteName, siteName: app.state.siteName,
}, },
dates: [], dates: [],
datecount: [
{
id: 1,
name: "1天"
}, {
id: 2,
name: "2天"
}, {
id: 3,
name: "3天"
}, {
id: 4,
name: "4天"
}, {
id: 5,
name: "5天"
}, {
id: 6,
name: "6天"
}, {
id: 7,
name: "7-8天"
}, {
id: 9,
name: "9-10天"
}, {
id: 10,
name: "10天以上"
},
],
ScreenStatus: false, ScreenStatus: false,
listmsg: { listmsg: {
minTripDay: -1, minTripDay: -1,
...@@ -63,8 +33,9 @@ Page({ ...@@ -63,8 +33,9 @@ Page({
companyId: app.state.companyId, companyId: app.state.companyId,
priceOrderByField: 0, priceOrderByField: 0,
searchKey: '', searchKey: '',
orderByDate:0, orderByDate:2,
orderByPrice:0, orderByPrice:0,
orderBySales:0,
}, },
datalist:[], datalist:[],
...@@ -109,31 +80,43 @@ Page({ ...@@ -109,31 +80,43 @@ Page({
}) })
}, },
getCity(e){
let that = this;
let id = e.currentTarget.dataset.city;
that.data.listmsg.startCityId = id;
that.setData({
listmsg: that.data.listmsg
})
},
getDay(e){
let that = this;
let day = e.currentTarget.dataset.day;
that.data.listmsg.dayNum=day;
that.setData({
listmsg: that.data.listmsg
})
},
GetMonth(e){ GetMonth(e){
let that = this; let that = this;
let month = e.target.dataset.month; let month = e.target.dataset.month;
console.log("month", month);
let num = new Date(month.year, month.id, 0); let num = new Date(month.year, month.id, 0);
console.log(num.getDate());
that.data.listmsg.startDate = month.year + "-" + month.month+"-"+"01"; that.data.listmsg.startDate = month.year + "-" + month.month+"-"+"01";
that.data.listmsg.endDate = month.year + "-" + month.month + "-" + num.getDate(); that.data.listmsg.endDate = month.year + "-" + month.month + "-" + num.getDate();
that.setData({ that.setData({
listmsg: that.data.listmsg listmsg: that.data.listmsg
}) })
console.log("that.data.listmsg",that.data.listmsg)
}, },
// 获取线路 // 获取线路
loadRecoItems() { loadRecoItems() {
let that = this; let that = this;
app.$api('b2b_get_GetFreeSearchItem', { companyId:that.data.site.companyId}).then(res => { app.$api('b2b_get_GetFreeSearchItem', { companyId:that.data.site.companyId}).then(res => {
console.log(res);
that.setData({ that.setData({
lineTeam:res.lineTeam, lineTeam:res.lineTeam,
startCity: res.startCity, startCity: res.startCity,
tripDay: res.tripDay tripDay: res.tripDay
}) })
console.log("startCity", this.data.startCity);
}).catch(err => { }) }).catch(err => { })
}, },
// 最近3个月 // 最近3个月
...@@ -158,19 +141,23 @@ Page({ ...@@ -158,19 +141,23 @@ Page({
}) })
}, },
bindDateChange(e) { bindDateChange(e) {
console.log('picker发送选择改变,携带值为', e.detail.value) let type = e.target.dataset.type;
let listmsg = this.data.listmsg; let listmsg = this.data.listmsg;
listmsg.endDate = e.detail.value; if (type = "start") {
listmsg.startDate = e.detail.value;
}else{
listmsg.endDate = e.detail.value;
}
this.setData({ this.setData({
listmsg: listmsg listmsg: listmsg
}) })
}, },
ChangeSite(val) { ChangeSite(val) {
console.log(val.detail);
this.setData({ this.setData({
site: val.detail site: val.detail
}) })
this.onLoad(); this.loadRecoItems();
this.GetList();
}, },
ScreenOpen() { ScreenOpen() {
this.setData({ this.setData({
...@@ -178,6 +165,7 @@ Page({ ...@@ -178,6 +165,7 @@ Page({
}) })
}, },
CloseScreen(e) { CloseScreen(e) {
if (e.target.dataset.target == "self") { if (e.target.dataset.target == "self") {
this.setData({ this.setData({
ScreenStatus: false, ScreenStatus: false,
...@@ -206,9 +194,12 @@ Page({ ...@@ -206,9 +194,12 @@ Page({
GetList() { GetList() {
let that = this; let that = this;
that.setData({
ScreenStatus: false,
})
const datalist = that.data.datalist; const datalist = that.data.datalist;
app.$api('b2b_get_GetB2BFreePageList', that.data.listmsg).then(res => { app.$api('b2b_get_GetB2BFreePageList', that.data.listmsg).then(res => {
if (res.pageData.length == 0) { if (res.pageData.length < 10) {
that.setData({ that.setData({
noData: true noData: true
}) })
...@@ -232,7 +223,6 @@ Page({ ...@@ -232,7 +223,6 @@ Page({
}, },
PriceTag(e) { PriceTag(e) {
let that = this; let that = this;
console.log(e.target.dataset.tag);
let listmsg = that.data.listmsg; let listmsg = that.data.listmsg;
let tag = e.target.dataset.tag; let tag = e.target.dataset.tag;
let index = e.target.dataset.index; let index = e.target.dataset.index;
...@@ -279,6 +269,7 @@ Page({ ...@@ -279,6 +269,7 @@ Page({
} }
this.data.listmsg.orderByDate= orderindex == 1 ? (ordertype == 0 ? 2 : 1) : 0; this.data.listmsg.orderByDate= orderindex == 1 ? (ordertype == 0 ? 2 : 1) : 0;
this.data.listmsg.orderByPrice = orderindex == 2 ? (ordertype == 0 ? 2 : 1) : 0; this.data.listmsg.orderByPrice = orderindex == 2 ? (ordertype == 0 ? 2 : 1) : 0;
this.data.listmsg.orderBySales = orderindex == 3 ? (ordertype == 0 ? 2 : 1) : 0;
this.setData({ this.setData({
orderindex: orderindex, orderindex: orderindex,
ordertype: ordertype, ordertype: ordertype,
...@@ -337,7 +328,6 @@ Page({ ...@@ -337,7 +328,6 @@ Page({
this.setData({ this.setData({
listmsg: listmsg listmsg: listmsg
}) })
console.log("listmsg", that.data.listmsg)
this.GetList(); this.GetList();
}, },
......
<view class='GroupList commonF' catchtouchmove="{{StopResh}}"> <view class='GroupList commonF' catchtouchmove="{{StopResh}}">
<view id="searchView"> <view id="searchView">
<search id="CityComp" bind:ChangeSite="ChangeSite"></search> <search id="CityComp" bind:ChangeSite="ChangeSite"></search>
</view> </view>
<view class="ListView"> <view class="ListView">
<view class="PxView"> <view class="PxView">
<view class="jView" data-type="{{0}}" bindtap='changeOrderType'> <view class="jView" data-type="{{0}}" bindtap='changeOrderType'>
...@@ -19,7 +19,14 @@ ...@@ -19,7 +19,14 @@
<image wx:if="{{listmsg.orderByPrice==0}}" src="/images/group/bx.png"></image> <image wx:if="{{listmsg.orderByPrice==0}}" src="/images/group/bx.png"></image>
<image wx:if="{{listmsg.orderByPrice==1}}" src="/images/group/rx.png"></image> <image wx:if="{{listmsg.orderByPrice==1}}" src="/images/group/rx.png"></image>
<image wx:if="{{listmsg.orderByPrice==2}}" src="/images/group/rs.png"></image> <image wx:if="{{listmsg.orderByPrice==2}}" src="/images/group/rs.png"></image>
</view>
<view class="jView" data-type="{{3}}" bindtap='changeOrderType'>
销量
<image wx:if="{{listmsg.orderBySales==0}}" src="/images/group/bx.png"></image>
<image wx:if="{{listmsg.orderBySales==1}}" src="/images/group/rx.png"></image>
<image wx:if="{{listmsg.orderBySales==2}}" src="/images/group/rs.png"></image>
</view> </view>
<view bindtap='ScreenOpen' class="SView"> <view bindtap='ScreenOpen' class="SView">
筛选 筛选
...@@ -67,8 +74,8 @@ ...@@ -67,8 +74,8 @@
<view>销量从高到低</view> <view>销量从高到低</view>
</view> </view>
</view> </view>
<!-- 筛选多条件 hidden="{{!ScreenStatus}}" --> <!-- 筛选多条件 -->
<view bindtap='CloseScreen' data-target="self" class="screen" > <view bindtap='CloseScreen' hidden="{{!ScreenStatus}}" data-target="self" class="screen">
<view> <view>
<view class="title">线路</view> <view class="title">线路</view>
<view class="xl"> <view class="xl">
...@@ -77,13 +84,13 @@ ...@@ -77,13 +84,13 @@
</view> </view>
<view class="title">出发日期</view> <view class="title">出发日期</view>
<view class="DatePicker"> <view class="DatePicker">
<picker class="pcikerView" mode="date" value="{{listmsg.startDate}}" > <picker class="pcikerView" mode="date" bindchange="bindDateChange" data-type="start" value="{{listmsg.startDate}}">
<view class="picker"> <view class="picker">
{{listmsg.startDate}} {{listmsg.startDate}}
</view> </view>
</picker> </picker>
<text style="margin:0 15rpx"> - </text> <text style="margin:0 15rpx"> - </text>
<picker class="pcikerView" mode="date" value="{{listmsg.endDate}}" bindchange="bindDateChange" > <picker class="pcikerView" mode="date" data-type="end" value="{{listmsg.endDate}}" bindchange="bindDateChange">
<view class="picker"> <view class="picker">
{{listmsg.endDate}} {{listmsg.endDate}}
</view> </view>
...@@ -93,23 +100,18 @@ ...@@ -93,23 +100,18 @@
<text bindtap="GetMonth" data-month="{{item}}" wx:for="{{dates}}" wx:key="index">{{item.name}}</text> <text bindtap="GetMonth" data-month="{{item}}" wx:for="{{dates}}" wx:key="index">{{item.name}}</text>
</view> </view>
<view class="title">出发城市</view> <view class="title">出发城市</view>
<view class='MonthList' style="margin-top:25rpx"> <view class='MonthList' style="margin-top:25rpx;">
<text>不限</text> <text class="{{listmsg.startCityId==0?'active':''}}" bindtap="getCity" data-city="{{0}}">不限</text>
<text wx:key="index" wx:for="{{startCity}}">{{item.startCityName}}</text> <text class="{{listmsg.startCityId==item.id?'active':''}}" bindtap="getCity" data-city="{{item.id}}" wx:key="index" wx:for="{{startCity}}">{{item.startCityName}}</text>
</view> </view>
<view class="title">行程天数</view> <view class="title">行程天数</view>
<view class='MonthList' style="margin-top:25rpx"> <view class='MonthList' style="margin-top:25rpx">
<text wx:for="{{tripDay}}" wx:key="index">{{item.name}}</text> <text class="{{listmsg.dayNum==0?'active':''}}" bindtap="getCity" data-city="{{0}}">不限</text>
<text class="{{listmsg.dayNum==item.id?'active':''}}" bindtap="getDay" data-day="{{item.id}}" wx:for="{{tripDay}}" wx:key="index">{{item.name}}</text>
</view> </view>
<!-- <view class="title">价格区间</view>
<view class="PriceView">
<input placeholder="最低价" style="text-align:center" />
<text style="padding:0 15rpx">-</text>
<input placeholder="最高价" style="text-align:center" />
</view> -->
<view class="btnView"> <view class="btnView">
<view>重置</view> <view bindtap="CloseScreen" data-target="self">取消</view>
<view style="background:#EE4454;color:#fff;border:none">确定</view> <view bindtap="GetList" style="background:#EE4454;color:#fff;border:none">确定</view>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
display: inline-block; display: inline-block;
font-size: 28rpx; font-size: 28rpx;
color: #111; color: #111;
width: 25%; width: 20%;
text-align: center; text-align: center;
height: 90rpx; height: 90rpx;
line-height: 90rpx; line-height: 90rpx;
...@@ -96,11 +96,12 @@ ...@@ -96,11 +96,12 @@
.screen { .screen {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 100%; min-height: 100%;
top: 0; top: 0;
left: 0; left: 0;
z-index: 5000; z-index: 5000;
background: rgba(17, 17, 17, 0.5); background: rgba(17, 17, 17, 0.5);
overflow: scroll;
} }
.screen>view { .screen>view {
...@@ -131,30 +132,32 @@ ...@@ -131,30 +132,32 @@
margin-right: 30rpx; margin-right: 30rpx;
} }
.screen .picker{ .screen .picker{
width:100%; width: 296rpx;
height:54rpx; height: 54rpx;
line-height:54rpx; background: rgba(242,242,242,1);
background:rgba(242,242,242,1); border-radius: 27rpx;
border-radius:27rpx;
display: inline-block;
font-size: 22rpx;
text-align: center; text-align: center;
font-size: 25rpx;
line-height: 54rpx;
margin-bottom: 20rpx;
} }
.screen .DatePicker{ .screen .DatePicker{
/* display: flex; */ display: flex;
margin-top:15rpx; margin-top:15rpx;
} }
.screen .pcikerView{ .screen .pcikerView{
display: inline-block; display: inline-block;
width: 280rpx;
} }
.MonthList{ .MonthList{
display: flex; display: flex;
justify-content: space-between; justify-content: flex-start;
flex-wrap: wrap; flex-wrap: wrap;
} }
.MonthList text{ .MonthList text{
margin-right: 20rpx;
display: inline-block; display: inline-block;
width:190rpx; width:190rpx;
height:54rpx; height:54rpx;
...@@ -167,6 +170,10 @@ ...@@ -167,6 +170,10 @@
margin-bottom:25rpx; margin-bottom:25rpx;
} }
.MonthList .active{
background: #EE4454;
color: #fff;
}
.PriceView { .PriceView {
display: flex; display: flex;
margin-top:15rpx; margin-top:15rpx;
......
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