第一次提交
This commit is contained in:
@@ -12,14 +12,17 @@
|
||||
<view class=" flex">
|
||||
<view></view>
|
||||
<view>
|
||||
<view class="Text">{{details.siteName}}</view>
|
||||
<view class="Text">
|
||||
{{details.siteName}}
|
||||
<uni-icons @click="copy(details.siteName)" style="margin-left: 10rpx;" color="#bbbbbb" custom-prefix="iconfont" type="iconfuzhi" size="20"></uni-icons>
|
||||
</view>
|
||||
<view class="smallText">{{details.siteId}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="margin:33rpx 0;" class="flex">
|
||||
<view></view>
|
||||
<view>
|
||||
<view class="Text"> <text>{{details.customerName}}</text> <text style="margin-left:35rpx;">{{details.customerPhone}}</text> </view>
|
||||
<view class="Text"> <text>{{details.customerName}}</text> <text style="margin-left:35rpx;">{{details.customerPhone}}</text> <uni-icons @click="copy(details.customerPhone)" style="margin-left: 10rpx;" color="#bbbbbb" custom-prefix="iconfont" type="iconfuzhi" size="20"></uni-icons> </view>
|
||||
<view class="smallText">{{details.customerId}}</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -94,13 +97,13 @@
|
||||
|
||||
</view>
|
||||
<view style="margin-bottom:33rpx;" class="smallText">{{details.createTime}}</view>
|
||||
<view @tap='refund' class="refund felx justifyContent alignItems">退款</view>
|
||||
<view @tap="refund" :style="{background:details.orderStatus==1?'':'#bbbbbb'}" class="refund felx justifyContent alignItems">退款</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footerButten felx">
|
||||
<view @click="copy" class="copyButten felx justifyContent alignItems">一键复制</view>
|
||||
<button class="forwardButten felx justifyContent alignItems" open-type="share">分享</button>
|
||||
<view @click="copy(details.orderSerialNumber)" class="copyButten felx justifyContent alignItems">复制订单号</view>
|
||||
<!-- <button class="forwardButten felx justifyContent alignItems" open-type="share">分享</button> -->
|
||||
</view>
|
||||
<popup :show='show' @confirmFn='confirmFn' @closeFn='closeFn' :butten='butten' :styles="{height:'350rpx',width:'350rpx'}" v-model="iShow.seting">
|
||||
<view slot="coment">
|
||||
@@ -146,6 +149,7 @@
|
||||
},
|
||||
moreOpen: false,
|
||||
val:'898989898',
|
||||
id:null,
|
||||
butten: {
|
||||
colse: '取消',
|
||||
confirm: '确定',
|
||||
@@ -158,14 +162,16 @@
|
||||
},
|
||||
onLoad(e) {
|
||||
if(e.jsData){
|
||||
console.log(JSON.parse(e.jsData))
|
||||
this.getList(JSON.parse(e.jsData).id)
|
||||
console.log(JSON.parse(e.jsData));
|
||||
this.id = JSON.parse(e.jsData).id
|
||||
this.getList(this.id)
|
||||
}
|
||||
|
||||
},
|
||||
methods: {
|
||||
codeFn(){
|
||||
if(this.details.orderWfStatus==0){
|
||||
|
||||
orderList.getOrderQrCodeOms(this.details.orderSerialNumber).then(res=>{
|
||||
if(res.code==20000){
|
||||
console.log(res)
|
||||
@@ -184,7 +190,30 @@
|
||||
}
|
||||
},
|
||||
refund(){
|
||||
console.log('-----------------')
|
||||
if(this.details.orderStatus!==1) return ;
|
||||
let that =this
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '是否确认退款',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
orderList.refund({id:that.id}).then(res=>{
|
||||
if(res.code==20000){
|
||||
uni.showToast({
|
||||
title: '退款成功',
|
||||
duration: 2000
|
||||
});
|
||||
setTimeout(()=>{
|
||||
that.getList(that.id)
|
||||
},1000)
|
||||
}
|
||||
})
|
||||
console.log('用户点击确定');
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
paymentStatus(e){
|
||||
switch(e){
|
||||
@@ -245,9 +274,8 @@
|
||||
orderId:e
|
||||
}).then(res=>{
|
||||
if(res.code!==20000)return
|
||||
this.details = res.data
|
||||
tool.numberSetting(this.details,['realAmount','volume','realPrice','marketPrice','sitePrice'],2)
|
||||
console.log(this.details.secondChannelCode,'--------------------------------')
|
||||
this.details = res.data;
|
||||
tool.numberSetting(this.details,['realAmount','volume','realPrice','marketPrice','sitePrice'],2);
|
||||
})
|
||||
},
|
||||
qrR(){
|
||||
@@ -273,9 +301,10 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
copy() {
|
||||
copy(text) {
|
||||
uni.setClipboardData({
|
||||
data: `订单ID:${this.details.id}\n订单流水号:${this.details.orderSerialNumber}\n订单金额:${this.details.realAmount}元\n订单升数:${this.details.volume}升\n订单类型:${this.details.payAccountType==0?'个人':'企业'}\n司机姓名:${this.details.customerName}\n司机id:${this.details.customerId} ${this.details.companyName?'\n订单所属公司:' + this.details.companyName :''}\n手机号码:${this.details.customerPhone}`, //要被复制的内容
|
||||
data:`${text}`,
|
||||
// data: `订单ID:${this.details.id}\n订单流水号:${this.details.orderSerialNumber}\n订单金额:${this.details.realAmount}元\n订单升数:${this.details.volume}升\n订单类型:${this.details.payAccountType==0?'个人':'企业'}\n司机姓名:${this.details.customerName}\n司机id:${this.details.customerId} ${this.details.companyName?'\n订单所属公司:' + this.details.companyName :''}\n手机号码:${this.details.customerPhone}`, //要被复制的内容
|
||||
// ${(this.details.payAccountType==0?'司机姓名':'订单所属公司') + ':' + (this.details.payAccountType==0? this.details.customerName:this.details.companyName)}
|
||||
success: () => { //复制成功的回调函数
|
||||
uni.showToast({ //提示
|
||||
|
||||
Reference in New Issue
Block a user