xuxueyang
2024-09-14 b75adfb2c243da46b4892176f24081da7e833141
update弹窗
已修改1个文件
23 ■■■■■ 文件已修改
pages/home/home.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue
@@ -411,20 +411,22 @@
                    }
                })
                if (tmp.currentInfo.id) {
                    let tmp = this
                    //延迟2秒
                    setTimeout(() => {
                let tmp = this
                //延迟2秒
                setTimeout(() => {
                    if (tmp.currentInfo.id) {
                        var value = tmp.$storage.getItem('cache_home_show_coupon')
                        if (!value) {
                            //首页优惠券
                            tmp.$storage.setItem('cache_home_show_coupon', '1')
                            var u = '/api/v2/coupon/home/alert'
                            u = '/api/v2/coupon/app/home/list'
                            var u = '/api/v2/coupon/app/home/alert'
                            // u = '/api/v2/coupon/app/home/list'
                            tmp.$http.request('get', u).then(res => {
                                if (res.code == 0) {
                                    var list = res.data || []
                                    var dto = list.length >= 1 ? list[0] : undefined
                                    // var list = res.data || {}
                                    // var dto = list.length >= 1 ? list[0] : undefined
                                    var dto = res.data || undefined
                                    if (dto) {
                                        // 显示弹窗图片
                                        tmp.dto_home_coupon = dto
@@ -433,8 +435,9 @@
                                }
                            })
                        }
                    }, 2000)
                }
                    }
                }, 1200)
            },
            clickBanner(item) {