Browse Source

代码

master
Dread 4 years ago
parent
commit
15cd24998a
  1. 2
      pages/menu/sendToken/index.css
  2. 43
      pages/menu/setting/index.css
  3. 93
      pages/menu/setting/index.vue
  4. 8
      pages/menu/transction/detail/index.vue
  5. 4
      pages/menu/wallet/index.vue
  6. BIN
      static/tongyonh/zww.png
  7. 16329
      unpackage/dist/dev/app-plus/app-service.js
  8. 32447
      unpackage/dist/dev/app-plus/app-view.js
  9. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/arrow-up-left_2.png
  10. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/zww.png

2
pages/menu/sendToken/index.css

@ -69,7 +69,7 @@
margin-top: 52rpx;
background-color: #FAFAFA;
border-radius: 10rpx;
padding: 32rpx;
padding: 10rpx;
border-radius: 20rpx;
word-break: break-word;
}

43
pages/menu/setting/index.css

@ -93,3 +93,46 @@
.green{
color: #6AD6A8 !important;
}
/* 指纹后加 */
.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;
}

93
pages/menu/setting/index.vue

@ -1,5 +1,5 @@
<template>
<view class="">
<view class="rela">
<navigation :showBack="true" :bgnum="true">
Settings
</navigation>
@ -44,9 +44,10 @@
</view>
</view>
</view>
<u-mask z-index="10" :show="show"></u-mask>
<view class="zhiwen_con" v-if="showFinger">
<!-- <view class="zhiwen_con" >
<view class="tiao" @click="cancel">
</view>
<view class="bigtitle">
@ -59,55 +60,36 @@
</view>
<view class="flex con">
<view class="textt2" @click="cancel">
<view class="textt2">
Cancel
</view>
</view>
</view>
</view> -->
<view class="hou_jia" v-if="showFinger">
<view class="Log">
Log in
</view>
<view class="zhiwen_con" v-if="fingerFail">
<view class="tiao">
</view>
<view class="bigtitle">
Fingerprint password
</view>
<view class="bottom_con">
<image src="../../../static/tongyonh/alert-circle.png" mode="aspectFit" class="img1"></image>
<view class="text1 red">
Fingerprint not recognized. <br><text @click="fingerPass('try')">Try again.</text>
</view>
<view class="flex con">
<view class="textt2" @click="cancelFail">
<image src="../../../static/tongyonh/zww.png" mode="aspectFit" class="zzw"></image>
<view class="Log" @click="cancel">
Cancel
</view>
</view>
<view class="hou_jia hou_jia_w" v-if="hou_jia_w">
<view class="fontt">
Confirm close validation?
</view>
<view class="ccon">
<view class="cancle" @click="cancel_hou">
Cancel
</view>
<view class="zhiwen_con" v-if="fingerSuccess">
<view class="tiao" @click="cancelSucc">
</view>
<view class="bigtitle">
Fingerprint password
</view>
<view class="bottom_con">
<image src="../../../static/tongyonh/x-circle.png" mode="aspectFit" class="img1"></image>
<view class="text1 green">
Fingerprint recognized.
</view>
<view class="flex con">
<view class="textt2" @click="cancelSucc">
<view class="" @click="confirm_hou">
Confirm
</view>
</view>
</view>
</view>
</view>
</template>
<script>
@ -115,14 +97,33 @@
export default {
data() {
return {
checked: false,
show:false,
showFinger:false,
fingerSuccess:false,
fingerFail:false,
hou_jia_w:false,
};
},
methods: {
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)
},
confirm() {
setTimeout(() => {
// 3
this.show23 = false;
}, 3000)
},
cancel(){
this.showFinger=false;
this.checked=false;
@ -137,22 +138,26 @@
this.fingerFail=false
this.show=false;
},
fingerPass(test){
fingerPass(){
console.log(this.checked)
if(this.checked||test=='try'){
//
if(this.checked){
console.log(111)
this.show=true;
this.showFinger=true;
this.showModal()
this.fingerprint(true);
}
// false使
if(!this.checked){
uni.setStorageSync('fingerPass',false)
this.show=true
}
},
fingerprint: function(sett) {
let bltype=true;
//
// #ifdef APP-PLUS
if (!plus.fingerprint.isSupport()) {
uni.showToast({
@ -194,22 +199,20 @@
})
// #endif
//
let that=this;
// #ifdef APP-PLUS
plus.fingerprint.authenticate(function() {
plus.nativeUI.closeWaiting(); //Android
// uni.showToast({
// title: 'Fingerprint identification succeeded',
// icon: 'none',
// duration: 1500,
// })
//
// 使
uni.setStorageSync('fingerPass',true)
console.log(that.showFinger,454545)
that.showFinger=false;
that.fingerSuccess=true;
that.show=false;
console.log(that.showFinger,454545)
}, function(e) {
switch (e.code) {

8
pages/menu/transction/detail/index.vue

@ -51,7 +51,9 @@
</view>
<view class="item">
<view class="text1">
Send address (me)
Send address
<text v-if="info.type=='out'"> (others)</text>
<text v-else>(me)</text>
</view>
<view class="text2">
{{info.from}}
@ -60,7 +62,9 @@
</view>
<view class="item">
<view class="text1">
Receiving address (others)
Receiving address
<text v-if="info.type=='in'">(me)</text>
<text v-else>(others)</text>
</view>
<view class="text2">
{{info.to}}

4
pages/menu/wallet/index.vue

@ -131,8 +131,10 @@
// thar.$walletUtil.updateBalance();
// thar.updateData();
// }, 100);
// thar.$walletUtil.updateBalance();
thar.$walletUtil.updateBalance();
console.log(thar.isStop,4444)
if (!thar.isStop) {
thar.updateData()
}
}, 2000);

BIN
static/tongyonh/zww.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

16329
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long

32447
unpackage/dist/dev/app-plus/app-view.js

File diff suppressed because one or more lines are too long

BIN
unpackage/dist/dev/app-plus/static/tongyonh/arrow-up-left_2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

BIN
unpackage/dist/dev/app-plus/static/tongyonh/zww.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Loading…
Cancel
Save