From e063257cbc42cc653a5affada16d117610769d48 Mon Sep 17 00:00:00 2001 From: cheng.xu Date: Thu, 7 Nov 2019 10:09:00 +0800 Subject: [PATCH] 续费卡页面修改 --- components/nav_box_card/nav_box.js | 29 +++++++++++++++++++++++++++++ components/nav_box_card/nav_box.json | 4 ++++ components/nav_box_card/nav_box.wxml | 13 +++++++++++++ components/nav_box_card/nav_box.wxss | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pages/user/cardinfo/cardinfo.json | 3 ++- pages/user/cardinfo/cardinfo.wxml | 59 ++++++++++++++++++++++++++++++++++++++++++++++------------- pages/user/cardinfo/cardinfo.wxss | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 7 files changed, 235 insertions(+), 16 deletions(-) create mode 100644 components/nav_box_card/nav_box.js create mode 100644 components/nav_box_card/nav_box.json create mode 100644 components/nav_box_card/nav_box.wxml create mode 100644 components/nav_box_card/nav_box.wxss diff --git a/components/nav_box_card/nav_box.js b/components/nav_box_card/nav_box.js new file mode 100644 index 0000000..5fcacf6 --- /dev/null +++ b/components/nav_box_card/nav_box.js @@ -0,0 +1,29 @@ +var t = getApp(),os =t.globalData.setting; +Component({ + properties: { + }, + data: { + isopen:0, + iurl:os.imghost, + }, + + ready: function() { + }, + methods: { + //--点击打开事件-- + open_box:function () { + this.setData({isopen:1}); + }, + //--关闭事件-- + close_box:function(){ + this.setData({isopen:0}); + }, + //--跳转-- + goto:function (e) { + var url=e.currentTarget.dataset.url; + getApp().goto(url); + } + + } + +}) \ No newline at end of file diff --git a/components/nav_box_card/nav_box.json b/components/nav_box_card/nav_box.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/components/nav_box_card/nav_box.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/nav_box_card/nav_box.wxml b/components/nav_box_card/nav_box.wxml new file mode 100644 index 0000000..52b10ca --- /dev/null +++ b/components/nav_box_card/nav_box.wxml @@ -0,0 +1,13 @@ + + + + + + + 首页 + 分类 + 我的 + × + + + diff --git a/components/nav_box_card/nav_box.wxss b/components/nav_box_card/nav_box.wxss new file mode 100644 index 0000000..8c1de52 --- /dev/null +++ b/components/nav_box_card/nav_box.wxss @@ -0,0 +1,70 @@ +.box_main{ + width:80rpx; + height:80rpx; + background:#272636; + transition:width 0.8s; + -moz-transition:width 0.8s; /* Firefox 4 */ + -webkit-transition:width 0.8s; /* Safari and Chrome */ + -o-transition:width 0.8s; /* Opera */ + border-radius:50rpx ; + position: fixed; + right: 10rpx; + bottom:300rpx; + overflow: hidden; + z-index: 999999 + +} + +.box_isopen{ + width: 420rpx; +} + +.box_main .dian{ + text-align: center; +width: 50rpx; +height: 50rpx; +color: #ffff; +font-size: 50rpx; +background: none; + +} + +.box_main .dian image{ + width: 60rpx; +height: 20rpx; +margin: 0rpx 0 0 10rpx; +margin-bottom: 7rpx; + +} + +.box_main.box_isopen .dian{ + display: none; +} + +.box_main .cl_list{ + display: none; +} + +.box_main.box_isopen .cl_list{ + display: block; + margin-left: 20rpx; +} + +.box_main .cl_list .item{ + display: inline-block; + width:100rpx; + height:80rpx; + text-align: center; + line-height: 80rpx; + color: #fff; + vertical-align: top; + font-size: 32rpx; + +} + +.box_main .cl_list .item.big{ + font-size: 70rpx; +line-height: 70rpx; + +} + diff --git a/pages/user/cardinfo/cardinfo.json b/pages/user/cardinfo/cardinfo.json index 3058b7f..9d1ba78 100644 --- a/pages/user/cardinfo/cardinfo.json +++ b/pages/user/cardinfo/cardinfo.json @@ -2,7 +2,8 @@ "usingComponents": { "pop_txt": "/components/userqy_pop_up/userqy_pop_up", "goods_recommend": "/components/goods_list/goods_list", - "warn": "/components/long_warn/long_warn" + "warn": "/components/long_warn/long_warn", + "nav_box": "/components/nav_box_card/nav_box" }, "navigationBarTitleText": "plus会员" } \ No newline at end of file diff --git a/pages/user/cardinfo/cardinfo.wxml b/pages/user/cardinfo/cardinfo.wxml index 17f7159..330408f 100644 --- a/pages/user/cardinfo/cardinfo.wxml +++ b/pages/user/cardinfo/cardinfo.wxml @@ -2,7 +2,7 @@ - + @@ -28,12 +28,10 @@ 享受更低价格,请续费哦 - 邀请新朋友 - + 邀请新朋友 + - - + @@ -55,7 +53,8 @@ 转到余额 - + + @@ -70,16 +69,17 @@ - PLUS会员可享以下特权 - - 解锁新权益 精彩享不停 + PLUS会员可享以下特权 + + + @@ -119,13 +119,46 @@ - - - + + + + + + + + + + + 确定把所有奖励金转入余额 + + 是的 + 再看看 + + + + + + + + + + + + + + + + + + + + + + diff --git a/pages/user/cardinfo/cardinfo.wxss b/pages/user/cardinfo/cardinfo.wxss index 88a432c..32027c5 100644 --- a/pages/user/cardinfo/cardinfo.wxss +++ b/pages/user/cardinfo/cardinfo.wxss @@ -5,6 +5,12 @@ width: 100%; height: 100%; } +.box--box_main .box--dian wx-image { + margin: 0px 0 0 4px; + + margin-bottom: 4px; + +} .MemberPlus { width: 618rpx; height: 285rpx; @@ -69,7 +75,7 @@ } .swiper, .Courtesy, .title { position: relative; - z-index: 3; + z-index:-3; } .Courtesy_title { color: rgb(173, 137, 79); @@ -151,4 +157,67 @@ } .h36{ height:36rpx; line-height: 36rpx;} -.h22{ height:22rpx; line-height: 22rpx;} \ No newline at end of file +.h22{ height:22rpx; line-height: 22rpx;} + + + + +/* 弹窗样式 */ +.xc-pop-up{ + width: 100%; + height: 100%; + position:fixed; + z-index:5; + display:flex; +justify-content:center; +align-items:center; + +} +.xc-obscuration{ + position: fixed; + left: 0; + top: 0; + right: 0; + bottom: 0; + z-index: 11; + background: rgba(0,0,0,0.4); + width: 100%; + height: 100%; + +} + +.shut{ + display: block; + width: 54rpx; + height: 54rpx; + + font-size: 50rpx; + + line-height:47rpx; + border-radius: 50%; + -moz-border-radius: 50%; + -webkit-border-radius: 50%; + color: #fff; + text-align: center; + position: fixed; +margin-top: -23rpx; +z-index: 66666; + right: 20rpx; + background: #c8162c; +} +.xc-qr-frame{ + width:90%; +height: 260rpx; + background: #fff; + z-index: 55; + position: fixed; + top:40%; + + padding-bottom:20rpx; + right: 4.5%; + overflow: hidden; + +} +.fs36{ + font-size: 36rpx; +} \ No newline at end of file -- libgit2 0.21.4