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
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-xiaoxi-dashan"],{"19b3":function(t,n,e){var i=e("1fad");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("967d").default;a("03840bf4",i,!0,{sourceMap:!1,shadowMode:!1})},"1fad":function(t,n,e){var i=e("c86c");n=i(!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/* 文章场景相关 */.dashan[data-v-0679410a]{background-color:#fff;min-height:100vh;padding:0 %?25?%;overflow:hidden}.dashan .empty[data-v-0679410a]{padding:%?150?% 0;text-align:center;font-weight:500;font-size:%?28?%;color:#222}.dashan .empty uni-image[data-v-0679410a]{display:block;width:%?460?%;height:%?400?%;margin:0 auto}.dashan .item[data-v-0679410a]{display:flex;align-items:center}.dashan .item .pic[data-v-0679410a]{width:%?90?%;height:%?90?%;margin-right:%?20?%;position:relative}.dashan .item .pic .num[data-v-0679410a]{width:%?30?%;height:%?30?%;line-height:%?30?%;background:#fc2c2c;border-radius:50%;font-weight:500;font-size:%?18?%;color:#fff;text-align:center;position:absolute;right:0;top:0;z-index:2}.dashan .item .pic uni-image[data-v-0679410a]{width:100%;height:100%;border-radius:50%}.dashan .item .info[data-v-0679410a]{padding:%?30?% 0;flex:1;border-bottom:1px solid #eaeaea}.dashan .item .info .name[data-v-0679410a]{font-weight:400;font-size:%?30?%;color:#222}.dashan .item .info .name uni-text[data-v-0679410a]{float:right;font-weight:400;font-size:%?24?%;color:#aaa}.dashan .item .info .desc[data-v-0679410a]{font-weight:400;font-size:%?24?%;color:#aaa;margin-top:%?15?%}',""]),t.exports=n},"20c4":function(t,n,e){"use strict";e.r(n);var i=e("279d"),a=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=a.a},2486:function(t,n,e){"use strict";var i=e("e6ff"),a=e.n(i);a.a},"279d":function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,e("64aa");var i={name:"u-swipe-action",emits:["click","content-click","open","close"],props:{index:{type:[Number,String],default:""},btnWidth:{type:[String,Number],default:180},disabled:{type:Boolean,default:!1},show:{type:Boolean,default:!1},bgColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},options:{type:Array,default:function(){return[]}}},watch:{show:{immediate:!0,handler:function(t,n){t?this.open():this.close()}}},data:function(){return{moveX:0,scrollX:0,status:!1,movableAreaWidth:0,elId:this.$u.guid(),showBtn:!1}},computed:{movableViewWidth:function(){return this.movableAreaWidth+this.allBtnWidth+"px"},innerBtnWidth:function(){return uni.upx2px(this.btnWidth)},allBtnWidth:function(){return uni.upx2px(this.btnWidth)*this.options.length},btnStyle:function(){var t=this;return function(n){return n.width=t.btnWidth+"rpx",n}}},mounted:function(){this.getActionRect()},methods:{btnClick:function(t){this.status=!1,this.$emit("click",this.index,t)},change:function(t){this.scrollX=t.detail.x},close:function(){this.moveX=0,this.status=!1},open:function(){this.disabled||(this.moveX=-this.allBtnWidth,this.status=!0)},touchend:function(){this.moveX=this.scrollX,this.$nextTick((function(){var t=this;0==this.status?this.scrollX<=-this.allBtnWidth/4?(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent(),this.vibrateShort&&uni.vibrateShort()):(this.moveX=0,this.status=!1,this.emitCloseEvent()):this.scrollX>3*-this.allBtnWidth/4?(this.moveX=0,this.$nextTick((function(){t.moveX=101})),this.status=!1,this.emitCloseEvent()):(this.moveX=-this.allBtnWidth,this.status=!0,this.emitOpenEvent())}))},emitOpenEvent:function(){this.$emit("open",this.index)},emitCloseEvent:function(){this.$emit("close",this.index)},touchstart:function(){},getActionRect:function(){var t=this;this.$uGetRect(".u-swipe-action").then((function(n){t.movableAreaWidth=n.width,t.$nextTick((function(){t.showBtn=!0}))}))},contentClick:function(){1==this.status&&(this.status="close",this.moveX=0),this.$emit("content-click",this.index)}}};n.default=i},"2a9a":function(t,n,e){"use strict";e.r(n);var i=e("d7e9"),a=e("20c4");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(s);e("2486");var o=e("828b"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"73f8fd82",null,!1,i["a"],void 0);n["default"]=u.exports},5840:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return i}));var i={uSwipeAction:e("2a9a").default},a=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",{staticClass:"dashan"},[i("v-uni-view",{staticClass:"list"},[t._l(t.frindList,(function(n,e){return i("u-swipe-action",{key:n.userid,attrs:{index:e,options:t.options},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.click.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"item",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.toChat(n)}}},[i("v-uni-view",{staticClass:"pic"},[i("v-uni-image",{attrs:{src:n.faceImage}}),n.noReadCount?i("v-uni-view",{staticClass:"num"},[t._v(t._s(n.noReadCount<=99?n.noReadCount:"+99"))]):t._e()],1),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(n.nickname)),i("v-uni-text",[t._v(t._s(n.createTime))])],1),i("v-uni-view",{staticClass:"desc"},[t._v(t._s(n.message))])],1)],1)],1)})),t.isShow?i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:e("7d86")}}),i("v-uni-view",{staticClass:"txt"},[t._v("暂无数据")])],1):t._e()],2)],1)},s=[]},"7d86":function(t,n,e){t.exports=e.p+"static/empty.png"},aae2:function(t,n,e){"use strict";e.r(n);var i=e("d662"),a=e.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(s);n["default"]=a.a},c650:function(t,n,e){"use strict";var i=e("19b3"),a=e.n(i);a.a},d662:function(t,n,e){"use strict";e("6a54");var i=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(e("2634")),s=i(e("2fdc")),o={data:function(){return{list:[],isShow:!1,options:[{text:"删除",style:{backgroundColor:"#dd524d"}}],frindList:[]}},onLoad:function(){this.getList()},methods:{click:function(t){var n=this;return(0,s.default)((0,a.default)().mark((function e(){var i,s,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.cleanOneMsg({msgId:n.frindList[t].msgId,otherUserStatus:n.frindList[t].otherUserStatus});case 2:i=e.sent,s=i.code,i.data,o=i.msg,200==s?(uni.showToast({title:"删除成功"}),n.getList()):uni.showToast({title:o,icon:"none",position:"bottom"});case 7:case"end":return e.stop()}}),e)})))()},toChat:function(t){var n=this;return(0,s.default)((0,a.default)().mark((function e(){var i,s,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.findZegoToken({userId:uni.getStorageSync("userInfo").id,sellerId:t.userid});case 2:i=e.sent,s=i.code,o=i.data,200==s&&(uni.setStorageSync("chatToken",o.token),uni.navigateTo({url:"/pages/users/chat/index?id="+t.userid+"&roomId="+o.roomId}));case 6:case"end":return e.stop()}}),e)})))()},getList:function(){var t=this;return(0,s.default)((0,a.default)().mark((function n(){var e,i,s;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$api.findFrindList({userId:uni.getStorageSync("userInfo").id,type:6});case 2:e=n.sent,i=e.code,s=e.data,200==i&&(t.isShow=0==s.length,t.frindList=s);case 6:case"end":return n.stop()}}),n)})))()}}};n.default=o},d7e9:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){}));var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",{},[e("v-uni-movable-area",{staticClass:"u-swipe-action",style:{backgroundColor:t.bgColor}},[e("v-uni-movable-view",{staticClass:"u-swipe-view",style:{width:t.movableViewWidth?t.movableViewWidth:"100%"},attrs:{direction:"horizontal",disabled:t.disabled,x:t.moveX},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t.change.apply(void 0,arguments)},touchend:function(n){arguments[0]=n=t.$handleEvent(n),t.touchend.apply(void 0,arguments)},touchstart:function(n){arguments[0]=n=t.$handleEvent(n),t.touchstart.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"u-swipe-content",on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.contentClick.apply(void 0,arguments)}}},[t._t("default")],2),t._l(t.options,(function(n,i){return t.showBtn?e("v-uni-view",{key:i,staticClass:"u-swipe-del",style:[t.btnStyle(n.style)],on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.btnClick(i)}}},[e("v-uni-view",{staticClass:"u-btn-text"},[t._v(t._s(n.text))])],1):t._e()}))],2)],1)],1)},a=[]},da7d:function(t,n,e){var i=e("c86c");n=i(!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-swipe-action[data-v-73f8fd82]{width:auto;height:auto;position:relative;overflow:hidden}.u-swipe-view[data-v-73f8fd82]{display:flex;flex-direction:row;height:auto;position:relative\n /* 这一句很关键,覆盖默认的绝对定位 */}.u-swipe-content[data-v-73f8fd82]{flex:1}.u-swipe-del[data-v-73f8fd82]{position:relative;font-size:%?30?%;color:#fff}.u-btn-text[data-v-73f8fd82]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}',""]),t.exports=n},e6ff:function(t,n,e){var i=e("da7d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=e("967d").default;a("14753d1a",i,!0,{sourceMap:!1,shadowMode:!1})},fea1:function(t,n,e){"use strict";e.r(n);var i=e("5840"),a=e("aae2");for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(s);e("c650");var o=e("828b"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"0679410a",null,!1,i["a"],void 0);n["default"]=u.exports}}]); |