[更新]新增短视频企业id接口

This commit is contained in:
唐明明
2020-12-30 18:15:18 +08:00
parent 630417ab91
commit 648eac57fd
3 changed files with 137 additions and 135 deletions

View File

@@ -4,7 +4,7 @@
*/
import {req} from "../request"
const videos = () => req({url: "videos"}) //获取视频列表
const videos = (data) => req({url: "videos", data: data}) //获取视频列表
export default({
videos

View File

@@ -22,7 +22,9 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad() {
wx.$api.video.videos().then(res => {
wx.$api.video.videos({
company_id: wx.getStorageSync("compayId")
}).then(res => {
this.setData({
videoList: res,
videoId: res[0].video_id