@ -0,0 +1,75 @@ |
|||||
|
page{ |
||||
|
overflow-y: hidden; |
||||
|
} |
||||
|
|
||||
|
.logo{ |
||||
|
display: block; |
||||
|
margin: 0 auto; |
||||
|
width: 80rpx; |
||||
|
height: 80rpx; |
||||
|
margin-top: 180rpx; |
||||
|
} |
||||
|
.fingcon{ |
||||
|
margin-top: 300rpx; |
||||
|
|
||||
|
} |
||||
|
.fingcon .finimg{ |
||||
|
width: 100rpx; |
||||
|
display: block; |
||||
|
margin: 0 auto; |
||||
|
height: 100px; |
||||
|
} |
||||
|
.te1{ |
||||
|
margin-top: 20rpx; |
||||
|
text-align: center; |
||||
|
} |
||||
|
.passTex{ |
||||
|
position: absolute; |
||||
|
bottom: 56rpx; |
||||
|
left: 50%; |
||||
|
transform: translateX(-50%); |
||||
|
color: #746DFF; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/* 指纹后加 */ |
||||
|
.hou_jia{ |
||||
|
width: 95%; |
||||
|
height: 300rpx; |
||||
|
border-radius: 20rpx; |
||||
|
position: relative; |
||||
|
left: 50%; |
||||
|
top: 40%; |
||||
|
transform: translate(-50%,-60%); |
||||
|
background-color: #414141; |
||||
|
padding: 48rpx; |
||||
|
z-index: 9999; |
||||
|
} |
||||
|
.rela{ |
||||
|
|
||||
|
} |
||||
|
.zzw{ |
||||
|
display: block; |
||||
|
width: 88rpx; |
||||
|
height: 88rpx; |
||||
|
margin: 20rpx auto; |
||||
|
} |
||||
|
.Log{ |
||||
|
text-align: center; |
||||
|
color: #fff; |
||||
|
} |
||||
|
.hou_jia_w{ |
||||
|
background-color: #fff !important; |
||||
|
} |
||||
|
.fontt{ |
||||
|
font-size: 32rpx; |
||||
|
} |
||||
|
.ccon{ |
||||
|
display: flex; |
||||
|
position: absolute; |
||||
|
right: 50rpx; |
||||
|
bottom: 50rpx; |
||||
|
} |
||||
|
.cancle{ |
||||
|
margin-right: 50rpx; |
||||
|
} |
@ -0,0 +1,223 @@ |
|||||
|
<template> |
||||
|
<view class="rela"> |
||||
|
<view class="main"> |
||||
|
<image src="../../static/tongyonh/Group285.png" mode="aspectFit" class="logo"></image> |
||||
|
<view class="fingcon"> |
||||
|
<image src="../../static/tongyonh/zhiwen.png" mode="aspectFit" class="finimg" @click="goFinger"></image> |
||||
|
<view class="te1"> |
||||
|
Click to verify fingerprint |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
<view class="passTex"> |
||||
|
Login with wallet password |
||||
|
</view> |
||||
|
</view> |
||||
|
<u-mask z-index="10" :show="show"></u-mask> |
||||
|
|
||||
|
<view class="hou_jia" v-if="showFinger"> |
||||
|
<view class="Log"> |
||||
|
<!-- {{i18n.Login}} --> |
||||
|
Log In |
||||
|
</view> |
||||
|
<image src="../../static/tongyonh/zww.png" mode="aspectFit" class="zzw" @click="goFinger()"></image> |
||||
|
<view class="Log" @click="cancel"> |
||||
|
<!-- {{i18n.Cancel}} --> |
||||
|
Cancel |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import cont from "@/components/navigation/navigation.vue" |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
checked: false, |
||||
|
show: false, |
||||
|
showFinger: false, |
||||
|
fingerSuccess: false, |
||||
|
fingerFail: false, |
||||
|
hou_jia_w: false, |
||||
|
}; |
||||
|
}, |
||||
|
methods: { |
||||
|
goFinger(){ |
||||
|
this.showFinger=true; |
||||
|
this.show=true; |
||||
|
this.fingerPass() |
||||
|
}, |
||||
|
// 依旧保留指纹 |
||||
|
cancel_hou() { |
||||
|
this.hou_jia_w = false; |
||||
|
this.show = false; |
||||
|
this.checked = true; |
||||
|
}, |
||||
|
// 确认取消指纹 |
||||
|
confirm_hou() { |
||||
|
this.checked = false |
||||
|
this.hou_jia_w = false; |
||||
|
this.show = false; |
||||
|
uni.setStorageSync('fingerPass', false) |
||||
|
}, |
||||
|
// 关闭所有 |
||||
|
cancel() { |
||||
|
this.showFinger = false; |
||||
|
this.checked = false; |
||||
|
this.show = false; |
||||
|
this.printCancel(); |
||||
|
|
||||
|
}, |
||||
|
// 取消指纹识别 |
||||
|
printCancel() { |
||||
|
this.show = false; |
||||
|
this.showFinger = false |
||||
|
console.log(this.showFinger,777777777777) |
||||
|
plus.fingerprint.cancel(); |
||||
|
}, |
||||
|
|
||||
|
fingerPass() { |
||||
|
console.log(this.checked) |
||||
|
// 如果是启动的就调指纹 |
||||
|
this.show = true; |
||||
|
this.showFinger = true; |
||||
|
this.fingerprint(true); |
||||
|
}, |
||||
|
fingerprint: function() { |
||||
|
// 进来先判断本机有没有指纹 |
||||
|
// #ifdef APP-PLUS |
||||
|
if (!plus.fingerprint.isSupport()) { |
||||
|
uni.showToast({ |
||||
|
title: this.$t('index').fingerprintidentification, |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
// this.disabled = true; |
||||
|
} else if (!plus.fingerprint.isKeyguardSecure()) { |
||||
|
uni.showToast({ |
||||
|
title: this.$t('index').notequipped, |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
|
||||
|
} else if (!plus.fingerprint.isEnrolledFingerprints()) { |
||||
|
uni.showToast({ |
||||
|
title: this.$t('index').oninthesetting, |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
// this.disabled = true; |
||||
|
} else { |
||||
|
// this.result = '此设备支持指纹识别'; |
||||
|
// // this.disabled = false; |
||||
|
// #ifdef MP-WEIXIN |
||||
|
// this.disabled = false; |
||||
|
uni.showToast({ |
||||
|
title: 'Please use it in wechat real machine. The simulator does not support it', |
||||
|
icon: 'none', |
||||
|
duration: 1500 |
||||
|
}) |
||||
|
// #endif |
||||
|
// #ifndef APP-PLUS || MP-WEIXIN |
||||
|
uni.showToast({ |
||||
|
title: 'Fingerprint identification is not supported on this platform', |
||||
|
icon: 'none', |
||||
|
duration: 1500, |
||||
|
}) |
||||
|
// #endif |
||||
|
// 进来先判断本机有没有指纹 |
||||
|
let that = this; |
||||
|
// #ifdef APP-PLUS |
||||
|
plus.fingerprint.authenticate(function() { |
||||
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
||||
|
// 指纹验证成功后走这里 |
||||
|
// 存储设置里开启指纹后的状态,隐藏使用密码 |
||||
|
uni.setStorageSync('fingerPass', true) |
||||
|
that.showFinger = false; |
||||
|
that.fingerSuccess = true; |
||||
|
that.show = false; |
||||
|
uni.reLaunch({ |
||||
|
url:'/pages/menu/wallet/index' |
||||
|
}) |
||||
|
}, function(e) { |
||||
|
// 指纹识别失败后的各种情况 |
||||
|
switch (e.code) { |
||||
|
case e.AUTHENTICATE_MISMATCH: |
||||
|
plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed); |
||||
|
// uni.setStorageSync('fingerPass',false) |
||||
|
that.showFinger=false; |
||||
|
that.fingerFail=true; |
||||
|
that.checked=false |
||||
|
that.show=false; |
||||
|
break; |
||||
|
case e.AUTHENTICATE_OVERLIMIT: |
||||
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
||||
|
plus.nativeUI.alert(that.$t('index').Thenumberoffingerprint); |
||||
|
// uni.setStorageSync('fingerPass',false) |
||||
|
that.showFinger=false; |
||||
|
that.fingerFail=true; |
||||
|
that.checked=false |
||||
|
that.show=false; |
||||
|
break; |
||||
|
case e.CANCEL: |
||||
|
plus.nativeUI.toast(that.$t('index').Recognitioncancelled); |
||||
|
// uni.setStorageSync('fingerPass',false) |
||||
|
that.showFinger=false; |
||||
|
that.checked=false |
||||
|
that.fingerFail=true; |
||||
|
that.show=false; |
||||
|
break; |
||||
|
default: |
||||
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
||||
|
// uni.setStorageSync('fingerPass',false) |
||||
|
that.showFinger=false; |
||||
|
that.checked=false |
||||
|
that.show=false; |
||||
|
that.fingerFail=true; |
||||
|
plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed); |
||||
|
break; |
||||
|
} |
||||
|
}); |
||||
|
// Android平台手动弹出等待提示框 |
||||
|
if ('Android' == plus.os.name) { |
||||
|
this.show = true; |
||||
|
/* plus.nativeUI.showWaiting('指纹识别中...').onclose = function() { |
||||
|
plus.fingerprint.cancel(); |
||||
|
} */ |
||||
|
} |
||||
|
// #endif |
||||
|
} |
||||
|
// #endif |
||||
|
}, |
||||
|
change(status) { |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
}, |
||||
|
onLoad() { |
||||
|
// 每次进来拿缓存里有没有指纹 |
||||
|
if (uni.getStorageSync('fingerPass')) { |
||||
|
this.showFinger=true; |
||||
|
this.show=true; |
||||
|
this.fingerPass() |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
}, |
||||
|
computed: { |
||||
|
i18n() { |
||||
|
return this.$t('index') |
||||
|
}, |
||||
|
} |
||||
|
}; |
||||
|
</script> |
||||
|
<style scoped> |
||||
|
|
||||
|
</style> |
||||
|
|
||||
|
<style> |
||||
|
@import './index.css'; |
||||
|
</style> |
@ -0,0 +1,37 @@ |
|||||
|
.main{ |
||||
|
margin-top: 40rpx; |
||||
|
padding: 0 32rpx; |
||||
|
} |
||||
|
/deep/ .u-collapse-head{ |
||||
|
height: 466rpx; |
||||
|
background-color: #F8F8FF; |
||||
|
} |
||||
|
.item{ |
||||
|
width: 100%; |
||||
|
padding: 0 32rpx; |
||||
|
padding-top: 64rpx; |
||||
|
padding-bottom: 64rpx; |
||||
|
background-color: #F8F8FF; |
||||
|
border-bottom: 2rpx solid #EFF1F2; |
||||
|
position: relative; |
||||
|
} |
||||
|
.item:last-child{ |
||||
|
border-bottom: none; |
||||
|
} |
||||
|
.item .num{ |
||||
|
font-size: 64rpx; |
||||
|
font-weight: bold; |
||||
|
color: #9D96A8; |
||||
|
} |
||||
|
.btx{ |
||||
|
font-size: 40rpx; |
||||
|
font-weight: 700; |
||||
|
margin-top: 44rpx; |
||||
|
} |
||||
|
.teximg{ |
||||
|
width: 64rpx; |
||||
|
height: 64rpx; |
||||
|
position: absolute; |
||||
|
right: 32rpx; |
||||
|
top: 160rpx; |
||||
|
} |
@ -0,0 +1,91 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<navigation :showBack="true"> |
||||
|
<text class="big_title"> |
||||
|
FAQ |
||||
|
</text> |
||||
|
</navigation> |
||||
|
<view class="main"> |
||||
|
<!-- <u-collapse> |
||||
|
<u-collapse-item :title="item.adTitle" v-for="(item, index) in recordInfo" :key="index"> |
||||
|
<view class="num"> |
||||
|
{{index+1}} |
||||
|
</view> |
||||
|
<view class="btex" v-html="item.adContentHtml"> |
||||
|
|
||||
|
</view> |
||||
|
</u-collapse-item> |
||||
|
</u-collapse> --> |
||||
|
|
||||
|
<view class="item" v-for="(item, index) in recordInfo" :key="index"> |
||||
|
<view class="num"> |
||||
|
0{{index+1}} |
||||
|
</view> |
||||
|
<view class="btx"> |
||||
|
{{item.adTitle}} |
||||
|
</view> |
||||
|
<image src="../../../static/tongyonh/plus.png" mode="aspectFit" class="teximg"></image> |
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import utils from '@/utils' |
||||
|
import md5 from 'js-md5' |
||||
|
import store from '@/store' |
||||
|
import token from '@/utils/TokenUtil' |
||||
|
import cont from "@/components/navigation/navigation.vue" |
||||
|
|
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
recordInfo:[], |
||||
|
form:{ |
||||
|
pageNum:1, |
||||
|
pageSize:10, |
||||
|
auAdPositionType:'user_questions', |
||||
|
terminalType:'user_client', |
||||
|
}, |
||||
|
itemList: [{ |
||||
|
head: "赏识在于角度的转换", |
||||
|
body: "只要我们正确择取一个合适的参照物乃至稍降一格去看待他人,值得赏识的东西便会扑面而来", |
||||
|
open: true, |
||||
|
disabled: true |
||||
|
},{ |
||||
|
head: "生活中不是缺少美,而是缺少发现美的眼睛", |
||||
|
body: "学会欣赏,实际是一种积极生活的态度,是生活的调味品,会在欣赏中发现生活的美", |
||||
|
open: false, |
||||
|
},{ |
||||
|
head: "周围一些不起眼的人、事、物,或许都隐藏着不同凡响的智慧", |
||||
|
body: "但是据说雕刻大卫像所用的这块大理石,曾被多位雕刻家批评得一无是处,有些人认为这块大理石采凿得不好,有些人嫌它的纹路不够美", |
||||
|
open: false, |
||||
|
}], |
||||
|
} |
||||
|
}, |
||||
|
computed: { |
||||
|
i18n() { |
||||
|
return this.$t('index') |
||||
|
}, |
||||
|
}, |
||||
|
onLoad() { |
||||
|
this.getHomeSlideFunc() |
||||
|
}, |
||||
|
|
||||
|
methods: { |
||||
|
async getHomeSlideFunc() { |
||||
|
const response = await this.$api.getAuAdList(this.form) |
||||
|
this.recordInfo = response.rows |
||||
|
console.log(response,777777777) |
||||
|
}, |
||||
|
}, |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
@import './index.css'; |
||||
|
</style> |
After Width: | Height: | Size: 7.5 KiB |
@ -1 +1 @@ |
|||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BitCooo","version":{"name":"1.1.1","code":111},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"FaceID":{},"Fingerprint":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"default","iosStyle":"default","android":{"hdpi":"","xhdpi":"","xxhdpi":""}},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.USE_FINGERPRINT\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.16","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}} |
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__1ECBEE1","name":"BitCooo","version":{"name":"1.1.2","code":112},"description":"","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"FaceID":{},"Fingerprint":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"render":"always","id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#fff"},"compatible":{"ignoreVersion":true},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"distribute":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"default","iosStyle":"default","android":{"hdpi":"","xhdpi":"","xxhdpi":""}},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.USE_FINGERPRINT\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.16","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"launch_path":"__uniappview.html"}} |
Before Width: | Height: | Size: 629 B After Width: | Height: | Size: 629 B |
Before Width: | Height: | Size: 526 B After Width: | Height: | Size: 526 B |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 1.2 KiB |