|
@@ -65,12 +65,12 @@ Page({
|
|
|
|
|
|
|
|
|
|
|
|
- lenovoInitSDK(){
|
|
|
+ lenovoInitSDK() {
|
|
|
this.data.myPlugin.lenovoInitSDK({}, (res) => {
|
|
|
console.log('res:', res)
|
|
|
if (res === "success") {
|
|
|
console.log("初始化联想sdk成功")
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
console.log(res)
|
|
|
}
|
|
|
})
|
|
@@ -78,29 +78,29 @@ Page({
|
|
|
|
|
|
lenovoLogin() {
|
|
|
this.data.myPlugin.lenovoLogin({}, (res) => {
|
|
|
- console.log('res:',res)
|
|
|
+ console.log('res:', res)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
lenovoLogout() {
|
|
|
this.data.myPlugin.lenovoLogout({}, (res) => {
|
|
|
- console.log('res:',res)
|
|
|
+ console.log('res:', res)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
|
|
|
- aliPayInit(){
|
|
|
- this.data.myPlugin.aliPayInit({}, (res) => {
|
|
|
- console.log('res:',res)
|
|
|
+
|
|
|
+ aliPay() {
|
|
|
+ this.data.myPlugin.aliPay({}, (res) => {
|
|
|
+ console.log('res:', res)
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- aliPay(){
|
|
|
- this.data.myPlugin.aliPay({}, (res) => {
|
|
|
- console.log('res:',res)
|
|
|
+ toHuaWei() {
|
|
|
+ this.data.myPlugin.HuaWeiLogin({}, (res) => {
|
|
|
+ console.log('res:', res)
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
})
|