Commit 30afba00 authored by jyx's avatar jyx

代码优化

parent 584252bb
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
<uni-popup class="popup2" ref="popup3" type="center"> <uni-popup class="popup2" ref="popup3" type="center">
<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 class="popup2" ref="popup4" type="center">
<uni-popup-dialog style="color: #909399;" title="客服电话\n4000969950" :duration="2000" <uni-popup-dialog style="color: #909399;" title="客服电话\n4000969950" :duration="2000" @close="closeKefu"
@close="closeKefu" @confirm="closeKefu"></uni-popup-dialog> @confirm="closeKefu"></uni-popup-dialog>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
refundImg: "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_guide_alipay_back.png", refundImg: "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_guide_alipay_back.png",
refundResult: '\n是否确定要退款?', refundResult: '\n是否确定要退款?',
refundColor: "#909399", refundColor: "#909399",
showTipColse: true, showTipColse: true,
showKefuColse: false, showKefuColse: false,
guideText: "下一步", guideText: "下一步",
curGuideIndex: 0 curGuideIndex: 0
...@@ -123,23 +123,23 @@ ...@@ -123,23 +123,23 @@
} }
}); });
}, },
callPhone() { callPhone() {
// #ifdef H5 // #ifdef H5
this.$refs.popup4.open() this.$refs.popup4.open()
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
my.makePhoneCall({ my.makePhoneCall({
number: '4000969950', number: '4000969950',
success: function(res) { success: function(res) {
console.log('拨打电话成功!'); console.log('拨打电话成功!');
}, },
fail: function(res) { fail: function(res) {
console.log('拨打电话失败!'); console.log('拨打电话失败!');
} }
}) })
// #endif // #endif
}, },
changeGuide(e) { changeGuide(e) {
this.curGuideIndex = e.detail.current this.curGuideIndex = e.detail.current
...@@ -184,9 +184,9 @@ ...@@ -184,9 +184,9 @@
}, },
closeTip() { closeTip() {
this.$refs.popup3.close() this.$refs.popup3.close()
}, },
closeKefu() { closeKefu() {
this.$refs.popup4.close() this.$refs.popup4.close()
}, },
confirm() { confirm() {
this.closeTip() this.closeTip()
...@@ -265,6 +265,7 @@ ...@@ -265,6 +265,7 @@
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;
...@@ -278,7 +279,7 @@ ...@@ -278,7 +279,7 @@
} }
} }
.input { .input {
width: 80%; width: 80%;
border-radius: 10rpx; border-radius: 10rpx;
border: solid 1px #C9C9C9; border: solid 1px #C9C9C9;
...@@ -286,9 +287,7 @@ ...@@ -286,9 +287,7 @@
} }
.swiper-wrap { .swiper-wrap {
/* #ifdef H5 */
width: 50vh; width: 50vh;
/* #endif */
height: 840rpx; height: 840rpx;
.swiper-item { .swiper-item {
...@@ -299,7 +298,6 @@ ...@@ -299,7 +298,6 @@
/* #ifdef MP-ALIPAY */ /* #ifdef MP-ALIPAY */
margin-left: 10%; margin-left: 10%;
margin-right: 10%; margin-right: 10%;
width: 80%;
/* #endif */ /* #endif */
.image { .image {
...@@ -308,18 +306,18 @@ ...@@ -308,18 +306,18 @@
} }
} }
} }
.guide-text { .guide-text {
text-align: center; text-align: center;
margin-top: 100rpx; margin-top: 100rpx;
font-size: 34rpx; font-size: 34rpx;
color: #F9F9F9; color: #F9F9F9;
width: 320rpx; width: 320rpx;
height: 85rpx; height: 85rpx;
line-height: 85rpx; line-height: 85rpx;
background: #3881F3; background: #3881F3;
border-radius: 8rpx; border-radius: 8rpx;
} }
.guide-text2 { .guide-text2 {
......
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