|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="">
|
|
|
- <view class="order__info" v-for="index in list" :key="index">
|
|
|
+ <view class="order__info" v-for="item in list" :key="item.id">
|
|
|
<view class="order__info--phone">
|
|
|
<view>
|
|
|
<view style="font-size: 35rpx; margin-bottom: 20rpx">
|
|
@@ -13,19 +13,19 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="order__info--pay">
|
|
|
- <text>顾客待付款</text>
|
|
|
+ <text class="text-22">顾客待付款</text>
|
|
|
<view class="service">
|
|
|
- <image
|
|
|
- slot="icon"
|
|
|
- src="@/static/QR57a.jpg"
|
|
|
- style="width: 200rpx; height: 200rpx"
|
|
|
- />
|
|
|
- <view class="description">
|
|
|
- <view class="description--title">汽车维修与保养</view>
|
|
|
- <view class="tipInfo">专业维修保界</view>
|
|
|
- <view class="description--text">服务描述……</view>
|
|
|
+ <view class="orderInfo" v-for="ele in item.goodsInfo" :key="ele.id">
|
|
|
+ <image slot="icon" :src="ele.goodsPic" style="width: 150rpx; height: 150rpx" />
|
|
|
+ <view>{{ ele.goodsName }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="description">
|
|
|
+ <view class="description--title">汽车维修与保养</view>
|
|
|
+ <view class="tipInfo">专业维修保界</view>
|
|
|
+ <view class="description--text">服务描述……</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<view class="order__info--compute">
|
|
@@ -39,7 +39,7 @@
|
|
|
</view>
|
|
|
<view class="computeFlex">
|
|
|
<view>本单预计收入</view>
|
|
|
- <view class="tipInfo" style="color: #DF5F5F;">¥723.7</view>
|
|
|
+ <view class="tipInfo" style="color: #df5f5f">¥723.7</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -50,9 +50,7 @@
|
|
|
<view class="tipInfo"> 下单时间:12-0318:03</view>
|
|
|
</view>
|
|
|
<view class="tip-r">
|
|
|
- <view class="r-btn" v-if="typeStyle == 1" @click="handlerCloseOrder">
|
|
|
- 关闭交易
|
|
|
- </view>
|
|
|
+ <view class="r-btn" v-if="typeStyle == 1" @click="handlerCloseOrder"> 关闭交易 </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -60,43 +58,41 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- export default{
|
|
|
- data(){
|
|
|
- return{
|
|
|
-
|
|
|
- }
|
|
|
+export default {
|
|
|
+ data() {
|
|
|
+ return {};
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ typeStyle: {
|
|
|
+ type: Number,
|
|
|
+ default: 0,
|
|
|
},
|
|
|
- props:{
|
|
|
- "typeStyle":{
|
|
|
- type:Number,
|
|
|
- default:0
|
|
|
- },
|
|
|
- list: {
|
|
|
- type:Array,
|
|
|
- default: []
|
|
|
- }
|
|
|
+ list: {
|
|
|
+ type: Array,
|
|
|
+ default: [],
|
|
|
},
|
|
|
- watch: {
|
|
|
- typeStyle(newValue,oldValue){
|
|
|
- console.log('newValue',newValue);
|
|
|
- }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ typeStyle(newValue, oldValue) {
|
|
|
+ console.log('newValue', newValue);
|
|
|
},
|
|
|
- methods:{
|
|
|
- // 点击拨打电话
|
|
|
- handlerMakePhone(){
|
|
|
- uni.makePhoneCall({
|
|
|
- phoneNumber: '114' //仅为示例
|
|
|
- });
|
|
|
- },
|
|
|
- // 删除订单
|
|
|
- handlerCloseOrder(){
|
|
|
- uni.showToast({
|
|
|
- title: '么的',
|
|
|
- icon:'none'
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 点击拨打电话
|
|
|
+ handlerMakePhone() {
|
|
|
+ uni.makePhoneCall({
|
|
|
+ phoneNumber: '114', //仅为示例
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 删除订单
|
|
|
+ handlerCloseOrder() {
|
|
|
+ uni.showToast({
|
|
|
+ title: '么的',
|
|
|
+ icon: 'none',
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -114,6 +110,8 @@
|
|
|
|
|
|
&--pay {
|
|
|
margin: 20rpx 0;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
> text {
|
|
|
font-size: 36rpx;
|
|
|
color: #333;
|
|
@@ -121,19 +119,38 @@
|
|
|
|
|
|
.service {
|
|
|
display: flex;
|
|
|
- margin-top: 20rpx;
|
|
|
- .description {
|
|
|
- margin-left: 20rpx;
|
|
|
- &--title {
|
|
|
- font-size: 34rpx;
|
|
|
- font-weight: 700;
|
|
|
- margin-bottom: 10rpx;
|
|
|
- }
|
|
|
-
|
|
|
- &--text {
|
|
|
- font-size: 30rpx;
|
|
|
- color: #333;
|
|
|
- }
|
|
|
+ width: 100%;
|
|
|
+ overflow-x: auto;
|
|
|
+ white-space: nowrap;
|
|
|
+
|
|
|
+ .orderInfo {
|
|
|
+ height: 200rpx;
|
|
|
+ widows: 150rpx;
|
|
|
+ padding: 10rpx;
|
|
|
+ text-align: center;
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ font-size: 26rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .description {
|
|
|
+ height: 200rpx;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 0;
|
|
|
+ padding: 40rpx 20rpx 30rpx 20rpx;
|
|
|
+ background-color: rgba($color: #fff, $alpha: 0.9);
|
|
|
+ &--title {
|
|
|
+ font-size: 34rpx;
|
|
|
+ font-weight: 700;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ &--text {
|
|
|
+ font-size: 30rpx;
|
|
|
+ color: #333;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -154,16 +171,14 @@
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
- .tip-l{
|
|
|
|
|
|
- }
|
|
|
- .tip-r{
|
|
|
- .r-btn{
|
|
|
+ .tip-r {
|
|
|
+ .r-btn {
|
|
|
padding: 10rpx 20rpx;
|
|
|
border-radius: 20rpx;
|
|
|
- border: 2rpx solid #FF9480;
|
|
|
- color: #FF9480;
|
|
|
- font-size:26rpx;
|
|
|
+ border: 2rpx solid #ff9480;
|
|
|
+ color: #ff9480;
|
|
|
+ font-size: 26rpx;
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
}
|