提交 02bd6ab5 编写于 作者: 杨广俊's avatar 杨广俊

ggggg

上级 906526a9
...@@ -151,6 +151,7 @@ export default { ...@@ -151,6 +151,7 @@ export default {
this.showDelete = !this.showDelete this.showDelete = !this.showDelete
}, },
getUserInfo: function () { getUserInfo: function () {
alert('in hist getUserInfo')
rocNative.getUserInfo({'__funcName': '__getUserInfo'}) rocNative.getUserInfo({'__funcName': '__getUserInfo'})
}, },
confirmDelete() { confirmDelete() {
......
...@@ -56,7 +56,7 @@ export default { ...@@ -56,7 +56,7 @@ export default {
mounted(){ mounted(){
let _self = this; let _self = this;
window.__getUserInfo = function(params){ window.__getUserInfo = function(params){
alert(JSON.stringify(params)) // alert(JSON.stringify(params))
_self.token = params.userToken _self.token = params.userToken
// _self.SET_USER_INFO(params) // _self.SET_USER_INFO(params)
_self.getData() _self.getData()
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
} }
let url = '/contents/searchKeyword/listKeywords' let url = '/contents/searchKeyword/listKeywords'
this.GET(url, para).then(res => { this.GET(url, para).then(res => {
alert(JSON.stringify(res)) // alert(JSON.stringify(res))
if (res.code == '000000') { if (res.code == '000000') {
if (res.data && res.data.length) { if (res.data && res.data.length) {
let index = Math.floor(Math.random() * res.data.length) let index = Math.floor(Math.random() * res.data.length)
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
}) })
}, },
getUserInfo: function () { getUserInfo: function () {
alert('getUserInfo') // alert('getUserInfo')
rocNative.getUserInfo({'__funcName': '__getUserInfo'}) rocNative.getUserInfo({'__funcName': '__getUserInfo'})
}, },
getStatusBarHeight: function () { getStatusBarHeight: function () {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册