| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- <template>
- <view class="content">
- <image src="" mode="" class="to-bg"></image>
- <view class="top-tit">
- {{state}}
- </view>
- <view class="top-time">
- {{showTime()}}
- </view>
- <view class="center-btn flex" @click="navto('/pages/user/myWholesale')">
- <image src="" mode="" class="center-logo"></image>
- <view class="center-tit">
- <view class="tit-top">
- 批发订单
- </view>
- <view class="">
- 查看我购买的批发订单
- </view>
- </view>
- <image src="../../static/img/img74.png" mode="" class="look-more"></image>
- </view>
- <scroll-view scroll-y="true" class="scroll-wrap" :style="{'height': height}">
- <view class="good-wrap">
- <view class="good" v-for="item in 9" @click="navto('/pages/product/wholesaleDetail')">
- <image src="" mode="" class="goo-img"></image>
- <view class="good-tit clamp">
- 无患子植物家居眼罩无患子植物家居眼罩无患子植物家居眼罩
- </view>
- <view class="good-price flex">
- <view class="new-price">
- ¥2690
- </view>
- <view class="old-price">
- ¥3600
- </view>
- </view>
- </view>
- </view>
- <uni-load-more :status="loadingType"></uni-load-more>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- height: '',
- list: [],
- page: 1,
- limit: 10,
- loadingType: 'more',
- loaded: false,
- bin: '',
- stop: '',
- status: 0,
- state: ''
- }
- },
- onReady(res) {
- var obj = this;
- uni.getSystemInfo({
- success: resu => {
- const query = uni.createSelectorQuery();
- query.select('.scroll-wrap').boundingClientRect();
- query.exec(function(res) {
- obj.height = resu.windowHeight - res[0].top + 'px';
- console.log('打印页面的剩余高度', obj.height);
- });
- },
- fail: res => {}
- });
- },
- onLoad(opt) {
- let obj = this
- obj.bin = decodeURI(opt.bin)
- obj.stop = opt.stp
- obj.stauts = opt.status
- obj.state = opt.state
- console.log(obj.bin, obj.stop)
- },
- methods: {
- navto(url) {
- uni.navigateTo({
- url: url
- })
- },
- showTime() {
- let obj =this
- console.log(obj.status,'obj.status++++++++')
- if(obj.status == 1) {
- return '距离结束'
- }
- if(obj.status == 0) {
- return ''
- }
- if(obj.status == 2) {
- return obj.bin + '开始'
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .to-bg {
- width: 750rpx;
- height: 427rpx;
- background-color: #ff8a57;
- }
- .top-tit {
- position: absolute;
- top: 170rpx;
- left: 0;
- right: 0;
- margin: auto;
- text-align: center;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- }
- .top-time {
- position: absolute;
- top: 240rpx;
- left: 0;
- right: 0;
- margin: auto;
- font-size: 83rpx;
- text-align: center;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- }
- .center-btn {
- padding: 20rpx 32rpx;
- background-color: #fff;
- margin-bottom: 20rpx;
- .center-logo {
- width: 83rpx;
- height: 106rpx;
- flex-shrink: 0;
- background-color: #eee;
- }
- .center-tit {
- padding-left: 30rpx;
- flex-grow: 1;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 1.5;
- .tit-top {
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- }
- .look-more {
- width: 16rpx;
- height: 30rpx;
- flex-shrink: 0;
- }
- }
- .scroll-wrap {
- // background-color: red;
- }
- .good-wrap {
- display: flex;
- // padding: 0 0 20rpx 20rpx;
- padding-left: 20rpx;
- flex-wrap: wrap;
- }
- .good {
- width: 345rpx;
- height: 480rpx;
- margin-right: 20rpx;
- margin-bottom: 20rpx;
- background: #FFFFFF;
- box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
- border-radius: 10rpx;
- .goo-img {
- width: 345rpx;
- height: 345rpx;
- border-radius: 10rpx 10rpx 0 0;
- background-color: #bfa;
- }
- .good-tit {
- padding: 15rpx 20rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- line-height: 35rpx;
- }
- .good-price {
- padding-left: 20rpx;
- justify-content: flex-start;
- .new-price {
- font-size: 36rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF4C4C;
- }
- .old-price {
- padding-left: 8rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: bold;
- text-decoration: line-through;
- color: #999999;
- }
- }
- }
- </style>
|