Commit f7ae8564 authored by Facius's avatar Facius

详情页补充

parent cf273f90
...@@ -71,9 +71,15 @@ ...@@ -71,9 +71,15 @@
return {} return {}
} }
}, },
// true 显示「查看更多」按钮, false 显示「点击收起」按钮
readMore: { readMore: {
type: Boolean, type: Boolean,
default: true default: true
},
// 可以点击电话和地址
operate: {
type: Boolean,
default: true
} }
}, },
data() { data() {
...@@ -94,7 +100,7 @@ ...@@ -94,7 +100,7 @@
}, },
phoneIcon() { phoneIcon() {
//self-support/icon/dianhua-0@2x.png //self-support/icon/dianhua-0@2x.png
if (this.isAllowDianhuaAndDaohang) { if (this.operate) {
return process.uniEnv.qn_base_url + 'dianhua.png' return process.uniEnv.qn_base_url + 'dianhua.png'
} else { } else {
return process.uniEnv.qn_base_url + 'dianhua-d.png' return process.uniEnv.qn_base_url + 'dianhua-d.png'
...@@ -102,7 +108,7 @@ ...@@ -102,7 +108,7 @@
}, },
navigationIcon() { navigationIcon() {
//self-support/icon/daohang-0@2x.png //self-support/icon/daohang-0@2x.png
if (this.isAllowDianhuaAndDaohang) { if (this.operate) {
return process.uniEnv.qn_base_url + 'daohang.png' return process.uniEnv.qn_base_url + 'daohang.png'
} else { } else {
return process.uniEnv.qn_base_url + 'daohang-d.png' return process.uniEnv.qn_base_url + 'daohang-d.png'
...@@ -111,7 +117,7 @@ ...@@ -111,7 +117,7 @@
}, },
methods: { methods: {
openLocation(address) { openLocation(address) {
if (this.isAllowDianhuaAndDaohang) { if (this.operate) {
const latitude = this.order.contactAddressLatitud //res.latitude; const latitude = this.order.contactAddressLatitud //res.latitude;
const longitude = this.order.contactAddressLongitud //res.longitude; const longitude = this.order.contactAddressLongitud //res.longitude;
uni.openLocation({ uni.openLocation({
...@@ -124,7 +130,7 @@ ...@@ -124,7 +130,7 @@
} }
}, },
phoneToCustomer(phone) { // 联系客户 phoneToCustomer(phone) { // 联系客户
if (this.isAllowDianhuaAndDaohang) { if (this.operate) {
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: phone, //仅为示例 phoneNumber: phone, //仅为示例
complete() {} complete() {}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</view> </view>
<view class="content"> <view class="content">
<view class="card base-item"> <view class="card base-item">
<Detail :order="order" :readMore.sync="readMore"></Detail> <Detail :order="order" :readMore.sync="readMore" :operate="isAllowDianhuaAndDaohang"></Detail>
</view> </view>
<!-- 从我的页面进来显示计算信息 --> <!-- 从我的页面进来显示计算信息 -->
<view v-if="isFromMine" class="settlement-view"> <view v-if="isFromMine" class="settlement-view">
...@@ -475,7 +475,7 @@ ...@@ -475,7 +475,7 @@
this.allowFeedback = true this.allowFeedback = true
this.showCenterBtn = true this.showCenterBtn = true
this.scenePhoto = true this.scenePhoto = true
this.readMore = true this.readMore = false
this.isAllowDianhuaAndDaohang = true this.isAllowDianhuaAndDaohang = true
} else { } else {
this.isAllowDianhuaAndDaohang = true this.isAllowDianhuaAndDaohang = true
...@@ -878,28 +878,6 @@ ...@@ -878,28 +878,6 @@
} }
} }
// 页面公用css
.order-cell {
font-size: 26rpx;
font-weight: 400;
color: #333333;
line-height: 48rpx;
margin-bottom: 10rpx;
}
.between-cell {
display: flex;
justify-content: space-between;
align-items: center;
}
.display-cell {
display: flex;
}
.cell-title {
text-align: left;
flex-shrink: 0;
}
.settlement-view { .settlement-view {
padding: 30rpx; padding: 30rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment