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
14 KiB
1 lines
14 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-subPages2-blindDate-recommend"],{"11ea":function(t,e,a){"use strict";var i=a("4ea4");a("d81d"),a("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2c7c")),o=i(a("6f85")),r={data:function(){return{recommendList:[],currentPage:1,totalPage:1,listlen:1,tipsText:"暂无推荐",currentIndex:0,percent:0,touchY:0}},components:{TabBars:o.default},onLoad:function(){var t=this;t.getRecommendList(),uni.getSystemInfo({success:function(e){t.percent=(e.windowWidth/750*850).toFixed(0),t.touchY=(e.windowWidth/750*180).toFixed(0)}})},watch:{listlen:function(t){0==t&&this.currentPage<=this.totalPage?(this.getRecommendList(),console.log("请求下一页")):0==t&&this.currentPage>this.totalPage&&(this.currentPage=1,this.getRecommendList(),console.log("重新请求第一页"))}},computed:{cRecommendList:function(){var t=this;if(this.recommendList.length)return this.recommendList.map((function(e){return e.touchX=t.percent,e.likeOpacity=0,e.closeOpacity=0,e.lastX=0,e.lastY=0,console.log(e,"item值"),e}))}},methods:{getRecommendList:function(){var t=this;n.default._post_form("&p=dating&do=recommendMember",{page:t.currentPage},(function(e){t.recommendList=e.data.list,t.currentIndex=0,t.listlen=t.recommendList.length,t.currentPage++,t.totalPage=e.data.total}),!1,(function(){}))},touchend:function(t,e){if(this.cRecommendList[t]){if(this.cRecommendList[t].likeOpacity>.5||this.cRecommendList[t].closeOpacity>.5){if(this.cRecommendList[t].touchX=this.cRecommendList[t].lastX,this.listlen--,this.currentIndex=t+1,this.cRecommendList[t].likeOpacity>.5){n.default._post_form("&p=dating&do=collectionOperation&id=".concat(e),{id:e,is_cancel:2},(function(t){}),!1,(function(){}))}}else this.cRecommendList[t].touchX=this.cRecommendList[t].touchX==this.percent?Number(this.percent)+Number(.01):this.percent;this.$forceUpdate()}},onChange:function(t,e){if(this.cRecommendList[e]){t.detail.x<this.percent?this.cRecommendList[e].lastX=0:t.detail.x>this.percent&&(this.cRecommendList[e].lastX=1400);var a=t.detail.x-this.percent;a<0?(this.cRecommendList[e].likeOpacity=0,this.cRecommendList[e].closeOpacity=(-.05*a>1?1:-.05*a).toFixed(2)):a>0?(this.cRecommendList[e].closeOpacity=0,this.cRecommendList[e].likeOpacity=(.05*a>1?1:.05*a).toFixed(2)):(this.cRecommendList[e].closeOpacity=0,this.cRecommendList[e].likeOpacity=0),this.$forceUpdate()}},toDetail:function(t){n.default.navigationTo({url:"pages/subPages2/blindDate/member/detail?id=".concat(t)})}}};e.default=r},2533:function(t,e,a){"use strict";a.r(e);var i=a("11ea"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"266a":function(t,e,a){var i=a("dde5");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("26196458",i,!0,{sourceMap:!1,shadowMode:!1})},"33ef":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.TabBarsData?a("v-uni-view",[a("v-uni-view",{staticClass:"diy-tabbar",style:{background:t.TabBarsData?t.TabBarsData.style.bgcolor:"#ffffff","padding-bottom":t.isPadding?"20px":""}},t._l(t.TabBarsData.data,(function(e,i){return a("v-uni-view",{key:i,staticClass:"tabbar-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onTabItem(e.linkurl,e.name,i)}}},["1"===t.TabBarsData.params.navstyle?a("v-uni-view",[a("v-uni-image",{staticClass:"image",attrs:{src:e.imgurl}})],1):t._e(),"0"===t.TabBarsData.params.navstyle?a("v-uni-view",["pages/subPages2/homemaking/postDemand/postDemand"==e.page_path?a("v-uni-view",{staticClass:"tabbar-sever"},[a("v-uni-image",{staticClass:"tabbar-severImg",attrs:{src:t.imgfixUrls+"homemakingImg/enterCheck.png",mode:""}})],1):a("v-uni-view",[a("v-uni-view",{staticClass:"iconfont tabbar-item-icon",class:e.iconclass,style:t.current===i?"color:"+t.TabBarsData.style.iconcoloron:"color:"+t.TabBarsData.style.iconcolor}),a("v-uni-view",{staticClass:"f-24",style:t.current===i?"color:"+t.TabBarsData.style.textcoloron:"color:"+t.TabBarsData.style.textcolor},[t._v(t._s(e.text))])],1)],1):t._e(),"2"===t.TabBarsData.params.navstyle?a("v-uni-view",{staticClass:"navstyle-3-item"},[a("v-uni-view",{staticClass:"navstyle-image",style:{"background-image":t.current===i?"url("+e.select_img+")":"url("+e.default_img+")"}}),a("v-uni-view",{staticClass:"f-24 t-c",style:t.current===i?"color:"+t.TabBarsData.style.textcoloron:"color:"+t.TabBarsData.style.textcolor},[t._v(t._s(e.text))])],1):t._e()],1)})),1)],1):t._e()},o=[]},"3c24":function(t,e,a){"use strict";a.r(e);var i=a("58fc"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"58fc":function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("c740"),a("caad"),a("c975"),a("a9e3"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2c7c")),o={data:function(){return{current:0,isPadding:null,menu:null}},props:{tabBarAct:{type:Number,default:function(){return 0}},tabBarData:{default:function(){return null}},pageType:{type:String,default:function(){return""}},pageId:{type:String,default:function(){return""}},menuList:{default:function(){return""}}},mounted:function(){var t=this;t.current=uni.getStorageSync("tabbarindex"),uni.getSystemInfo({success:function(e){var a=e.model,i=["iPhone10,3","iPhone10,6","iPhone11,8","iPhone11,2","iPhone11,6"];t.isPadding=i.includes(a)||-1!==a.indexOf("iPhone X")||-1!==a.indexOf("iPhone12")}}),t.getbtmNavBar()},methods:{onTabItem:function(t,e,a){if(uni.setStorageSync("tabbarindex",a),-1!=t.indexOf("indet"))return n.default.navigationToH5(!1,"".concat(n.default.base,"#/").concat(t)),void window.location.reload();n.default.navigationTo({url:t})},getbtmNavBar:function(){var t=this,e={};if(t.pageType&&(e={type:t.pageType}),t.pageId&&Object.assign(e,{id:t.pageId}),"draw"==t.pageType){t.setData({menu:t.tabBarData});var a=getCurrentPages(),i=a[a.length-1],o=i.route||i.__route__,r=[],c=!1;for(var s in r=t.menu.data,r)r[s].page_path.split("?")[0]==o&&(c=!0);c||(uni.removeStorageSync("tabbarindex"),t.current=0)}else n.default._post_form("&do=BottomMenu",e,(function(e){t.setData({menu:e.data.data});var a=getCurrentPages(),i=a[a.length-1],n=i.route||i.__route__,o=[],r=!1;for(var c in o=t.menu.data,o)o[c].page_path.split("?")[0]==n&&(r=!0);r||(uni.removeStorageSync("tabbarindex"),t.current=0)}))}},computed:{TabBarsData:function(){var t,e=getCurrentPages(),a=e[e.length-1],i=a.route||a.__route__,n={data:this.tabBarData&&this.tabBarData.length>0?this.tabBarData:this.menu},o=a.$mp.query;if(n.data){var r=[];for(var c in n.data.data)r.push(n.data.data[c]);return"pages/mainPages/index/diypage"===i?(i=i+"?i="+o.i+(o["aid"]?"&aid="+o["aid"]:"")+(o["id"]?"&id="+o["id"]:"")+"&type="+o["type"],t=r.findIndex((function(t){return t.linkurl===i})),this.current=t):(t=r.findIndex((function(t){return t.linkurl.split("?")[0]===i})),this.current=t),n.data.data=r,n.data}}}};e.default=o},"65f2":function(t,e,a){var i=a("bf9b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("4912a71d",i,!0,{sourceMap:!1,shadowMode:!1})},"6f85":function(t,e,a){"use strict";a.r(e);var i=a("33ef"),n=a("3c24");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("a780");var r,c=a("f0c5"),s=Object(c["a"])(n["default"],i["b"],i["c"],!1,null,"e1dd56ac",null,!1,i["a"],r);e["default"]=s.exports},7570:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page",style:{"background-image":"url("+t.imgfixUrls+"dating/bd_new_bg.png)"}},[0==t.recommendList.length?a("v-uni-view",{staticClass:"tips"},[t._v(t._s(t.tipsText))]):t._e(),a("v-uni-movable-area",{staticClass:"movable-area"},t._l(t.cRecommendList,(function(e,i){return a("v-uni-movable-view",{key:i,class:{"first-class":t.currentIndex==i},staticStyle:{width:"560rpx",height:"auto",overflow:"hidden",transition:"top 0.5s"},style:{"z-index":999-i},attrs:{x:e.touchX,y:t.touchY,direction:"horizontal","out-of-bounds":"true",disabled:t.currentIndex!=i},on:{touchend:function(a){arguments[0]=a=t.$handleEvent(a),t.touchend(i,e.id)},change:function(e){arguments[0]=e=t.$handleEvent(e),t.onChange(e,i)}}},[a("v-uni-view",{staticClass:"common-user",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.toDetail(e.id)}}},[a("v-uni-image",{staticClass:"avatar",attrs:{src:e.cover_show,mode:""}}),a("v-uni-view",{staticClass:"name"},[t._v(t._s(e.nickname))]),a("v-uni-view",{staticClass:"user-info"},[a("v-uni-view",{staticClass:"sex-age",class:{woman:2==e.gneder,man:1==e.gneder}},[2==e.gneder?a("v-uni-view",{staticClass:"iconfont icon-female"}):a("v-uni-view",{staticClass:"iconfont icon-male"}),a("v-uni-view",[t._v(t._s(e.age))])],1),a("v-uni-view",{staticClass:"location"},[t._v(t._s(e.area))]),1==e.is_vip?a("v-uni-view",{staticClass:"member"},[t._v("VIP")]):t._e()],1),a("v-uni-view",{staticClass:"tags"},t._l(e.label_list,(function(e,i){return a("v-uni-view",{key:i,staticClass:"item"},[t._v(t._s(e))])})),1),a("v-uni-view",{staticClass:"common-btn close",style:{opacity:e.closeOpacity}},[a("v-uni-image",{attrs:{src:t.imgfixUrls+"dating/bd_close.svg",mode:""}})],1),a("v-uni-view",{staticClass:"common-btn like",style:{opacity:e.likeOpacity}},[a("v-uni-image",{attrs:{src:t.imgfixUrls+"dating/bd_like.svg",mode:""}})],1)],1)],1)})),1),a("TabBars",{attrs:{tabBarAct:0,pageType:"16"}})],1)},o=[]},"7da2":function(t,e,a){"use strict";var i=a("65f2"),n=a.n(i);n.a},a780:function(t,e,a){"use strict";var i=a("266a"),n=a.n(i);n.a},bf9b:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-7a219cc8]{width:100vw;height:100vh;position:fixed;top:0;left:0;background-size:100% 100%}.tips[data-v-7a219cc8]{width:100%;height:%?40?%;text-align:center;line-height:%?40?%;font-size:%?36?%;color:#fff;position:fixed;top:%?100?%;left:0}.movable-area[data-v-7a219cc8]{width:300vw;height:100vh;position:absolute;top:0;left:-100vw}.first-class[data-v-7a219cc8]{top:%?20?%;left:%?20?%}.common-user[data-v-7a219cc8]{width:%?560?%;height:auto;border-radius:%?20?%;overflow:hidden;background-color:#fff;position:relative;padding-bottom:%?20?%}.common-user .avatar[data-v-7a219cc8]{width:100%;height:%?558?%;display:block}.common-user .name[data-v-7a219cc8]{height:%?70?%;line-height:%?70?%;font-size:%?48?%;color:#333;margin:%?20?% 0 0 %?30?%;font-weight:700}.common-user .user-info[data-v-7a219cc8]{width:100%;height:%?30?%;margin:%?20?% 0 0 %?30?%;display:flex;align-items:center;color:#fff;font-size:%?20?%}.common-user .user-info .sex-age[data-v-7a219cc8]{width:%?70?%;height:%?30?%;border-radius:%?15?%;display:flex;align-items:center;justify-content:center;margin-right:%?10?%}.common-user .user-info .sex-age .iconfont[data-v-7a219cc8]{font-size:%?20?%;line-height:%?30?%;margin-right:%?4?%}.common-user .user-info .sex-age .icon-female[data-v-7a219cc8]{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.common-user .user-info .man[data-v-7a219cc8]{background-color:#0084ff}.common-user .user-info .woman[data-v-7a219cc8]{background-color:#fe83af}.common-user .user-info .location[data-v-7a219cc8]{height:%?30?%;width:auto;padding:0 %?16?%;border-radius:%?15?%;background-color:#333;margin-right:%?10?%}.common-user .user-info .member[data-v-7a219cc8]{width:%?70?%;height:%?30?%;line-height:%?30?%;border-radius:%?15?%;text-align:center;background-color:#dcc083}.common-user .tags[data-v-7a219cc8]{width:%?530?%;height:%?110?%;overflow:hidden;display:flex;flex-wrap:wrap;font-size:%?20?%;color:#333;padding:0 0 0 %?30?%}.common-user .tags .item[data-v-7a219cc8]{width:auto;height:%?34?%;border-radius:%?17?%;line-height:%?34?%;text-align:center;padding:0 %?13?%;margin:%?20?% %?20?% 0 0;background-color:#eee}.common-btn[data-v-7a219cc8]{width:%?120?%;height:%?120?%;border-radius:%?60?%;display:flex;align-items:center;justify-content:center;position:absolute;top:%?30?%}.close[data-v-7a219cc8]{right:%?30?%;background-color:#333}.close uni-image[data-v-7a219cc8]{width:%?44?%;height:%?44?%}.like[data-v-7a219cc8]{left:%?30?%;background-color:#f44}.like uni-image[data-v-7a219cc8]{width:%?78?%;height:%?72?%}',""]),t.exports=e},ce38:function(t,e,a){"use strict";a.r(e);var i=a("7570"),n=a("2533");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("7da2");var r,c=a("f0c5"),s=Object(c["a"])(n["default"],i["b"],i["c"],!1,null,"7a219cc8",null,!1,i["a"],r);e["default"]=s.exports},dde5:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".diy-tabbar[data-v-e1dd56ac]{border-color:rgba(0,0,0,.33);position:fixed;z-index:9999;height:%?130?%;left:0;background-color:#fff;color:#6e6d6b;bottom:0;width:100%;display:flex}.tabbar-item[data-v-e1dd56ac]{display:flex;justify-content:center;align-items:center;flex-direction:column;flex:1;font-size:0;color:#6e6d6b;text-align:center;z-index:5;padding-bottom:%?30?%}.tabbar-severImg[data-v-e1dd56ac]{width:%?84?%;height:%?84?%;position:relative;top:%?-20?%}.tabbar-item .tabbar-item-icon[data-v-e1dd56ac]{font-size:%?44?%}.tabbar-item.item-on[data-v-e1dd56ac]{\n\t/* color: #fd4a5f; */}.tabbar-item .image[data-v-e1dd56ac]{display:inline-block;width:%?100?%;height:%?100?%}.tabbat-item-text[data-v-e1dd56ac]{padding-top:0;padding-bottom:0;font-size:%?20?%;line-height:1.8;text-align:center}.navstyle-image[data-v-e1dd56ac]{width:%?60?%;height:%?60?%;background-repeat:no-repeat;background-size:%?60?% %?60?%;display:block;margin:0 auto}.navstyle-3-item[data-v-e1dd56ac]{padding:%?10?% 0}",""]),t.exports=e}}]);
|