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. 105
      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. 13131
      unpackage/dist/dev/app-plus/app-service.js
  8. 35291
      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; margin-top: 52rpx;
background-color: #FAFAFA; background-color: #FAFAFA;
border-radius: 10rpx; border-radius: 10rpx;
padding: 32rpx; padding: 10rpx;
border-radius: 20rpx; border-radius: 20rpx;
word-break: break-word; word-break: break-word;
} }

43
pages/menu/setting/index.css

@ -92,4 +92,47 @@
} }
.green{ .green{
color: #6AD6A8 !important; 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;
} }

105
pages/menu/setting/index.vue

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

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

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

4
pages/menu/wallet/index.vue

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

BIN
static/tongyonh/zww.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

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

File diff suppressed because one or more lines are too long

35291
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