Commit e2477f84 authored by DongRuifen's avatar DongRuifen

首页搜索

parent 4dec3e12
......@@ -10,19 +10,24 @@
</u-navbar>
<!-- 列表 -->
<view class="home_con_order u-p-l-30 u-p-r-30">
<view class="u-m-t-30" v-for="item in fiabricList"><hs-material-thumbnail @click="detailFabric(item)" :item="filterFiabric(item)"></hs-material-thumbnail></view>
<!-- <view class="u-m-t-30" v-for="item in fiabricList"> -->
<!-- <hs-material-thumbnail @click="detailFabric(item)" :item="filterFiabric(item)"></hs-material-thumbnail> -->
<fabricTitle :tableData="fiabricList"></fabricTitle>
<!-- </view> -->
</view>
</view>
</template>
<script>
import home from './mixin/index.js';
import fabricTitle from "./components/fabricTitle.vue"
export default {
mixins: [home],
components:{fabricTitle},
data() {
return {
value: '',
size: 5,
size: 10,
total: 0,
fiabricList: []
};
......@@ -39,20 +44,22 @@ export default {
this.$router.push('/pages/home/index');
},
searchCli() {
this.size = 5;
// this.size = 10;
this.materialList();
},
// 我的面料
materialList() {
this.$http('orderTicket.materialList', {
this.$http('materialinfo.getMaterialList', {
size: this.size,
materialCode: '',
materialName: this.value
"current": 1,
"materialType": "面料",
codeAndName: this.value
}).then(res => {
let { code, data } = res;
if (code == 200) {
this.fiabricList = data.data;
this.total = data.total;
this.fiabricList = data.page.records;
this.total = data.page.total;
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment