From 04f709780ae938ee537476f2c79318854bdb27e2 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 30 六月 2023 14:45:59 +0800 Subject: [PATCH] no message --- public/html/signin.html | 120 +++++++++++++++++++++++++++++++++--------------------------- 1 files changed, 66 insertions(+), 54 deletions(-) diff --git a/public/html/signin.html b/public/html/signin.html index 9a1279b..94e9ccb 100644 --- a/public/html/signin.html +++ b/public/html/signin.html @@ -105,8 +105,13 @@ <img src="http://img.bc.haodanku.com/cms/1627703910"> <p>搴楅摵锛歿{item.shopname}}</p> </div> - <div class="ticket" v-if="item.couponurl"><span class="name">鍒�</span><span - class="value">锟{item.couponmoney}}</span></div> + <div> + <div class="ticket" v-if="item.couponurl"><span class="name" style="height: 0.3rem;">鍒�</span><span + class="value">锟{item.couponmoney}}</span></div> + <div class="ticket" v-if="item.couponurl"><span class="name" style="height: 0.3rem;background:linear-gradient(180deg,#b21db6,#ad25d1)">杩�</span><span + class="value" style="border:1px solid #b817ce;color:#b817ce">锟{item.fanli}}</span></div> + </div> + <div class="shop-b"> <div class="shop-b-l"> <p class="shop-b-m"><i>鍒稿悗浠�</i>锟{parseFloat(item.itemendprice)}}</p> @@ -249,6 +254,8 @@ el: "#app", data: function() { return { + //posturl:"http://dfg.shop.com", + posturl:"http://appapitest.ushopvip.com", showDirect: false, codeId: vmRequest("code"), @@ -402,6 +409,13 @@ } SpaUtils.copy(this.sign_info.tpwd, "澶嶅埗鍙d护鎴愬姛锛岃鎵撳紑娣樺疂娴忚棰嗗彇绛惧埌绾㈠寘"); }, + getUrlPar:function(name) + { + var reg=new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); + var r=window.location.search.substr(1).match(reg); + if(r !=null)return unescape(r[2]); + return null; + }, arrowBtn: function(val) { this[val] = !this[val]; this.arrowTop(); @@ -437,60 +451,58 @@ document.body.scrollTop = that.outerHeight; } $.ajax({ - type: "Get", - url: that.vmHttp + "://v2.api.haodanku.com/sign_red_pack_goods", - data: { - apikey: '0F92EBA7AADA', //蹇呭~ - min_size: 20, - sort: that.sortId, - min_id: that.page, - keyword: that.keyword, - pure_tpwd: vmRequest("pure_tpwd") ? 1 : undefined - }, - dataType: "json", - timeout: 5000, - success: function(data) { - if(data.code == "200") { - that.help_info = data.help_info || []; - that.sign_info = data.sign_info || {}; - if(that.sigclick) { - that.fristOrderItems = data.data; - } else { - that.fristOrderItems = that.fristOrderItems.concat(data.data); - } - that.topArr = data.top_data; - if(that.page != data.min_id) { - that.loadmsg = true; - that.loadshow = true; - that.page = data.min_id; - } else { - that.loadmsg = false; - that.loadshow = false; - } - that.$nextTick(function() { - that.sigclick = false; - if(cb) { - $(".newtop").scrollToFixed(); + headers:{ + "token":that.getUrlPar("token") + }, + url:that.posturl+'/api/activity/signRed', + type:"post", + dataType:"json", + data:{ + apikey: '0F92EBA7AADA', //蹇呭~ + min_size: 20, + sort: that.sortId, + min_id: that.page, + keyword: that.keyword, + pure_tpwd: vmRequest("pure_tpwd") ? 1 : undefined } + }).done(function(res){ + var data=res.data; + if(res.code == 0) { + that.help_info = data.help_info || []; + that.sign_info = data.sign_info || {}; + if(that.sigclick) { + that.fristOrderItems = data.data; + } else { + that.fristOrderItems = that.fristOrderItems.concat(data.data); + } + that.topArr = data.top_data; + if(that.page != data.min_id) { + that.loadmsg = true; + that.loadshow = true; + that.page = data.min_id; + } else { + that.loadmsg = false; + that.loadshow = false; + } + that.$nextTick(function() { + that.sigclick = false; + if(cb) { + $(".newtop").scrollToFixed(); + } - }); - } else { - that.loadmsg = false; - that.loadshow = false; - that.sigclick = false; - layer.msg(data.msg, { - time: 2000, - shade: 0.1, - shadeClose: true - }); - } - - }, - error: function() { - that.msgFun("缃戠粶閿欒锛岃妫�鏌ョ綉缁滈噸璇�"); - } - }); - }, + }); + } else { + that.loadmsg = false; + that.loadshow = false; + that.sigclick = false; + layer.msg(data.msg, { + time: 2000, + shade: 0.1, + shadeClose: true + }); + } + }) + }, handleSort: function(item) { if(this.sortNumber == item.number) { if(item.min === item.max) { -- Gitblit v1.9.3