|
@@ -31,7 +31,7 @@ class Index extends Component {
|
|
|
}
|
|
|
|
|
|
|
|
|
- componentWillMount () {
|
|
|
+ componentDidMount () {
|
|
|
const that = this
|
|
|
let uObj = Taro.getStorageSync('APP_userInfo')
|
|
|
const { to_user_id } = this.$router.params
|
|
@@ -126,7 +126,7 @@ class Index extends Component {
|
|
|
}).then(task => {
|
|
|
task.onOpen(function () {
|
|
|
// console.log('onOpen')
|
|
|
- const { to_user_id } = this.$router.params
|
|
|
+ const { to_user_id } = that.$router.params
|
|
|
let token = Taro.getStorageSync('APP_token')
|
|
|
task.send({ data: '{"seq":"' + that.sendId() + '","cmd":"login","data":{"userId":"' + to_user_id + '","appId":101,"serviceToken":"' + token + '"}}' })
|
|
|
setInterval(() => {
|