123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <template>
- <view class="order-top">
- <view class="hflex acenter jbetween">
- <view class="title">商家信息</view>
- <view class="type1" v-if="type == 1">未报价</view>
- <view class="type1" v-if="type == 2 && amount == ''">未报价</view>
- <view class="type1 type2" v-if="type == 2 && amount !== ''">已报价</view>
- <view class="type1 type3" v-if="type == 3">已匹配</view>
- </view>
- <view class="hflex acenter cell">
- <view class="left">商家名称:</view>
- <view class="right">{{merchant.name}}</view>
- </view>
- <view class="hflex acenter jbetween cell">
- <view class="hflex acenter">
- <view class="left">商家地址:</view>
- <view class="right">{{merchant.full_address}}</view>
- </view>
- <u-icon name="map-fill" color="#2979ff" size="18" @click="getMap"></u-icon>
- </view>
- <view class="hflex acenter cell">
- <view class="left">联系人:</view>
- <view class="right">{{name}}</view>
- </view>
- <view class="hflex acenter jbetween">
- <view class="hflex acenter">
- <view class="left">手机号:</view>
- <view class="right">{{phone}}</view>
- </view>
- <u-icon name="phone-fill" color="#2979ff" size="18" @click="take"></u-icon>
- </view>
- </view>
- </template>
- <script>
- export default {
- name:"order-top",
- props: {
- name: {
- type: String,
- value: ''
- },
- phone: {
- type: String,
- value: ''
- },
- type: {
- type: String,
- value: ''
- },
- amount: {
- type: String,
- value: ''
- },
- merchant: {
- typeof: Object,
- value: {}
- }
- },
- data() {
- return {
- };
- },
- methods: {
- getMap() {
- uni.openLocation({
- latitude: Number(this.merchant.latitude),
- longitude: Number(this.merchant.longitude),
- scale: 18,
- success: function () {
- console.log('success');
- }
- });
- },
- take() {
- uni.makePhoneCall({
- phoneNumber: this.phone
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .order-top {
- width: 690rpx;
- background: #FFFFFF;
- border-radius: 24rpx;
- box-sizing: border-box;
- padding: 24rpx 20rpx;
- .title {
- font-size: 30rpx;
- font-weight: 500;
- color: #222222;
- }
- .cell {
- margin: 16rpx 0 24rpx;
- }
- .type1 {
- width: 96rpx;
- height: 40rpx;
- background: #FFF4E8;
- border-radius: 4rpx;
- text-align: center;
- line-height: 40rpx;
- font-size: 22rpx;
- font-weight: 400;
- color: #FBA94E;
- }
- .type2 {
- background: #E7EBF7;
- color: #506DFF;
- }
- .type3 {
- background: #E6F7E8;
- color: #4AB256;
- }
- .left {
- font-size: 26rpx;
- font-weight: 400;
- color: #222222;
- white-space: nowrap;
- }
- .right {
- font-size: 26rpx;
- font-weight: 400;
- color: #888888;
- }
- }
- </style>
|