vue-ulejfseek
v0.0.6
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 |
| --- | --- | --- |
| `icon` | `String` | required icon-search |
| `btnBgColor` | `String` | default: 'linear-gradient( 90deg, #FFDDAF 0%, #FFC489 100%);' |
| `btnFontColor` | `String` | default: '#602601' |
| `fontColor` | `String` | default: '#975602' |
| `borderColor` | `String` | default: '#FDB251' |
| `searchTxt` | `String` | enter the content you want to look for |
| `btnStyle` | `String` | button search style |
| `source` | `String` | the key name that cached your searchlist |
| `cardFlag` | `String` | only for search api, 0: ycst, 2: fenqi |
| `area` | `String` | default: '1'; only for search api, 1:邮金豆 2:分期 3:企业商城(enterpriseCode:对应企业商城的code) |
## functions
### doSearch(goodsId, productId)
###
# txt: the content you entered
###
doSearch(txt)
invoke api get the list you want to look for
### goSearch(goodsId, productId)
###
# goodsId: goodsId
# productId: skuId
###
goSearch(goodsId, productId)
go to the detail page
### showSearch
showSearch()
control the parameter isSearch to show/hide the search 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.
