Commit b3f852e0 authored by 李明环(东信)'s avatar 李明环(东信)

电话联系问题

parent c7783d68
...@@ -131,10 +131,10 @@ ...@@ -131,10 +131,10 @@
<div class="f-btn-box"> <div class="f-btn-box">
<button class="b3" :class="`style${status}`">{{ btnText }}</button> <button class="b3" :class="`style${status}`">{{ btnText }}</button>
<div class="b4"> <div class="b4">
<a :href="`tel:${userPhone}`"> <div @click="callPhone">
<img src="@/static/image/icon/telephone.png" alt="" /> <img src="@/static/image/icon/telephone.png" alt="" />
<p>立即联系</p> <p>立即联系</p>
</a> </div>
</div> </div>
</div> </div>
</template> </template>
...@@ -150,10 +150,10 @@ ...@@ -150,10 +150,10 @@
<div class="f-btn-box"> <div class="f-btn-box">
<button class="b3" :class="`style${applicationData.status}`">{{ applicationText }}</button> <button class="b3" :class="`style${applicationData.status}`">{{ applicationText }}</button>
<div class="b4"> <div class="b4">
<a :href="`tel:${applicationData.userPhone}`"> <div @click="callPhone" :href="`tel:${applicationData.userPhone}`">
<img src="@/static/image/icon/telephone.png" alt="" /> <img src="@/static/image/icon/telephone.png" alt="" />
<p>立即联系</p> <p>立即联系</p>
</a> </div>
</div> </div>
</div> </div>
</template> </template>
...@@ -425,6 +425,12 @@ const invitation = () => { ...@@ -425,6 +425,12 @@ const invitation = () => {
url: `/pages/recommend/invitation/index?id=${id}&jobId=${jobIdTemp.value}&userId=${userIdTemp}` url: `/pages/recommend/invitation/index?id=${id}&jobId=${jobIdTemp.value}&userId=${userIdTemp}`
}); });
}; };
/* 拨打电话 */
const callPhone = () => {
uni.makePhoneCall({
phoneNumber: applicationData.value.userPhone
});
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -610,7 +616,7 @@ const invitation = () => { ...@@ -610,7 +616,7 @@ const invitation = () => {
} }
.b4 { .b4 {
text-align: center; text-align: center;
a { div {
font-size: 12px; font-size: 12px;
color: #1f86ff; color: #1f86ff;
text-decoration: none; text-decoration: none;
......
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