|
@@ -87,7 +87,6 @@ export default {
|
|
async initWechatSdk(){
|
|
async initWechatSdk(){
|
|
try{
|
|
try{
|
|
const result = await asyncRequest.signature({url: "http://depart.test241.wanyuhengtong.com/#/"})
|
|
const result = await asyncRequest.signature({url: "http://depart.test241.wanyuhengtong.com/#/"})
|
|
-
|
|
|
|
switch(Number(result.code)){
|
|
switch(Number(result.code)){
|
|
case 0:
|
|
case 0:
|
|
wx.config({
|
|
wx.config({
|
|
@@ -103,8 +102,7 @@ export default {
|
|
wx.checkJsApi({
|
|
wx.checkJsApi({
|
|
jsApiList: ['login'],
|
|
jsApiList: ['login'],
|
|
success:function(res){
|
|
success:function(res){
|
|
- const code = res.code
|
|
|
|
- alert(code)
|
|
|
|
|
|
+ console.log(res)
|
|
},
|
|
},
|
|
fail:function(res){
|
|
fail:function(res){
|
|
alert('line-109')
|
|
alert('line-109')
|