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:
2020-08-11 18:28:08 +08:00
8 changed files with 53 additions and 12 deletions

View File

@@ -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;

View File

@@ -76,7 +76,7 @@ export default {
},
searchValue() {
uni.navigateTo({
url: '/pageB/search/index?type=2'
url: '/pageB/search/index?type=2&curent=1'
})
},
},

View File

@@ -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({

View File

@@ -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

View File

@@ -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,