| | |
| | | type="text/javascript" |
| | | src="https://p1static.dataoke.com/web/js/layer/layer.js?t=202104191256" |
| | | ></script> |
| | | <script type="text/javascript" src="https://img.ushopvip.com/js/uni-webview-js.js"></script> |
| | | |
| | | <title>百亿补贴</title> |
| | | <script> |
| | | var _config = { |
| | | appKey: 'kowwtb', //此处替换成用户appKey |
| | | |
| | | // 需要自行接入点击商品后的逻辑 (非必填) |
| | | jumpGoodsUrl: function (items) { // 替换为详细页面的地址或转链逻辑 |
| | | uni.navigateTo({ |
| | | url: '/pages/goods/goodsDetail?id=' + items.goodsid |
| | | }); |
| | | } |
| | | // jumpGoodsUrl: function (items) { // 替换为详细页面的地址或转链逻辑 |
| | | // window.open('https://xxxx&gid=' + items.goodsid); |
| | | // } |
| | | }; |
| | | </script> |
| | | <style> |
| | |
| | | :key="index" |
| | | class="list" |
| | | :id="'goodsList'+index" |
| | | @click="targetItem(item)" |
| | | > |
| | | <div class="pic"><img :src="imgFomate(item.pictUrl)" /></div> |
| | | <div class="center"> |
| | |
| | | nowPage: 1, |
| | | }, |
| | | methods: { |
| | | targetItem(item) |
| | | { |
| | | uni.navigateTo({ |
| | | url: '/pages/goods/goodsDetail?id=' + item.itemId |
| | | }); |
| | | }, |
| | | isStart(item) { |
| | | if (this.getTime(item.activityStartTime) >= new Date()) { |
| | | layer.msg('抢购暂未开始'); |
| | |
| | | } |
| | | |
| | | setTimeout(function () { |
| | | /* for (var i = 0; i < _this.goodsList1.length; i++) { |
| | | for (var i = 0; i < _this.goodsList1.length; i++) { |
| | | _this.handleClipboard( |
| | | document.getElementById('goodsList' + i), |
| | | _this.goodsList1[i], |
| | | true |
| | | ); |
| | | } */ |
| | | } |
| | | |
| | | if (code == 200) { |
| | | $.ajax({ |
| | |
| | | url: _this.linkKZ + '#/bybt?app_key='+_config.appKey, |
| | | }, |
| | | }).done(function (res) { |
| | | /* _this.handleClipboard( |
| | | _this.handleClipboard( |
| | | document.getElementById('shareID'), |
| | | {}, |
| | | false, |
| | | '聚划算发补贴福利了,大牌正品,买贵必陪,小伙伴们快来抢购吧~'+res.data |
| | | ); */ |
| | | ); |
| | | }); |
| | | } |
| | | }, 500); |