Commit 61aa7e70 authored by Mac's avatar Mac

1

parent ee761ac0
...@@ -204,10 +204,10 @@ ...@@ -204,10 +204,10 @@
<text class="btnsmall" :style="{ color: mc }">¥</text> <text class="btnsmall" :style="{ color: mc }">¥</text>
<text <text
class="btnnumfont" :style="{ color: mc }" class="btnnumfont" :style="{ color: mc }"
>{{ g.price*g.ride_num}}</text> >{{ g.price*RideNum}}</text>
</view> </view>
<text style='font-size: 12px;margin-left: 5px;'>({{g.price}}*{{g.ride_num}})</text> <text style='font-size: 12px;margin-left: 5px;'>({{g.price}}*{{RideNum}})</text>
</view> </view>
<view class='btnstyle' @click="goUrl()"> <view class='btnstyle' @click="goUrl()">
预订 预订
...@@ -274,6 +274,7 @@ ...@@ -274,6 +274,7 @@
showCoupons: false, showCoupons: false,
SmallShopId:0,//分享微店id SmallShopId:0,//分享微店id
uid:0,//分享的上级id uid:0,//分享的上级id
RideNum:1,//出行人数
} }
}, },
onLoad(option){ onLoad(option){
...@@ -301,6 +302,9 @@ ...@@ -301,6 +302,9 @@
if(option && option.Pickcar){ if(option && option.Pickcar){
this.Pickcar = option.Pickcar this.Pickcar = option.Pickcar
} }
if(option && option.RideNum){//出行人数
this.RideNum = option.RideNum
}
if(option && option.StartTime){ if(option && option.StartTime){
this.STime = this.getTime(option.StartTime) this.STime = this.getTime(option.StartTime)
this.StartTime= option.StartTime this.StartTime= option.StartTime
...@@ -543,7 +547,9 @@ ...@@ -543,7 +547,9 @@
uni.navigateTo({ uni.navigateTo({
url:'/pages/guidecar/place_order?GoodsId='+this.GoodsId+'&Number='+this.g.ride_num+'&ShoppingAddress='+this.address+ url:'/pages/guidecar/place_order?GoodsId='+this.GoodsId+'&Number='+this.g.ride_num+'&ShoppingAddress='+this.address+
'&StartTime='+this.StartTime+ '&StartTime='+this.StartTime+
'&EndTime='+this.EndTime '&EndTime='+this.EndTime+
'&RideNum='+this.RideNum
}) })
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</view> </view>
</view> </view>
<view class="itemb" style="justify-content: space-between;margin-top: 10px;"> <view class="itemb" style="justify-content: space-between;margin-top: 10px;">
<view class="itemb" style="width: 200px;background: #FAF8F9;height:43px ;"> <view class="itemb" style="max-width: 360rpx;height:43px ;padding-right: 3px;">
<image :src="x.guidephoto" mode="aspectFill" style="width: 30px;height: 30px;border-radius: 15px;"></image> <image :src="x.guidephoto" mode="aspectFill" style="width: 30px;height: 30px;border-radius: 15px;"></image>
<view style="display: flex;flex-direction: column;justify-content: space-between;height: 30px;margin-left: 8px;"> <view style="display: flex;flex-direction: column;justify-content: space-between;height: 30px;margin-left: 8px;">
<view class="itemb"> <view class="itemb">
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
onLoad(options) { onLoad(options) {
if(options && options.item){ if(options && options.item){
let item = JSON.parse(decodeURIComponent(options.item)) let item = JSON.parse(decodeURIComponent(options.item))
console.log(item)
this.msg.CarClass = item.CarClass this.msg.CarClass = item.CarClass
this.msg.CarType = item.CarType this.msg.CarType = item.CarType
this.msg.EndTime = item.EndTime this.msg.EndTime = item.EndTime
...@@ -365,13 +365,16 @@ getGuideCarBrandList(){ ...@@ -365,13 +365,16 @@ getGuideCarBrandList(){
uni.navigateTo({ uni.navigateTo({
url:this.PagePath+'?GoodsId='+x.id +'&address='+this.address+'&Pickcar='+this.Pickcar+ url:this.PagePath+'?GoodsId='+x.id +'&address='+this.address+'&Pickcar='+this.Pickcar+
'&StartTime='+this.msg.StartTime+ '&StartTime='+this.msg.StartTime+
'&EndTime='+this.msg.EndTime '&EndTime='+this.msg.EndTime+
'&RideNum='+this.msg.RideNum
}) })
}else{//如果没有跳转地址的时候 默认 }else{//如果没有跳转地址的时候 默认
uni.navigateTo({ uni.navigateTo({
url:'/pages/guidecar/guidecarGoodsdetails?GoodsId='+x.id +'&address='+this.address+'&Pickcar='+this.Pickcar+ url:'/pages/guidecar/guidecarGoodsdetails?GoodsId='+x.id +'&address='+this.address+'&Pickcar='+this.Pickcar+
'&StartTime='+this.msg.StartTime+ '&StartTime='+this.msg.StartTime+
'&EndTime='+this.msg.EndTime '&EndTime='+this.msg.EndTime+
'&RideNum='+this.msg.RideNum
}) })
} }
...@@ -464,8 +467,8 @@ getGuideCarBrandList(){ ...@@ -464,8 +467,8 @@ getGuideCarBrandList(){
text-overflow: ellipsis; text-overflow: ellipsis;
font-weight: bold; font-weight: bold;
} }
.c_t_r .price{ .guidecarList .price{
font-size: 14px; font-size: 12px;
color: #ff4544; color: #ff4544;
} }
.guidecarList .line{ .guidecarList .line{
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<view class="topB" v-if="info.IsShowCarClass==1" @click="show=true"> <view class="topB" v-if="info.IsShowCarClass==1" @click="show=true">
<span class='titext'>车辆类型</span> <span class='titext'>车辆类型</span>
<view style="display: flex;flex-direction: row;align-items: center;"> <view style="display: flex;flex-direction: row;align-items: center;">
<span class='ztext' :style="{'color':msg.CarClass==''?'#E2E2E2':'#1C1E1F'}">{{carName}}</span><u-icon name="arrow-down" size="28" color="#C8C8C8"></u-icon> <span class='ztext' style='color: #1C1E1F;'>{{carName}}</span><u-icon name="arrow-down" size="28" color="#C8C8C8"></u-icon>
</view> </view>
</view> </view>
<view class="topB" v-if="info.IsShowTravelGuestNum==1" style="align-items: center;"> <view class="topB" v-if="info.IsShowTravelGuestNum==1" style="align-items: center;">
...@@ -298,6 +298,8 @@ ...@@ -298,6 +298,8 @@
}, },
(res) => { (res) => {
this.classList = res.data this.classList = res.data
let obj = {Name: "不限", Id: 0}
this.classList.unshift(obj)
this.classList.forEach(x=>{ this.classList.forEach(x=>{
x.checked = false x.checked = false
}) })
...@@ -483,7 +485,8 @@ ...@@ -483,7 +485,8 @@
let tic= 0; let tic= 0;
that.classList.forEach((x,i)=>{ that.classList.forEach((x,i)=>{
if(x.Id == msg.CarClass){ if(x.Id == msg.CarClass){
tic = i+1 console.log(i)
tic = i
} }
}) })
uni.navigateTo({ uni.navigateTo({
...@@ -561,7 +564,6 @@ ...@@ -561,7 +564,6 @@
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center;
padding: 15px 0; padding: 15px 0;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<u-search <u-search
action-text="搜索" action-text="搜索"
:focus="true" :focus="true"
:clearabled="true"
:show-action="true" :show-action="true"
radius="40" radius="40"
v-model="searchKey" v-model="searchKey"
...@@ -166,6 +166,9 @@ ...@@ -166,6 +166,9 @@
}, },
changeHandler(val) { changeHandler(val) {
if(val==''){
this.show=false
}
}, },
} }
......
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