Browse Source

一系列优化

master
Enzo 4 years ago
parent
commit
7a37c679ee
  1. 5
      pages/index/activity/detail.vue
  2. 5
      pages/index/activity/hot.vue
  3. 17
      pages/order/index/onlineorder.vue
  4. 11
      pages/order/newdetail/newdetail.vue

5
pages/index/activity/detail.vue

@ -71,7 +71,10 @@
api: 'api/activity/detail', api: 'api/activity/detail',
data: { data: {
activity_id: this.activity_id activity_id: this.activity_id
}
},
header: {
Authorization: this.$cookieStorage.get('user_token')
},
}) })
.then(res => { .then(res => {
if (res.data.code == 200) { if (res.data.code == 200) {

5
pages/index/activity/hot.vue

@ -114,7 +114,10 @@
api: 'api/activity', api: 'api/activity',
data:{ data:{
is_expired: this.tab_current+1 is_expired: this.tab_current+1
}
},
header: {
Authorization: this.$cookieStorage.get('user_token')
},
}) })
.then(res => { .then(res => {
let tab_item = this.tab_list[this.tab_current]; let tab_item = this.tab_list[this.tab_current];

17
pages/order/index/onlineorder.vue

@ -18,9 +18,10 @@
<swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex"> <swiper-item v-for="(tabItem, tabIndex) in tab_list" :key="tabIndex">
<scroll-view :style="{height: autoHeight}" class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh"> <scroll-view :style="{height: autoHeight}" class="com" :scroll-y="true" :refresher-enabled="true" :refresher-triggered="tabItem.isRefresher" @scrolltolower="onScrolltolower" @refresherrefresh="onRefresherrefresh">
<view v-for="(item2,index2) of tabItem.list" :key="index2" class="online-card" @click="goDetails(item2.pick_self,item2.order_no)">
<view v-for="(item2,index2) of tabItem.list" :key="index2" style="position: relative;" class="online-card" @click="goDetails(item2.pick_self,item2.order_no)">
<view class="lf-font-24 lf-color-777"> <view class="lf-font-24 lf-color-777">
订单编号{{item2.order_no}} 订单编号{{item2.order_no}}
<view class="pick-self" v-if="item2.pick_self !=0">自提</view>
</view> </view>
<view class="lf-m-t-30"> <view class="lf-m-t-30">
<text class="lf-iconfont icon-Group- lf-font-28"></text> <text class="lf-iconfont icon-Group- lf-font-28"></text>
@ -341,6 +342,20 @@
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
.pick-self {
border-radius: 0px 20rpx 0px 10rpx;
background: #15716E;
width: 108rpx;
height: 53rpx;
font-size: 24rpx;
color: white;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 0;
top: 0;
}
.content-img { .content-img {
width: 130rpx; width: 130rpx;
height: 130rpx; height: 130rpx;

11
pages/order/newdetail/newdetail.vue

@ -28,7 +28,7 @@
查看详情 查看详情
</view> </view>
</view> </view>
<view class="card" style="margin-top: 0;">
<view class="card" style="margin-top: 0;" v-if="order_details.pick_self == 0">
<view class="lf-font-28"> <view class="lf-font-28">
<text class="lf-color-222 lf-font-bold">{{order_details.accept_name}}</text> <text class="lf-color-222 lf-font-bold">{{order_details.accept_name}}</text>
<text class="lf-color-777 lf-m-l-20">{{order_details.mobile}}</text> <text class="lf-color-777 lf-m-l-20">{{order_details.mobile}}</text>
@ -37,6 +37,15 @@
<text>{{order_details.address_name}}{{order_details.address}}</text> <text>{{order_details.address_name}}{{order_details.address}}</text>
</view> </view>
</view> </view>
<view class="card" style="margin-top: 0;" v-else>
<view class="lf-font-28">
<text class="lf-color-222 lf-font-bold">{{order_details.brand.name}}</text>
<text class="lf-color-777 lf-m-l-20">{{order_details.brand.tel}}</text>
</view>
<view class="lf-font-28 lf-color-333 lf-m-t-20">
<text>{{order_details.brand.floor}}</text>
</view>
</view>
<view class="card goods"> <view class="card goods">
<view> <view>
<text class="lf-iconfont icon-Group- lf-font-30"></text> <text class="lf-iconfont icon-Group- lf-font-30"></text>

Loading…
Cancel
Save