Commit 0bdd3548 authored by Mac's avatar Mac

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents 9bb2cf7d 807453fe
...@@ -82,8 +82,8 @@ ...@@ -82,8 +82,8 @@
</view> </view>
</view> </view>
<view class="c_row_t"> <view class="c_row_t">
<image :src="info.TipsIco" mode="aspectFill" style="width: 13px;height: 11px;"></image> <image :src="info.TipsIco" mode="aspectFill" style="width: 15px;height: 13px;"></image>
<span style='font-size: 11px;color: #121212;margin-left: 5px;'>{{info.Tips}}</span> <span style='font-size: 12px;color: #121212;margin-left: 5px;'>{{info.Tips}}</span>
</view> </view>
<view class="btnstyle" :style="{'color':info.ButtonTextColor,'background':info.ButtonColor,'border-radius':info.ButtonFilletPX+'px'}" @click="goList"> <view class="btnstyle" :style="{'color':info.ButtonTextColor,'background':info.ButtonColor,'border-radius':info.ButtonFilletPX+'px'}" @click="goList">
{{info.ButtonText?info.ButtonText:''}} {{info.ButtonText?info.ButtonText:''}}
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
:scroll-y="true" :scroll-y="true"
style="max-height: 420px;"> style="max-height: 420px;">
<view class="txtype"> <view class="txtype">
<view class="typeitem" v-for="(item, index) in classList" :key="index" > <view class="typeitem" v-for="(item, index) in classList" :key="index" @click="radioChange(item)">
<Text>{{item.Name}}</Text> <Text>{{item.Name}}</Text>
<u-radio-group v-model="carName"> <u-radio-group v-model="carName">
<u-radio <u-radio
...@@ -113,7 +113,6 @@ ...@@ -113,7 +113,6 @@
active-color="#EE4454" active-color="#EE4454"
shape="circle" shape="circle"
:name="item.Name" :name="item.Name"
@change="radioChange(item)"
> >
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
...@@ -137,7 +136,7 @@ ...@@ -137,7 +136,7 @@
:scroll-y="true" :scroll-y="true"
style="max-height: 420px;"> style="max-height: 420px;">
<view class="txtype"> <view class="txtype">
<view class="typeitem" v-for="(item, index) in EnumList" :key="index" > <view class="typeitem" v-for="(item, index) in EnumList" :key="index" @click="radioChange2(item)">
<Text>{{item.Name}}</Text> <Text>{{item.Name}}</Text>
<u-radio-group v-model="EnumName"> <u-radio-group v-model="EnumName">
<u-radio <u-radio
...@@ -145,7 +144,6 @@ ...@@ -145,7 +144,6 @@
active-color="#EE4454" active-color="#EE4454"
shape="circle" shape="circle"
:name="item.Name" :name="item.Name"
@change="radioChange2(item)"
> >
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
...@@ -269,8 +267,7 @@ ...@@ -269,8 +267,7 @@
this.amapPlugin.getRegeo({ this.amapPlugin.getRegeo({
success: (data) => { success: (data) => {
console.log(data) this.address =data[0].name
this.address =data[0].name
this.Pickcar = data[0].regeocodeData.addressComponent.city; this.Pickcar = data[0].regeocodeData.addressComponent.city;
this.latitude = data[0].latitude; this.latitude = data[0].latitude;
this.longitude = data[0].longitude; this.longitude = data[0].longitude;
...@@ -462,7 +459,6 @@ ...@@ -462,7 +459,6 @@
}, },
res => { res => {
console.log('res', res);
if(res.data.length==3){ if(res.data.length==3){
this.msg.RegionIds = res.data[0].ID+','+res.data[1].ID+','+res.data[2].ID this.msg.RegionIds = res.data[0].ID+','+res.data[1].ID+','+res.data[2].ID
}else{ }else{
...@@ -491,7 +487,6 @@ ...@@ -491,7 +487,6 @@
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){
console.log(i)
tic = i tic = i
} }
}) })
......
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
<view class="order_Btn_inner"> <view class="order_Btn_inner">
<view class="order_Btn_Com" @click.stop="buy(item)" style="color:#FF4048;border-color:#FF4048;">再次购买</view> <view class="order_Btn_Com" @click.stop="buy(item)" style="color:#FF4048;border-color:#FF4048;">再次购买</view>
<!-- <view class="order_Btn_Com">评价晒单</view> --> <!-- <view class="order_Btn_Com">评价晒单</view> -->
<view class="order_Btn_Com" @click="cancel(item,index)" v-if="item.OrderStatus==1||item.OrderStatus==2||item.OrderStatus==3">取消订单</view> <view class="order_Btn_Com" @click.stop="cancel(item,index)" v-if="item.OrderStatus==1||item.OrderStatus==2||item.OrderStatus==3">取消订单</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -236,8 +236,8 @@ ...@@ -236,8 +236,8 @@
}, 1000); }, 1000);
}, },
onLoad(option) { onLoad(option) {
this.current = option.status || -1;
this.getHeadList(); this.getHeadList();
this.getContent();
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
}, },
methods: { methods: {
...@@ -265,6 +265,8 @@ ...@@ -265,6 +265,8 @@
Name: '全部' Name: '全部'
} }
this.headData.unshift(obj) this.headData.unshift(obj)
this.msg.OrderStatus=this.headData[this.current].Id;
this.getContent();
} }
} }
); );
...@@ -324,7 +326,7 @@ ...@@ -324,7 +326,7 @@
this.Cancelmsg.OrderId = e.OrderId; this.Cancelmsg.OrderId = e.OrderId;
this.Cancelmsg.Type = e.OrderStatus == 1 ? 1 : 2; this.Cancelmsg.Type = e.OrderStatus == 1 ? 1 : 2;
}, },
//取消订单 //确认订单
confirm() { confirm() {
let that = this let that = this
// that.showModal = false; // that.showModal = false;
......
...@@ -207,13 +207,13 @@ ...@@ -207,13 +207,13 @@
<view class="order_GName" style="border-top:0;"> <view class="order_GName" style="border-top:0;">
<view class="order_big order_comLeft">联系人</view> <view class="order_big order_comLeft">联系人</view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<input class="uni-input" v-model="orderMsg.Consignee" style="border:none;padding-left:5px;text-align: right;" /> <input class="uni-input" v-model="orderMsg.Consignee" placeholder="请输入联系人" style="border:none;padding-left:5px;text-align: right;" />
</view> </view>
</view> </view>
<view class="order_GName" style="border-top:0;border-top: 1px solid rgba(0, 0, 0, 0.05);"> <view class="order_GName" style="border-top:0;border-top: 1px solid rgba(0, 0, 0, 0.05);">
<view class="order_big order_comLeft">联系电话</view> <view class="order_big order_comLeft">联系电话</view>
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<input class="uni-input" v-model="orderMsg.Mobile" style="border:none;padding-left:5px;text-align: right;" /> <input class="uni-input" v-model="orderMsg.Mobile" placeholder="请输入联系电话" style="border:none;padding-left:5px;text-align: right;" />
</view> </view>
</view> </view>
<view class="order_GName" style="border-top:0;border-top: 1px solid rgba(0, 0, 0, 0.05);"> <view class="order_GName" style="border-top:0;border-top: 1px solid rgba(0, 0, 0, 0.05);">
...@@ -542,19 +542,20 @@ ...@@ -542,19 +542,20 @@
data: this.msg data: this.msg
}, },
res => { res => {
console.log(res, '列表数据');
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.dataList = res.data; this.dataList = res.data;
this.mchs = res.data.mch_list; if(res.data.mch_list){
this.intervalDay = this.dataList.mch_list[0].goods_list[0].goods_attr.use_day; //获取多少天 this.mchs = res.data.mch_list;
this.intervalDay = this.dataList.mch_list[0].goods_list[0].goods_attr.use_day; //获取多少天
this.payInfo.GoodsName = this.mchs[0].goods_list[0].goods_attr.car_name.slice(0,10);
this.payInfo.GoodsName = this.mchs[0].goods_list[0].goods_attr.car_name.slice(0,10);
this.mchs.forEach(x => {
x.goods_list.forEach(j => { this.mchs.forEach(x => {
j.marketingLogo = JSON.parse(j.marketingLogo) x.goods_list.forEach(j => {
j.marketingLogo = JSON.parse(j.marketingLogo)
})
}) })
}) }
this.initCoupon(); this.initCoupon();
} }
} }
......
...@@ -129,22 +129,22 @@ ...@@ -129,22 +129,22 @@
<view v-if="item.link_url == '/pages/guidecar/orderList?status=1' && user_info.MyGuideCarOrder.NonPayment > 0" class="badge" :style="{ background: mainColor }"> <view v-if="item.link_url == '/pages/guidecar/orderList?status=1' && user_info.MyGuideCarOrder.NonPayment > 0" class="badge" :style="{ background: mainColor }">
{{ user_info.MyGuideCarOrder.NonPayment }} {{ user_info.MyGuideCarOrder.NonPayment }}
</view> </view>
<!-- 待发货 --> <!-- 待确认 -->
<view v-if="item.link_url == '/pages/guidecar/orderList?status=2' && user_info.MyGuideCarOrder.WaitSendGoods > 0" class="badge" :style="{ background: mainColor }"> <view v-if="item.link_url == '/pages/guidecar/orderList?status=2' && user_info.MyGuideCarOrder.WaitSendGoods > 0" class="badge" :style="{ background: mainColor }">
{{ user_info.MyGuideCarOrder.WaitSendGoods }} {{ user_info.MyGuideCarOrder.WaitSendGoods }}
</view> </view>
<!-- 待收货 --> <!-- 待出行 -->
<view v-if="item.link_url == '/pages/guidecar/orderList?status=3' && user_info.MyGuideCarOrder.WaitReceiving > 0" class="badge" :style="{ background: mainColor }"> <view v-if="item.link_url == '/pages/guidecar/orderList?status=3' && user_info.MyGuideCarOrder.WaitReceiving > 0" class="badge" :style="{ background: mainColor }">
{{ user_info.MyGuideCarOrder.WaitReceiving }} {{ user_info.MyGuideCarOrder.WaitReceiving }}
</view> </view>
<!-- 出行中 -->
<view v-if="item.link_url == '/pages/guidecar/orderList?status=4' && user_info.MyGuideCarOrder.Completed > 0" class="badge" :style="{ background: mainColor }">
{{ user_info.MyGuideCarOrder.Completed }}
</view>
<!-- 待评价 --> <!-- 待评价 -->
<view v-if="item.link_url == '/pages/guidecar/order-commit' && user_info.MyGuideCarOrder.GuideCarWaitCommentNum > 0" class="badge" :style="{ background: mainColor }"> <view v-if="item.link_url == '/pages/guidecar/order-commit' && user_info.MyGuideCarOrder.GuideCarWaitCommentNum > 0" class="badge" :style="{ background: mainColor }">
{{ user_info.MyGuideCarOrder.GuideCarWaitCommentNum }} {{ user_info.MyGuideCarOrder.GuideCarWaitCommentNum }}
</view> </view>
<!-- 售后 -->
<view v-if="item.link_url == '/pages/guidecar/orderList?status=5' && user_info.MyGuideCarOrder.Completed > 0" class="badge" :style="{ background: mainColor }">
{{ user_info.MyGuideCarOrder.Completed }}
</view>
</view> </view>
</view> </view>
</view> </view>
......
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