复制信息

main
lion 1 year ago
parent e5d12d6e57
commit aeb9d85c08

@ -1,5 +1,10 @@
<template>
<view class='ordercontainer'>
<view class='ordercontainer'>
<!-- <view>
<u-navbar :custom-back="toMe" :is-back="true" :is-fixed='true' title-color="black" :border-bottom="false" title="我的订单"
:background="{'background':'#FFFFFF'}">
</u-navbar>
</view> -->
<view class="tabsnav">
<u-tabs :list="list" :is-scroll="true" bg-color="#f0efed" bar-width="24" bar-height="24" gutter="53"
font-size="24" inactive-color="#000" :active-item-style="{fontSize:'30rpx',color:'#ba8b45'}"
@ -36,8 +41,8 @@
class="orderweek">{{item.week?'['+item.week+']':''}}</text>{{item.hh?item.hh:''}}
</view>
</view>
<view class="ordertab">
<!-- -->
<view class="ordertab">
<!-- -->
<text class="deleteorder" @click="copyText('单号')" v-if="item.status==1"></text>
<text class="deleteorder" @click="edit(item)" v-if="item.can_update"></text>
<text class="orderinform">通知收件人</text>
@ -107,31 +112,31 @@
})
}
// this.listArea = res.regions
},
edit(item){
uni.setStorageSync('vuex_update_card',item)
uni.navigateTo({
url:'/packages/order/order?hasCard=true&type=edit'
})
},
//
copyText(text) {
uni.setClipboardData({
data: '123',
success: function () {
console.log('复制成功');
// 使uni.showToast
uni.showToast({
title: '复制成功',
icon: 'success',
duration: 2000
});
},
fail: function (e) {
console.log('复制失败',e);
//
}
})
},
edit(item) {
uni.setStorageSync('vuex_update_card', item)
uni.navigateTo({
url: '/packages/order/order?hasCard=true&type=edit'
})
},
//
copyText(text) {
uni.setClipboardData({
data: '123',
success: function() {
console.log('复制成功');
// 使uni.showToast
uni.showToast({
title: '复制成功',
icon: 'success',
duration: 2000
});
},
fail: function(e) {
console.log('复制失败', e);
//
}
})
}
}
@ -261,7 +266,7 @@
display: inline-block;
width: 160rpx;
height: 50rpx;
margin-left:22rpx;
margin-left: 22rpx;
border-radius: 50rpx;
text-align: center;
line-height: 50rpx;

@ -425,7 +425,8 @@
// return
if (e) {
let data = e.data
let _this = this
let _this = this
_this.form.area = ''
data.forEach(function(item, index) {
_this.form.area += item.value + ' ';
});

Loading…
Cancel
Save