Commit 6f9ee5b1 authored by Facius's avatar Facius

图片更换

parent 5901682e
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
return array return array
}, },
placeholderImage() { placeholderImage() {
return process.uniEnv.qn_base_url + 'logo.png' return process.uniEnv.qn_base_url + 'morentupian.png'
}, },
customStyle() { customStyle() {
return { return {
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
return this.item.images ? process.uniEnv.systemUrl.apiUrl + this.item.images.split(',').shift() : this.placeholderImage return this.item.images ? process.uniEnv.systemUrl.apiUrl + this.item.images.split(',').shift() : this.placeholderImage
}, },
placeholderImage() { placeholderImage() {
return process.uniEnv.qn_base_url + 'logo.png' return process.uniEnv.qn_base_url + 'morentupian.png'
}, },
}, },
methods: { methods: {
......
...@@ -4,11 +4,9 @@ ...@@ -4,11 +4,9 @@
<u-navbar back-icon-color="#333333" background="#FFFFFF" title="我的配件" titleColor="#333333" <u-navbar back-icon-color="#333333" background="#FFFFFF" title="我的配件" titleColor="#333333"
:border-bottom="false" title-bold></u-navbar> :border-bottom="false" title-bold></u-navbar>
<view class="search-view"> <view class="search-view">
<view class="search-btn" @click="handleClickSearch"> <u-search :clearabled="false" @focus="handleClickSearch" @custom="handleClickSearch" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999"
<image class="search-image" mode="widthFix" :src="sousuoImage"></image> color="#333333" bg-color="#FFFFFF" height="72" search-icon-color="#999999">
<text class="search-btn-placeholder">请输入关键字</text> </u-search>
</view>
<text class="search-btn-text">搜索</text>
</view> </view>
<view class="u-tabs-box"> <view class="u-tabs-box">
<u-tabs height="66" activeColor="#2272FF" bg-color="none" inactive-color="#999" bar-height="4" <u-tabs height="66" activeColor="#2272FF" bg-color="none" inactive-color="#999" bar-height="4"
...@@ -23,7 +21,7 @@ ...@@ -23,7 +21,7 @@
<view class="loading-view" v-if="!loaded"> <view class="loading-view" v-if="!loaded">
<u-loading mode="flower"></u-loading> <u-loading mode="flower"></u-loading>
</view> </view>
<NoOrder v-else-if="noParts" imageName="zwdd.png" text="当前暂无配件信息" :customStyle="noPartsCustomStyle" /> <NoOrder v-else-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无配件信息" :customStyle="noPartsCustomStyle" />
<template v-else> <template v-else>
<view v-for="(item, index) in partsList" :key="item.id"> <view v-for="(item, index) in partsList" :key="item.id">
<AppliedCell @operate="handleOperate" :info="item" @action="handleClickCell"></AppliedCell> <AppliedCell @operate="handleOperate" :info="item" @action="handleClickCell"></AppliedCell>
...@@ -111,6 +109,13 @@ ...@@ -111,6 +109,13 @@
'width': '200rpx' 'width': '200rpx'
} }
}, },
actionStyle() {
return {
'font-size': '32rpx',
'color': '#2272FF',
'margin-left': '20rpx'
}
},
}, },
onLoad(e) { onLoad(e) {
getApp().trackPage('我的配件页') getApp().trackPage('我的配件页')
...@@ -206,7 +211,6 @@ ...@@ -206,7 +211,6 @@
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.ware-house { .ware-house {
padding: 0 30rpx; padding: 0 30rpx;
...@@ -214,39 +218,16 @@ ...@@ -214,39 +218,16 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.search-view { .search-view {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx; margin-bottom: 20rpx;
.search-btn { margin-top: 10rpx;
height: 72rpx; /deep/ .u-search .u-content {
background-color: #ffffff;
border-radius: 36rpx;
color: #999999;
display: flex;
align-items: center;
width: 100%;
padding-left: 40rpx; padding-left: 40rpx;
.search-image {
width: 36rpx;
height: 32rpx;
flex-shrink: 0;
margin-right: 24rpx;
}
.search-btn-placeholder {
line-height: 36rpx;
font-weight: 400;
font-size: 26rpx;
} }
/deep/ .u-search .u-input {
margin: 0 20rpx;
} }
.search-btn-text { /deep/ .u-search .u-icon--right .u-iconfont {
line-height: 36rpx; font-size: 36rpx !important;
font-weight: 400;
font-size: 32rpx;
color: #2272FF;
width: 110rpx;
text-align: right;
} }
} }
.u-tabs-box { .u-tabs-box {
......
...@@ -6,11 +6,10 @@ ...@@ -6,11 +6,10 @@
<view class="search-view"> <view class="search-view">
<u-search v-model="keyword" :action-text="searchButtonText" @search="handleClickSearch" @clear="handleClear" <u-search v-model="keyword" :action-text="searchButtonText" @search="handleClickSearch" @clear="handleClear"
@custom="handleClickButton" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999" @custom="handleClickButton" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999"
color="#333333" bg-color="#FFFFFF" height="72"> color="#333333" bg-color="#FFFFFF" height="72" search-icon-color="#999999">
</u-search> </u-search>
</view> </view>
<NoOrder v-if="noParts" imageName="zwdd.png" text="当前暂无返件信息" :customStyle="noPartsCustomStyle" /> <NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无返件信息" :customStyle="noPartsCustomStyle" />
<view v-else class="tab-view"> <view v-else class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring <scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring
refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100" refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100"
...@@ -163,6 +162,16 @@ ...@@ -163,6 +162,16 @@
flex-direction: column; flex-direction: column;
.search-view { .search-view {
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 10rpx;
/deep/ .u-search .u-content {
padding-left: 40rpx;
}
/deep/ .u-search .u-input {
margin: 0 20rpx;
}
/deep/ .u-search .u-icon--right .u-iconfont {
font-size: 36rpx !important;
}
} }
.tab-view { .tab-view {
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
} else { } else {
console.log(res.message) console.log(res.message)
} }
self.loaded = true this.loaded = true
}); });
}, },
handleOperate(type) { handleOperate(type) {
...@@ -149,7 +149,6 @@ ...@@ -149,7 +149,6 @@
padding: 10rpx 30rpx 20rpx 30rpx; padding: 10rpx 30rpx 20rpx 30rpx;
.empty-result { .empty-result {
padding-top: 354rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
......
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<view class="search-view"> <view class="search-view">
<u-search v-model="keyword" :action-text="searchButtonText" @search="handleClickSearch" @clear="handleClear" <u-search v-model="keyword" :action-text="searchButtonText" @search="handleClickSearch" @clear="handleClear"
@custom="handleClickButton" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999" @custom="handleClickButton" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999"
color="#333333" bg-color="#FFFFFF" height="72"> color="#333333" bg-color="#FFFFFF" height="72" search-icon-color="#999999">
</u-search> </u-search>
</view> </view>
<NoOrder v-if="noParts" imageName="zwdd.png" text="当前暂无备件信息" :customStyle="noPartsCustomStyle" /> <NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无备件信息" :customStyle="noPartsCustomStyle" />
<template v-else> <template v-else>
<view class="title-view"> <view class="title-view">
<view>备件列表</view> <view>备件列表</view>
...@@ -225,6 +225,16 @@ ...@@ -225,6 +225,16 @@
.search-view { .search-view {
margin-bottom: 30rpx; margin-bottom: 30rpx;
margin-top: 10rpx;
/deep/ .u-search .u-content {
padding-left: 40rpx;
}
/deep/ .u-search .u-input {
margin: 0 20rpx;
}
/deep/ .u-search .u-icon--right .u-iconfont {
font-size: 36rpx !important;
}
} }
.title-view { .title-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