| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- // pages/portal/portalLive/live.js
- Component({
- options: {
- addGlobalClass: true
- },
- /**
- * 组件的属性列表
- */
- properties: {
- list: {
- type: Array
- }
- },
- /**
- * 组件的初始数据
- */
- data: {
- },
- /**
- * 组件的方法列表
- */
- methods: {
- toViewLive(e) {
- const {
- item
- } = e.currentTarget.dataset;
- if (item.fisneedauth == 1) {
- console.log('需要授权')
- /* {
- "accesstoken": "5301810557137557e6a7ada3f2d96bba",
- "classname": "enterprise.live.live",
- "method": "liveauthorization",
- "content": {
- "tliveid": "2"
- }
- } */
- } else {
- let str = item.fliveshowurl;
- const url = str.slice(0, 8) + '04de51d4c1.' + str.slice(8)
- wx.navigateTo({
- url: '/pages/webView/index?url=' + url,
- })
- }
- },
- }
- })
|