|
|
|
@ -43,7 +43,7 @@
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="ordertab">
|
|
|
|
<view class="ordertab">
|
|
|
|
<!-- -->
|
|
|
|
<!-- -->
|
|
|
|
<text class="deleteorder" @click="copyText('单号')" v-if="item.status==1">物流查询</text>
|
|
|
|
<text class="deleteorder" @click="copyText(item.express_number)" v-if="item.status==1">物流查询</text>
|
|
|
|
<text class="deleteorder" @click="edit(item)" v-if="item.can_update">修改</text>
|
|
|
|
<text class="deleteorder" @click="edit(item)" v-if="item.can_update">修改</text>
|
|
|
|
<text class="orderinform">通知收件人</text>
|
|
|
|
<text class="orderinform">通知收件人</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
@ -122,17 +122,22 @@
|
|
|
|
// 复制文本到剪贴板
|
|
|
|
// 复制文本到剪贴板
|
|
|
|
copyText(text) {
|
|
|
|
copyText(text) {
|
|
|
|
uni.setClipboardData({
|
|
|
|
uni.setClipboardData({
|
|
|
|
data: '123',
|
|
|
|
data: text,
|
|
|
|
success: function() {
|
|
|
|
success: function() {
|
|
|
|
console.log('复制成功');
|
|
|
|
console.log('复制成功');
|
|
|
|
// 可以添加用户友好的提示,例如使用uni.showToast提示复制成功
|
|
|
|
// 可以添加用户友好的提示,例如使用uni.showToast提示复制成功
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
title: '复制成功',
|
|
|
|
title: '单号复制成功',
|
|
|
|
icon: 'success',
|
|
|
|
icon: 'none',
|
|
|
|
duration: 2000
|
|
|
|
duration: 2000
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail: function(e) {
|
|
|
|
fail: function(e) {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
title: '单号复制失败',
|
|
|
|
|
|
|
|
icon: 'none',
|
|
|
|
|
|
|
|
duration: 2000
|
|
|
|
|
|
|
|
});
|
|
|
|
console.log('复制失败', e);
|
|
|
|
console.log('复制失败', e);
|
|
|
|
// 可以添加错误处理或用户友好的提示
|
|
|
|
// 可以添加错误处理或用户友好的提示
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|