服务器提交
This commit is contained in:
10
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.js
Executable file
10
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.js
Executable file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-goods-action-icon/ns-goods-action-icon"],{"31ea":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c={name:"ns-goods-action-icon",props:{icon:{type:String,default:""},text:{type:String,default:""},cornerMark:{type:String,default:""},cornerMarkBg:{type:String,default:""},cornerMarkColor:{type:String,default:"#fff"},openType:{type:String,default:""},sendData:{type:Object,default:function(){return{title:"",path:"",img:""}}},chatParam:{type:Object,default:function(){return{}}}},components:{nsContact:function(){e.e("components/ns-contact/ns-contact").then(function(){return resolve(e("5036"))}.bind(null,e)).catch(e.oe)}},methods:{clickEvent:function(){this.$emit("click")}}};n.default=c},5024:function(t,n,e){"use strict";var c=e("bb0a"),o=e.n(c);o.a},5196:function(t,n,e){"use strict";e.r(n);var c=e("31ea"),o=e.n(c);for(var r in c)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(r);n["default"]=o.a},"565f":function(t,n,e){"use strict";e.r(n);var c=e("cc83"),o=e("5196");for(var r in o)["default"].indexOf(r)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(r);e("5024");var a=e("828b"),i=Object(a["a"])(o["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],void 0);n["default"]=i.exports},bb0a:function(t,n,e){},cc83:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return c}));var c={nsContact:function(){return e.e("components/ns-contact/ns-contact").then(e.bind(null,"5036"))}},o=function(){var t=this.$createElement,n=(this._self._c,"客服"==this.text?this.cornerMark.length:null),e="客服"!=this.text?this.cornerMark.length:null,c="客服"!=this.text&&e?parseInt(this.cornerMark):null;this.$mp.data=Object.assign({},{$root:{g0:n,g1:e,m0:c}})},r=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/ns-goods-action-icon/ns-goods-action-icon-create-component',
|
||||
{
|
||||
'components/ns-goods-action-icon/ns-goods-action-icon-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("565f"))
|
||||
})
|
||||
},
|
||||
[['components/ns-goods-action-icon/ns-goods-action-icon-create-component']]
|
||||
]);
|
||||
6
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.json
Executable file
6
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"ns-contact": "/components/ns-contact/ns-contact"
|
||||
}
|
||||
}
|
||||
1
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.wxml
Executable file
1
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.wxml
Executable file
@@ -0,0 +1 @@
|
||||
<view><block wx:if="{{text=='客服'}}"><block><ns-contact vue-id="e47d0f3c-1" niushop="{{chatParam}}" send-message-title="{{sendData.title}}" send-message-path="{{sendData.path}}" send-message-img="{{sendData.img}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="action-icon-wrap"><view class="{{['iconfont','color-title',icon]}}"></view><text>{{text}}</text><block wx:if="{{$root.g0}}"><view class="corner-mark color-base-bg" style="{{'background:'+(cornerMarkBg+'!important')+';'+('color:'+(cornerMarkColor)+';')}}">{{cornerMark}}</view></block></view></ns-contact></block></block><block wx:else><block><view data-event-opts="{{[['tap',[['clickEvent',['$event']]]]]}}" class="action-icon-wrap" bindtap="__e"><view class="{{['iconfont','color-title',icon]}}"></view><text>{{text}}</text><block wx:if="{{$root.g1}}"><view class="{{['corner-mark','color-base-bg',($root.m0>99)?'max':'']}}" style="{{'background:'+(cornerMarkBg+'!important')+';'+('color:'+(cornerMarkColor)+';')}}">{{cornerMark>99?'99+':cornerMark}}</view></block></view></block></block></view>
|
||||
1
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.wxss
Executable file
1
public/weapp/components/ns-goods-action-icon/ns-goods-action-icon.wxss
Executable file
@@ -0,0 +1 @@
|
||||
.action-icon-wrap{display:flex;flex-direction:column;justify-content:center;height:100rpx;min-width:90rpx;text-align:center;position:relative;margin-right:6rpx}.action-icon-wrap button{width:100%;height:100%;position:absolute;border:none;z-index:1;padding:0;margin:0;background:none;top:0;left:0;opacity:0}.action-icon-wrap button::after{border:none!important}.action-icon-wrap .iconfont{margin:0 auto 10rpx;line-height:1;font-size:40rpx}.action-icon-wrap .corner-mark{position:absolute;z-index:99;font-size:20rpx;top:4rpx;right:12rpx;color:#fff;display:flex;justify-content:center;align-items:center;width:24rpx;height:24rpx;padding:6rpx;border-radius:50%}.action-icon-wrap .corner-mark.max{right:-4rpx;width:40rpx;border-radius:24rpx}.action-icon-wrap text{font-size:24rpx;line-height:1}
|
||||
Reference in New Issue
Block a user