Commit 97c0a8cf by 施宇

1

parent 305b78df
......@@ -277,6 +277,21 @@ image {
.btn-com-disable{
background-color: #DAE1E7;
}
.data-bottom{
padding:24rpx 60rpx;
}
.data-bottom .line{
height:1px;
border-top:1px solid #F0F4F7;
flex:0 0 200rpx;
}
.data-bottom .text{
font-size: 26rpx;
color:#8A9299;
flex:1;
text-align: center;
}
/**询报价列表**/
/**字体**/
......
......@@ -11,7 +11,8 @@ Page({
priceList: null,//商品数据
limit: 10,//每页的条数
p: 1,//当前页面
total: 1
total: 1,
isShowBottom: false,
},
/**
......@@ -100,10 +101,8 @@ Page({
let allPage = Math.ceil(this.data.total / this.data.limit);
let p = this.data.p;
if (p == allPage) {
wx.showToast({
title: '数据到底啦',
icon: 'none',
duration: 2000
this.setData({
isShowBottom: true
});
return
} else {
......@@ -131,6 +130,7 @@ Page({
p: 1,
total: 1,
tabIndex: i,
isShowBottom: false,
});
this.getData();
}
......
......@@ -24,5 +24,10 @@
</view>
</view>
<priceItem price-list="{{priceList}}" wx:if="{{priceList&&priceList.length!==0}}" price-type="3" xb="1" ></priceItem>
<view class="data-bottom row verCenter rowCenter" wx:if="{{isShowBottom}}">
<text class="line"></text>
<text class="text">我是有底线的</text>
<text class="line"></text>
</view>
</view>
</view>
......@@ -12,7 +12,8 @@ Page({
limit: 10,//每页的条数
p: 1,//当前页面
total: 0,
id: ""
id: "",
isShowBottom: false,
},
/**
......@@ -105,10 +106,8 @@ Page({
let allPage = Math.ceil(this.data.total / this.data.limit);
let p = this.data.p;
if (p == allPage) {
wx.showToast({
title: '数据到底啦',
icon: 'none',
duration: 2000
this.setData({
isShowBottom: true
});
return
} else {
......
......@@ -61,6 +61,11 @@
<view class="h3 bold">暂无报价信息</view>
</view>
<priceItem price-list="{{priceList}}" wx:if="{{priceList&&priceList.length!==0}}" price-type="3" xb="2"></priceItem>
<view class="data-bottom row verCenter rowCenter" wx:if="{{isShowBottom}}">
<text class="line"></text>
<text class="text">我是有底线的</text>
<text class="line"></text>
</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -15,6 +15,8 @@ Page({
total: 1,
key: "",
confirmKey: "",
isShowBottom: false,
},
/**
......@@ -72,7 +74,8 @@ Page({
priceList: null,
p: 1,
total: 1,
confirmKey: val
confirmKey: val,
isShowBottom: false,
});
this.storageKey(val)
this.getData()
......@@ -162,10 +165,8 @@ Page({
let allPage = Math.ceil(this.data.total / this.data.limit);
let p = this.data.p;
if (p == allPage) {
wx.showToast({
title: '数据到底啦',
icon: 'none',
duration: 2000
this.setData({
isShowBottom: true
});
return
} else {
......@@ -193,6 +194,7 @@ Page({
p: 1,
total: 1,
tabIndex: i,
isShowBottom: false,
})
if (i == 1) {
this.setData({
......
......@@ -31,6 +31,11 @@
</view>
</view>
<priceItem price-list="{{priceList}}" wx:if="{{priceList&&priceList.length!==0}}" price-type="{{type}}" xb="1"></priceItem>
<view class="data-bottom row verCenter rowCenter" wx:if="{{isShowBottom}}">
<text class="line"></text>
<text class="text">我是有底线的</text>
<text class="line"></text>
</view>
</view>
<view class="fast_fb_view" wx:if="{{priceList&&priceList.length!==0&&tabIndex == 2}}">
<view class="fast_fb btn-com btn-com-b" bindtap="toXj">
......
......@@ -13,7 +13,8 @@ Page({
total: 0,
time: "",
key: "",
confirmKey: ""
confirmKey: "",
isShowBottom:false,
},
/**
......@@ -37,6 +38,7 @@ Page({
p: 1,
total: 0,
time: "",
isShowBottom:false
});
this.getData();
......@@ -117,10 +119,8 @@ Page({
let allPage = Math.ceil(this.data.total / this.data.limit);
let p = this.data.p;
if (p == allPage) {
wx.showToast({
title: '数据到底啦',
icon: 'none',
duration: 2000
this.setData({
isShowBottom:true
});
return
} else {
......
......@@ -3,7 +3,7 @@
<view class="good-view">
<view class="search-com">
<text class="icon iconfont iconiconxiantiaoshouji8"></text>
<input placeholder='请输入芯片型号' placeholder-class="placeholderClass" bindinput="bindKeyInput" bindconfirm="bindKeyConfirm"></input>
<input placeholder='请输入芯片型号' placeholder-class="placeholderClass" bindinput="bindKeyInput" bindconfirm="bindKeyConfirm"></input>
</view>
<view class="good-total row bothSide verCenter px-hr-bottom">
<view class="good-num">
......@@ -22,10 +22,15 @@
<view class="p">您还可以发布询价。</view>
<view class="btn-com btn-com-b add-good-btn" bindtap="fbGood">
<text class="icon iconfont iconiconxiantiaoshouji15"></text>
<text>新增商品</text>
<text>新增商品</text>
</view>
</view>
<priceItem price-list="{{priceList}}" wx:if="{{priceList&&priceList.length!==0}}" price-type="5"></priceItem>
<view class="data-bottom row verCenter rowCenter" wx:if="{{isShowBottom}}">
<text class="line"></text>
<text class="text">我是有底线的</text>
<text class="line"></text>
</view>
</view>
<view class="good-btn-div" wx:if="{{priceList&&priceList.length!==0}}">
......@@ -34,5 +39,8 @@
<text>新增商品</text>
</view>
</view>
<view class="cl-good">
<view>擦亮</view>
<view>商品</view>
</view>
</view>
\ No newline at end of file
......@@ -66,3 +66,19 @@
.nodata .add-good-btn {
margin-top: 40rpx;
}
.cl-good{
position: fixed;
height:88rpx;
width:88rpx;
border-radius: 50%;
opacity: .8;
background-color: #EAAD37;
z-index: 99;
font-size: 24rpx;
color:#fff;
right:24rpx;
bottom:150rpx;
text-align: center;
padding-top:12rpx;
box-sizing:border-box;
}
......@@ -12,7 +12,8 @@ Page({
priceList: null,//商品数据
limit:10,//每页的条数
p:1,//当前页面
total:1
total:1,
isShowBottom:false
},
/**
......@@ -100,10 +101,8 @@ Page({
let allPage = Math.ceil(this.data.total/this.data.limit);
let p = this.data.p;
if(p == allPage){
wx.showToast({
title: '数据到底啦',
icon: 'none',
duration: 2000
this.setData({
isShowBottom: true
});
return
}else{
......@@ -131,6 +130,7 @@ Page({
p: 1,
total: 1,
tabIndex: i,
isShowBottom: false
})
if (i == 1) {
this.setData({
......
......@@ -20,5 +20,10 @@
</view>
</view>
<priceItem price-list="{{priceList}}" wx:if="{{priceList&&priceList.length!==0}}" price-type="1" xb="{{xb}}" ></priceItem>
<view class="data-bottom row verCenter rowCenter" wx:if="{{isShowBottom}}">
<text class="line"></text>
<text class="text">我是有底线的</text>
<text class="line"></text>
</view>
</view>
</view>
\ No newline at end of file
......@@ -43,7 +43,6 @@ const onMessageError = (err) => {
return true;
}
const getImUser = () => {
let me = this;
let token = wx.getStorageSync('access_token') || ''
getData(apis.authme, 'get', {
"token": token,
......
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 sign in to comment