连云港陪玩陪聊
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chunwan/unpackage/dist/build/web/static/js/pages-user-index.a93d13a8.js

1 line
102 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-index"],{"0086":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.u-navbar[data-v-928a20ca]{width:100%}.u-navbar-fixed[data-v-928a20ca]{position:fixed;left:0;right:0;top:0;z-index:991}.u-status-bar[data-v-928a20ca]{width:100%}.u-navbar-inner[data-v-928a20ca]{display:flex;flex-direction:row;justify-content:space-between;position:relative;align-items:center}.u-back-wrap[data-v-928a20ca]{display:flex;flex-direction:row;align-items:center;flex:1;flex-grow:0;padding:%?14?% %?14?% %?14?% %?24?%}.u-back-text[data-v-928a20ca]{padding-left:%?4?%;font-size:%?30?%}.u-navbar-content-title[data-v-928a20ca]{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1;position:absolute;left:0;right:0;height:%?60?%;text-align:center;flex-shrink:0}.u-navbar-centent-slot[data-v-928a20ca]{flex:1}.u-title[data-v-928a20ca]{line-height:%?60?%;font-size:%?32?%;flex:1}.u-navbar-right[data-v-928a20ca]{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.u-slot-content[data-v-928a20ca]{flex:1;display:flex;flex-direction:row;align-items:center}',""]),e.exports=t},"0a2d":function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("2634")),a=i(n("2fdc")),o=n("35fd"),s={data:function(){return{type:1,isShare:!1,isPopup:!1,show:!1,background:{background:"url(https://api.lyiyuan.cn/profile/upload/static/user-bg.png) center top no-repeat",backgroundSize:"100 auto"},userInfo:{},baseUrl:"",info:{},qrcode:"",poster:""}},onReady:function(){var e=this;uni.$on("closeSharePopup",(function(t){e.isPopup=!1,e.isShare=!1,e.baseUrl=e.$baseUrl})),uni.$on("openHaibaoPopup",(function(t){e.createPoster(),e.show=!0})),uni.getStorageSync("isOpen")&&uni.getStorageSync("userInfo").id&&this.watchSocket()},onShow:function(){this.getUserInfo()},methods:{watchSocket:function(){uni.onSocketMessage((function(e){var t=e.data?JSON.parse(e.data):{};"message"==t.topic&&t.type<=7&&uni.getStorageSync("userInfo").id==t.sellerId&&(1==t.userMsgVoice&&(console.log(222),uni.$emit("playAudio")),1==t.userMsgShock&&(console.log(2233),uni.vibrateLong({complete:function(e){console.log("success",e)}})),uni.showModal({title:"温馨提示",content:"来自"+t.userNickname+(1==t.type?"语音":2==t.type?"视频":3==t.type?"文字":4==t.type?"图片":5==t.type?"礼物":"搭讪")+"消息,请立即处理!",confirmText:"立即查看",success:function(e){e.confirm&&uni.navigateTo({url:"/pages/xiaoxi/index"})}}))}))},toCancle:function(){this.show=!1},createPoster:function(){var e=this;return(0,a.default)((0,r.default)().mark((function t(){var n,i,a,o;return(0,r.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e,t.next=3,n.$api.createPoster({userId:uni.getStorageSync("userInfo").id});case 3:i=t.sent,a=i.code,o=i.data,200==a&&(n.poster=o);case 7:case"end":return t.stop()}}),t)})))()},toSave:function(){this.poster&&(uni.showLoading({title:"正在保存"}),uni.downloadFile({url:this.poster,c