Merge pull request 'xbx' (#156) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/156
This commit was merged in pull request #156.
This commit is contained in:
@@ -46,7 +46,10 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
<style lang="scss">
|
||||
page{
|
||||
background-color: rgba(0,0,0,0);
|
||||
}
|
||||
.u-coupon-popup {
|
||||
/deep/ .u-mode-center-box {
|
||||
background-color: transparent;
|
||||
|
||||
@@ -76,7 +76,7 @@ export default {
|
||||
},
|
||||
searchValue() {
|
||||
uni.navigateTo({
|
||||
url: '/pageB/search/index?type=2'
|
||||
url: '/pageB/search/index?type=2&curent=1'
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -21,6 +21,7 @@ export default {
|
||||
// type: 1 商品 2: 其他
|
||||
onLoad(option) {
|
||||
this.type = option.type;
|
||||
this.curent = option.curent || 0
|
||||
this.getWordList();
|
||||
if(option.type == 1) this.setNavSearchInput('搜索您需要的商品');
|
||||
else if(option.type == 2) this.setNavSearchInput('请输入搜索内容');
|
||||
@@ -65,7 +66,8 @@ export default {
|
||||
}
|
||||
let params = {
|
||||
value: value,
|
||||
type: this.type,
|
||||
type: this.type,
|
||||
curent:this.curent
|
||||
}
|
||||
if(this.type == 2) {
|
||||
this.$u.route({
|
||||
|
||||
@@ -78,9 +78,11 @@ export default {
|
||||
},
|
||||
onLoad(option) {
|
||||
this.value = option.value;
|
||||
this.current = option.curent
|
||||
this.setViewHeight();
|
||||
this.ShopSearch()
|
||||
this.setNavSearchInput(this.value);
|
||||
|
||||
},
|
||||
onNavigationBarSearchInputConfirmed(value) {
|
||||
this.value = value.text
|
||||
|
||||
@@ -54,6 +54,8 @@ export default {
|
||||
this.value = option.value
|
||||
this.setViewHeight();
|
||||
this.ShopSearch()
|
||||
this.setNavSearchInput(this.value);
|
||||
|
||||
},
|
||||
onNavigationBarSearchInputConfirmed(value) {
|
||||
this.value = value.text
|
||||
@@ -95,7 +97,6 @@ export default {
|
||||
// 排序方式 goods_salenum:销量 evaluation_count:评价 goods_price_asc:价格从低到高 goods_price_desc:价格从高到低
|
||||
async ShopSearch({ load = 'reload' } = {}) {
|
||||
console.log(this.value);
|
||||
this.setNavSearchInput(this.value);
|
||||
const sort = this.setOrderSort();
|
||||
const res = await this.$u.api.ShopSearch({
|
||||
keyword: this.value,
|
||||
|
||||
Reference in New Issue
Block a user