This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

27
src/utils/myMixins.js Normal file
View File

@ -0,0 +1,27 @@
export const myMixins = {
data() {
return {
touchStart: [],
touchEnd: [],
slideShow: true
}
},
methods: {
goPage(page, query) {
this.$router.push({
name: page,
query: query
})
},
copyText(){//复制订单编号
const copyText = document.getElementById('copyText');
const range = document.createRange();
range.selectNode(copyText);
window.getSelection().removeAllRanges(); // 清除当前页面的选择内容
window.getSelection().addRange(range);
document.execCommand('copy');
window.getSelection().removeAllRanges(); // 清除选择内容的高亮状态
this.$toast('复制成功')
}
}
}