Commit 46416077 authored by 潘永坪's avatar 潘永坪

vlogo详情处理

parent 4d8a5879
...@@ -66,10 +66,14 @@ ...@@ -66,10 +66,14 @@
<text>不可退</text> <text>不可退</text>
</view> </view>
<view class="bottom-btn"> <view class="bottom-btn">
<text class="button-empty" @click="goMyPhoto()">我的影集</text> <!-- 11图片,12视频 -->
<text class="button-empty" @click="goMyPhoto()" v-if="orderInfo.orderType==11">我的影集</text>
<!-- 全部退货退款时不显示 --> <!-- 全部退货退款时不显示 -->
<text class="button" @click="download()" v-if="orderInfo.orderStatus!=8">下载</text> <template v-if="orderInfo.orderStatus!=8">
<text class="button" @click="showPop=true" v-if="orderInfo.orderStatus!=8">打印</text> <text class="button" @click="download()">下载</text>
<text class="button" @click="showPop=true" v-if="orderInfo.orderType==11">打印</text>
</template>
</view> </view>
</view> </view>
...@@ -209,7 +213,8 @@ export default { ...@@ -209,7 +213,8 @@ export default {
getDetail(){ getDetail(){
let data = { let data = {
orderId:this.orderId,//订单ID orderId:this.orderId,//订单ID
userId:uni.getStorageSync('openid')||'',//用户Id // userId:uni.getStorageSync('openid')||'',//用户Id
userId:'oroHZ5FaUQ_SOOC_uQQP92fJpBRE',//用户Id
} }
this.$request('order/userOrder/findOrderDetail', data).then(res => { this.$request('order/userOrder/findOrderDetail', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
......
<template> <template>
<view v-show="showPop"> <view class="list-bg" v-show="showPop">
<view class="list-box"> <view class="list-wrap">
<view class="top"> <view class="top">
<view class="top-num"> <view class="top-num">
<text> <text>
需填写{{contactNum}}位联系人 需填写{{contactNum}}位联系人
</text> </text>
<view class="top-icon" @click="showPop=false"> <view class="top-icon" @click="showPop=false">
<u-icon name="close" bold></u-icon> <u-icon name="close" bold></u-icon>
</view>
</view>
<view @click="showEdit()" class="top-add">
<text>
+添加旅客信息
</text>
</view> </view>
</view> </view>
<view @click="showEdit()" class="top-add">
<text> <view class="bottom">
+添加旅客信息 <checkbox-group @change="chooseContactChange">
</text> <view class="bottom-list" v-for="(item,index) of listTotal" :key="item.id">
</view> <label>
</view> <checkbox class="blue" :value="JSON.stringify(item)" :checked="item.ifChoose" color="#3688ff" />
<view class="bottom-content">
<view class="bottom"> <view>
<checkbox-group @change="chooseContactChange"> {{item.name}}
<view class="bottom-list" v-for="(item,index) of listTotal" :key="item.id"> </view>
<label> <view>
<checkbox class="blue" :value="JSON.stringify(item)" :checked="item.ifChoose" color="#3688ff" /> <text>
<view class="bottom-content"> 身份证
<view> </text>
{{item.name}} {{item.credentialNumber?item.credentialNumber.substr(0,3)+"****"+item.credentialNumber.substr(14,4):"无"}}
</view> </view>
<view> <view>
<text> <text>
身份证 手机号
</text> </text>
{{item.credentialNumber?item.credentialNumber.substr(0,3)+"****"+item.credentialNumber.substr(14,4):"无"}} {{item.phone?item.phone.substr(0,3)+"****"+item.phone.substr(7,4):"无"}}
</view> </view>
<view>
<text>
手机号
</text>
{{item.phone?item.phone.substr(0,3)+"****"+item.phone.substr(7,4):"无"}}
</view> </view>
</label>
<view @click="goEdit(item)" style="margin-right:20rpx;">
<u-icon name="edit-pen" color="#3688ff" size="56"></u-icon>
</view>
<view @click="clickDele(item.id)">
<u-icon name="trash-fill" color="#3688ff" size="56"></u-icon>
</view> </view>
</label>
<view @click="goEdit(item)" style="margin-right:20rpx;">
<u-icon name="edit-pen" color="#3688ff" size="56"></u-icon>
</view> </view>
<view @click="clickDele(item.id)"> <view style="margin: 40rpx 0;text-align: center;" v-if='listTotal&&listTotal.length>0'>
<u-icon name="trash-fill" color="#3688ff" size="56"></u-icon> 已展示所有联系人
</view> </view>
</checkbox-group>
<view class="bottom-sure" @click="config()">
确定
</view> </view>
<view style="margin: 40rpx 0;text-align: center;" v-if='listTotal&&listTotal.length>0'> </view>
已展示所有联系人
</view>
</checkbox-group>
<view class="bottom-sure" @click="config()">
确定
</view>
</view>
</view> </view>
<u-modal :show="showModal" @confirm="confirmDele" @cancel="showModal=false" showCancelButton title="确认删除该联系人" ></u-modal> <u-modal :show="showModal" @confirm="confirmDele" @cancel="showModal=false" showCancelButton title="确认删除该联系人" ></u-modal>
</view> </view>
</template> </template>
<script> <script>
...@@ -170,16 +168,21 @@ export default { ...@@ -170,16 +168,21 @@ export default {
</script> </script>
<style scoped="scoped" lang="scss"> <style scoped="scoped" lang="scss">
.list-box{ .list-bg{
background: #F5F5F5; background:rgba(0,0,0,0.4);
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: 999; z-index: 999;
padding-top: 120rpx;
}
.list-wrap{
height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #ffffff;
} }
.top-num{ .top-num{
height: 100rpx; height: 100rpx;
...@@ -191,6 +194,7 @@ export default { ...@@ -191,6 +194,7 @@ export default {
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 32rpx;
position: relative; position: relative;
border-radius: 20rpx 20rpx 0 0;
} }
.top-icon{ .top-icon{
position: absolute; position: absolute;
......
<template> <template>
<view class="editBox" v-show="showEdit"> <view class="edit-bg" v-show="showEdit">
<view class="return"> <view class="edit-wrap">
<!-- 新增的时候 --> <view class="return">
<view v-if="!reviseContactId"> <!-- 新增的时候 -->
已新增{{contactTotal.length}}位联系人 <view v-if="!reviseContactId">
已新增{{contactTotal.length}}位联系人
</view>
<view @click="showEdit = false" class="return-icon">
<u-icon name="close" bold></u-icon>
</view>
</view> </view>
<view class="editTop">
<view @click="showEdit = false" class="return-icon">
<u-icon name="close" bold></u-icon>
</view> </view>
</view> <view class="editBottom">
<view class="editTop"> <view class="bottomContent">
<view>
</view> <text>
<view class="editBottom"> 姓名:
<view class="bottomContent"> </text>
<view> <input v-model.trim="name" placeholder="请输入中文姓名,必填" />
<text> </view>
姓名:
</text> <view>
<input v-model.trim="name" placeholder="请输入中文姓名,必填" /> <text>
</view> 身份证:
</text>
<view> <input v-model.trim="credentialNumber" maxlength="18" placeholder="请输入身份证号码,必填" />
<text> </view>
身份证: <view>
</text> <text>
<input v-model.trim="credentialNumber" maxlength="18" placeholder="请输入身份证号码,必填" /> 联系电话:
</view> </text>
<view> <input v-model.trim="phone" maxlength="11" placeholder="用于接收行程信息" />
<text> </view>
联系电话: <view>
</text> <a class="complete" @click="keepSave()">完成</a>
<input v-model.trim="phone" maxlength="11" placeholder="用于接收行程信息" /> </view>
</view>
<view>
<a class="complete" @click="keepSave()">完成</a>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
...@@ -138,14 +138,21 @@ export default { ...@@ -138,14 +138,21 @@ export default {
</script> </script>
<style scoped="scoped" lang="scss"> <style scoped="scoped" lang="scss">
.editBox { .edit-bg{
background: #F5F5F5; background:rgba(0,0,0,0.4);
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
z-index: 1000; z-index: 1000;
padding-top: 120rpx;
}
.edit-wrap{
height: 100%;
display: flex;
flex-direction: column;
background: #ffffff;
} }
.return { .return {
height: 100rpx; height: 100rpx;
...@@ -157,6 +164,7 @@ export default { ...@@ -157,6 +164,7 @@ export default {
font-weight: bold; font-weight: bold;
font-size: 32rpx; font-size: 32rpx;
position: relative; position: relative;
border-radius: 20rpx 20rpx 0 0;
} }
.return-icon{ .return-icon{
position: absolute; position: absolute;
......
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