船员公众号
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.
 
 
 
 
 
gzh_chuanyuan/unpackage/dist/build/web/static/js/pages-shijie-index.ca65f712.js

1 lines
8.5 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-shijie-index"],{"3a37":function(t,e,i){"use strict";i.r(e);var n=i("f91c"),a=i.n(n);for(var c in n)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(c);e["default"]=a.a},"3ec4":function(t,e,i){var n=i("c86c");e=n(!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/* 文章场景相关 */.circle[data-v-845249fc]{width:100%;padding:0 %?25?% %?25?%;overflow:hidden;box-sizing:border-box}.circle-hd[data-v-845249fc]{display:flex;align-items:center;justify-content:space-between}.circle-hd .a[data-v-845249fc]{display:flex;align-items:center}.circle-hd .a .item[data-v-845249fc]{padding:%?20?% 0;width:%?100?%;text-align:center;font-size:%?30?%;font-weight:400;color:#666;position:relative}.circle-hd .a .item-on[data-v-845249fc]{color:#323232;font-weight:500;font-size:%?34?%}.circle-hd .a .item-on[data-v-845249fc]::after{content:"";width:%?52?%;height:%?10?%;background:#2080f9;border-radius:%?10?%;position:absolute;left:50%;bottom:0;z-index:2;margin-left:%?-26?%}.circle-hd .b[data-v-845249fc]{display:flex;align-items:center;font-size:%?30?%;font-weight:400;color:#666}.circle-hd .b uni-image[data-v-845249fc]{width:%?44?%;height:%?44?%;margin-right:%?10?%}.circle-bd[data-v-845249fc]{overflow:hidden}.circle-bd .item[data-v-845249fc]{background-color:#fff;border-radius:%?20?%;margin-top:%?20?%;overflow:hidden;padding:0 %?20?% %?20?%;box-sizing:border-box}.circle-bd .item .a[data-v-845249fc]{display:flex;align-items:flex-start;justify-content:space-between;padding:%?30?% 0}.circle-bd .item .a .l[data-v-845249fc]{flex:1}.circle-bd .item .a .l uni-image[data-v-845249fc]{width:%?80?%;height:%?80?%;border-radius:50%;float:left;margin-right:%?25?%}.circle-bd .item .a .l .n[data-v-845249fc]{font-size:%?30?%;font-weight:400;color:#222}.circle-bd .item .a .l .t[data-v-845249fc]{margin-top:%?10?%;font-size:%?24?%;font-weight:400;color:#999}.circle-bd .item .a .r[data-v-845249fc]{font-size:%?24?%;color:#f01b1b;display:flex;align-items:center}.circle-bd .item .a .r uni-image[data-v-845249fc]{width:%?45?%;height:%?45?%;margin-right:%?10?%}.circle-bd .item .b[data-v-845249fc]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:%?28?%;font-weight:400;color:#222;line-height:%?42?%}.circle-bd .item .c[data-v-845249fc]{display:flex;width:110%;flex-wrap:wrap}.circle-bd .item .c uni-image[data-v-845249fc]{width:%?210?%;height:%?210?%;border-radius:%?10?%;margin-top:%?20?%;margin-right:%?18?%}',""]),t.exports=e},"48df":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return n}));var n={uEmpty:i("7018").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"circle"},[1==t.isShow?i("v-uni-view",{staticClass:"circle-hd"},[i("v-uni-view",{staticClass:"a"},[i("v-uni-view",{staticClass:"item",class:1==t.selectIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(1)}}},[t._v("发现")]),i("v-uni-view",{staticClass:"item",class:2==t.selectIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(2)}}},[t._v("我的")])],1),i("v-uni-view",{staticClass:"b",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toRelease()}}},[i("v-uni-image",{attrs:{src:"/static/icon-upload.png"}}),t._v("新增")],1)],1):t._e(),1==t.isShow?i("v-uni-view",{staticClass:"circle-bd"},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item"},[i("v-uni-view",{staticClass:"a"},[i("v-uni-view",{staticClass:"l"},[i("v-uni-image",{attrs:{src:e.avatar?e.avatar:"/static/avater.png"}}),i("v-uni-view",{staticClass:"n"},[t._v(t._s(e.nickname))]),i("v-uni-view",{staticClass:"t"},[t._v(t._s(e.created_at))])],1),2==t.selectIndex?i("v-uni-view",{staticClass:"r",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toDel(n)}}},[i("v-uni-image",{attrs:{src:"/static/icon-del.png"}}),t._v("删除")],1):t._e()],1),i("v-uni-view",{staticClass:"b"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"c"},t._l(e.image,(function(e,n){return i("v-uni-image",{key:n,attrs:{src:e},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.previewImage(e,n.image)}}})})),1)],1)})),1):t._e(),0==t.list.length?i("v-uni-view",{staticClass:"empty",staticStyle:{"margin-top":"260rpx"}},[i("u-empty",{attrs:{mode:"data",text:"暂无相关信息"}})],1):t._e()],1)},c=[]},"527d":function(t,e,i){"use strict";i.r(e);var n=i("48df"),a=i("3a37");for(var c in a)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(c);i("72b5");var r=i("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"845249fc",null,!1,n["a"],void 0);e["default"]=s.exports},"72b5":function(t,e,i){"use strict";var n=i("86e4"),a=i.n(n);a.a},"86e4":function(t,e,i){var n=i("3ec4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("967d").default;a("2d604e8c",n,!0,{sourceMap:!1,shadowMode:!1})},f91c:function(t,e,i){"use strict";i("6a54");var n=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("dd2b"),i("c223"),i("473f"),i("bf0f"),i("aa9c");var a=n(i("2634")),c=n(i("2fdc")),r={data:function(){return{selectIndex:1,list:[],page:1,isShow:!1,images:[]}},onReady:function(){var t=this;uni.$on("reloadQuanzi",(function(e){t.page=1,t.list=[],t.getCircleList()})),this.getConfig()},onPullDownRefresh:function(){this.page=1,this.list=[],this.getConfig(),setTimeout((function(){uni.stopPullDownRefresh()}),1e3)},methods:{previewImage:function(t,e){this.images=e,uni.previewImage({current:t,urls:this.images})},tabItem:function(t){2!=t||uni.getStorageSync("userToken")?(this.selectIndex=t,this.page=1,this.list=[],this.getCircleList()):uni.navigateTo({url:"/pages/login/login"})},toDel:function(t){var e=this;uni.showModal({title:"温馨提示",content:"确定要删除吗?",success:function(i){i.confirm&&e.delCircle(t)}})},toRelease:function(){uni.getStorageSync("userToken")?uni.navigateTo({url:"/pages/shijie/edit"}):uni.navigateTo({url:"/pages/login/login"})},delCircle:function(t){var e=this;return(0,c.default)((0,a.default)().mark((function i(){var n,c,r;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return i.next=2,e.$api.delCircle({circle_id:e.list[t].id});case 2:n=i.sent,c=n.code,r=n.msg,200==c?(uni.showToast({title:"删除成功"}),e.list.splice(t,1)):uni.showToast({icon:"none",title:r});case 6:case"end":return i.stop()}}),i)})))()},getConfig:function(){var t=this;return(0,c.default)((0,a.default)().mark((function e(){var i,n,c;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.getConfigIndex({});case 2:i=e.sent,n=i.code,c=i.data,i.msg,200==n&&(t.isShow=c.is_open,t.isShow&&t.getCircleList());case 7:case"end":return e.stop()}}),e)})))()},getCircleList:function(){var t=this;return(0,c.default)((0,a.default)().mark((function e(){var i,n,c,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return uni.showLoading({title:"加载中"}),e.next=3,t.$api.circleList({is_me:2==t.selectIndex?1:0,page:t.page});case 3:i=e.sent,n=i.code,c=i.data,r=i.msg,200==n?(uni.hideLoading(),t.list=t.arrayUnique(t.list.concat(c.list),"id"),t.total=c.total):(uni.hideLoading(),uni.showToast({icon:"none",title:r}));case 8:case"end":return e.stop()}}),e)})))()},arrayUnique:function(t,e){var i={};return t.reduce((function(t,n){return!i[n[e]]&&(i[n[e]]=t.push(n)),t}),[])}},onReachBottom:function(){this.list.length<=this.total&&(this.page++,this.getCircleList())}};e.default=r}}]);