复制信息

main
lion 1 year ago
parent e5d12d6e57
commit aeb9d85c08

@ -1,5 +1,10 @@
<template>
<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'}"
@ -108,30 +113,30 @@
}
// this.listArea = res.regions
},
edit(item){
uni.setStorageSync('vuex_update_card',item)
edit(item) {
uni.setStorageSync('vuex_update_card', item)
uni.navigateTo({
url:'/packages/order/order?hasCard=true&type=edit'
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);
//
}
})
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;

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

Loading…
Cancel
Save