|
@@ -69,21 +69,23 @@
|
|
|
btn_top:0,
|
|
|
title:"888",
|
|
|
user_name:'1',
|
|
|
- head_img:"../static/images/loginLogo.png"
|
|
|
+ head_img:"../static/images/loginLogo.png",
|
|
|
+ liveId: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.videoType = options.videoType
|
|
|
this.roomID = options.roomId
|
|
|
this.userID = "1323565280579813376"
|
|
|
- NET.request(API.getLiveGoodsDetail + options.liveId, {}, 'GET').then(res => {
|
|
|
- this.goodsList = res.data
|
|
|
- }).catch(res => {
|
|
|
- this.$refs.uTips.show({
|
|
|
- title: '获取商品列表失败',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- })
|
|
|
+ this.liveId = options.liveId
|
|
|
+ // NET.request(API.getLiveGoodsDetail + options.liveId, {}, 'GET').then(res => {
|
|
|
+ // this.goodsList = res.data
|
|
|
+ // }).catch(res => {
|
|
|
+ // this.$refs.uTips.show({
|
|
|
+ // title: '获取商品列表失败',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // })
|
|
|
},
|
|
|
onReady() {
|
|
|
let menuButtonObject = wx.getMenuButtonBoundingClientRect();
|
|
@@ -114,6 +116,14 @@
|
|
|
// 打开弹窗
|
|
|
showGoods() {
|
|
|
this.$refs.popup.open()
|
|
|
+ NET.request(API.getLiveGoodsDetail + this.liveId, {}, 'GET').then(res => {
|
|
|
+ this.goodsList = res.data
|
|
|
+ }).catch(res => {
|
|
|
+ this.$refs.uTips.show({
|
|
|
+ title: '获取商品列表失败',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
// 关闭弹窗
|
|
|
closeGoods() {
|