init
This commit is contained in:
10
components/hover-nav/hover-nav.js
Normal file
10
components/hover-nav/hover-nav.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/hover-nav/hover-nav"],{"1afe":function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){}));var a=function(){var n=this.$createElement;this._self._c},i=[]},"6c94":function(n,t,e){"use strict";var a=e("c1d0a"),i=e.n(a);i.a},b24a:function(n,t,e){"use strict";e.r(t);var a=e("ccf1"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(o);t["default"]=i.a},c1d0a:function(n,t,e){},c208:function(n,t,e){"use strict";e.r(t);var a=e("1afe"),i=e("b24a");for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);e("6c94");var u=e("828b"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=c.exports},ccf1:function(n,t,e){"use strict";(function(n){var a=e("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(e("c16a")),o={name:"hover-nav",props:{need:{type:Boolean,default:!1},mobile:{type:Boolean,default:!0},isCn:{type:Boolean,default:!1}},data:function(){return{pageCount:0,fixBtnShow:!0,tel:"",kefuimg:"",phoneimg:"",langIndex:0,ischina:0,ishow:0}},created:function(){var t=i.default.baseUrl.includes("aigc-quickapp.com");this.ishow=t,this.ischina=n.getStorageSync("shopInfo").ischina,this.kefuimg=this.$util.getDefaultImage().kefu,this.phoneimg=this.$util.getDefaultImage().phone,this.pageCount=getCurrentPages().length,this.initLang();var e=this;n.getStorage({key:"shopInfo",success:function(n){e.tel=n.data.mobile}})},methods:{modifyInfo:function(){this.$langConfig.change(1==this.langIndex?"zh-cn":"en-us",1)},initLang:function(){if(this.langList=this.$langConfig.list(),n.getStorageSync("lang")){for(var t=0;t<this.langList.length;t++)if(this.langList[t].value==n.getStorageSync("lang")){this.langIndex=t;break}}else this.langIndex=0},call:function(){n.makePhoneCall({phoneNumber:this.tel+""})}}};t.default=o}).call(this,e("df3c")["default"])}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/hover-nav/hover-nav-create-component',
|
||||
{
|
||||
'components/hover-nav/hover-nav-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("c208"))
|
||||
})
|
||||
},
|
||||
[['components/hover-nav/hover-nav-create-component']]
|
||||
]);
|
||||
4
components/hover-nav/hover-nav.json
Normal file
4
components/hover-nav/hover-nav.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
components/hover-nav/hover-nav.wxml
Normal file
1
components/hover-nav/hover-nav.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{pageCount==1||need}}"><view class="fixed-box" style="{{'height:'+(fixBtnShow?'330rpx':'120rpx')+';'}}"><block wx:if="{{fixBtnShow}}"><button class="btn-item" style="{{'background-image:'+('url('+(kefuimg?kefuimg:'')+')')+';'+('background-size:'+('100% 100%')+';')}}" hoverClass="none" openType="contact" sessionFrom="weapp" showMessageCard="true"><block wx:if="{{!kefuimg}}"><text class="icox icox-kefu"></text></block></button></block><block wx:if="{{isCn&&ischina==1&&isContain}}"><button data-event-opts="{{[['tap',[['modifyInfo']]]]}}" class="btn-item" style="{{'background-image:'+('url('+(kefuimg?kefuimg:'')+')')+';'+('background-size:'+('100% 100%')+';')}}" catchtap="__e">{{''+(langIndex==0?'CN':'EN')+''}}</button></block><block wx:if="{{fixBtnShow&&mobile}}"><view data-event-opts="{{[['tap',[['call']]]]}}" class="btn-item" style="{{'background-image:'+('url('+(phoneimg?phoneimg:'')+')')+';'+('background-size:'+('100% 100%')+';')}}" bindtap="__e"><block wx:if="{{!phoneimg}}"><text class="iconfont icon-dianhua"></text></block></view></block></view></block>
|
||||
1
components/hover-nav/hover-nav.wxss
Normal file
1
components/hover-nav/hover-nav.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.container-box{width:100%}.container-box .item-wrap{border-radius:10rpx}.container-box .item-wrap .image-box{border-radius:10rpx}.container-box .item-wrap image{width:100%;height:auto;border-radius:10rpx;will-change:transform}.fixed-box{position:fixed;right:0rpx;bottom:200rpx;z-index:10;border-radius:120rpx;padding:20rpx 0;display:flex;justify-content:center;flex-direction:column;width:100rpx;box-sizing:border-box;transition:.3s;overflow:hidden}.fixed-box .btn-item{display:flex;justify-content:center;text-align:center;flex-direction:column;line-height:1;margin:14rpx 0;transition:.1s;background:#fff;border-radius:50rpx;width:80rpx;height:80rpx;padding:0}.fixed-box .btn-item text{font-size:36rpx;font-weight:700}.fixed-box .btn-item view{font-size:26rpx;font-weight:700}.fixed-box .btn-item.show{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fixed-box .btn-item.icon-xiala{margin:0;margin-top:.1rpx}
|
||||
Reference in New Issue
Block a user