Files
damai-wx/subPackages/video/index.js
MagicalKudzu f67fb8b6b3 更新
2025-12-17 14:19:22 +08:00

136 lines
4.8 KiB
JavaScript

require('../sub-vendors.js'),
(wx.webpackJsonp = wx.webpackJsonp || []).push([
[3357],
{
5990: function (e, o, i) {
var n = i(4160),
t = i(4107),
d = i(4576),
r = i(758),
a = i(2573),
c = i(4269),
l = i(3816),
s = i(7422),
u = i(6070),
p = l.A.getUtdid()
Page(
(0, n.eU)(
function () {
var e = (0, r.useState)({
spm_b: 'item',
vid: '',
title: '',
ccode: '',
pid: '',
videoUrl: '',
picUrl: '',
}),
o = (0, d.A)(e, 2),
i = o[0],
n = o[1],
l = i.videoUrl,
v = i.picUrl,
m = i.title,
y = i.ccode,
k = i.vid,
g = i.pid
return (
(0, a.useLoad)(function () {
var e,
o = null === (e = (0, a.getCurrentInstance)().router) || void 0 === e ? void 0 : e.params
if (o) {
var d = o.vid,
r = void 0 === d ? '' : d,
c = o.title,
l = void 0 === c ? '' : c,
s = o.pid,
u = void 0 === s ? '' : s,
p = o.videoUrl,
v = void 0 === p ? '' : p,
m = o.picUrl,
y = void 0 === m ? '' : m,
k = (0, a.getDeviceInfo)().system.match(/android/i) ? '01010122' : '02010120'
n(
v
? (0, t.A)(
(0, t.A)({}, i),
{},
{ videoUrl: decodeURIComponent(v), picUrl: decodeURIComponent(y) },
)
: (0, t.A)(
(0, t.A)({}, i),
{},
{
ccode: k,
vid: decodeURIComponent(r),
title: decodeURIComponent(l),
pid: decodeURIComponent(u),
},
),
)
}
}),
(0, a.useReady)(function () {
;(0, a.onNetworkStatusChange)(function (e) {
'wifi' !== e.networkType && (0, a.showToast)({ title: '您正在使用非wifi网络', icon: 'none' })
})
}),
(0, u.jsxs)(c.Ss, {
className: 'video',
children: [
(0, u.jsx)(c.Ss, {
className: 'video-container',
children: l
? (0, u.jsx)(c.Ce, {
id: 'video-normal',
src: l,
controls: !0,
'show-center-play-btn': !1,
'show-play-btn': !0,
poster: v,
})
: (0, u.jsx)('youkuplayer', {
ccode: y,
allowRecord: !1,
utid: p,
id: 'youkuplayer',
bindYoukuPlayerEvent: function (e) {
'Player.Play.Start' === e.detail.code &&
s.A.sendClickEvent(''.concat(s.A.spmA, '.item.info.dvideoclk'), { item_id: g })
},
playerId: 'player',
vid: k,
}),
}),
!l && (0, u.jsx)(c.Ss, { className: 'video-title', children: m }),
],
})
)
},
'subPackages/video/index',
{ root: { cn: [] } },
{
component: !0,
navigationBarBackgroundColor: '#000000',
navigationBarTitleText: '',
backgroundColor: '#000000',
backgroundColorContent: '#000000',
backgroundColorTop: '#000000',
backgroundColorBottom: '#000000',
backgroundTextStyle: 'light',
navigationBarTextStyle: 'white',
usingComponents: { youkuplayer: './wx-youkuplayer/index' },
} || {},
),
)
},
},
function (e) {
e.O(0, [6907, 8096, 2076], function () {
return (o = 5990), e((e.s = o))
var o
}),
e.O()
},
])