| | |
| | | { |
| | | width: 95%; |
| | | margin: 0 auto; |
| | | min-height: 23rem; |
| | | margin-top: 5.3rem; |
| | | position:relative; |
| | | } |
| | |
| | | height: 99%; |
| | | border: 0px; |
| | | background: #f5f5f9; |
| | | resize:none; |
| | | } |
| | | .mid-button-content |
| | | { |
| | |
| | | width: 100%; |
| | | text-align: center; |
| | | margin: 0 auto; |
| | | line-height: 6.2rem; |
| | | line-height: 1.2rem; |
| | | color: #a69b9b; |
| | | font-size: 14px; |
| | | } |
| | |
| | | size=size<=0?400:size; |
| | | document.documentElement.style.fontSize = (size > 750 ? 750 : size) / 7.5 + 'px'; |
| | | })(); |
| | | function scanCode(str) |
| | | { |
| | | app.copytxt(str); |
| | | } |
| | | function likeDataGet(data) |
| | | { |
| | | app.likeDataGet(data); |
| | | } |
| | | Vue.use(VueLazyload, { |
| | | preLoad: 1.3,// |
| | | error: 'https://sr.ffquan.cn/cms_pic/20200622/bro7s7f6vrkd3jat4ujg0.png', |
| | | 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', |
| | | posturl:'http://appapitest.ushopvip.com', |
| | | posturl:'https://appapitest.ushopvip.com', |
| | | //posturl:'http://dfgapp.ushopvip.com', |
| | | goodsItem:[], |
| | | txtareatxt:'', |
| | | txtplaceholder:'1、支持淘宝、天猫、京东、抖音、拼多多等多家电商 \r\n 2、请粘贴您需要转换的分享文案/链接和口令/商品链接;不支持券链接' |
| | | }, |
| | | methods:{ |
| | | clear:function() |
| | | likeDataGet:function(postData) |
| | | { |
| | | this.txtareatxt=''; |
| | | }, |
| | | fromcopy:function() |
| | | { |
| | | navigator.clipboard.readText().then(function(clipText){ |
| | | alert(clipText); |
| | | }) |
| | | }, |
| | | getCmsUrl:function(){ |
| | | var _this = this; |
| | | _this.loading=true; |
| | | $.ajax({ |
| | | headers:{ |
| | | "token":this.getUrlPar("token") |
| | | }, |
| | | |
| | | url:_this.posturl+'/api/activity/cmsGet', |
| | | url:_this.posturl+'/api/taoke/get_goods_things', |
| | | type:"post", |
| | | dataType:"json", |
| | | async: false, |
| | | data:{ |
| | | |
| | | deviceType:postData.postData, |
| | | deviceValue:postData.deviceValue, |
| | | pageId:1, |
| | | pageSize:10, |
| | | type:1 |
| | | } |
| | | }).done(function(res){ |
| | | |
| | | console.log(res); |
| | | }) |
| | | }, |
| | | getLikeGoods:function() |
| | | { |
| | | uni.postMessage({ |
| | | data: { |
| | | action: 'copy' |
| | | } |
| | | }) |
| | | }, |
| | | clear:function() |
| | | { |
| | | this.txtareatxt=''; |
| | | }, |
| | | copytxt(str) |
| | | { |
| | | if(str&&str.data&&str.data.length>0) |
| | | { |
| | | this.txtareatxt=str.data; |
| | | } |
| | | }, |
| | | fromcopy:function() |
| | | { |
| | | uni.postMessage({ |
| | | data: { |
| | | action: 'copy' |
| | | } |
| | | }) |
| | | }, |
| | | getUrlPar:function(name) |
| | |
| | | }, |
| | | }, |
| | | mounted:function(){ |
| | | this.getGoodsList(); |
| | | document.addEventListener('UniAppJSBridgeReady', function() { |
| | | this.getLikeGoods(); |
| | | }); |
| | | } |
| | | }) |
| | | </script> |