public
This commit is contained in:
10
public/mp-weixin/components/float-tab/float-tab.js
Normal file
10
public/mp-weixin/components/float-tab/float-tab.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/float-tab/float-tab"],{"3ea7":function(t,n,e){"use strict";e.r(n);var o=e("5809"),a=e("3ebb");for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);e("f6bc");var u=e("828b"),c=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},"3ebb":function(t,n,e){"use strict";e.r(n);var o=e("9983"),a=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);n["default"]=a.a},5809:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement;this._self._c},a=[]},9983:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("0aec"),a={name:"float-tab",data:function(){return{showMore:!1,top:0}},mounted:function(){var t=this;(0,o.getRect)(".tab-img",!1,this).then((function(n){t.height=n.height,console.log(t.height)}))},methods:{onChange:function(){this.showMore=!this.showMore}},watch:{showMore:function(t){this.top=t?-this.height:0}}};n.default=a},f6bc:function(t,n,e){"use strict";var o=e("fa52"),a=e.n(o);a.a},fa52:function(t,n,e){}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/float-tab/float-tab-create-component',
|
||||
{
|
||||
'components/float-tab/float-tab-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("3ea7"))
|
||||
})
|
||||
},
|
||||
[['components/float-tab/float-tab-create-component']]
|
||||
]);
|
||||
4
public/mp-weixin/components/float-tab/float-tab.json
Normal file
4
public/mp-weixin/components/float-tab/float-tab.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/mp-weixin/components/float-tab/float-tab.wxml
Normal file
1
public/mp-weixin/components/float-tab/float-tab.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view class="float-tab ~column"><navigator class="tab-img" style="{{'top:'+(3*top+'px')+';'}}" hover-class="none" open-type="switchTab" url="/pages/index/index"><image class="tab-icon" src="/static/images/icon_float_home.png"></image></navigator><navigator class="tab-img" style="{{'top:'+(2*top+'px')+';'}}" hover-class="none" open-type="navigate" url="/bundle/pages/chat/chat"><image class="tab-icon" src="/static/images/icon_float_help.png"></image></navigator><navigator class="tab-img" style="{{'top:'+(top+'px')+';'}}" hover-class="none" open-type="switchTab" url="/pages/shop_cart/shop_cart"><image class="tab-icon" src="/static/images/icon_float_cart.png"></image></navigator><image class="tab-img" style="{{'z-index:99;'+('transform:'+('rotateZ('+(showMore?135:0)+'deg)')+';')}}" src="/static/images/icon_float_more.png" data-event-opts="{{[['tap',[['onChange',['$event']]]]]}}" bindtap="__e"></image></view>
|
||||
1
public/mp-weixin/components/float-tab/float-tab.wxss
Normal file
1
public/mp-weixin/components/float-tab/float-tab.wxss
Normal file
@ -0,0 +1 @@
|
||||
.float-tab{position:fixed;right:16rpx;bottom:200rpx;width:96rpx;height:96rpx;z-index:777}.float-tab .tab-img{width:100%;height:100%;position:absolute;transition:all .5s}.float-tab .tab-img .tab-icon{width:100%;height:100%}
|
||||
Reference in New Issue
Block a user