| | |
| | | if (account) {
|
| | | this.model = account
|
| | | }
|
| | | let _that = this
|
| | | // uni-app客户端获取push客户端标记
|
| | | // uni.getPushClientId({
|
| | | // success: (res) => {
|
| | | // let push_clientid = res.cid
|
| | | // _that.model.username = push_clientid
|
| | | // console.log('客户端推送标识:', push_clientid)
|
| | | // },
|
| | | // fail(err) {
|
| | | // _that.model.username = err
|
| | | // console.log(err)
|
| | | // }
|
| | | // })
|
| | |
|
| | | // uni.onPushMessage((res) => {
|
| | | // _that.model.username = JSON.stringify(res)
|
| | | // console.log("收到推送消息:", res) //监听推送消息
|
| | | // })
|
| | |
|
| | |
|
| | |
|
| | | },
|
| | |
|
| | | computed: {
|
| | | cid() {
|
| | | return this.$store.getters.getCid; // 使用 getter 获取 cid
|
| | | },
|
| | | },
|
| | | methods: { |
| | |
|
| | | forget() {
|
| | |
| | | uni.setStorageSync('token', res.result.token); |
| | | |
| | |
|
| | |
|
| | | uni.switchTab({
|
| | | url: '/pages/tabBar/general'
|
| | | })
|