vue-ulejfdiscount
v0.0.2
Published
This is for internal use only.
Readme
ulejfseek
This is for internal use only.
Build Setup
# install dependencies
npm install vue-ulejfseek
## params
| param | type | description |
| --- | --- | --- |
| `isDiscount` | `Boolean` | required show/hide discount page |
| `postageFlag` | `Boolean` | free shipping or not |
| `orderAmount` | `String` | total order amount to get the valid coupons |
| `frightPrice` | `String` | shipping amount |
| `rebateCouponThreshold` | `Number` discount rate, default: 1 |
| `dprice` | `String` | discount price |
| `plists` | `Array` | products in the order list |
| `getOs` | `String` | default: 'H5' |
| `getChannel` | `String` | default: 'YCST' |
| `fontColor` | `String` | active font color |
| `btnBgColor` | `String` | button background color |
| `btnFontColor` | `String` | button font color |
## functions
### setDiscountList(goodsId, productId)
#
# txt: the content you entered
#
setDiscountList(arr)
set the valid/unvalid coupon lists
### doDiscount(goodsId, productId)
#
# discount Array
#
doDiscount(arr)
get the selected coupons info
### showSearch
hideDiscount()
control the parameter isDiscount to show/hide the discount page
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run buildFor detailed explanation on how things work, consult the docs for vue-loader.
