连云港陪玩陪聊
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-pipei-tongcheng-index...

1 line
16 KiB

2 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-pipei-tongcheng-index"],{"0086":function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.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}',""]),t.exports=n},"0c8e":function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a(e("2634")),o=a(e("2fdc")),s=null,c={data:function(){return{isSucess:1,info:{},count:10,userInfo:{},background:{background:"url(https://api.lyiyuan.cn/profile/upload/static/tongcheng-bg.png) center top no-repeat",backgroundSize:"100 auto"}}},onLoad:function(){this.userInfo=uni.getStorageSync("userInfo"),this.count=Math.floor(10*Math.random())+1},methods:{toPage:function(t){var n=this;1==t?(n.isSucess=2,s=setInterval((function(){0==n.count?(clearInterval(s),n.count=Math.floor(10*Math.random())+1,n.sameCitySpeedDating()):n.count--}),1e3)):2==t?this.toChat():3==t&&(n.isSucess=1,n.count=Math.floor(10*Math.random())+1)},toChat:function(){var t=this;return(0,o.default)((0,i.default)().mark((function n(){var e,a,o;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.findZegoToken({userId:uni.getStorageSync("userInfo").id,sellerId:t.info.id});case 2:e=n.sent,a=e.code,o=e.data,200==a&&(uni.setStorageSync("chatToken",o.token),uni.navigateTo({url:"/pages/users/chat/index?id="+t.info.id+"&roomId="+o.roomId}));case 6:case"end":return n.stop()}}),n)})))()},sameCitySpeedDating:function(){var t=this;return(0,o.default)((0,i.default)().mark((function n(){var e,a,o,s;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.sameCitySpeedDating({userId:uni.getStorageSync("userInfo").id,lat:uni.getStorageSync("jingweiInfo").latitude,lon:uni.getStorageSync("jingweiInfo").longitude,city:uni.getStorageSync("jingweiInfo").new_city?uni.getStorageSync("jingweiInfo").new_city:uni.getStorageSync("jingweiInfo").city});case 2:e=n.sent,a=e.code,o=e.data,s=e.msg,200==a?(t.isSucess=3,t.info=o):(t.isSucess=1,uni.showToast({title:s,position:"bottom",icon:"none"}));case 7: