Browse Source

1,9 还剩下登录页?

hfll
hflllll 1 month ago
parent
commit
91c143ca68
5 changed files with 26 additions and 31 deletions
  1. +1
    -3
      pages/index/order.vue
  2. +2
    -2
      pages_order/components/order/placeOrder.vue
  3. +1
    -1
      pages_order/location/pickupPoint.vue
  4. +10
    -24
      pages_order/mine/team.vue
  5. +12
    -1
      pages_order/product/productDetail.vue

+ 1
- 3
pages/index/order.vue View File

@ -32,9 +32,7 @@
<view class="order-list" v-else>
<OrderItem v-for="(order, index) in orderList" :key="order.id" :order="order" @cancel="handleCancelOrder"
@pay="handlePayOrder" @tap="goToOrderDetail(order)" />
<view style="
margin-top: 200rpx;
min-width: 700rpx;">
<view style="margin-top: 200rpx; min-width: 700rpx;">
<uv-empty mode="order" v-if="orderList.length == 0"></uv-empty>
</view>
</view>


+ 2
- 2
pages_order/components/order/placeOrder.vue View File

@ -19,7 +19,7 @@
<text style="font-size: 42rpx;" v-show="!pickupPoint">
请选择取餐地点
</text>
<view v-show="pickupPoint" class="place-order-address-content">
<view v-if="pickupPoint" class="place-order-address-content">
<view class="place-order-address-content-name">
{{ pickupPoint.name }}{{ pickupPoint.phone }}
</view>
@ -146,7 +146,7 @@ export default {
}
},
mounted(){
this.open();
// this.open();
this.listenPickupPoint();
},
beforeDestroy() {


+ 1
- 1
pages_order/location/pickupPoint.vue View File

@ -1,7 +1,7 @@
<template>
<view class="page">
<!-- 导航栏 -->
<navbar title="取餐点" tap @tap="$utils.navigateBack" bgColor="#019245" color="#fff" />
<navbar title="取餐点" leftClick @leftClick="$utils.navigateBack" color="#fff" />
<view class="container">
<view class="header">


+ 10
- 24
pages_order/mine/team.vue View File

@ -42,13 +42,14 @@
<input class="input" type="number" v-model="formData.contactPhone" placeholder="请输入您的手机号"
placeholder-class="placeholder" />
</view>
<view class="form-item region-item" @tap="showRegionPicker">
<view class="form-item region-item">
<text class="label">所在地区</text>
<view class="region-value">
<text :class="{ 'placeholder': !formData.region }" style="color: #000;">{{ formData.region ||
'请选择' }}</text>
<uv-icon name="arrow-right" color="#000" />
</view>
<picker mode="region" @change="regionSelect">
<text style="font-size: 30rpx;">{{ formData.region || '请选择' }}</text>
</picker>
<uv-icon name="arrow-right" color="#000" style="margin-left: 2rpx;"/>
</view>
<view class="address-item">
<text class="label">详细地址</text>
@ -109,15 +110,8 @@ export default {
},
//
showRegionPicker() {
//
this.formData.region = '长沙市雨花区'
//
uni.showToast({
title: '已选择地区',
icon: 'none'
})
regionSelect(e) {
this.formData.region = e.detail.value[1] + e.detail.value[2]
},
//
@ -322,7 +316,7 @@ export default {
}
.placeholder,
.region-item .region-value text.placeholder {
.region-item text.placeholder {
// height: 60rpx;
color: #999;
}
@ -330,14 +324,6 @@ export default {
.region-item {
cursor: pointer;
.region-value {
flex: 1;
text-align: right;
font-size: 28rpx;
display: flex;
justify-content: flex-end;
align-items: center;
}
}
.address-item {


+ 12
- 1
pages_order/product/productDetail.vue View File

@ -170,9 +170,20 @@
if(res.code == 200){
uni.showToast({
title: '加入购物车成功',
icon: 'none'
icon: 'success'
})
}else{
uni.showToast({
title: '加入购物车失败',
icon: 'error'
})
}
},
error => {
uni.showToast({
title: '加入购物车失败',
icon: 'error'
})
})
},
//


Loading…
Cancel
Save