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

zan-choose-dialog

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zan-choose-dialog - npm Package Compare versions

Comparing version 4.1.5 to 4.1.6-beta

lib/config/groupon.js

23

lib/config/coupon.js

@@ -8,2 +8,6 @@ 'use strict';

var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _compatible = require('../compatible');

@@ -17,3 +21,2 @@

// 优惠券
function getConfig(config) {

@@ -26,7 +29,14 @@ return {

name: 'name',
width: '70%'
width: '50%'
}, {
title: '面值',
name: 'value',
width: '10%'
title: '价值',
bodyRender: function bodyRender(data) {
return data.preferential_type === 2 ? data.discount / 10 + '\u6298' : _react2['default'].createElement(
'div',
null,
data.value,
'\u5143',
!!data.value_random_to && ' ~ ' + data.value_random_to + '\u5143'
);
}
}, {

@@ -41,2 +51,3 @@ title: '使用条件',

p: data.page,
source: 'feature',
v: 2,

@@ -75,3 +86,3 @@ keyword: data.search,

};
}
} // 优惠券
module.exports = exports['default'];
{
"name": "zan-choose-dialog",
"version": "4.1.5",
"version": "4.1.6-beta",
"description": "这是一个React组件",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -82,6 +82,6 @@ ## zan-choose-dialog

return (
<ChooseMenu
value={this.state.value}
onChoose={this.onMenuChoose}
config={global}
<ChooseMenu
value={this.state.value || {}}
onChoose={this.onMenuChoose}
config={global}
/>

@@ -221,1 +221,6 @@ );

* 增加了小程序微页面弹窗
#### 4.1.6-beta (2017-10-19)
* 增加了拼团,门店弹窗
* 优惠券弹窗列表接口增加source: 'feature'参数;价值展示规则修改
// 优惠券
import React from 'react';
import {

@@ -16,8 +17,16 @@ extractCurrentPageFromHtml,

name: 'name',
width: '70%'
width: '50%'
},
{
title: '面值',
name: 'value',
width: '10%'
title: '价值',
bodyRender(data) {
return data.preferential_type === 2 ? (
`${data.discount / 10}折`
) : (
<div>
{data.value}元
{!!data.value_random_to && ` ~ ${data.value_random_to}元`}
</div>
);
}
},

@@ -34,2 +43,3 @@ {

p: data.page,
source: 'feature',
v: 2,

@@ -36,0 +46,0 @@ keyword: data.search,

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