Browse Source

代码

master
Dread 4 years ago
parent
commit
e3a4187b13
  1. 6
      manifest.json
  2. 12
      pages/menu/sendToken/addAddress/index.vue
  3. 3
      pages/menu/sendToken/address/index.vue
  4. 51
      pages/menu/sendToken/transfer/index.vue
  5. 11
      pages/menu/setting/index.vue
  6. BIN
      unpackage/cache/apk/__UNI__1ECBEE1_cm.apk
  7. 2
      unpackage/cache/apk/apkurl
  8. 2
      unpackage/cache/apk/cmManifestCache.json
  9. 4
      unpackage/cache/wgt/__UNI__1ECBEE1/app-config-service.js
  10. 20
      unpackage/cache/wgt/__UNI__1ECBEE1/app-service.js
  11. 2
      unpackage/cache/wgt/__UNI__1ECBEE1/app-view.js
  12. 4
      unpackage/dist/build/app-plus/app-config-service.js
  13. 20
      unpackage/dist/build/app-plus/app-service.js
  14. 2
      unpackage/dist/build/app-plus/app-view.js
  15. 12631
      unpackage/dist/dev/app-plus/app-service.js
  16. 4
      unpackage/dist/dev/app-plus/app-view.js
  17. BIN
      unpackage/release/apk/bitcooo (2).apk
  18. 5
      utils/locales/en.js
  19. 5
      utils/locales/zh-F.js
  20. 5
      utils/locales/zh.js

6
manifest.json

@ -5,9 +5,9 @@
"versionName" : "1.0", "versionName" : "1.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
"networkTimeout": { "networkTimeout" : {
"request": 10000 //() "request" : 10000 //()
}, },
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
// h5+runtime // h5+runtime

12
pages/menu/sendToken/addAddress/index.vue

@ -212,7 +212,7 @@
icon: 'success', icon: 'success',
duration: 1500 duration: 1500
}) })
uni.reLaunch({ uni.redirectTo({
url: '../address/index' url: '../address/index'
}) })
} else { } else {
@ -237,7 +237,7 @@
duration: 1500 duration: 1500
}) })
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.redirectTo({
url: '../address/index' url: '../address/index'
}) })
}, 1500) }, 1500)
@ -270,7 +270,7 @@
}) })
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.redirectTo({
url: '../address/index' url: '../address/index'
}) })
}, 1500) }, 1500)
@ -296,7 +296,7 @@
duration: 1500 duration: 1500
}) })
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.redirectTo({
url: '../address/index' url: '../address/index'
}) })
}, 1500) }, 1500)
@ -328,7 +328,7 @@
duration: 1500 duration: 1500
}) })
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.redirectTo({
url: '../address/index' url: '../address/index'
}) })
}, 1500) }, 1500)
@ -353,7 +353,7 @@
duration: 1500 duration: 1500
}) })
setTimeout(() => { setTimeout(() => {
uni.reLaunch({ uni.redirectTo({
url: '../address/index' url: '../address/index'
}) })
}, 1500) }, 1500)

3
pages/menu/sendToken/address/index.vue

@ -241,6 +241,9 @@
this.info = item this.info = item
this.itemCoin = item.coinList[0].name this.itemCoin = item.coinList[0].name
this.itemAddress = item.address this.itemAddress = item.address
this.itemAddress = this.itemAddress.substring(0, 6) + '...' + this.itemAddress.substring(
this.itemAddress.length - 6,
this.itemAddress.length);
this.walletIndex = index; this.walletIndex = index;
}, },
deleteItem() { deleteItem() {

51
pages/menu/sendToken/transfer/index.vue

@ -26,7 +26,7 @@
</view> </view>
<view class="inputcon"> <view class="inputcon">
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" <input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;"
placeholder="Please enter the recipient address" class="input1" :placeholder="teee" class="input1"
v-model="transInfoPass.toAddress" /> v-model="transInfoPass.toAddress" />
<image src="../../../../static/tongyonh/Frame330.png" mode="aspectFit" class="img1" @click="scanCode"></image> <image src="../../../../static/tongyonh/Frame330.png" mode="aspectFit" class="img1" @click="scanCode"></image>
</view> </view>
@ -75,7 +75,7 @@
</view> </view>
<view class="inputcon"> <view class="inputcon">
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" <input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;"
placeholder="Please enter a note (off-chain)" v-model="transInfoPass.remark" :placeholder="teee2" v-model="transInfoPass.remark"
class="input1" /> class="input1" />
</view> </view>
</view> </view>
@ -269,7 +269,9 @@
balancePrice: 0, balancePrice: 0,
fee: 0 fee: 0
}, },
transaction: {} transaction: {},
teee:this.$t('index').Pleaserecipientaddress,
teee2:this.$t('index').offchain,
} }
}, },
computed: { computed: {
@ -290,7 +292,7 @@
that.showBottom = false; that.showBottom = false;
that.fingerSuccess = true; that.fingerSuccess = true;
uni.showToast({ uni.showToast({
title: 'Transfer succeeded', title: this.$t('index').Transfersucceeded,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -306,7 +308,7 @@
that.showFinger = false; that.showFinger = false;
that.showBottom = true; that.showBottom = true;
uni.showToast({ uni.showToast({
title: 'Transfer failed, please confirm the information is correct', title: this.$t('index').Transferfailedconfirm,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -321,7 +323,7 @@
that.showBottom = false; that.showBottom = false;
that.fingerSuccess = true; that.fingerSuccess = true;
uni.showToast({ uni.showToast({
title: 'Transfer succeeded', title: this.$t('index').Transfersucceeded,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -336,7 +338,7 @@
that.showFinger = false; that.showFinger = false;
that.showBottom = true; that.showBottom = true;
uni.showToast({ uni.showToast({
title: 'Transfer failed, please confirm the information is correct', title: this.$t('index').Transferfailedconfirm,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -428,7 +430,7 @@
} }
if (Number(this.transInfoPass.amount) > this.coin.balance) { if (Number(this.transInfoPass.amount) > this.coin.balance) {
uni.showToast({ uni.showToast({
title: 'Sorry, your credit is running low', title: this.$t('index').yourcredit,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -463,7 +465,7 @@
that.showFinger = false; that.showFinger = false;
that.showBottom = true; that.showBottom = true;
uni.showToast({ uni.showToast({
title: 'address error', title: this.$t('index').addresserror,
icon: 'none', icon: 'none',
duration: 1500 duration: 1500
}) })
@ -544,39 +546,44 @@
}, function(e) { }, function(e) {
switch (e.code) { switch (e.code) {
//
case e.AUTHENTICATE_MISMATCH: case e.AUTHENTICATE_MISMATCH:
// plus.nativeUI.toast('Fingerprint matching failed, please re-enter'); plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed);
// uni.setStorageSync('fingerPass',false) // uni.setStorageSync('fingerPass',false)
console.log(that.showFinger, 454545) console.log(that.showFinger, 454545)
that.showBottom = false; that.showBottom = false;
that.fingerFail = true; that.fingerFail = true;
that.show=false;
console.log(that.fingerFail, 454545) console.log(that.fingerFail, 454545)
break; break;
case e.AUTHENTICATE_OVERLIMIT: case e.AUTHENTICATE_OVERLIMIT:
plus.nativeUI.closeWaiting(); //Android plus.nativeUI.closeWaiting(); //Android
// plus.nativeUI.alert('The number of fingerprint identification failures exceeds the limit. Please use other methods for authentication'); plus.nativeUI.alert(that.$t('index').Thenumberoffingerprint);
// uni.setStorageSync('fingerPass',false) // uni.setStorageSync('fingerPass',false)
console.log(that.showFinger, 454545) console.log(that.showFinger, 454545)
that.showBottom = false; that.showBottom = false;
that.fingerFail = true; that.fingerFail = true;
that.show=false;
console.log(that.fingerFail, 454545) console.log(that.fingerFail, 454545)
break; break;
case e.CANCEL: case e.CANCEL:
plus.nativeUI.toast('Recognition has been cancelled'); plus.nativeUI.toast(that.$t('index').Recognitioncancelled);
// uni.setStorageSync('fingerPass',false) // uni.setStorageSync('fingerPass',false)
console.log(that.showFinger, 454545) console.log(that.showFinger, 454545)
that.showBottom = false; that.showBottom = false;
that.fingerFail = true; that.fingerFail = true;
that.show=false;
console.log(that.fingerFail, 454545) console.log(that.fingerFail, 454545)
break; break;
default: default:
plus.nativeUI.closeWaiting(); //Android plus.nativeUI.closeWaiting(); //Android
uni.setStorageSync('fingerPass', false) // uni.setStorageSync('fingerPass', false)
console.log(that.showFinger, 454545) console.log(that.showFinger, 454545)
that.showBottom = false; that.showBottom = false;
that.fingerFail = true; that.fingerFail = true;
that.show=false;
console.log(that.fingerFail, 454545) console.log(that.fingerFail, 454545)
plus.nativeUI.alert('Fingerprint identification failed, please try again'); plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed);
break; break;
} }
}); });
@ -588,21 +595,7 @@
} */ } */
} }
// #endif // #endif
//
// #ifdef MP-WEIXIN
// wx.startSoterAuthentication({
// requestAuthModes: ['fingerPrint'],
// challenge: '123456',
// authContent: '',
// success(res) {
// uni.showToast({
// title: '',
// mask: false,
// duration: 1500
// });
// }
// })
// #endif
} }
// #endif // #endif

11
pages/menu/setting/index.vue

@ -207,6 +207,7 @@
that.fingerSuccess=true; that.fingerSuccess=true;
that.show=false; that.show=false;
}, function(e) { }, function(e) {
//
switch (e.code) { switch (e.code) {
case e.AUTHENTICATE_MISMATCH: case e.AUTHENTICATE_MISMATCH:
plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed); plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed);
@ -214,26 +215,24 @@
that.showFinger=false; that.showFinger=false;
that.fingerFail=true; that.fingerFail=true;
that.checked=false that.checked=false
that.show=false;
break; break;
case e.AUTHENTICATE_OVERLIMIT: case e.AUTHENTICATE_OVERLIMIT:
plus.nativeUI.closeWaiting(); //Android plus.nativeUI.closeWaiting(); //Android
plus.nativeUI.alert('The number of fingerprint identification failures exceeds the limit. Please use other methods for authentication'); plus.nativeUI.alert(that.$t('index').Thenumberoffingerprint);
uni.setStorageSync('fingerPass',false) uni.setStorageSync('fingerPass',false)
console.log(that.showFinger,454545)
that.showFinger=false; that.showFinger=false;
that.fingerFail=true; that.fingerFail=true;
that.checked=false that.checked=false
console.log(that.fingerFail,454545) that.show=false;
break; break;
case e.CANCEL: case e.CANCEL:
plus.nativeUI.toast(that.$t('index').Recognitioncancelled); plus.nativeUI.toast(that.$t('index').Recognitioncancelled);
uni.setStorageSync('fingerPass',false) uni.setStorageSync('fingerPass',false)
console.log(that.showFinger,454545)
that.showFinger=false; that.showFinger=false;
that.checked=false that.checked=false
that.fingerFail=true; that.fingerFail=true;
that.show=false; that.show=false;
console.log(that.fingerFail,454545)
break; break;
default: default:
plus.nativeUI.closeWaiting(); //Android plus.nativeUI.closeWaiting(); //Android
@ -241,8 +240,8 @@
console.log(that.showFinger,454545) console.log(that.showFinger,454545)
that.showFinger=false; that.showFinger=false;
that.checked=false that.checked=false
that.show=false;
that.fingerFail=true; that.fingerFail=true;
console.log(that.fingerFail,454545)
plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed); plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed);
break; break;
} }

BIN
unpackage/cache/apk/__UNI__1ECBEE1_cm.apk

Binary file not shown.

2
unpackage/cache/apk/apkurl

@ -1 +1 @@
https://ide.dcloud.net.cn/build/download/c5fc3650-47b3-11ec-933f-1fcc296ea06d https://ide.dcloud.net.cn/build/download/1e6661a0-48e7-11ec-974c-c164643a780f

2
unpackage/cache/apk/cmManifestCache.json

File diff suppressed because one or more lines are too long

4
unpackage/cache/wgt/__UNI__1ECBEE1/app-config-service.js

File diff suppressed because one or more lines are too long

20
unpackage/cache/wgt/__UNI__1ECBEE1/app-service.js

File diff suppressed because one or more lines are too long

2
unpackage/cache/wgt/__UNI__1ECBEE1/app-view.js

File diff suppressed because one or more lines are too long

4
unpackage/dist/build/app-plus/app-config-service.js

File diff suppressed because one or more lines are too long

20
unpackage/dist/build/app-plus/app-service.js

File diff suppressed because one or more lines are too long

2
unpackage/dist/build/app-plus/app-view.js

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

@ -16104,7 +16104,7 @@ var render = function() {
value: "", value: "",
"placeholder-style": "placeholder-style":
"font-size: 30rpx; color: #D0D0D2;", "font-size: 30rpx; color: #D0D0D2;",
placeholder: "Please enter the recipient address", placeholder: _vm._$g(14, "a-placeholder"),
_i: 14 _i: 14
}, },
model: { model: {
@ -16277,7 +16277,7 @@ var render = function() {
value: "", value: "",
"placeholder-style": "placeholder-style":
"font-size: 30rpx; color: #D0D0D2;", "font-size: 30rpx; color: #D0D0D2;",
placeholder: "Please enter a note (off-chain)", placeholder: _vm._$g(34, "a-placeholder"),
_i: 34 _i: 34
}, },
model: { model: {

BIN
unpackage/release/apk/bitcooo (2).apk

Binary file not shown.

5
utils/locales/en.js

@ -214,5 +214,10 @@ moreinformation:'Go to your browser for more information',
Thenumberoffingerprint:'The number of fingerprint identification failures exceeds the limit. Please use other methods for authentication', Thenumberoffingerprint:'The number of fingerprint identification failures exceeds the limit. Please use other methods for authentication',
separatedbyspaces:'Enter mnemonic words separated by spaces', separatedbyspaces:'Enter mnemonic words separated by spaces',
Notyetopen:'Not yet open', Notyetopen:'Not yet open',
Transfersucceeded:'Transfer succeeded',
Transferfailedconfirm:'Transfer failed, please confirm the information is correct',
yourcredit:'Sorry, your credit is running low',
addresserror:'address error',
offchain:'Please enter a note (off-chain)',
} }
} }

5
utils/locales/zh-F.js

@ -213,5 +213,10 @@ export default {
Thenumberoffingerprint:'指紋識別失敗的次數超過限制。 請使用其他方法進行身份驗證', Thenumberoffingerprint:'指紋識別失敗的次數超過限制。 請使用其他方法進行身份驗證',
separatedbyspaces:'輸入以空格分隔的助記單詞', separatedbyspaces:'輸入以空格分隔的助記單詞',
Notyetopen:'暫未開放', Notyetopen:'暫未開放',
Transfersucceeded:'餘額不足',
Transferfailedconfirm:'傳輸失敗,請確認資訊是否正確',
yourcredit:'餘額不足',
addresserror:'地址錯誤',
offchain:'請輸入注釋(鏈外)',
} }
} }

5
utils/locales/zh.js

@ -211,5 +211,10 @@ export default {
Thenumberoffingerprint:'指纹识别失败的次数超过限制。请使用其他方法进行身份验证', Thenumberoffingerprint:'指纹识别失败的次数超过限制。请使用其他方法进行身份验证',
separatedbyspaces:'输入以空格分隔的助记单词', separatedbyspaces:'输入以空格分隔的助记单词',
Notyetopen:'暂未开放', Notyetopen:'暂未开放',
Transfersucceeded:'转账成功',
Transferfailedconfirm:'传输失败,请确认信息是否正确',
yourcredit:'余额不足',
addresserror:'地址错误',
offchain:'请输入注释(链外)',
} }
} }

Loading…
Cancel
Save