一键登录,增加云函数

This commit is contained in:
唐明明
2022-06-16 16:21:56 +08:00
parent 5357b0fde6
commit ede11bb688
25 changed files with 5099 additions and 3957 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view>
<view class="feedback">
<view class="feedback-block">
<view class="feedback-title">您有任何意见与建议</view>
<view class="feedback-radiobox">
@@ -39,6 +39,24 @@
<view class="btn">
<button type="default" @click="subFeedback">提交</button>
</view>
<!-- 微信客服 -->
<u-modal
:show="wechatCode"
title="微信客服"
confirmColor="#34CE98"
:showCancelButton="true"
cancelText="关闭"
confirmText="保存二维码"
@cancel="wechatCode = false"
@confirm="dowQrCode"
>
<slot>
<view class="wechat-content">
<image class="wechat-qrcode" :src="require('@/static/user/qrCode.jpeg')" mode="widthFix"></image>
<view class="wechat-text">扫描企业微信二维码添加微信客服</view>
</view>
</slot>
</u-modal>
</view>
</template>
@@ -52,7 +70,8 @@
description: "",
mobile : "",
systemInfo : {},
feedbackImg: []
feedbackImg: [],
wechatCode : false
}
},
onLoad(){
@@ -73,11 +92,26 @@
})
},
onNavigationBarButtonTap() {
uni.makePhoneCall({
phoneNumber: '18704601568'
})
this.wechatCode = true
},
methods: {
dowQrCode(){
uni.saveImageToPhotosAlbum({
filePath: require('@/static/user/qrCode.jpeg'),
success(res) {
uni.showToast({
title: '二维码已保存到系统相册',
icon : 'none'
})
},
fail(err) {
uni.showToast({
title: err.message,
icon : 'none'
})
}
})
},
changeRadio(e){
if(this.radioValue === e) return
this.radioValue = e
@@ -260,4 +294,20 @@
.btn button:after{
display: none;
}
/* 弹出层 */
.wechat-content{
text-align: center;
padding: 30rpx 0;
}
.wechat-qrcode{
width: 248rpx;
height: 248rpx;
}
.wechat-text{
text-align: center;
font-size: 28rpx;
color: gray;
padding-top: 30rpx;
}
</style>