|
|
@@ -13,12 +13,10 @@
|
|
|
placeholder=""
|
|
|
></textarea>
|
|
|
</view>
|
|
|
+ <view style="font-size:34upx;">复制上面文字,发给客户</view>
|
|
|
<view class="pay-confirm-content">
|
|
|
<view>
|
|
|
- <button class="admin-button-com blue big" @click="recharge()" style="width:420upx;">复制上面文字,发给客户</button>
|
|
|
- </view>
|
|
|
- <view style="margin-top:40upx;">
|
|
|
- <button class="admin-button-com big" @click="goBack" style="width:420upx;">返回</button>
|
|
|
+ <button class="admin-button-com big" @click="copyBack" style="width:420upx;">复制并返回</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -55,28 +53,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- recharge(){
|
|
|
- // 复制文本到剪贴板
|
|
|
+ copyBack(){
|
|
|
uni.setClipboardData({
|
|
|
data: this.copyText,
|
|
|
success: () => {
|
|
|
- uni.showToast({
|
|
|
- title: '复制成功',
|
|
|
- icon: 'success',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
+ uni.showToast({ title: '复制成功', icon: 'success', duration: 2000 })
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateBack()
|
|
|
+ }, 900)
|
|
|
},
|
|
|
fail: () => {
|
|
|
- uni.showToast({
|
|
|
- title: '复制失败',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
- });
|
|
|
+ uni.showToast({ title: '复制失败', icon: 'none', duration: 2000 })
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateBack()
|
|
|
+ }, 1500)
|
|
|
}
|
|
|
});
|
|
|
- },
|
|
|
- goBack(){
|
|
|
- uni.navigateBack()
|
|
|
}
|
|
|
},
|
|
|
};
|
|
|
@@ -143,7 +135,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
.pay-confirm-content {
|
|
|
- padding: 30upx 40upx;
|
|
|
+ padding: 40upx 40upx;
|
|
|
text-align: center;
|
|
|
}
|
|
|
</style>
|