import config from ‘…/…/static/js/common.js’//调用登录接口
const host = config.host
const app = getApp()
export default {
data() {
return {
add: [],
datas: [],
recommend: [],
cuss:[],
}
},
methods: {
group(gid) { //传参
uni.navigateTo({
url: './group/group?gid=' + gid
})
},
oneself(self) {
uni.navigateTo({
url: './oneself/oneself?self' + self
})
},
info(inf) {
uni.navigateTo({
url: 'info/info?inf' + inf
})
},
onLoad(e){
var _t = this //this统一用_t
// let add = option.id;
// _t.add = add
console.log("ull", _t.add)
_t.ull()
_t.mess()
_t.discuss()
},
// 消息
ull(e) {
var _t = this //this统一用_t
var pid = 0
if (e != undefined && e.pid != undefined) {
pid = e.pid
}
var p1 = config.getToken(pid)
p1.then(function(token) {
uni.request({