Commit f7ae8564 authored by Facius's avatar Facius

详情页补充

parent cf273f90
......@@ -70,10 +70,16 @@
default () {
return {}
}
},
},
// true 显示「查看更多」按钮, false 显示「点击收起」按钮
readMore: {
type: Boolean,
default: true
},
// 可以点击电话和地址
operate: {
type: Boolean,
default: true
}
},
data() {
......@@ -94,7 +100,7 @@
},
phoneIcon() {
//self-support/icon/dianhua-0@2x.png
if (this.isAllowDianhuaAndDaohang) {
if (this.operate) {
return process.uniEnv.qn_base_url + 'dianhua.png'
} else {
return process.uniEnv.qn_base_url + 'dianhua-d.png'
......@@ -102,7 +108,7 @@
},
navigationIcon() {
//self-support/icon/daohang-0@2x.png
if (this.isAllowDianhuaAndDaohang) {
if (this.operate) {
return process.uniEnv.qn_base_url + 'daohang.png'
} else {
return process.uniEnv.qn_base_url + 'daohang-d.png'
......@@ -111,7 +117,7 @@
},
methods: {
openLocation(address) {
if (this.isAllowDianhuaAndDaohang) {
if (this.operate) {
const latitude = this.order.contactAddressLatitud //res.latitude;
const longitude = this.order.contactAddressLongitud //res.longitude;
uni.openLocation({
......@@ -124,7 +130,7 @@
}
},
phoneToCustomer(phone) { // 联系客户
if (this.isAllowDianhuaAndDaohang) {
if (this.operate) {
uni.makePhoneCall({
phoneNumber: phone, //仅为示例
complete() {}
......
......@@ -7,7 +7,7 @@
</view>
<view class="content">
<view class="card base-item">
<Detail :order="order" :readMore.sync="readMore"></Detail>
<Detail :order="order" :readMore.sync="readMore" :operate="isAllowDianhuaAndDaohang"></Detail>
</view>
<!-- 从我的页面进来显示计算信息 -->
<view v-if="isFromMine" class="settlement-view">
......@@ -475,7 +475,7 @@
this.allowFeedback = true
this.showCenterBtn = true
this.scenePhoto = true
this.readMore = true
this.readMore = false
this.isAllowDianhuaAndDaohang = true
} else {
this.isAllowDianhuaAndDaohang = true
......@@ -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 {
padding: 30rpx;
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