刘翔宇-旅管家 3 years ago
parent 9110b2ba12
commit 82332ff628

@ -3,7 +3,8 @@
<view class="orderBox">
<view class="title">{{info.order_name}}</view>
<view class="p">下单日期<text class="font_red">{{$u.timeFormat(info.created_at, 'yyyy年mm月dd日 hh:MM')}}</text></view>
<view class="p">下单日期<text class="font_red">{{$u.timeFormat(info.created_at, 'yyyy年mm月dd日 hh:MM')}}</text>
</view>
</view>
<view class="orderBox">
<view class="title">订单信息</view>
@ -70,7 +71,9 @@
<view class="bottom">
<view class="subBtn view" v-if="info.state=='unpaid'" @click="tocancel(info.id)"></view>
<view class="subBtn pay" v-if="info.state=='unpaid'" @click="topay(info.id)"></view>
<view class="subBtn cancel" v-if="info.state!='unpaid'&&info.bookable_type=='product'&&info.items[0].state=='pending'" @click="tocancelApply(info.items[0].id)">退</view>
<view class="subBtn cancel"
v-if="info.state!='unpaid'&&info.bookable_type=='product'&&info.items[0].state=='pending'"
@click="tocancelApply(info.items[0].id)">退单</view>
</view>
</view>
</template>
@ -110,7 +113,7 @@
"confirmed": "确认有效",
"canceled_by_user": "用户申请取消",
"canceled_by_merchant": "商家标注无效单",
"finished": "已取消",
"finished": "已核销",
"canceled": "已取消"
}
}
@ -170,7 +173,7 @@
}
})
},
tocancelApply(id){
tocancelApply(id) {
var that = this;
uni.showModal({
title: "确认申请退单?",
@ -314,7 +317,9 @@
background: #808080;
}
.cancel{ background: #FF578A;}
.cancel {
background: #FF578A;
}
}

Loading…
Cancel
Save