|
@@ -1,5 +1,6 @@
|
|
import { getDepositDetails, getsubscribeID } from "./service";
|
|
import { getDepositDetails, getsubscribeID } from "./service";
|
|
import { reportApi } from "../../utils/cloudMonitorHelper";
|
|
import { reportApi } from "../../utils/cloudMonitorHelper";
|
|
|
|
+import { getAuthUser } from "../../../../core/utils/jsapi";
|
|
Component({
|
|
Component({
|
|
data: {
|
|
data: {
|
|
showSubscrible: true,
|
|
showSubscrible: true,
|
|
@@ -61,12 +62,14 @@ Component({
|
|
|
|
|
|
async gotoSubscrible() {
|
|
async gotoSubscrible() {
|
|
try {
|
|
try {
|
|
- my.getAuthCode({
|
|
|
|
- scopes: ["auth_user", "hospital_order"],
|
|
|
|
- success: (res) => {
|
|
|
|
- console.log("authCode ===>", res.authCode);
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
|
|
+ // my.getAuthCode({
|
|
|
|
+ // scopes: ["auth_user", "hospital_order"],
|
|
|
|
+ // success: (res) => {
|
|
|
|
+ // console.log("authCode ===>", res.authCode);
|
|
|
|
+ // },
|
|
|
|
+ // });
|
|
|
|
+ const authResult = await getAuthUser(["auth_user", "hospital_order"]);
|
|
|
|
+ console.log("authResult ===>", authResult);
|
|
const subscribeID = await getsubscribeID();
|
|
const subscribeID = await getsubscribeID();
|
|
await this.requestSubscribeMessageFn(subscribeID.depositTemplateId);
|
|
await this.requestSubscribeMessageFn(subscribeID.depositTemplateId);
|
|
} catch (error) {
|
|
} catch (error) {
|