Commit a53e2f74 authored by tanjuanjuan's avatar tanjuanjuan

add

parent c57949e8
......@@ -27,7 +27,7 @@
"vue": "^3.3.11",
"vue-i18n": "^9.1.9",
"wot-design-uni": "^1.3.2",
"xinhua-sdk": "^1.16.1"
"xinhua-sdk": "^1.16.2"
},
"devDependencies": {
"@dcloudio/types": "^3.3.2",
......@@ -13461,9 +13461,9 @@
}
},
"node_modules/xinhua-sdk": {
"version": "1.16.1",
"resolved": "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.16.1.tgz",
"integrity": "sha512-DHcVWlWR1w8EhGcXuHqjg69SbSZOQQslo4tE2krfPoZqXkYrUfivbBD2aziI7iiAlh5ZrNRdOLo8fOFAxJVYrA==",
"version": "1.16.2",
"resolved": "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.16.2.tgz",
"integrity": "sha512-YxuZ1lvxbj48B5v5GMkMtknIfd4Vu2zbcvVysRHgPRo+/tLplJG4UkiQ7E3IUc66yPG4tcH4dXn1H6wb0Amdpw==",
"license": "ISC"
},
"node_modules/xml-name-validator": {
......
......@@ -27,7 +27,7 @@
"vue": "^3.3.11",
"vue-i18n": "^9.1.9",
"wot-design-uni": "^1.3.2",
"xinhua-sdk": "^1.16.1"
"xinhua-sdk": "^1.16.2"
},
"devDependencies": {
"@dcloudio/types": "^3.3.2",
......
<template>
<view class="content">
{{pttype}}
<button @click="handleClick" ref="elclick">点击</button>
<button @click="handleClick1" ref="elclick">点击111</button>
</view>
</template>
......@@ -31,6 +31,16 @@
pttype.value = "不在微信小程序环境中"
}
}
const handleClick1 = () => {
xh.getUserInfo({
goLogin: true,//参数 goLogin 如果传 true 的情况下,如果没登录,跳转到登录页,登录成功会返回页面,需要重新调用 getUserInfo
success(res) {
console.log("res的值新加")
console.log(res)
}
});
}
handleClick()
</script>
<style lang="scss">
......
......@@ -6251,10 +6251,10 @@ xhr@^2.0.1:
parse-headers "^2.0.0"
xtend "^4.0.0"
xinhua-sdk@*, xinhua-sdk@^1.16.1:
version "1.16.1"
resolved "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.16.1.tgz"
integrity sha512-DHcVWlWR1w8EhGcXuHqjg69SbSZOQQslo4tE2krfPoZqXkYrUfivbBD2aziI7iiAlh5ZrNRdOLo8fOFAxJVYrA==
xinhua-sdk@*, xinhua-sdk@^1.16.2:
version "1.16.2"
resolved "https://registry.npmmirror.com/xinhua-sdk/-/xinhua-sdk-1.16.2.tgz"
integrity sha512-YxuZ1lvxbj48B5v5GMkMtknIfd4Vu2zbcvVysRHgPRo+/tLplJG4UkiQ7E3IUc66yPG4tcH4dXn1H6wb0Amdpw==
xml-name-validator@^3.0.0:
version "3.0.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