2025-09-24 21:28:48 +08:00

16 lines
626 B
TypeScript

import { onGoH5Page } from '../../../utils/getUserInfo'
import { apiProblemLog } from '../../../api/index/index'
const H5Link = require('../../../api/base').allBaseUrl.GDEnvs.web
Page({
data: {},
onLoad() {},
async onGoH5 (e: any) {
apiProblemLog({ remark: JSON.stringify({ logName: '借还记录&关于我们', logParams: e }) })
if (['/operate/dynamic?id=81'].includes(e.currentTarget.dataset.field)) {
onGoH5Page({ is_need_login: false, url: `${H5Link}/operate/dynamic?id=81` })
} else {
await onGoH5Page({ is_need_login: true, url: `${H5Link}${e.currentTarget.dataset.field}` })
}
}
})