|
@@ -43,17 +43,18 @@
|
|
|
<img width="100%" src="images/top-1.png" />
|
|
|
<div style="position: absolute;left: 0; top: 45%;-webkit-transform: translateY(-50%);width: 100%;text-align: center;">
|
|
|
<div class="user-head">
|
|
|
- <img src="images/tx-1.jpg" />
|
|
|
+ <img id="headDiv" src="" />
|
|
|
</div>
|
|
|
- <div>微微一笑倾城</div>
|
|
|
+ <div id="userNickname">微微一笑倾城</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="padding:0;background: #fff;margin-bottom: 8px;">
|
|
|
<div id="menu-nav" class="mui-segmented-control">
|
|
|
- <a class="mui-control-item">
|
|
|
- <div class="iconfont icon-quanbao"><span class="mui-badge">9</span></div>
|
|
|
+ <a class="mui-control-item" id="couponList">
|
|
|
+ <div class="iconfont icon-quanbao">
|
|
|
+ <!--<span class="mui-badge">9</span>-->
|
|
|
+ </div>
|
|
|
券包
|
|
|
-
|
|
|
</a>
|
|
|
<a class="mui-control-item">
|
|
|
<div class="iconfont icon-zhibaoqia"></div>
|
|
@@ -169,6 +170,52 @@
|
|
|
$("#menu>li").removeClass("active");
|
|
|
$("#menu").css("height","0px");
|
|
|
});
|
|
|
+
|
|
|
+ /*优惠券*/
|
|
|
+ $(document).on('tap', '#couponList', function() {
|
|
|
+ window.location.href= "coupon_list.html";
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+
|
|
|
+ <script>
|
|
|
+ mui.ready(function(){
|
|
|
+ mui.ajax( base_path + '/wechat/agent/member?dates=' + new Date().getTime(),{
|
|
|
+ dataType:'json',
|
|
|
+ type:'post',
|
|
|
+ timeout:15000,
|
|
|
+ success:function(dt){
|
|
|
+ var data = dt.data;
|
|
|
+ //console.log(dt)
|
|
|
+ if(dt.status){
|
|
|
+// userIdentity = data.userIdentity;
|
|
|
+ if(data.userHead != null && typeof(data.userHead)!="undefined" && data.userHead != ''){
|
|
|
+ //var imgObj = $("<img src='" + data.userHead + "?" + new Date().getTime() + "'/>");
|
|
|
+ $("#headDiv").attr("src",data.userHead);
|
|
|
+ }
|
|
|
+ if(data.userNickname != null && typeof(data.userNickname)!="undefined" && data.userNickname != ''){
|
|
|
+ $("#userNickname").html(decodeURI(data.userNickname));
|
|
|
+ }
|
|
|
+// $("#userNickname").append('<img class="vip_icon" src="http://static.iamberry.com/images/shop/dl_icon.png" />');
|
|
|
+// document.querySelector('.loading-bg').style.display='none';
|
|
|
+
|
|
|
+
|
|
|
+ }else{
|
|
|
+// var btnArray = ['否', '是'];
|
|
|
+// mui.confirm(dt.message, '爱贝源-提示', btnArray, function(e) {
|
|
|
+// if (e.index == 1) {
|
|
|
+// location.reload(true);
|
|
|
+// }
|
|
|
+// });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error:function(xhr,type,errorThrown){
|
|
|
+ //异常处理;
|
|
|
+ errorfn(xhr);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ //
|
|
|
</script>
|
|
|
</body>
|
|
|
|