zhao_js
2024-01-03 a1321ff4ad712a1c14595bbb7cb6edfa029eca0b
no message
已修改2个文件
82 ■■■■■ 文件已修改
H5/pages/ad_page/product_sc.vue 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/unpackage/dist/build/h5/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/ad_page/product_sc.vue
@@ -5,8 +5,25 @@
                size="mini">素材下载</button>
            <button @click="toTab(2)" class="mini-btn" type="default" size="mini">短信审核</button>
            <button @click="toTab(3)" class="mini-btn" type="default" size="mini">微信朋友圈</button>
        </view>
        </view>
        <view style="display: flex;flex-wrap: wrap; padding: 0.5rem;justify-content:space-between;">
            <view style="display: flex;flex-wrap: wrap;">
                <button @click="tongbu()" style="margin-right: 0.2rem;" type="primary">
                    商品同步
                </button>
                <button @click="getCount()" style="margin-right: 0.2rem;" type="primary">
                    查看铺货单
                </button>
                <button @click="clearHuo()" type="primary">
                    清除铺货单
                </button>
            </view>
            <view @click="refreshList()" class="refresh">
                刷新
            </view>
        </view>
        <cc-pullScroolView class="pullScrollView" ref="pullScroll" :enablePullDown="false" :back-top="false">
            <view>
                <view v-if="productList.length>0" class="orders-list d-flex flex-column w-100"
@@ -38,7 +55,8 @@
                                        <view style="display: flex;">
                                            <view style="display: flex;flex-wrap:wrap;" v-if="currentId==item.id">
                                                <view style="margin: 0.3rem;" v-for="(linkitem, linkindex) in currentLink" :key="linkindex">
                                                <view style="margin: 0.3rem;"
                                                    v-for="(linkitem, linkindex) in currentLink" :key="linkindex">
                                                    <button @click="download(linkitem)" type="primary">
                                                        下载{{linkindex}}
                                                    </button>
@@ -91,9 +109,51 @@
            }
        },
        methods: {
            toPyq() {
                uni.navigateTo({
                    url: '/pages/ad_page/wx_pyqset'
            //商品同步
            tongbu() {
                this.$http.post('/api/ProductManage/AddDistributebillTask', {}).then(e => {
                    if (e.result == true) {
                        uni.showToast({
                            title: '同步任务已提交,请稍后刷新页面',
                            icon: 'none'
                        });
                    }
                }).catch(function(err) {
                    console.log(err);
                })
            },
            refreshList()
            {
                this.productList=[];
                this.getTemplateData();
            },
            //查看铺货单
            getCount() {
                this.$http.post('/api/ProductInfo/DistributebillGet', {}).then(e => {
                    if (e.success == true) {
                        uni.showToast({
                            title: '当前铺货单共有' + e.result + '件商品',
                            icon: 'none'
                        });
                    }
                }).catch(function(err) {
                    console.log(err);
                })
            },
            //清除铺货单
            clearHuo() {
                this.$http.post('/api/ProductInfo/ClearDistributebill', {}).then(e => {
                    if (e.success == true) {
                        uni.showToast({
                            title: '清除成功!',
                            icon: 'none'
                        });
                    }
                }).catch(function(err) {
                    console.log(err);
                })
            },
            //检查白名单
@@ -199,6 +259,16 @@
        width: 80%;
    }
    .refresh {
        display: flex;
        align-items: center;
        color: #fff;
        background: #FF928F;
        padding: 0.6rem;
        border-radius: 10px;
        font-size: 0.8rem;
    }
    .container {
        display: flex;
        flex-direction: column;
H5/unpackage/dist/build/h5/index.html
@@ -1,2 +1,2 @@
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>暗号情书</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.f5d95020.js></script><script src=/static/js/index.bca0f14f.js></script></body></html>
            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.f5d95020.js></script><script src=/static/js/index.c01701dd.js></script></body></html>