Commit e2477f84 authored by DongRuifen's avatar DongRuifen

首页搜索

parent 4dec3e12
...@@ -10,19 +10,24 @@ ...@@ -10,19 +10,24 @@
</u-navbar> </u-navbar>
<!-- 列表 --> <!-- 列表 -->
<view class="home_con_order u-p-l-30 u-p-r-30"> <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>
</view> </view>
</template> </template>
<script> <script>
import home from './mixin/index.js'; import home from './mixin/index.js';
import fabricTitle from "./components/fabricTitle.vue"
export default { export default {
mixins: [home], mixins: [home],
components:{fabricTitle},
data() { data() {
return { return {
value: '', value: '',
size: 5, size: 10,
total: 0, total: 0,
fiabricList: [] fiabricList: []
}; };
...@@ -39,20 +44,22 @@ export default { ...@@ -39,20 +44,22 @@ export default {
this.$router.push('/pages/home/index'); this.$router.push('/pages/home/index');
}, },
searchCli() { searchCli() {
this.size = 5; // this.size = 10;
this.materialList(); this.materialList();
}, },
// 我的面料 // 我的面料
materialList() { materialList() {
this.$http('orderTicket.materialList', { this.$http('materialinfo.getMaterialList', {
size: this.size, size: this.size,
materialCode: '', materialCode: '',
materialName: this.value "current": 1,
"materialType": "面料",
codeAndName: this.value
}).then(res => { }).then(res => {
let { code, data } = res; let { code, data } = res;
if (code == 200) { if (code == 200) {
this.fiabricList = data.data; this.fiabricList = data.page.records;
this.total = data.total; 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