...
|
...
|
@@ -9,7 +9,9 @@ |
|
|
收货人地址: {{ appraiseAddress.addressName }}
|
|
|
</p>
|
|
|
<p class="area">{{ appraiseAddress.address }}</p>
|
|
|
<p class="mobile">{{ appraiseAddress.mobile }}</p>
|
|
|
<p class="mobile">
|
|
|
{{ appraiseAddress.mobile }}<i ref="copy" class="copy"></i>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<router-link
|
...
|
...
|
@@ -39,6 +41,7 @@ |
|
|
|
|
|
<script>
|
|
|
import { createNamespacedHelpers } from "vuex";
|
|
|
import Clipboard from "clipboard";
|
|
|
const { mapGetters } = createNamespacedHelpers("order/orderDetail");
|
|
|
|
|
|
export default {
|
...
|
...
|
@@ -50,6 +53,20 @@ export default { |
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["userAddress", "appraiseAddress"])
|
|
|
},
|
|
|
activated() {
|
|
|
this.copyBtn = new Clipboard(this.$refs.copy, {
|
|
|
text: () => {
|
|
|
const { addressName, address, mobile } = this.appraiseAddress;
|
|
|
return `${addressName} ${address} ${mobile}`;
|
|
|
}
|
|
|
});
|
|
|
this.copyBtn.on("success", () => {
|
|
|
this.$createToast({
|
|
|
txt: "复制成功",
|
|
|
type: "txt"
|
|
|
}).show();
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
@@ -98,6 +115,15 @@ export default { |
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.copy {
|
|
|
width: 50px;
|
|
|
height: 25px;
|
|
|
display: inline-block;
|
|
|
background: url("~statics/image/order/copy@3x.png") no-repeat;
|
|
|
background-size: contain;
|
|
|
background-position: center;
|
|
|
}
|
|
|
|
|
|
.address-icon {
|
|
|
width: 48px;
|
|
|
height: 48px;
|
...
|
...
|
|