Commit 10a8f8ca authored by hewenhao's avatar hewenhao

feat: 添加版本号

parent 75f42990
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@babel/runtime": "^7.7.7", "@babel/runtime": "^7.7.7",
"@geek/skynet-client-wxmini": "^1.1.9", "@geek/skynet-client-wxmini": "^1.1.11",
"@tarojs/components": "3.6.2", "@tarojs/components": "3.6.2",
"@tarojs/helper": "3.6.2", "@tarojs/helper": "3.6.2",
"@tarojs/plugin-framework-react": "3.6.2", "@tarojs/plugin-framework-react": "3.6.2",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"miniprogramRoot": "dist/", "miniprogramRoot": "dist/",
"projectname": "GeekLearnMathWeapp", "projectname": "GeekLearnMathWeapp",
"description": "", "description": "",
"appid": "wx693fe3460124d84b", "appid": "wx8f25def587982a19",
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": false, "es6": false,
......
...@@ -10,7 +10,7 @@ type GetProps<T> = T extends ComponentType<infer P> ? P : {} ...@@ -10,7 +10,7 @@ type GetProps<T> = T extends ComponentType<infer P> ? P : {}
type UserGuideProps<T extends ComponentType<any>> = { type UserGuideProps<T extends ComponentType<any>> = {
onFinish?: () => void; onFinish?: () => void;
isActive?: boolean; isActive?: boolean;
compnent?: T; component?: T;
guideViewId?: string; guideViewId?: string;
onClickConent?: () => void; onClickConent?: () => void;
verticalPadding?: number; verticalPadding?: number;
...@@ -20,7 +20,7 @@ type UserGuideProps<T extends ComponentType<any>> = { ...@@ -20,7 +20,7 @@ type UserGuideProps<T extends ComponentType<any>> = {
} & GetProps<T> } & GetProps<T>
function UserGuideView<T extends ComponentType<any> = typeof View> (props: UserGuideProps<T>) { function UserGuideView<T extends ComponentType<any> = typeof View> (props: UserGuideProps<T>) {
const { isActive, wrapClass, guideViewId, guideContent, verticalPadding = 0, horizonPadding = 0, onFinish, onClickConent, compnent: Comp = View, ...rest } = props const { isActive, wrapClass, guideViewId, guideContent, verticalPadding = 0, horizonPadding = 0, onFinish, onClickConent, component: Comp = View, ...rest } = props
const [rect, setRect] = useState({ width: 80, height: 80, top: 0, left: 0 }) const [rect, setRect] = useState({ width: 80, height: 80, top: 0, left: 0 })
const [_isActive, setIsActive] = useState(false) const [_isActive, setIsActive] = useState(false)
const scrollRef = useRef(0) const scrollRef = useRef(0)
......
...@@ -2,7 +2,7 @@ import { request } from '@tarojs/taro' ...@@ -2,7 +2,7 @@ import { request } from '@tarojs/taro'
const RE = /^https?:\/\// const RE = /^https?:\/\//
const buildVersion = String(process.env.TARO_BUILD_VERSION) || '\0_not_find' const buildVersion = String(process.env.TARO_BUILD_VERSION) || '\0_not_find'
const WeappConfigUrl = 'https://profile-1257124244.cos.ap-chengdu.myqcloud.com/app_resource/geek_lll_config.json' const WeappConfigUrl = 'https://cdn.jkwljy.com/pk-math/setting/geek_pkmath_config.json'
const isValidDomain = (domain) => RE.test(domain) const isValidDomain = (domain) => RE.test(domain)
......
...@@ -6,5 +6,6 @@ export const SkynetConfig = { ...@@ -6,5 +6,6 @@ export const SkynetConfig = {
appId: 'learn-math', appId: 'learn-math',
appName: '玩转数学小程序', appName: '玩转数学小程序',
url: `${_baseUrl}/hlw-data`, url: `${_baseUrl}/hlw-data`,
project: 'f13e0406-592b-43bd-b623-69bfb68973eb' project: 'f13e0406-592b-43bd-b623-69bfb68973eb',
version: process.env.TARO_BUILD_VERSION
} }
...@@ -209,7 +209,7 @@ const GameCompleteHead = () => { ...@@ -209,7 +209,7 @@ const GameCompleteHead = () => {
onClick={goWrong} onClick={goWrong}
id="err_question" id="err_question"
isActive={isActive} isActive={isActive}
compnent={View} component={View}
wrapClass={styles.content_wrap} wrapClass={styles.content_wrap}
verticalPadding={5} verticalPadding={5}
horizonPadding={10} horizonPadding={10}
......
...@@ -139,7 +139,7 @@ const StageComp = (props: StageProps) => { ...@@ -139,7 +139,7 @@ const StageComp = (props: StageProps) => {
return ( return (
<UserGuideView <UserGuideView
src={getUnlockedIcon(stage.type).u} src={getUnlockedIcon(stage.type).u}
compnent={Image} component={Image}
className={getIconClassNames(stage.type)} className={getIconClassNames(stage.type)}
isActive={mainGuideActive} isActive={mainGuideActive}
verticalPadding={0} verticalPadding={0}
......
...@@ -15,7 +15,8 @@ export function configSkynet () { ...@@ -15,7 +15,8 @@ export function configSkynet () {
app_id: SkynetConfig.appId, app_id: SkynetConfig.appId,
app_name: SkynetConfig.appName, app_name: SkynetConfig.appName,
project: SkynetConfig.project, project: SkynetConfig.project,
url: SkynetConfig.url url: SkynetConfig.url,
version: SkynetConfig.version
}) })
} }
......
...@@ -1499,10 +1499,10 @@ ...@@ -1499,10 +1499,10 @@
resolved "https://registry.npmmirror.com/@eslint/js/-/js-8.36.0.tgz" resolved "https://registry.npmmirror.com/@eslint/js/-/js-8.36.0.tgz"
integrity sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg== integrity sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==
"@geek/skynet-client-wxmini@^1.1.9": "@geek/skynet-client-wxmini@^1.1.11":
version "1.1.9" version "1.1.11"
resolved "http://git.jksxb.cn:8081/repository/geek/@geek/skynet-client-wxmini/-/skynet-client-wxmini-1.1.9.tgz#98eabf2ce80657ddabf1e8ff4d8e6e89e0c3acb7" resolved "http://git.jksxb.cn:8081/repository/geek/@geek/skynet-client-wxmini/-/skynet-client-wxmini-1.1.11.tgz#739aabf6f5de1d08654a6fbd4f173e0ac8e2c7fe"
integrity sha512-1pUNrldv0z0Hj36xTg7xVRR6IIUkTbO05nywkdsU1D219Y3bgZj66BKMu79T87e4fSArNlWR2KoqUuS9gWUH+w== integrity sha512-75SRBZ6XpozTpijNq3a4daOLdqhYFkjRU0O4E9bZ1ugA2VHKf04FXIZNOj0jDp/NrawvROHsfdUsCF+hIH+HLg==
"@hapi/hoek@^9.0.0": "@hapi/hoek@^9.0.0":
version "9.3.0" version "9.3.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment