| | |
| | | })(); |
| | | function scanCode(str) |
| | | { |
| | | alert(str); |
| | | app.coptest(str); |
| | | } |
| | | Vue.use(VueLazyload, { |
| | | preLoad: 1.3,// |
| | |
| | | loading: 'https://sr.ffquan.cn/cms_pic/20200612/brhjkf76vrkcrfpi79eg0.png', |
| | | attempt: 1 |
| | | }) |
| | | new Vue({ |
| | | var app= new Vue({ |
| | | el: '#comprice', |
| | | data:{ |
| | | //posturl:'http://dfg.shop.com', |
| | |
| | | { |
| | | this.txtareatxt=''; |
| | | }, |
| | | copytxt(str) |
| | | { |
| | | alert(str.data); |
| | | if(str&&str.data&&str.data.length>0) |
| | | { |
| | | this.txtareatxt=str.data; |
| | | } |
| | | }, |
| | | fromcopy:function() |
| | | { |
| | | { |
| | | uni.postMessage({ |
| | | data: { |
| | | action: 'copy' |
| | | } |
| | | }) |
| | | /* navigator.clipboard.readText().then(function(clipText){ |
| | | alert(clipText); |
| | | }) */ |
| | | }, |
| | | getCmsUrl:function(){ |
| | | var _this = this; |