[报单模块添加及筛选条件,及权证管理模块没有报单兼容插件]
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view class="Goods-LISTS">
|
||||
<!-- <image :src="`${config.apiUrls}images/baodan-banner.png`" mode="widthFix" /> -->
|
||||
<view class="tabs">
|
||||
<view class="tabs-item" :class="{'show': tabIndex == 0}" @click="onTabs" data-index="0">最新</view>
|
||||
<view class="tabs-item" :class="{'show': tabIndex == 1}" @click="onTabs" data-index="1">
|
||||
@@ -19,6 +20,9 @@
|
||||
list
|
||||
} from '@/apis/interfaces/goods'
|
||||
import goodsList from '@/components/goods-list/goods-list'
|
||||
import {
|
||||
config
|
||||
} from '@/apis/index.js'
|
||||
export default {
|
||||
name: 'Goods-LISTS',
|
||||
data() {
|
||||
@@ -28,6 +32,7 @@
|
||||
goods: [],
|
||||
page: 1,
|
||||
has_more: true,
|
||||
isBaoDan: false, // 是否是报单,默认有id不是报单,无id是报单
|
||||
};
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -44,6 +49,14 @@
|
||||
created() {
|
||||
this.getList()
|
||||
},
|
||||
onShow() {
|
||||
if (this.$Route.query.type === 'baodan') {
|
||||
this.isBaoDan = true
|
||||
uni.setNavigationBarTitle({
|
||||
title: '报单商品'
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onTabs(e) {
|
||||
let index = e.target.dataset.index
|
||||
@@ -58,7 +71,7 @@
|
||||
|
||||
onGoods(e) {
|
||||
uni.navigateTo({
|
||||
url:'/pages/goods/details?id='+e.goods_id
|
||||
url: '/pages/goods/details?id=' + e.goods_id
|
||||
})
|
||||
// this.$Router.push({
|
||||
// name: 'goodsDetails',
|
||||
@@ -72,8 +85,11 @@
|
||||
order_by: this.tabIndex == 1 ? this.marketType : '',
|
||||
page: this.page
|
||||
}
|
||||
if (this.$Route.query.type) {
|
||||
if (this.$Route.query.type === 'id') {
|
||||
data.category_id = this.$Route.query.id
|
||||
} else if (this.$Route.query.type === 'baodan') {
|
||||
// 报单加个条件筛选
|
||||
data.is_allow_values = 1
|
||||
} else {
|
||||
data.category_cid = this.$Route.query.id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user