|
@@ -1,11 +1,10 @@
|
|
"use strict";
|
|
"use strict";
|
|
-var common_vendor = require("../../common/vendor.js");
|
|
|
|
-var api_live = require("../../api/live.js");
|
|
|
|
|
|
+const common_vendor = require("../../common/vendor.js");
|
|
|
|
+const api_live = require("../../api/live.js");
|
|
require("../../api/order.js");
|
|
require("../../api/order.js");
|
|
-var api_home = require("../../api/home.js");
|
|
|
|
-var common_assets = require("../../common/assets.js");
|
|
|
|
-require("../../common/request.js");
|
|
|
|
-var wsUrl = "ws://nd383294.natappfree.cc/app/webSocket";
|
|
|
|
|
|
+const api_home = require("../../api/home.js");
|
|
|
|
+const common_assets = require("../../common/assets.js");
|
|
|
|
+var wsUrl = "ws://live.test.ylrztop.com/prod-api/app/webSocket";
|
|
var pingpangTimes = null;
|
|
var pingpangTimes = null;
|
|
var isSocketOpen = false;
|
|
var isSocketOpen = false;
|
|
var socket = null;
|
|
var socket = null;
|
|
@@ -13,67 +12,131 @@ const _sfc_main = {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
boxHeight: 300,
|
|
boxHeight: 300,
|
|
|
|
+ //小黄车高度
|
|
isFollow: true,
|
|
isFollow: true,
|
|
liveViewData: {},
|
|
liveViewData: {},
|
|
liveViewers: [],
|
|
liveViewers: [],
|
|
|
|
+ //观众
|
|
likeName: 0,
|
|
likeName: 0,
|
|
hlsPlayer: null,
|
|
hlsPlayer: null,
|
|
|
|
+ // HLS播放器实例,
|
|
livingUrl: "",
|
|
livingUrl: "",
|
|
products: {},
|
|
products: {},
|
|
store: {},
|
|
store: {},
|
|
orderUser: {},
|
|
orderUser: {},
|
|
|
|
+ //正在购买
|
|
userType: 0,
|
|
userType: 0,
|
|
timestamp: "",
|
|
timestamp: "",
|
|
liveId: null,
|
|
liveId: null,
|
|
|
|
+ // userId: uni.getStorageSync("userInfo.userId"),
|
|
livedata: {},
|
|
livedata: {},
|
|
codeimg: "",
|
|
codeimg: "",
|
|
- placeholderText: "\u8BF4\u70B9\u4EC0\u4E48...",
|
|
|
|
|
|
+ placeholderText: "说点什么...",
|
|
isZoom: false,
|
|
isZoom: false,
|
|
|
|
+ //点赞按钮控制是否放大
|
|
userinfo: "",
|
|
userinfo: "",
|
|
- path: "http://v56c9b8e.natappfree.cc",
|
|
|
|
|
|
+ //用户信息
|
|
|
|
+ // path: 'http://192.168.10.166/dev-api', //余红奇
|
|
|
|
+ // path: 'http://v56c9b8e.natappfree.cc', //余红奇
|
|
|
|
+ path: "live.test.ylrztop.com/prod-api",
|
|
|
|
+ //余红奇
|
|
|
|
+ // path: 'http://192.168.10.170/dev-api', //陈果
|
|
value: "",
|
|
value: "",
|
|
talkdisabled: false,
|
|
talkdisabled: false,
|
|
|
|
+ //输入框是否禁用
|
|
autoplay: false,
|
|
autoplay: false,
|
|
|
|
+ //视频自动播放
|
|
showadd: false,
|
|
showadd: false,
|
|
talklist: [],
|
|
talklist: [],
|
|
scrollIntoView: "",
|
|
scrollIntoView: "",
|
|
bufferRate: 0,
|
|
bufferRate: 0,
|
|
|
|
+ //视频缓冲时间
|
|
playDuration: 0,
|
|
playDuration: 0,
|
|
|
|
+ //视频播放时间
|
|
videoContext: "",
|
|
videoContext: "",
|
|
- thistime: common_vendor.index.$u.timeFormat(new Date(), "yyyy-mm-dd hh:MM:ss"),
|
|
|
|
|
|
+ thistime: common_vendor.index.$u.timeFormat(/* @__PURE__ */ new Date(), "yyyy-mm-dd hh:MM:ss"),
|
|
upDown: true,
|
|
upDown: true,
|
|
|
|
+ //是否视频显示隐藏
|
|
isLongPress: false,
|
|
isLongPress: false,
|
|
|
|
+ // 是否长按
|
|
timeout: null,
|
|
timeout: null,
|
|
|
|
+ // 计时器
|
|
showWelcomeMessage: false,
|
|
showWelcomeMessage: false,
|
|
isSubmit: false,
|
|
isSubmit: false,
|
|
messageContent: "",
|
|
messageContent: "",
|
|
showziliao: false,
|
|
showziliao: false,
|
|
isScreen: true,
|
|
isScreen: true,
|
|
showAnswer: false,
|
|
showAnswer: false,
|
|
|
|
+ //展示答题
|
|
Answerlistall: {},
|
|
Answerlistall: {},
|
|
|
|
+ //所有题目
|
|
answerlist: {},
|
|
answerlist: {},
|
|
|
|
+ //当前题目
|
|
answerfrist: 0,
|
|
answerfrist: 0,
|
|
|
|
+ //当前选择
|
|
checkboxValue: [],
|
|
checkboxValue: [],
|
|
|
|
+ //多选数据
|
|
checkboxFormValue: "",
|
|
checkboxFormValue: "",
|
|
|
|
+ //多选数据
|
|
allAnswerLists: [],
|
|
allAnswerLists: [],
|
|
|
|
+ // 新增:存储所有题目列表
|
|
showAnswerred: false,
|
|
showAnswerred: false,
|
|
|
|
+ //展示红包答题
|
|
answerbtn: false,
|
|
answerbtn: false,
|
|
|
|
+ //答题按钮弹窗
|
|
redallAnswerLists: [],
|
|
redallAnswerLists: [],
|
|
|
|
+ //储存所有红包答题列表
|
|
redanswerAll: [],
|
|
redanswerAll: [],
|
|
|
|
+ //红包当前题目
|
|
redanswerList: [],
|
|
redanswerList: [],
|
|
|
|
+ //红包答题列表
|
|
redanswertips: [],
|
|
redanswertips: [],
|
|
|
|
+ //红包答题提示
|
|
shopping: false,
|
|
shopping: false,
|
|
|
|
+ //小黄车弹窗
|
|
scrollTop: 0,
|
|
scrollTop: 0,
|
|
|
|
+ //弹幕
|
|
old: {
|
|
old: {
|
|
scrollTop: 0
|
|
scrollTop: 0
|
|
},
|
|
},
|
|
liveData: {}
|
|
liveData: {}
|
|
|
|
+ //直播间点赞、关注、在线人数数据
|
|
|
|
+ // shopList: [{
|
|
|
|
+ // title: '史士昊老师四神汤健脾消食疗法',
|
|
|
|
+ // details: '看它来喘口气,小小震撼,',
|
|
|
|
+ // people: '45708 '
|
|
|
|
+ // },{
|
|
|
|
+ // title: '史士昊老师四神汤健脾消食疗法',
|
|
|
|
+ // details: '看它来喘口气,小小震撼,',
|
|
|
|
+ // people: '45708 '
|
|
|
|
+ // }],
|
|
|
|
+ // chatList: [{
|
|
|
|
+ // lable: '达人',
|
|
|
|
+ // name: '锅巴',
|
|
|
|
+ // txt: '中医调节身体确实'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // lable: '',
|
|
|
|
+ // name: '从芯开始',
|
|
|
|
+ // txt: '来了'
|
|
|
|
+ // }
|
|
|
|
+ // {
|
|
|
|
+ // lable: '',
|
|
|
|
+ // name: '北京的帅小伙:',
|
|
|
|
+ // txt: '来了来了,上茶'
|
|
|
|
+ // },
|
|
|
|
+ // {
|
|
|
|
+ // lable: '',
|
|
|
|
+ // name: '萍萍',
|
|
|
|
+ // txt: '来了'
|
|
|
|
+ // }
|
|
|
|
+ // ]
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
if (options.liveId) {
|
|
if (options.liveId) {
|
|
this.liveId = options.liveId;
|
|
this.liveId = options.liveId;
|
|
- console.log("\u63A5\u6536\u5230\u7684liveId:", this.liveId);
|
|
|
|
|
|
+ console.log("接收到的liveId:", this.liveId);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -81,6 +144,11 @@ const _sfc_main = {
|
|
return this.liveViewers.slice(0, 3);
|
|
return this.liveViewers.slice(0, 3);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // computed: {
|
|
|
|
+ // userId() {
|
|
|
|
+ // return this.$store.state.user.userId
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
mounted() {
|
|
mounted() {
|
|
this.getliveViewData();
|
|
this.getliveViewData();
|
|
this.intervalId = setInterval(() => {
|
|
this.intervalId = setInterval(() => {
|
|
@@ -121,11 +189,13 @@ const _sfc_main = {
|
|
url: "/pages_shop/store?liveId=" + this.liveId
|
|
url: "/pages_shop/store?liveId=" + this.liveId
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 去订单列表
|
|
goOrderList() {
|
|
goOrderList() {
|
|
common_vendor.index.navigateTo({
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages_shop/order"
|
|
url: "/pages_shop/order"
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 初始化HLS播放器
|
|
initHlsPlayer() {
|
|
initHlsPlayer() {
|
|
if (common_vendor.Hls.isSupported() && this.livingUrl) {
|
|
if (common_vendor.Hls.isSupported() && this.livingUrl) {
|
|
const video = document.getElementById("myVideo");
|
|
const video = document.getElementById("myVideo");
|
|
@@ -139,8 +209,9 @@ const _sfc_main = {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 视频错误处理
|
|
videoError(e) {
|
|
videoError(e) {
|
|
- console.error("\u89C6\u9891\u64AD\u653E\u9519\u8BEF:", e.detail.errMsg);
|
|
|
|
|
|
+ console.error("视频播放错误:", e.detail.errMsg);
|
|
if (this.livingUrl) {
|
|
if (this.livingUrl) {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.videoContext.play();
|
|
this.videoContext.play();
|
|
@@ -171,7 +242,7 @@ const _sfc_main = {
|
|
this.getLiveinformation();
|
|
this.getLiveinformation();
|
|
} else {
|
|
} else {
|
|
this.autoplay = false;
|
|
this.autoplay = false;
|
|
- this.placeholderText = "\u76F4\u64AD\u5F00\u59CB\u624D\u80FD\u53D1\u8A00\u8BA8\u8BBA";
|
|
|
|
|
|
+ this.placeholderText = "直播开始才能发言讨论";
|
|
this.talkdisabled = true;
|
|
this.talkdisabled = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -194,109 +265,139 @@ const _sfc_main = {
|
|
const decimalPart = Math.abs(num).toFixed(precision).split(".")[1];
|
|
const decimalPart = Math.abs(num).toFixed(precision).split(".")[1];
|
|
return (decimalPart == null ? void 0 : decimalPart.replace(/0+$/, "")) || "";
|
|
return (decimalPart == null ? void 0 : decimalPart.replace(/0+$/, "")) || "";
|
|
},
|
|
},
|
|
|
|
+ // 返回上一个页面并关闭WebSocket
|
|
goBack() {
|
|
goBack() {
|
|
common_vendor.index.navigateBack();
|
|
common_vendor.index.navigateBack();
|
|
closeWebSocket();
|
|
closeWebSocket();
|
|
},
|
|
},
|
|
|
|
+ // // 收藏商品
|
|
|
|
+ // collectProducts(){
|
|
|
|
+ // },
|
|
|
|
+ //直播间点赞、关注、在线人数数据
|
|
getliveViewData() {
|
|
getliveViewData() {
|
|
- api_live.getLiveViewData(this.liveId).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- this.liveViewData = res;
|
|
|
|
- } else {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ api_live.getLiveViewData(this.liveId).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.liveViewData = res;
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
+ //正在购买
|
|
getliveOrder() {
|
|
getliveOrder() {
|
|
- api_live.liveOrderUser(this.liveId).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- console.log("\u6B63\u5728\u8D2D\u4E70>>>>", res);
|
|
|
|
- this.orderUser = res;
|
|
|
|
- } else {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ api_live.liveOrderUser(this.liveId).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ console.log("正在购买>>>>", res);
|
|
|
|
+ this.orderUser = res;
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
+ //小黄车 店铺展示
|
|
getliveStore() {
|
|
getliveStore() {
|
|
let data = {
|
|
let data = {
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
page: 1
|
|
page: 1
|
|
};
|
|
};
|
|
- api_live.liveStore(this.liveId, data).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- console.log("\u5C0F\u9EC4\u8F66 \u5E97\u94FA\u5C55\u793A>>>>", res);
|
|
|
|
- this.products = res.data;
|
|
|
|
- } else {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ api_live.liveStore(this.liveId, data).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ console.log("小黄车 店铺展示>>>>", res);
|
|
|
|
+ this.products = res.data;
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
+ // 获取直播间信息接口
|
|
getLiveinformation() {
|
|
getLiveinformation() {
|
|
- api_live.getLiveInfo(this.liveId).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- console.log("\u83B7\u53D6\u76F4\u64AD\u95F4\u4FE1\u606F\u63A5\u53E3>>>>", res);
|
|
|
|
- this.livingUrl = res.livingUrl;
|
|
|
|
- } else {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ api_live.getLiveInfo(this.liveId).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ console.log("获取直播间信息接口>>>>", res);
|
|
|
|
+ this.livingUrl = res.livingUrl;
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
+ // 获取直播间用户
|
|
getliveUser() {
|
|
getliveUser() {
|
|
- api_live.getRecentLiveViewers(this.liveId).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- console.log("\u83B7\u53D6\u76F4\u64AD\u95F4\u7528\u6237>>>>", res);
|
|
|
|
- this.liveViewers = res.recentLiveViewers;
|
|
|
|
- } else {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ api_live.getRecentLiveViewers(this.liveId).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ console.log("获取直播间用户>>>>", res);
|
|
|
|
+ this.liveViewers = res.recentLiveViewers;
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
+ // 点赞
|
|
onLike() {
|
|
onLike() {
|
|
- api_live.liveDataLike(this.liveId).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- if (typeof res.msg === "number" || typeof res.msg === "string" && /^\d+$/.test(res.msg.trim())) {
|
|
|
|
- this.liveData++;
|
|
|
|
|
|
+ api_live.liveDataLike(this.liveId).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ if (typeof res.msg === "number" || typeof res.msg === "string" && /^\d+$/.test(res.msg.trim())) {
|
|
|
|
+ this.liveData++;
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
title: res.msg,
|
|
title: res.msg,
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
|
|
+ // 去购买,跳商品详情
|
|
goShop(item) {
|
|
goShop(item) {
|
|
- console.log("\u53BB\u8D2D\u4E70,\u8DF3\u5546\u54C1\u8BE6\u60C5", item);
|
|
|
|
|
|
+ console.log("去购买,跳商品详情", item);
|
|
common_vendor.index.navigateTo({
|
|
common_vendor.index.navigateTo({
|
|
url: "/pages_shop/goods?productId=" + item + "&liveId=" + this.liveId
|
|
url: "/pages_shop/goods?productId=" + item + "&liveId=" + this.liveId
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ // 收藏
|
|
onCollect(item) {
|
|
onCollect(item) {
|
|
console.log("item>>>", item.productId);
|
|
console.log("item>>>", item.productId);
|
|
common_vendor.index.setStorageSync("storeId", storeId);
|
|
common_vendor.index.setStorageSync("storeId", storeId);
|
|
@@ -305,32 +406,47 @@ const _sfc_main = {
|
|
productId: item.productId,
|
|
productId: item.productId,
|
|
storeId: this.store.storeId
|
|
storeId: this.store.storeId
|
|
};
|
|
};
|
|
- api_live.collectStore(data).then((res) => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- console.log("\u6536\u85CFlcollectStore>>>>", res);
|
|
|
|
- } else {
|
|
|
|
|
|
+ api_live.collectStore(data).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ console.log("收藏lcollectStore>>>>", res);
|
|
|
|
+ } else {
|
|
|
|
+ common_vendor.index.showToast({
|
|
|
|
+ title: res.msg,
|
|
|
|
+ icon: "none"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ },
|
|
|
|
+ // 关注
|
|
|
|
+ onFollow() {
|
|
|
|
+ api_live.follow(this.liveId).then(
|
|
|
|
+ (res) => {
|
|
|
|
+ this.isFollow = !this.isFollow;
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
title: res.msg,
|
|
title: res.msg,
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
|
|
+ },
|
|
|
|
+ (rej) => {
|
|
}
|
|
}
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- onFollow() {
|
|
|
|
- api_live.follow(this.liveId).then((res) => {
|
|
|
|
- this.isFollow = !this.isFollow;
|
|
|
|
- common_vendor.index.showToast({
|
|
|
|
- title: res.msg,
|
|
|
|
- icon: "none"
|
|
|
|
- });
|
|
|
|
- }, (rej) => {
|
|
|
|
- });
|
|
|
|
|
|
+ );
|
|
},
|
|
},
|
|
initTime() {
|
|
initTime() {
|
|
- const now = new Date();
|
|
|
|
|
|
+ const now = /* @__PURE__ */ new Date();
|
|
this.timestamp = now.getTime();
|
|
this.timestamp = now.getTime();
|
|
},
|
|
},
|
|
|
|
+ // initWebSocket() {
|
|
|
|
+ // const liveWS = new LiveWS('ws://your-server.com', 123, 456);
|
|
|
|
+ // // 从 URL 中解析 timestamp
|
|
|
|
+ // const urlParams = new URL(liveWS.url).searchParams;
|
|
|
|
+ // this.timestamp = urlParams.get('timestamp');
|
|
|
|
+ // // console.log('Timestamp:', timestamp);
|
|
|
|
+ // },
|
|
|
|
+ // 弹幕滚动
|
|
lowerChat: function(e) {
|
|
lowerChat: function(e) {
|
|
console.log(e);
|
|
console.log(e);
|
|
},
|
|
},
|
|
@@ -340,6 +456,7 @@ const _sfc_main = {
|
|
},
|
|
},
|
|
loadmore() {
|
|
loadmore() {
|
|
},
|
|
},
|
|
|
|
+ // 弹幕
|
|
scrollchat() {
|
|
scrollchat() {
|
|
},
|
|
},
|
|
noredanswer() {
|
|
noredanswer() {
|
|
@@ -347,7 +464,7 @@ const _sfc_main = {
|
|
this.showAnswer = !this.this.showAnswer;
|
|
this.showAnswer = !this.this.showAnswer;
|
|
} else {
|
|
} else {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u6682\u65E0\u9898\u76EE",
|
|
|
|
|
|
+ title: "暂无题目",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -377,7 +494,7 @@ const _sfc_main = {
|
|
this.answerlist.content = JSON.parse(this.answerlist.content);
|
|
this.answerlist.content = JSON.parse(this.answerlist.content);
|
|
} else {
|
|
} else {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u5DF2\u662F\u6700\u540E\u4E00\u9898",
|
|
|
|
|
|
+ title: "已是最后一题",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
this.showAnswer = false;
|
|
this.showAnswer = false;
|
|
@@ -462,6 +579,7 @@ const _sfc_main = {
|
|
closeanswer() {
|
|
closeanswer() {
|
|
this.answerbtn = !this.answerbtn;
|
|
this.answerbtn = !this.answerbtn;
|
|
},
|
|
},
|
|
|
|
+ // 关闭小黄车
|
|
closeshop() {
|
|
closeshop() {
|
|
this.shopping = !this.shopping;
|
|
this.shopping = !this.shopping;
|
|
},
|
|
},
|
|
@@ -470,9 +588,10 @@ const _sfc_main = {
|
|
this.isLongPress = true;
|
|
this.isLongPress = true;
|
|
common_vendor.index.saveImageToPhotosAlbum({
|
|
common_vendor.index.saveImageToPhotosAlbum({
|
|
filePath: this.livedata.qwQrCode,
|
|
filePath: this.livedata.qwQrCode,
|
|
|
|
+ // 图片的本地路径或网络路径
|
|
success: () => {
|
|
success: () => {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u4FDD\u5B58\u6210\u529F"
|
|
|
|
|
|
+ title: "保存成功"
|
|
});
|
|
});
|
|
},
|
|
},
|
|
fail: () => {
|
|
fail: () => {
|
|
@@ -488,12 +607,41 @@ const _sfc_main = {
|
|
clearTimeout(this.timeout);
|
|
clearTimeout(this.timeout);
|
|
this.isLongPress = false;
|
|
this.isLongPress = false;
|
|
},
|
|
},
|
|
|
|
+ // 触摸开始
|
|
handleTouchStart() {
|
|
handleTouchStart() {
|
|
this.isZoom = true;
|
|
this.isZoom = true;
|
|
},
|
|
},
|
|
|
|
+ // 触摸结束
|
|
handleTouchEnd() {
|
|
handleTouchEnd() {
|
|
this.isZoom = false;
|
|
this.isZoom = false;
|
|
},
|
|
},
|
|
|
|
+ // getliving() {
|
|
|
|
+ // const param = {
|
|
|
|
+ // id: this.liveId
|
|
|
|
+ // }
|
|
|
|
+ // getlive(param).then(res => {
|
|
|
|
+ // if (res.code == 200) {
|
|
|
|
+ // this.livedata = res.data
|
|
|
|
+ // this.codeimg = res.data.qwQrCode
|
|
|
|
+ // if (this.livedata.status == 1) {
|
|
|
|
+ // this.autoplay = true
|
|
|
|
+ // this.videoContext.seek(this.livedata.nowDuration)
|
|
|
|
+ // // console.log(this.autoplay)
|
|
|
|
+ // } else {
|
|
|
|
+ // this.autoplay = false
|
|
|
|
+ // this.placeholderText = "直播开始才能发言讨论"
|
|
|
|
+ // this.talkdisabled = true
|
|
|
|
+ // }
|
|
|
|
+ // console.log(this.autoplay)
|
|
|
|
+ // } else {
|
|
|
|
+ // uni.showToast({
|
|
|
|
+ // title: res.msg,
|
|
|
|
+ // icon: 'none',
|
|
|
|
+ // duration: 2000
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
getEWechatSdk() {
|
|
getEWechatSdk() {
|
|
},
|
|
},
|
|
closeWebSocket() {
|
|
closeWebSocket() {
|
|
@@ -514,9 +662,18 @@ const _sfc_main = {
|
|
},
|
|
},
|
|
initSocket() {
|
|
initSocket() {
|
|
this.userinfo = JSON.parse(common_vendor.index.getStorageSync("userInfo"));
|
|
this.userinfo = JSON.parse(common_vendor.index.getStorageSync("userInfo"));
|
|
- let signature = common_vendor.CryptoJS.HmacSHA256(common_vendor.CryptoJS.enc.Utf8.parse(this.liveId.toString() + this.userinfo.userId + this.userType + this.timestamp), common_vendor.CryptoJS.enc.Utf8.parse(this.timestamp)).toString(common_vendor.CryptoJS.enc.Hex);
|
|
|
|
|
|
+ let signature = common_vendor.CryptoJS.HmacSHA256(
|
|
|
|
+ common_vendor.CryptoJS.enc.Utf8.parse(this.liveId.toString() + this.userinfo.userId + this.userType + this.timestamp),
|
|
|
|
+ common_vendor.CryptoJS.enc.Utf8.parse(this.timestamp)
|
|
|
|
+ ).toString(common_vendor.CryptoJS.enc.Hex);
|
|
var that = this;
|
|
var that = this;
|
|
socket = common_vendor.index.connectSocket({
|
|
socket = common_vendor.index.connectSocket({
|
|
|
|
+ // url: wsUrl+"?userId=40486&liveId=2",
|
|
|
|
+ // url: wsUrl + "?userId=" + this.userid + "&liveId=" +
|
|
|
|
+ // this.liveId+"&AppToken="+'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiI0IiwiaWF0IjoxNzQwNzIxMDQ1LCJleHAiOjE3NDEzMjU4NDV9.PgS83JTMSJgVFD6vGAhUsEPbS6Az4yMyX8wVug61TZNTB3092CtvANo-AB9ZG4NdSBLgLrf4litM3vvTk-FK0g',
|
|
|
|
+ //
|
|
|
|
+ // url: wsUrl + "?userId=" + this.userId + "&liveId=" + this.liveId + "&AppToken=" + uni
|
|
|
|
+ // .getStorageSync('AppToken'),
|
|
url: wsUrl + "?userId=" + this.userinfo.userId + "&liveId=" + this.liveId + "&userType=" + this.userType + "×tamp=" + this.timestamp + "&signature=" + signature,
|
|
url: wsUrl + "?userId=" + this.userinfo.userId + "&liveId=" + this.liveId + "&userType=" + this.userType + "×tamp=" + this.timestamp + "&signature=" + signature,
|
|
multiple: true,
|
|
multiple: true,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
@@ -530,7 +687,7 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
const redata = JSON.parse(res2.data);
|
|
const redata = JSON.parse(res2.data);
|
|
- console.log("WebSocket\u62FF\u5230\u7684\u4E1C\u897F", redata);
|
|
|
|
|
|
+ console.log("WebSocket拿到的东西", redata);
|
|
this.talklist.push(redata.data);
|
|
this.talklist.push(redata.data);
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.scrollIntoView = `list_${this.talklist.length - 1}`;
|
|
this.scrollIntoView = `list_${this.talklist.length - 1}`;
|
|
@@ -562,18 +719,18 @@ const _sfc_main = {
|
|
});
|
|
});
|
|
common_vendor.index.onSocketOpen(() => {
|
|
common_vendor.index.onSocketOpen(() => {
|
|
isSocketOpen = true;
|
|
isSocketOpen = true;
|
|
- console.log("WebSocket\u8FDE\u63A5\u5DF2\u6253\u5F00\uFF01!");
|
|
|
|
|
|
+ console.log("WebSocket连接已打开!!");
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u63D2\u4EF6\u5DF2\u6253\u5F00",
|
|
|
|
|
|
+ title: "插件已打开",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
});
|
|
});
|
|
common_vendor.index.onSocketClose(() => {
|
|
common_vendor.index.onSocketClose(() => {
|
|
isSocketOpen = false;
|
|
isSocketOpen = false;
|
|
clearInterval(pingpangTimes);
|
|
clearInterval(pingpangTimes);
|
|
- console.log("WebSocket\u8FDE\u63A5\u5DF2\u5173\u95ED\uFF01");
|
|
|
|
|
|
+ console.log("WebSocket连接已关闭!");
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u63D2\u4EF6\u79BB\u7EBF",
|
|
|
|
|
|
+ title: "插件离线",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
that.reConnect();
|
|
that.reConnect();
|
|
@@ -581,13 +738,13 @@ const _sfc_main = {
|
|
common_vendor.index.onSocketError(() => {
|
|
common_vendor.index.onSocketError(() => {
|
|
isSocketOpen = false;
|
|
isSocketOpen = false;
|
|
clearInterval(pingpangTimes);
|
|
clearInterval(pingpangTimes);
|
|
- console.log("WebSocket\u8FDE\u63A5\u6253\u5F00\u5931\u8D25");
|
|
|
|
|
|
+ console.log("WebSocket连接打开失败");
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u63D2\u4EF6\u79BB\u7EBF",
|
|
|
|
|
|
+ title: "插件离线",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
common_vendor.index.showModal({
|
|
common_vendor.index.showModal({
|
|
- content: "\u804A\u5929\u8FDE\u63A5\u5931\u8D25\u662F\u5426\u91CD\u65B0\u5C1D\u8BD5\u8FDE\u63A5",
|
|
|
|
|
|
+ content: "聊天连接失败是否重新尝试连接",
|
|
success() {
|
|
success() {
|
|
that.reConnect();
|
|
that.reConnect();
|
|
}
|
|
}
|
|
@@ -607,18 +764,18 @@ const _sfc_main = {
|
|
};
|
|
};
|
|
if (this.value == "") {
|
|
if (this.value == "") {
|
|
common_vendor.index.showToast({
|
|
common_vendor.index.showToast({
|
|
- title: "\u4E0D\u80FD\u53D1\u9001\u7A7A\u6D88\u606F",
|
|
|
|
|
|
+ title: "不能发送空消息",
|
|
icon: "none"
|
|
icon: "none"
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
socket.send({
|
|
socket.send({
|
|
data: JSON.stringify(data),
|
|
data: JSON.stringify(data),
|
|
success: () => {
|
|
success: () => {
|
|
- console.log("\u53D1\u9001\u6210\u529F");
|
|
|
|
|
|
+ console.log("发送成功");
|
|
this.value = "";
|
|
this.value = "";
|
|
},
|
|
},
|
|
fail: () => {
|
|
fail: () => {
|
|
- console.log("\u53D1\u9001\u5931\u8D25");
|
|
|
|
|
|
+ console.log("发送失败");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -643,12 +800,12 @@ if (!Math) {
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
|
|
a: common_vendor.o((...args) => $options.goBack && $options.goBack(...args)),
|
|
- b: common_assets._imports_0,
|
|
|
|
|
|
+ b: common_assets._imports_0$2,
|
|
c: common_vendor.p({
|
|
c: common_vendor.p({
|
|
src: $data.livedata.liveImgUrl,
|
|
src: $data.livedata.liveImgUrl,
|
|
size: "32"
|
|
size: "32"
|
|
}),
|
|
}),
|
|
- d: common_vendor.t($data.livedata.liveName ? $data.livedata.liveName : "\u82B3\u534E\u672A\u6765"),
|
|
|
|
|
|
+ d: common_vendor.t($data.livedata.liveName ? $data.livedata.liveName : "芳华未来"),
|
|
e: common_vendor.t($data.liveViewData.follow || $data.liveViewData.follow === 0 ? $data.liveViewData.follow : 0),
|
|
e: common_vendor.t($data.liveViewData.follow || $data.liveViewData.follow === 0 ? $data.liveViewData.follow : 0),
|
|
f: $data.isFollow
|
|
f: $data.isFollow
|
|
}, $data.isFollow ? {
|
|
}, $data.isFollow ? {
|
|
@@ -664,15 +821,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
}),
|
|
}),
|
|
j: common_vendor.t($data.liveViewData.online),
|
|
j: common_vendor.t($data.liveViewData.online),
|
|
k: common_vendor.o(($event) => $options.onLike()),
|
|
k: common_vendor.o(($event) => $options.onLike()),
|
|
- l: common_vendor.t($data.liveViewData.like),
|
|
|
|
- m: common_vendor.o(($event) => $options.goStore()),
|
|
|
|
- n: common_vendor.t($data.orderUser.userName ? $options.maskString($data.orderUser.userName) : ""),
|
|
|
|
- o: common_vendor.t($data.orderUser.count || 0),
|
|
|
|
- p: $data.livingUrl,
|
|
|
|
- q: $data.autoplay,
|
|
|
|
- r: common_vendor.o((...args) => $options.videoError && $options.videoError(...args)),
|
|
|
|
- s: $data.isScreen ? "100vh" : "",
|
|
|
|
- t: common_vendor.f($data.talklist, (item, index, i0) => {
|
|
|
|
|
|
+ l: common_assets._imports_1,
|
|
|
|
+ m: common_vendor.t($data.liveViewData.like),
|
|
|
|
+ n: common_assets._imports_2,
|
|
|
|
+ o: common_vendor.o(($event) => $options.goStore()),
|
|
|
|
+ p: common_assets._imports_3,
|
|
|
|
+ q: common_assets._imports_4,
|
|
|
|
+ r: common_vendor.t($data.orderUser.userName ? $options.maskString($data.orderUser.userName) : ""),
|
|
|
|
+ s: common_vendor.t($data.orderUser.count || 0),
|
|
|
|
+ t: $data.livingUrl,
|
|
|
|
+ v: $data.autoplay,
|
|
|
|
+ w: common_vendor.o((...args) => $options.videoError && $options.videoError(...args)),
|
|
|
|
+ x: $data.isScreen ? "100vh" : "",
|
|
|
|
+ y: common_vendor.f($data.talklist, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.msg),
|
|
a: common_vendor.t(item.msg),
|
|
b: item.index,
|
|
b: item.index,
|
|
@@ -680,8 +841,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
d: item.cmd == "announcement"
|
|
d: item.cmd == "announcement"
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
- v: common_vendor.t($data.messageContent),
|
|
|
|
- w: common_vendor.f($data.talklist, (item, index, i0) => {
|
|
|
|
|
|
+ z: common_vendor.t($data.messageContent),
|
|
|
|
+ A: common_vendor.f($data.talklist, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.nickName),
|
|
a: common_vendor.t(item.nickName),
|
|
b: common_vendor.t(item.msg),
|
|
b: common_vendor.t(item.msg),
|
|
@@ -690,9 +851,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
e: item.cmd == "sendMsg"
|
|
e: item.cmd == "sendMsg"
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
- x: $data.showWelcomeMessage
|
|
|
|
|
|
+ B: $data.showWelcomeMessage
|
|
}, $data.showWelcomeMessage ? {
|
|
}, $data.showWelcomeMessage ? {
|
|
- y: common_vendor.f($data.talklist, (item, index, i0) => {
|
|
|
|
|
|
+ C: common_vendor.f($data.talklist, (item, index, i0) => {
|
|
return {
|
|
return {
|
|
a: common_vendor.t(item.nickName),
|
|
a: common_vendor.t(item.nickName),
|
|
b: common_vendor.t(item.msg),
|
|
b: common_vendor.t(item.msg),
|
|
@@ -701,13 +862,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
e: item.cmd == "entry" || item.cmd == "out"
|
|
e: item.cmd == "entry" || item.cmd == "out"
|
|
};
|
|
};
|
|
}),
|
|
}),
|
|
- z: common_vendor.t($data.messageContent)
|
|
|
|
|
|
+ D: common_vendor.t($data.messageContent)
|
|
} : {}, {
|
|
} : {}, {
|
|
- A: $data.scrollIntoView,
|
|
|
|
- B: common_vendor.o($options.sendMsg),
|
|
|
|
- C: common_vendor.o($options.sendMsg),
|
|
|
|
- D: common_vendor.o(($event) => $data.value = $event),
|
|
|
|
- E: common_vendor.p({
|
|
|
|
|
|
+ E: $data.scrollIntoView,
|
|
|
|
+ F: common_vendor.o($options.sendMsg),
|
|
|
|
+ G: common_vendor.o($options.sendMsg),
|
|
|
|
+ H: common_vendor.o(($event) => $data.value = $event),
|
|
|
|
+ I: common_vendor.p({
|
|
placeholder: $data.placeholderText,
|
|
placeholder: $data.placeholderText,
|
|
border: "none",
|
|
border: "none",
|
|
customStyle: "font-size:24rpx;",
|
|
customStyle: "font-size:24rpx;",
|
|
@@ -716,30 +877,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
placeholderStyle: "color:#e7e7e7",
|
|
placeholderStyle: "color:#e7e7e7",
|
|
modelValue: $data.value
|
|
modelValue: $data.value
|
|
}),
|
|
}),
|
|
- F: common_vendor.o(($event) => $data.shopping = !$data.shopping),
|
|
|
|
- G: common_vendor.o(($event) => $data.showziliao = !$data.showziliao),
|
|
|
|
- H: common_vendor.o(($event) => $data.showziliao = !$data.showziliao),
|
|
|
|
- I: common_vendor.p({
|
|
|
|
|
|
+ J: common_assets._imports_5,
|
|
|
|
+ K: common_vendor.o(($event) => $data.shopping = !$data.shopping),
|
|
|
|
+ L: common_assets._imports_6,
|
|
|
|
+ M: common_vendor.o(($event) => $data.showziliao = !$data.showziliao),
|
|
|
|
+ N: common_vendor.o(($event) => $data.showziliao = !$data.showziliao),
|
|
|
|
+ O: common_vendor.p({
|
|
name: "close",
|
|
name: "close",
|
|
size: "18"
|
|
size: "18"
|
|
}),
|
|
}),
|
|
- J: $data.livedata.liveDesc,
|
|
|
|
- K: common_vendor.o($options.closes),
|
|
|
|
- L: common_vendor.p({
|
|
|
|
|
|
+ P: $data.livedata.liveDesc,
|
|
|
|
+ Q: common_vendor.o($options.closes),
|
|
|
|
+ R: common_vendor.p({
|
|
show: $data.showziliao,
|
|
show: $data.showziliao,
|
|
round: "20",
|
|
round: "20",
|
|
bgColor: "#fffee1"
|
|
bgColor: "#fffee1"
|
|
}),
|
|
}),
|
|
- M: common_vendor.p({
|
|
|
|
|
|
+ S: common_vendor.p({
|
|
src: $data.livedata.liveImgUrl,
|
|
src: $data.livedata.liveImgUrl,
|
|
size: "36"
|
|
size: "36"
|
|
}),
|
|
}),
|
|
- N: common_assets._imports_1,
|
|
|
|
- O: common_assets._imports_2,
|
|
|
|
- P: common_vendor.o((...args) => $options.onCollect && $options.onCollect(...args)),
|
|
|
|
- Q: common_assets._imports_3,
|
|
|
|
- R: common_vendor.o((...args) => $options.goOrderList && $options.goOrderList(...args)),
|
|
|
|
- S: common_vendor.f($data.products, (item, index, i0) => {
|
|
|
|
|
|
+ T: common_assets._imports_0$1,
|
|
|
|
+ U: common_assets._imports_10,
|
|
|
|
+ V: common_vendor.o((...args) => $options.onCollect && $options.onCollect(...args)),
|
|
|
|
+ W: common_assets._imports_9,
|
|
|
|
+ X: common_vendor.o((...args) => $options.goOrderList && $options.goOrderList(...args)),
|
|
|
|
+ Y: common_vendor.f($data.products, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
return common_vendor.e({
|
|
a: item.imgUrl,
|
|
a: item.imgUrl,
|
|
b: common_vendor.t(index + 1),
|
|
b: common_vendor.t(index + 1),
|
|
@@ -748,26 +911,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
e: common_vendor.t(item.sales),
|
|
e: common_vendor.t(item.sales),
|
|
f: common_vendor.t(Math.trunc(item.price)),
|
|
f: common_vendor.t(Math.trunc(item.price)),
|
|
g: common_vendor.t($options.getPureDecimal(item.price) ? $options.getPureDecimal(item.price) : "00"),
|
|
g: common_vendor.t($options.getPureDecimal(item.price) ? $options.getPureDecimal(item.price) : "00"),
|
|
- h: common_vendor.o(($event) => $options.onCollect(item)),
|
|
|
|
|
|
+ h: common_vendor.o(($event) => $options.onCollect(item), index),
|
|
i: item.status == 1
|
|
i: item.status == 1
|
|
}, item.status == 1 ? {
|
|
}, item.status == 1 ? {
|
|
- j: common_vendor.o(($event) => $options.goShop(item.productId))
|
|
|
|
|
|
+ j: common_vendor.o(($event) => $options.goShop(item.productId), index)
|
|
} : item.status == 0 ? {
|
|
} : item.status == 0 ? {
|
|
- l: common_vendor.o(($event) => $options.goShop(item.productId))
|
|
|
|
|
|
+ l: common_vendor.o(($event) => $options.goShop(item.productId), index)
|
|
} : {}, {
|
|
} : {}, {
|
|
k: item.status == 0,
|
|
k: item.status == 0,
|
|
m: index
|
|
m: index
|
|
});
|
|
});
|
|
}),
|
|
}),
|
|
- T: $data.boxHeight + "px",
|
|
|
|
- U: common_vendor.o($options.closeshop),
|
|
|
|
- V: common_vendor.o($options.open),
|
|
|
|
- W: common_vendor.p({
|
|
|
|
|
|
+ Z: common_assets._imports_10,
|
|
|
|
+ aa: $data.boxHeight + "px",
|
|
|
|
+ ab: common_vendor.o($options.closeshop),
|
|
|
|
+ ac: common_vendor.o($options.open),
|
|
|
|
+ ad: common_vendor.p({
|
|
show: $data.shopping,
|
|
show: $data.shopping,
|
|
round: "20rpx",
|
|
round: "20rpx",
|
|
bgColor: "#f3f5f9"
|
|
bgColor: "#f3f5f9"
|
|
})
|
|
})
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-55719d20"], ["__file", "C:/Users/Administrator/Desktop/\u9879\u76EE/\u76F4\u64AD/liveH5-v3/pages/home/living.vue"]]);
|
|
|
|
|
|
+const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-471975a0"]]);
|
|
wx.createPage(MiniProgramPage);
|
|
wx.createPage(MiniProgramPage);
|