Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mand-mobile

Package Overview
Dependencies
Maintainers
4
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mand-mobile - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

6

CHANGELOG.en-US.md

@@ -6,2 +6,8 @@ ---

### 1.6.2
`2018-10-19`
-Fix
- Remove `Cashier` max height limit [#208](https://github.com/didi/mand-mobile/issues/208)
- `Button` click event not working on some old browsers
### 1.6.1

@@ -8,0 +14,0 @@ `2018-09-29`

@@ -6,2 +6,8 @@ ---

### 1.6.2
`2018-10-19`
-Fix
- 移除`Cashier`最大高度限制 [#208](https://github.com/didi/mand-mobile/issues/208)
- 修复`Button`在某些旧浏览器下无法响应点击事件
### 1.6.1

@@ -8,0 +14,0 @@ `2018-09-29`

39

components/button/test/index.spec.js

@@ -65,6 +65,7 @@ import Button from '../index'

expect(wrapper.hasClass('disabled')).to.equal(true)
expect(wrapper.getAttribute('disabled')).to.equal('disabled')
})
it('click button', () => {
const click = sinon.stub()
wrapper = mount(Button, {

@@ -74,25 +75,25 @@ propsData: {

},
})
const spy = sinon.spy(wrapper.vm, '$_onBtnClick')
wrapper.setMethods({
$_onBtnClick: spy,
})
wrapper.trigger('click')
expect(spy.called).to.be.true
})
it('click disabled button', () => {
wrapper = mount(Button, {
propsData: {
disabled: true,
listeners: {
click: click,
},
})
const spy = sinon.spy(wrapper.vm, '$_onBtnClick')
wrapper.setMethods({
$_onBtnClick: spy,
})
wrapper.trigger('click')
expect(spy.called).to.be.true
expect(click.called).to.be.true
})
// it('click disabled button', () => {
// const click = sinon.stub()
// wrapper = mount(Button, {
// attachToDocument: true,
// propsData: {
// disabled: true,
// },
// listeners: {
// click: click
// }
// })
// wrapper.trigger('click')
// expect(click.called).to.be.false
// })
it('create icon button', () => {

@@ -99,0 +100,0 @@ wrapper = mount(Button, {

@@ -66,12 +66,2 @@ ;(function(){

}
},
methods: {
$_onBtnClick: function $_onBtnClick(event) {
if (this.disabled) {
event.stopImmediatePropagation();
} else {
this.$emit('click', event);
}
}
}

@@ -84,3 +74,3 @@ };

if (__vue__options__.functional) {console.error("[vueify] functional components are not supported and should be defined in plain js files using render functions.")}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-button",class:[_vm.type, _vm.size, _vm.disabled ? 'disabled' : '', _vm.icon ? 'with-icon' : ''],on:{"click":_vm.$_onBtnClick}},[_c('div',{staticClass:"md-button-inner"},[(_vm.icon)?[_c('md-icon',{attrs:{"name":_vm.icon}})]:_vm._e(),_vm._v(" "),_vm._t("default")],2)])}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({staticClass:"md-button",class:[_vm.type, _vm.size, _vm.icon ? 'with-icon' : ''],attrs:{"type":"button","disabled":_vm.disabled}},_vm.$listeners),[_c('div',{staticClass:"md-button-inner"},[(_vm.icon)?_c('md-icon',{attrs:{"name":_vm.icon}}):_vm._e(),_vm._v(" "),_vm._t("default")],2)])}
__vue__options__.staticRenderFns = []

@@ -87,0 +77,0 @@ if (module.hot) {(function () { var hotAPI = require("vue-hot-reload-api")

@@ -56,4 +56,2 @@ ;(function(){

var BLOCK_MAX_HEIGHT = 1000;
exports.default = {

@@ -112,3 +110,2 @@ name: 'md-cashier',

sceneKey: Date.now(),
sceneHeight: BLOCK_MAX_HEIGHT,
sceneOption: {

@@ -175,14 +172,5 @@ loading: {

this.scene = 'choose';
this.sceneHeight = BLOCK_MAX_HEIGHT;
this.isChannelShow = false;
this.isChannelActive = false;
},
$_doAnimate: function $_doAnimate() {
var _this = this;
this.$nextTick(function () {
var block = _this.$el.querySelector('.md-cashier-block');
_this.sceneHeight = block ? block.clientHeight : BLOCK_MAX_HEIGHT;
});
},
$_onChannelItemClick: function $_onChannelItemClick(item, index) {

@@ -197,3 +185,3 @@ this.activeChannelIndex = index;

$_onChannelMore: function $_onChannelMore() {
var _this2 = this;
var _this = this;

@@ -205,3 +193,3 @@ if (this.isChannelActive) {

this.$nextTick(function () {
_this2.isChannelActive = true;
_this.isChannelActive = true;
});

@@ -228,3 +216,2 @@ },

this.sceneKey = Date.now();
this.$_doAnimate();
}

@@ -238,3 +225,3 @@ }

if (__vue__options__.functional) {console.error("[vueify] functional components are not supported and should be defined in plain js files using render functions.")}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-cashier"},[_c('md-popup',{attrs:{"position":"bottom","mask-closable":false,"prevent-scroll-exclude":".choose-channel","prevent-scroll":""},on:{"show":_vm.$_onPopupShow,"hide":_vm.$_onPopupHide},model:{value:(_vm.isCashierShow),callback:function ($$v) {_vm.isCashierShow=$$v},expression:"isCashierShow"}},[_c('md-popup-title-bar',{attrs:{"title":_vm.title},on:{"cancel":_vm.$_onPopupCancel}},[_c('md-icon',{attrs:{"slot":"cancel","name":"cross","size":"lg"},slot:"cancel"})],1),_vm._v(" "),_c('div',{staticClass:"md-cashier-container",style:({maxHeight: (_vm.sceneHeight + "px")})},[(_vm.scene === 'choose')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-choose"},[_c('div',{staticClass:"choose-text"},[(_vm.paymentTitle)?_c('p',{staticClass:"choose-title",domProps:{"innerHTML":_vm._s(_vm.paymentTitle)}}):_vm._e(),_vm._v(" "),(_vm.paymentAmount)?_c('p',{staticClass:"choose-number",domProps:{"innerHTML":_vm._s(_vm.paymentAmount)}}):_vm._e(),_vm._v(" "),(_vm.paymentDescribe)?_c('p',{staticClass:"choose-describe",domProps:{"innerHTML":_vm._s(_vm.paymentDescribe)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"choose-channel",class:{active: _vm.isChannelActive}},[(_vm.isChannelShow)?_c('ul',{staticClass:"choose-channel-list"},_vm._l((_vm.channels),function(item,index){return _c('li',{key:index,staticClass:"choose-channel-item",class:{default: index === _vm.defaultIndex},on:{"click":function($event){_vm.$_onChannelItemClick(item, index)}}},[_c('i',{staticClass:"item-icon",class:item.icon},[_c('md-icon',{attrs:{"name":item.icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(item.text || item.label)}}),_vm._v(" "),(!_vm.isSingle)?[(index === _vm.activeChannelIndex)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle"}})]:_vm._e()],2)})):(_vm.channels[_vm.defaultIndex])?_c('ul',{staticClass:"choose-channel-list"},[_c('li',{staticClass:"choose-channel-item default",on:{"click":function($event){_vm.$_onChannelItemClick(_vm.channels[_vm.defaultIndex], _vm.defaultIndex)}}},[_c('i',{staticClass:"item-icon",class:_vm.channels[_vm.defaultIndex].icon},[_c('md-icon',{attrs:{"name":_vm.channels[_vm.defaultIndex].icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(_vm.channels[_vm.defaultIndex].text || _vm.channels[_vm.defaultIndex].label)}}),_vm._v(" "),(!_vm.isSingle)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_vm._e()],1)]):_vm._e(),_vm._v(" "),(!_vm.isSingle)?_c('div',{staticClass:"choose-channel-more",class:{disabled: _vm.isChannelActive},domProps:{"innerHTML":_vm._s(_vm.moreButtonText)},on:{"click":_vm.$_onChannelMore}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"md-cashier-block-btn"},[_c('md-button',{staticClass:"md-cashier-pay-button",domProps:{"innerHTML":_vm._s(_vm.payButtonText)},on:{"click":_vm.$_onChannelBtnClick}})],1)]):(_vm.scene === 'captcha')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-captcha"},[_c('md-captcha',{ref:"captcha",attrs:{"maxlength":_vm.sceneOption.captcha.maxlength,"count":_vm.sceneOption.captcha.count,"countNormalText":_vm.sceneOption.captcha.countNormalText,"countActiveText":_vm.sceneOption.captcha.countActiveText,"auto-countdown":_vm.sceneOption.captcha.autoCountdown,"is-view":""},on:{"send":_vm.sceneOption.captcha.onSend,"submit":_vm.sceneOption.captcha.onSubmit}},[_c('div',{domProps:{"textContent":_vm._s(_vm.sceneOption.captcha.text)}})])],1):(_vm.scene === 'loading' || _vm.scene === 'success')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block",class:{
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-cashier"},[_c('md-popup',{attrs:{"position":"bottom","mask-closable":false,"prevent-scroll-exclude":".choose-channel","prevent-scroll":""},on:{"show":_vm.$_onPopupShow,"hide":_vm.$_onPopupHide},model:{value:(_vm.isCashierShow),callback:function ($$v) {_vm.isCashierShow=$$v},expression:"isCashierShow"}},[_c('md-popup-title-bar',{attrs:{"title":_vm.title},on:{"cancel":_vm.$_onPopupCancel}},[_c('md-icon',{attrs:{"slot":"cancel","name":"cross","size":"lg"},slot:"cancel"})],1),_vm._v(" "),_c('div',{staticClass:"md-cashier-container"},[(_vm.scene === 'choose')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-choose"},[_c('div',{staticClass:"choose-text"},[(_vm.paymentTitle)?_c('p',{staticClass:"choose-title",domProps:{"innerHTML":_vm._s(_vm.paymentTitle)}}):_vm._e(),_vm._v(" "),(_vm.paymentAmount)?_c('p',{staticClass:"choose-number",domProps:{"innerHTML":_vm._s(_vm.paymentAmount)}}):_vm._e(),_vm._v(" "),(_vm.paymentDescribe)?_c('p',{staticClass:"choose-describe",domProps:{"innerHTML":_vm._s(_vm.paymentDescribe)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"choose-channel",class:{active: _vm.isChannelActive}},[(_vm.isChannelShow)?_c('ul',{staticClass:"choose-channel-list"},_vm._l((_vm.channels),function(item,index){return _c('li',{key:index,staticClass:"choose-channel-item",class:{default: index === _vm.defaultIndex},on:{"click":function($event){_vm.$_onChannelItemClick(item, index)}}},[_c('i',{staticClass:"item-icon",class:item.icon},[_c('md-icon',{attrs:{"name":item.icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(item.text || item.label)}}),_vm._v(" "),(!_vm.isSingle)?[(index === _vm.activeChannelIndex)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle"}})]:_vm._e()],2)})):(_vm.channels[_vm.defaultIndex])?_c('ul',{staticClass:"choose-channel-list"},[_c('li',{staticClass:"choose-channel-item default",on:{"click":function($event){_vm.$_onChannelItemClick(_vm.channels[_vm.defaultIndex], _vm.defaultIndex)}}},[_c('i',{staticClass:"item-icon",class:_vm.channels[_vm.defaultIndex].icon},[_c('md-icon',{attrs:{"name":_vm.channels[_vm.defaultIndex].icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(_vm.channels[_vm.defaultIndex].text || _vm.channels[_vm.defaultIndex].label)}}),_vm._v(" "),(!_vm.isSingle)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_vm._e()],1)]):_vm._e(),_vm._v(" "),(!_vm.isSingle)?_c('div',{staticClass:"choose-channel-more",class:{disabled: _vm.isChannelActive},domProps:{"innerHTML":_vm._s(_vm.moreButtonText)},on:{"click":_vm.$_onChannelMore}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"md-cashier-block-btn"},[_c('md-button',{staticClass:"md-cashier-pay-button",domProps:{"innerHTML":_vm._s(_vm.payButtonText)},on:{"click":_vm.$_onChannelBtnClick}})],1)]):(_vm.scene === 'captcha')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-captcha"},[_c('md-captcha',{ref:"captcha",attrs:{"maxlength":_vm.sceneOption.captcha.maxlength,"count":_vm.sceneOption.captcha.count,"countNormalText":_vm.sceneOption.captcha.countNormalText,"countActiveText":_vm.sceneOption.captcha.countActiveText,"auto-countdown":_vm.sceneOption.captcha.autoCountdown,"is-view":""},on:{"send":_vm.sceneOption.captcha.onSend,"submit":_vm.sceneOption.captcha.onSubmit}},[_c('div',{domProps:{"textContent":_vm._s(_vm.sceneOption.captcha.text)}})])],1):(_vm.scene === 'loading' || _vm.scene === 'success')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block",class:{
'md-cashier-loading': _vm.scene === 'loading',

@@ -241,0 +228,0 @@ 'md-cashier-success': _vm.scene === 'success'

@@ -66,12 +66,2 @@ ;(function(){

}
},
methods: {
$_onBtnClick: function $_onBtnClick(event) {
if (this.disabled) {
event.stopImmediatePropagation();
} else {
this.$emit('click', event);
}
}
}

@@ -84,3 +74,3 @@ };

if (__vue__options__.functional) {console.error("[vueify] functional components are not supported and should be defined in plain js files using render functions.")}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-button",class:[_vm.type, _vm.size, _vm.disabled ? 'disabled' : '', _vm.icon ? 'with-icon' : ''],on:{"click":_vm.$_onBtnClick}},[_c('div',{staticClass:"md-button-inner"},[(_vm.icon)?[_c('md-icon',{attrs:{"name":_vm.icon}})]:_vm._e(),_vm._v(" "),_vm._t("default")],2)])}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({staticClass:"md-button",class:[_vm.type, _vm.size, _vm.icon ? 'with-icon' : ''],attrs:{"type":"button","disabled":_vm.disabled}},_vm.$listeners),[_c('div',{staticClass:"md-button-inner"},[(_vm.icon)?_c('md-icon',{attrs:{"name":_vm.icon}}):_vm._e(),_vm._v(" "),_vm._t("default")],2)])}
__vue__options__.staticRenderFns = []

@@ -87,0 +77,0 @@ if (module.hot) {(function () { var hotAPI = require("vue-hot-reload-api")

@@ -56,4 +56,2 @@ ;(function(){

var BLOCK_MAX_HEIGHT = 1000;
exports.default = {

@@ -112,3 +110,2 @@ name: 'md-cashier',

sceneKey: Date.now(),
sceneHeight: BLOCK_MAX_HEIGHT,
sceneOption: {

@@ -175,14 +172,5 @@ loading: {

this.scene = 'choose';
this.sceneHeight = BLOCK_MAX_HEIGHT;
this.isChannelShow = false;
this.isChannelActive = false;
},
$_doAnimate: function $_doAnimate() {
var _this = this;
this.$nextTick(function () {
var block = _this.$el.querySelector('.md-cashier-block');
_this.sceneHeight = block ? block.clientHeight : BLOCK_MAX_HEIGHT;
});
},
$_onChannelItemClick: function $_onChannelItemClick(item, index) {

@@ -197,3 +185,3 @@ this.activeChannelIndex = index;

$_onChannelMore: function $_onChannelMore() {
var _this2 = this;
var _this = this;

@@ -205,3 +193,3 @@ if (this.isChannelActive) {

this.$nextTick(function () {
_this2.isChannelActive = true;
_this.isChannelActive = true;
});

@@ -228,3 +216,2 @@ },

this.sceneKey = Date.now();
this.$_doAnimate();
}

@@ -238,3 +225,3 @@ }

if (__vue__options__.functional) {console.error("[vueify] functional components are not supported and should be defined in plain js files using render functions.")}
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-cashier"},[_c('md-popup',{attrs:{"position":"bottom","mask-closable":false,"prevent-scroll-exclude":".choose-channel","prevent-scroll":""},on:{"show":_vm.$_onPopupShow,"hide":_vm.$_onPopupHide},model:{value:(_vm.isCashierShow),callback:function ($$v) {_vm.isCashierShow=$$v},expression:"isCashierShow"}},[_c('md-popup-title-bar',{attrs:{"title":_vm.title},on:{"cancel":_vm.$_onPopupCancel}},[_c('md-icon',{attrs:{"slot":"cancel","name":"cross","size":"lg"},slot:"cancel"})],1),_vm._v(" "),_c('div',{staticClass:"md-cashier-container",style:({maxHeight: (_vm.sceneHeight + "px")})},[(_vm.scene === 'choose')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-choose"},[_c('div',{staticClass:"choose-text"},[(_vm.paymentTitle)?_c('p',{staticClass:"choose-title",domProps:{"innerHTML":_vm._s(_vm.paymentTitle)}}):_vm._e(),_vm._v(" "),(_vm.paymentAmount)?_c('p',{staticClass:"choose-number",domProps:{"innerHTML":_vm._s(_vm.paymentAmount)}}):_vm._e(),_vm._v(" "),(_vm.paymentDescribe)?_c('p',{staticClass:"choose-describe",domProps:{"innerHTML":_vm._s(_vm.paymentDescribe)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"choose-channel",class:{active: _vm.isChannelActive}},[(_vm.isChannelShow)?_c('ul',{staticClass:"choose-channel-list"},_vm._l((_vm.channels),function(item,index){return _c('li',{key:index,staticClass:"choose-channel-item",class:{default: index === _vm.defaultIndex},on:{"click":function($event){_vm.$_onChannelItemClick(item, index)}}},[_c('i',{staticClass:"item-icon",class:item.icon},[_c('md-icon',{attrs:{"name":item.icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(item.text || item.label)}}),_vm._v(" "),(!_vm.isSingle)?[(index === _vm.activeChannelIndex)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle"}})]:_vm._e()],2)})):(_vm.channels[_vm.defaultIndex])?_c('ul',{staticClass:"choose-channel-list"},[_c('li',{staticClass:"choose-channel-item default",on:{"click":function($event){_vm.$_onChannelItemClick(_vm.channels[_vm.defaultIndex], _vm.defaultIndex)}}},[_c('i',{staticClass:"item-icon",class:_vm.channels[_vm.defaultIndex].icon},[_c('md-icon',{attrs:{"name":_vm.channels[_vm.defaultIndex].icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(_vm.channels[_vm.defaultIndex].text || _vm.channels[_vm.defaultIndex].label)}}),_vm._v(" "),(!_vm.isSingle)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_vm._e()],1)]):_vm._e(),_vm._v(" "),(!_vm.isSingle)?_c('div',{staticClass:"choose-channel-more",class:{disabled: _vm.isChannelActive},domProps:{"innerHTML":_vm._s(_vm.moreButtonText)},on:{"click":_vm.$_onChannelMore}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"md-cashier-block-btn"},[_c('md-button',{staticClass:"md-cashier-pay-button",domProps:{"innerHTML":_vm._s(_vm.payButtonText)},on:{"click":_vm.$_onChannelBtnClick}})],1)]):(_vm.scene === 'captcha')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-captcha"},[_c('md-captcha',{ref:"captcha",attrs:{"maxlength":_vm.sceneOption.captcha.maxlength,"count":_vm.sceneOption.captcha.count,"countNormalText":_vm.sceneOption.captcha.countNormalText,"countActiveText":_vm.sceneOption.captcha.countActiveText,"auto-countdown":_vm.sceneOption.captcha.autoCountdown,"is-view":""},on:{"send":_vm.sceneOption.captcha.onSend,"submit":_vm.sceneOption.captcha.onSubmit}},[_c('div',{domProps:{"textContent":_vm._s(_vm.sceneOption.captcha.text)}})])],1):(_vm.scene === 'loading' || _vm.scene === 'success')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block",class:{
__vue__options__.render = function render () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"md-cashier"},[_c('md-popup',{attrs:{"position":"bottom","mask-closable":false,"prevent-scroll-exclude":".choose-channel","prevent-scroll":""},on:{"show":_vm.$_onPopupShow,"hide":_vm.$_onPopupHide},model:{value:(_vm.isCashierShow),callback:function ($$v) {_vm.isCashierShow=$$v},expression:"isCashierShow"}},[_c('md-popup-title-bar',{attrs:{"title":_vm.title},on:{"cancel":_vm.$_onPopupCancel}},[_c('md-icon',{attrs:{"slot":"cancel","name":"cross","size":"lg"},slot:"cancel"})],1),_vm._v(" "),_c('div',{staticClass:"md-cashier-container"},[(_vm.scene === 'choose')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-choose"},[_c('div',{staticClass:"choose-text"},[(_vm.paymentTitle)?_c('p',{staticClass:"choose-title",domProps:{"innerHTML":_vm._s(_vm.paymentTitle)}}):_vm._e(),_vm._v(" "),(_vm.paymentAmount)?_c('p',{staticClass:"choose-number",domProps:{"innerHTML":_vm._s(_vm.paymentAmount)}}):_vm._e(),_vm._v(" "),(_vm.paymentDescribe)?_c('p',{staticClass:"choose-describe",domProps:{"innerHTML":_vm._s(_vm.paymentDescribe)}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"choose-channel",class:{active: _vm.isChannelActive}},[(_vm.isChannelShow)?_c('ul',{staticClass:"choose-channel-list"},_vm._l((_vm.channels),function(item,index){return _c('li',{key:index,staticClass:"choose-channel-item",class:{default: index === _vm.defaultIndex},on:{"click":function($event){_vm.$_onChannelItemClick(item, index)}}},[_c('i',{staticClass:"item-icon",class:item.icon},[_c('md-icon',{attrs:{"name":item.icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(item.text || item.label)}}),_vm._v(" "),(!_vm.isSingle)?[(index === _vm.activeChannelIndex)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle"}})]:_vm._e()],2)})):(_vm.channels[_vm.defaultIndex])?_c('ul',{staticClass:"choose-channel-list"},[_c('li',{staticClass:"choose-channel-item default",on:{"click":function($event){_vm.$_onChannelItemClick(_vm.channels[_vm.defaultIndex], _vm.defaultIndex)}}},[_c('i',{staticClass:"item-icon",class:_vm.channels[_vm.defaultIndex].icon},[_c('md-icon',{attrs:{"name":_vm.channels[_vm.defaultIndex].icon}})],1),_vm._v(" "),_c('span',{staticClass:"item-label",domProps:{"innerHTML":_vm._s(_vm.channels[_vm.defaultIndex].text || _vm.channels[_vm.defaultIndex].label)}}),_vm._v(" "),(!_vm.isSingle)?_c('md-icon',{staticClass:"item-check",attrs:{"name":"circle-right"}}):_vm._e()],1)]):_vm._e(),_vm._v(" "),(!_vm.isSingle)?_c('div',{staticClass:"choose-channel-more",class:{disabled: _vm.isChannelActive},domProps:{"innerHTML":_vm._s(_vm.moreButtonText)},on:{"click":_vm.$_onChannelMore}}):_vm._e()]),_vm._v(" "),_c('div',{staticClass:"md-cashier-block-btn"},[_c('md-button',{staticClass:"md-cashier-pay-button",domProps:{"innerHTML":_vm._s(_vm.payButtonText)},on:{"click":_vm.$_onChannelBtnClick}})],1)]):(_vm.scene === 'captcha')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block md-cashier-captcha"},[_c('md-captcha',{ref:"captcha",attrs:{"maxlength":_vm.sceneOption.captcha.maxlength,"count":_vm.sceneOption.captcha.count,"countNormalText":_vm.sceneOption.captcha.countNormalText,"countActiveText":_vm.sceneOption.captcha.countActiveText,"auto-countdown":_vm.sceneOption.captcha.autoCountdown,"is-view":""},on:{"send":_vm.sceneOption.captcha.onSend,"submit":_vm.sceneOption.captcha.onSubmit}},[_c('div',{domProps:{"textContent":_vm._s(_vm.sceneOption.captcha.text)}})])],1):(_vm.scene === 'loading' || _vm.scene === 'success')?_c('div',{key:_vm.sceneKey,staticClass:"md-cashier-block",class:{
'md-cashier-loading': _vm.scene === 'loading',

@@ -241,0 +228,0 @@ 'md-cashier-success': _vm.scene === 'success'

{
"name": "mand-mobile",
"version": "1.6.1",
"version": "1.6.2",
"description": "A Vue.js 2.0 Mobile UI Toolkit",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/didi/mand-mobile",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc