DESKTOP-2IO5MST\huting 1年前
コミット
8b643488ee
2個のファイルの変更8行の追加3行の削除
  1. 2
    0
      App.vue
  2. 6
    3
      static/etcUtil/index.js

+ 2
- 0
App.vue ファイルの表示

@@ -38,9 +38,11 @@
if (res.uniPlatform === 'mp-weixin') {
console.log('当前为微信小程序', res, 1111);
setItem("loginSource", "69af303ba2eb4608a099163f0d2a5dbd");
setItem("environment","WX")
} else if (res.uniPlatform === 'mp-alipay') {
console.log('当前为支付宝小程序');
setItem("loginSource", "601052a249c04155831710b577cb796d");
setItem("environment","ZFB")
}
}
});

+ 6
- 3
static/etcUtil/index.js ファイルの表示

@@ -26,11 +26,14 @@ const tools = require('./tools.js');
const jlApi = require("../../static/etc/JLAPI/JLObuSDK.js"); //聚力SDK
const wjApi = require("../etc/WJAPI/wjBleAPI");
let tdApi = require("../etc/TDAPI/TDRObuSDK.js");
//支付宝小程序时打开 微信小程序时注释掉
tdApi = require("../etc/TDRAPI/TDRObuSDK.js");
import {
getItem
} from "../../utils/storage";


if (getItem('environment') == 'ZFB') {
tdApi = require("../etc/TDRAPI/TDRObuSDK.js");
}

/**
* 断开蓝牙

読み込み中…
キャンセル
保存