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.
1 lines
16 KiB
1 lines
16 KiB
(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:case"end":return n.stop()}}),n)})))()}},onUnload:function(){clearInterval(s)}};n.default=c},1677:function(t,n,e){t.exports=e.p+"static/xin2.png"},"188f":function(t,n,e){"use strict";e.r(n);var a=e("0c8e"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"18bd":function(t,n,e){var a=e("0086");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("ddbc29aa",a,!0,{sourceMap:!1,shadowMode:!1})},"24b2":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var a={uIcon:e("1a39").default},i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{},[e("v-uni-view",{staticClass:"u-navbar",class:{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom},style:[t.navbarStyle]},[e("v-uni-view",{staticClass:"u-status-bar",style:{height:t.statusBarHeight+"px"}}),e("v-uni-view",{staticClass:"u-navbar-inner",style:[t.navbarInnerStyle]},[t.isBack?e("v-uni-view",{staticClass:"u-back-wrap",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goBack.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"u-icon-wrap"},[e("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize}})],1),t.backText?e("v-uni-view",{staticClass:"u-icon-wrap u-back-text u-line-1",style:[t.backTextStyle]},[t._v(t._s(t.backText))]):t._e()],1):t._e(),t.title?e("v-uni-view",{staticClass:"u-navbar-content-title",style:[t.titleStyle]},[e("v-uni-view",{staticClass:"u-title u-line-1",style:{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}},[t._v(t._s(t.title))])],1):t._e(),e("v-uni-view",{staticClass:"u-slot-content"},[t._t("default")],2),e("v-uni-view",{staticClass:"u-slot-right"},[t._t("right")],2)],1)],1),t.isFixed&&!t.immersive?e("v-uni-view",{staticClass:"u-navbar-placeholder",style:{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}}):t._e()],1)},o=[]},"2ec5":function(t,n,e){"use strict";t.exports=function(t,n){return n||(n={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),n.hash&&(t+=n.hash),/["'() \t\n]/.test(t)||n.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},4731:function(t,n,e){var a=e("af9d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=e("967d").default;i("6fb20ef7",a,!0,{sourceMap:!1,shadowMode:!1})},4839:function(t,n,e){t.exports=e.p+"static/tongcheng-xin.png"},"56ef":function(t,n,e){"use strict";e.r(n);var a=e("a50c"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"979a":function(t,n,e){"use strict";var a=e("4731"),i=e.n(a);i.a},"9a72":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var a={uNavbar:e("db36").default},i=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"tongcheng"},[a("v-uni-view",{staticClass:"tongcheng-navbar"},[a("u-navbar",{attrs:{title:"同城速配","back-icon-color":"#ffffff","title-color":"#ffffff",background:t.background}})],1),a("v-uni-view",{staticClass:"tongcheng-content"},[a("v-uni-view",{staticClass:"title"},[t._v("开始心电感应吧")]),a("v-uni-view",{staticClass:"desc"},[t._v("马上配发一个"+t._s(1==t.userInfo.sex?"小可爱":"小帅哥"))]),a("v-uni-view",{staticClass:"dian"},[t.isSucess<=2?a("v-uni-view",{staticClass:"info"},[a("v-uni-image",{attrs:{src:t.userInfo.faceImage?t.userInfo.faceImage:t.userInfo.img}}),a("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.userInfo.nickname))])],1):t._e(),3==t.isSucess?a("v-uni-view",{staticClass:"user"},[a("v-uni-view",{staticClass:"item"},[a("v-uni-image",{staticClass:"avatar",attrs:{src:t.userInfo.faceImage?t.userInfo.faceImage:t.userInfo.img}}),a("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.userInfo.nickname))]),a("v-uni-view",{staticClass:"sex",class:1==t.userInfo.sex?"nan":"nv"},[2==t.userInfo.sex?a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/icon-nv.png"}}):t._e(),1==t.userInfo.sex?a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/icon-nan.png"}}):t._e(),t._v(t._s(t.userInfo.age))],1)],1),a("v-uni-view",{staticClass:"items"},[a("v-uni-image",{attrs:{src:e("1677")}})],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-image",{staticClass:"avatar",attrs:{src:t.info.faceImage?t.info.faceImage:t.info.img}}),a("v-uni-view",{staticClass:"txt"},[t._v(t._s(t.info.nickname))]),a("v-uni-view",{staticClass:"sex",class:1==t.info.sex?"nan":"nv"},[2==t.info.sex?a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/icon-nv.png"}}):t._e(),1==t.info.sex?a("v-uni-image",{staticClass:"icon",attrs:{src:"/static/icon-nan.png"}}):t._e(),t._v(t._s(t.info.age))],1)],1)],1):t._e()],1)],1),1==t.isSucess?a("v-uni-view",{staticClass:"tongcheng-start",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toPage(1)}}},[t._v("开始匹配")]):t._e(),2==t.isSucess?a("v-uni-view",{staticClass:"tongcheng-start"},[t._v("匹配中")]):t._e(),3==t.isSucess?a("v-uni-view",{staticClass:"tongcheng-end"},[a("v-uni-view",{staticClass:"send",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toPage(2)}}},[t._v("发送消息")]),a("v-uni-view",{staticClass:"todo",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.toPage(3)}}},[t._v("继续探索")])],1):t._e()],1)},o=[]},a50c:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("64aa");var a=uni.getSystemInfoSync(),i={},o={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:i,statusBarHeight:a.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(a.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(a.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};n.default=o},af9d:function(t,n,e){var a=e("c86c"),i=e("2ec5"),o=e("4839");n=a(!1);var s=i(o);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/* 文章场景相关 */.tongcheng[data-v-74a62c1d]{background:#0d0b15 url(https://api.lyiyuan.cn/profile/upload/static/tongcheng-bg.png) top no-repeat;background-size:100% auto;overflow:hidden;min-height:100vh}.tongcheng-content[data-v-74a62c1d]{text-align:center}.tongcheng-content .title[data-v-74a62c1d]{font-weight:500;font-size:%?48?%;color:#fff;margin-top:%?120?%}.tongcheng-content .desc[data-v-74a62c1d]{font-weight:500;font-size:%?30?%;color:#fff;margin-top:%?30?%}.tongcheng-content .dian[data-v-74a62c1d]{width:%?555?%;height:%?410?%;background:url('+s+") top no-repeat;background-size:100% auto;margin:0 auto;margin-top:%?90?%;display:flex;align-items:center;justify-content:center}.tongcheng-content .dian .user[data-v-74a62c1d]{display:flex;justify-content:space-between;margin-top:%?-10?%;margin-left:%?20?%}.tongcheng-content .dian .user .items[data-v-74a62c1d]{width:%?150?%;margin-top:%?40?%}.tongcheng-content .dian .user .items uni-image[data-v-74a62c1d]{width:%?66?%;height:%?52?%}.tongcheng-content .dian .user .item[data-v-74a62c1d]{width:%?130?%}.tongcheng-content .dian .user .item .avatar[data-v-74a62c1d]{width:%?120?%;height:%?120?%;border-radius:50%}.tongcheng-content .dian .user .item .txt[data-v-74a62c1d]{font-weight:500;font-size:%?28?%;color:#fff;margin-top:%?10?%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow:hidden;width:%?150?%}.tongcheng-content .dian .user .item .sex[data-v-74a62c1d]{width:%?120?%;height:%?50?%;border-radius:%?50?%;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:%?24?%;color:#fff;margin:0 auto;margin-top:%?10?%}.tongcheng-content .dian .user .item .sex.nv[data-v-74a62c1d]{background-color:#d750f3}.tongcheng-content .dian .user .item .sex.nan[data-v-74a62c1d]{background-color:#6812a8}.tongcheng-content .dian .user .item .sex uni-image[data-v-74a62c1d]{width:%?22?%;height:%?22?%;margin-right:%?10?%}.tongcheng-content .dian .info[data-v-74a62c1d]{text-align:center;margin-left:%?60?%}.tongcheng-content .dian .info uni-image[data-v-74a62c1d]{width:%?180?%;height:%?180?%;border-radius:50%}.tongcheng-content .dian .info .txt[data-v-74a62c1d]{font-weight:500;font-size:%?30?%;color:#fff;margin-top:%?10?%}.tongcheng-start[data-v-74a62c1d]{position:absolute;left:50%;margin-left:%?-150?%;bottom:%?150?%;z-index:21;width:%?300?%;height:%?90?%;background:#232030;border-radius:%?90?%;line-height:%?90?%;text-align:center;font-weight:500;font-size:%?30?%;color:#fff}.tongcheng-end[data-v-74a62c1d]{width:100%;position:absolute;left:0;bottom:%?70?%;z-index:21}.tongcheng-end .send[data-v-74a62c1d]{width:%?300?%;height:%?90?%;background:#232030;border-radius:%?90?%;line-height:%?90?%;text-align:center;font-weight:500;font-size:%?30?%;color:#fff;margin:0 auto}.tongcheng-end .todo[data-v-74a62c1d]{width:%?300?%;height:%?90?%;line-height:%?90?%;text-align:center;font-weight:500;font-size:%?30?%;color:#fff;margin:0 auto}",""]),t.exports=n},b2bf:function(t,n,e){"use strict";var a=e("18bd"),i=e.n(a);i.a},db36:function(t,n,e){"use strict";e.r(n);var a=e("24b2"),i=e("56ef");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("b2bf");var s=e("828b"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"928a20ca",null,!1,a["a"],void 0);n["default"]=c.exports},f427:function(t,n,e){"use strict";e.r(n);var a=e("9a72"),i=e("188f");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("979a");var s=e("828b"),c=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"74a62c1d",null,!1,a["a"],void 0);n["default"]=c.exports}}]); |