test
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,2 +1,2 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages2/common/vendor"],{1210:function(e,t,r){(function(t){var n=r(28),o=r(31),c=t.database();c.command;e.exports={_before:function(){},getIsFollow:function(e){return o(n.mark((function t(){var r,o,a,u;return n.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=e.uid,o=e.fid,a=!1,console.log(r),console.log(o),t.next=7,c.collection("follow").where({uid:r,fid:o}).count();case 7:return u=t.sent,console.log(u.total),u.total>0&&(a=!0),t.abrupt("return",{code:200,isFollow:a});case 13:return t.prev=13,t.t0=t["catch"](0),t.abrupt("return",{code:500,msg:t.t0.message});case 16:case"end":return t.stop()}}),t,null,[[0,13]])})))()},follow:function(e){return o(n.mark((function t(){var r,o,a,u,l;return n.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=e.uid,o=e.fid,t.next=4,c.collection("follow").where({uid:r,fid:o}).count();case 4:if(a=t.sent,!(a.total>0)){t.next=9;break}return t.abrupt("return",{code:201,msg:"已关注"});case 9:return u=new Date,t.next=12,c.collection("follow").add({uid:r,fid:o,create_time:u});case 12:return l=t.sent,console.log(l),t.abrupt("return",{code:200,data:l});case 15:t.next=20;break;case 17:return t.prev=17,t.t0=t["catch"](0),t.abrupt("return",{code:500,msg:t.t0.message});case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))()},reFollow:function(e){return o(n.mark((function t(){var r,o,a,u;return n.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=e.uid,o=e.fid,t.next=4,c.collection("follow").where({uid:r,fid:o}).count();case 4:if(a=t.sent,!(a.total<0)){t.next=9;break}return t.abrupt("return",{code:201,msg:"未关注"});case 9:return t.next=11,c.collection("follow").where({uid:r,fid:o}).remove();case 11:return u=t.sent,console.log(u),t.abrupt("return",{code:200,data:u});case 14:t.next=19;break;case 16:return t.prev=16,t.t0=t["catch"](0),t.abrupt("return",{code:500,msg:t.t0.message});case 19:case"end":return t.stop()}}),t,null,[[0,16]])})))()}}}).call(this,r(27)["uniCloud"])}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages2/common/vendor"],{379:function(e,t,r){(function(t){var n=r(28),o=r(31),c=t.database();c.command;e.exports={_before:function(){},getIsFollow:function(e){return o(n.mark((function t(){var r,o,a,u;return n.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=e.uid,o=e.fid,a=!1,console.log(r),console.log(o),t.next=7,c.collection("follow").where({uid:r,fid:o}).count();case 7:return u=t.sent,console.log(u.total),u.total>0&&(a=!0),t.abrupt("return",{code:200,isFollow:a});case 13:return t.prev=13,t.t0=t["catch"](0),t.abrupt("return",{code:500,msg:t.t0.message});case 16:case"end":return t.stop()}}),t,null,[[0,13]])})))()},follow:function(e){return o(n.mark((function t(){var r,o,a,u,l;return n.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=e.uid,o=e.fid,t.next=4,c.collection("follow").where({uid:r,fid:o}).count();case 4:if(a=t.sent,!(a.total>0)){t.next=9;break}return t.abrupt("return",{code:201,msg:"已关注"});case 9:return u=new Date,t.next=12,c.collection("follow").add({uid:r,fid:o,create_time:u});case 12:return l=t.sent,console.log(l),t.abrupt("return",{code:200,data:l});case 15:t.next=20;break;case 17:return t.prev=17,t.t0=t["catch"](0),t.abrupt("return",{code:500,msg:t.t0.message});case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))()},reFollow:function(e){return o(n.mark((function t(){var r,o,a,u;return n.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,r=e.uid,o=e.fid,t.next=4,c.collection("follow").where({uid:r,fid:o}).count();case 4:if(a=t.sent,!(a.total<0)){t.next=9;break}return t.abrupt("return",{code:201,msg:"未关注"});case 9:return t.next=11,c.collection("follow").where({uid:r,fid:o}).remove();case 11:return u=t.sent,console.log(u),t.abrupt("return",{code:200,data:u});case 14:t.next=19;break;case 16:return t.prev=16,t.t0=t["catch"](0),t.abrupt("return",{code:500,msg:t.t0.message});case 19:case"end":return t.stop()}}),t,null,[[0,16]])})))()}}}).call(this,r(27)["uniCloud"])}}]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages2/common/vendor.js.map
|
||||
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,6 +4,7 @@
|
||||
"tui-button": "/components/thorui/tui-button/tui-button",
|
||||
"tui-list-cell": "/components/thorui/tui-list-cell/tui-list-cell",
|
||||
"tui-list-view": "/components/thorui/tui-list-view/tui-list-view",
|
||||
"tui-modal": "/components/thorui/tui-modal/tui-modal"
|
||||
"tui-modal": "/components/thorui/tui-modal/tui-modal",
|
||||
"cloud-image": "/components/cloud-image"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user