Commit 98d6c7a7 authored by 秦威威's avatar 秦威威

优化

parent b4509306
...@@ -66,21 +66,23 @@ ...@@ -66,21 +66,23 @@
tabIndex: 0, tabIndex: 0,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
tabsVal: '保养', tabsVal: '',
list: [], list: [],
} }
}, },
onShow() { onShow() {
this.getListData()
this.getStoreTypeListData() this.getStoreTypeListData()
}, },
methods: { methods: {
getStoreTypeListData() { getStoreTypeListData() {
this.$http.get('/api/client/index/storeTypeList', { this.$http.get('/api/client/index/storeTypeList', {
storeTypeId: 1, storeTypeId: 1,
}).then(res => { }).then(res => {
this.tabsList = res.data.data this.tabsList = res.data.data
if (res.data.data != null) {
this.tabsVal = res.data.data[0].id
this.getListData()
}
}) })
}, },
getListData() { getListData() {
...@@ -94,7 +96,7 @@ ...@@ -94,7 +96,7 @@
}, },
ONtab(data, index) { ONtab(data, index) {
this.tabIndex = index this.tabIndex = index
this.tabsVal = data.name this.tabsVal = data.id
this.getListData() this.getListData()
} }
} }
...@@ -107,13 +109,15 @@ ...@@ -107,13 +109,15 @@
box-sizing: border-box; box-sizing: border-box;
background-color: #fafbff; background-color: #fafbff;
min-height: 100vh; min-height: 100vh;
.uempty{
image{ .uempty {
image {
width: 376rpx; width: 376rpx;
display: block; display: block;
margin: 0 auto; margin: 0 auto;
} }
text{
text {
display: block; display: block;
text-align: center; text-align: center;
color: #ccc; color: #ccc;
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
@click="goPrductDetail(item)"> @click="goPrductDetail(item)">
<view class="product-card u-f u-f-fdc"> <view class="product-card u-f u-f-fdc">
<image style="width: 100%;height: 288rpx;border-radius: 18rpx 18rpx 0rpx 0rpx;" <image style="width: 100%;height: 288rpx;border-radius: 18rpx 18rpx 0rpx 0rpx;"
:mode="'scaleToFill'" :src="item.goodsImage"></image> :mode="'aspectFill'" :src="item.goodsImage"></image>
<view class="pc-desc fw400 fs28 mg-top-10 one-line-ellipsis"> <view class="pc-desc fw400 fs28 mg-top-10 one-line-ellipsis">
{{item.goodsName}} {{item.goodsName}}
</view> </view>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<!-- 投入资金 --> <!-- 投入资金 -->
<view class="menuItem"> <view class="menuItem">
<view class="menulabel"> <view class="menulabel">
投入资金 投入资金(元)
</view> </view>
<input type="text" v-model="investcapital" placeholder="请输入计划投入资金" /> <input type="text" v-model="investcapital" placeholder="请输入计划投入资金" />
</view> </view>
......
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