diff --git a/components/my_confirm/my_confirm.js b/components/my_confirm/my_confirm.js new file mode 100644 index 0000000..9716d77 --- /dev/null +++ b/components/my_confirm/my_confirm.js @@ -0,0 +1,31 @@ +var t = getApp(); +Component({ + /*** 页面的初始数据***/ + data: { + yu_e_show:0, + iurl:t.globalData.setting.imghost, + width:0, + success:null, //成功的回调 + cancle: null, //取消的回调 + title: null, //标题 + s_text:null, //确定的提示语 + c_text:null, //取消的提示语 + }, + + methods: { + open: function (title,s_text,c_text,success,cancle) { + this.setData({ title: title, s_text: s_text, c_text:c_text, yu_e_show: 1}) + this.data.success=success;this.data.cancle=cancle; + }, + go_sure:function(){ + this.data.success(); + }, + go_cancle: function () { + this.data.cancle(); + }, + close_yu_e:function(){ + this.setData({ yu_e_show: 0 }) + } + } + +}) \ No newline at end of file diff --git a/components/my_confirm/my_confirm.json b/components/my_confirm/my_confirm.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/components/my_confirm/my_confirm.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/my_confirm/my_confirm.wxml b/components/my_confirm/my_confirm.wxml new file mode 100644 index 0000000..ab4bc9f --- /dev/null +++ b/components/my_confirm/my_confirm.wxml @@ -0,0 +1,16 @@ + + + + + + + {{title}} + + {{s_text}} + {{c_text}} + + + + + + diff --git a/components/my_confirm/my_confirm.wxss b/components/my_confirm/my_confirm.wxss new file mode 100644 index 0000000..a0b8997 --- /dev/null +++ b/components/my_confirm/my_confirm.wxss @@ -0,0 +1,63 @@ + +/* 弹窗样式 */ +.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: 60rpx; + background: #c8162c; +} +.xc-qr-frame{ + width:560rpx; + height: 280rpx; + background: #fff; + z-index: 55; + position: fixed; + top:40%; + padding-bottom:20rpx; + left:50%; + margin-left: -280rpx; border-radius:10rpx +} + +.ck_btn{width:44%;height:52rpx;line-height:60rpx;background:#f35e73;border-radius:10rpx;} + +.fs36{ font-size: 36rpx; } +.fs30{ font-size: 30rpx; } + +.Opening_bk image { + position: absolute; width: 100%; height: 320rpx; +} +.flex {display: flex;} +.jc-center{ justify-content: center;} +.ai-center{align-items: center;} \ No newline at end of file