zhaojs
2023-07-31 8dcfae4fff98fbbb19ff46bd9750f25bc56801a9
public/html/bybt.html
@@ -38,18 +38,15 @@
      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>
@@ -428,7 +425,6 @@
            :key="index"
            class="list"
            :id="'goodsList'+index"
            @click="targetItem(item)"
          >
            <div class="pic"><img :src="imgFomate(item.pictUrl)" /></div>
            <div class="center">
@@ -512,12 +508,6 @@
      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('抢购暂未开始');
@@ -651,13 +641,13 @@
          }
          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({
@@ -668,12 +658,12 @@
                  url: _this.linkKZ + '#/bybt?app_key='+_config.appKey,
                },
              }).done(function (res) {
               /*  _this.handleClipboard(
                _this.handleClipboard(
                  document.getElementById('shareID'),
                  {},
                  false,
                  '聚划算发补贴福利了,大牌正品,买贵必陪,小伙伴们快来抢购吧~'+res.data
                ); */
                );
              });
            }
          }, 500);