Commit 584252bb authored by mengcuiguang's avatar mengcuiguang

兼容web端拨打电话

parent 8c37c052
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
<image :src="refundImg" mode="aspectFill" class="image"></image> <image :src="refundImg" mode="aspectFill" class="image"></image>
</view> </view>
<input v-model="alipayOrder" class="input mt-30" type="digit" placeholder="请输入支付宝订单号" /> <input v-model="alipayOrder" class="input mt-30" type="digit" placeholder="请输入支付宝订单号 或 商家订单号" />
<text class="guide-text" style="margin-top: 30rpx;" @click="openTip">立即退款</text> <text class="guide-text2" style="margin-top: 30rpx;" @click="openTip">立即退款</text>
</view> </view>
</view> </view>
</uni-popup> </uni-popup>
...@@ -43,6 +43,11 @@ ...@@ -43,6 +43,11 @@
<uni-popup-dialog :style="{color:refundColor}" :title="refundResult" :duration="2000" <uni-popup-dialog :style="{color:refundColor}" :title="refundResult" :duration="2000"
:showClose="showTipColse" @close="closeTip" @confirm="confirm"></uni-popup-dialog> :showClose="showTipColse" @close="closeTip" @confirm="confirm"></uni-popup-dialog>
</uni-popup> </uni-popup>
<uni-popup class="popup2" ref="popup4" type="center">
<uni-popup-dialog style="color: #909399;" title="客服电话\n4000969950" :duration="2000"
@close="closeKefu" @confirm="closeKefu"></uni-popup-dialog>
</uni-popup>
</view> </view>
</template> </template>
...@@ -76,6 +81,7 @@ ...@@ -76,6 +81,7 @@
refundResult: '\n是否确定要退款?', refundResult: '\n是否确定要退款?',
refundColor: "#909399", refundColor: "#909399",
showTipColse: true, showTipColse: true,
showKefuColse: false,
guideText: "下一步", guideText: "下一步",
curGuideIndex: 0 curGuideIndex: 0
}; };
...@@ -118,6 +124,11 @@ ...@@ -118,6 +124,11 @@
}); });
}, },
callPhone() { callPhone() {
// #ifdef H5
this.$refs.popup4.open()
// #endif
// #ifdef MP-ALIPAY
my.makePhoneCall({ my.makePhoneCall({
number: '4000969950', number: '4000969950',
success: function(res) { success: function(res) {
...@@ -127,6 +138,8 @@ ...@@ -127,6 +138,8 @@
console.log('拨打电话失败!'); console.log('拨打电话失败!');
} }
}) })
// #endif
}, },
changeGuide(e) { changeGuide(e) {
this.curGuideIndex = e.detail.current this.curGuideIndex = e.detail.current
...@@ -172,6 +185,9 @@ ...@@ -172,6 +185,9 @@
closeTip() { closeTip() {
this.$refs.popup3.close() this.$refs.popup3.close()
}, },
closeKefu() {
this.$refs.popup4.close()
},
confirm() { confirm() {
this.closeTip() this.closeTip()
...@@ -249,7 +265,6 @@ ...@@ -249,7 +265,6 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
overflow: hidden; overflow: hidden;
.image-wrap { .image-wrap {
height: 800rpx; height: 800rpx;
background-color: #579BEB; background-color: #579BEB;
...@@ -264,6 +279,7 @@ ...@@ -264,6 +279,7 @@
} }
.input { .input {
width: 80%;
border-radius: 10rpx; border-radius: 10rpx;
border: solid 1px #C9C9C9; border: solid 1px #C9C9C9;
} }
...@@ -306,6 +322,18 @@ ...@@ -306,6 +322,18 @@
border-radius: 8rpx; border-radius: 8rpx;
} }
.guide-text2 {
text-align: center;
margin-top: 100rpx;
font-size: 34rpx;
color: #F9F9F9;
width: 89%;
height: 85rpx;
line-height: 85rpx;
background: #3881F3;
border-radius: 8rpx;
}
.success-text { .success-text {
color: #09bb07; color: #09bb07;
} }
......
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