初始化代码
This commit is contained in:
4
front/app.js
Normal file
4
front/app.js
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
require('./common/runtime.js')
|
||||
require('./common/vendor.js')
|
||||
require('./common/main.js')
|
||||
207
front/app.json
Normal file
207
front/app.json
Normal file
@@ -0,0 +1,207 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/home",
|
||||
"pages/land",
|
||||
"pages/claim",
|
||||
"pages/shop",
|
||||
"pages/mine",
|
||||
"uni_modules/uni-upgrade-center-app/pages/upgrade-popup"
|
||||
],
|
||||
"subPackages": [
|
||||
{
|
||||
"root": "home/",
|
||||
"pages": [
|
||||
"pages/farm/list",
|
||||
"pages/farm/detail",
|
||||
"pages/farm/info",
|
||||
"pages/monitor/list",
|
||||
"pages/monitor/detail",
|
||||
"pages/monitor/search",
|
||||
"pages/article",
|
||||
"pages/about",
|
||||
"pages/search",
|
||||
"pages/welfare"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "land/",
|
||||
"pages": [
|
||||
"pages/order/list",
|
||||
"pages/order/detail",
|
||||
"pages/seed/list",
|
||||
"pages/seed/detail",
|
||||
"pages/detail",
|
||||
"pages/massif",
|
||||
"pages/order"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "claim/",
|
||||
"pages": [
|
||||
"pages/order/list",
|
||||
"pages/order/detail",
|
||||
"pages/order/collage/list",
|
||||
"pages/order/collage/detail",
|
||||
"pages/order/breed/list",
|
||||
"pages/order/breed/detail",
|
||||
"pages/collage/list",
|
||||
"pages/collage/more",
|
||||
"pages/detail",
|
||||
"pages/order"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "shop/",
|
||||
"pages": [
|
||||
"pages/integral/list",
|
||||
"pages/integral/record",
|
||||
"pages/order/list",
|
||||
"pages/order/detail",
|
||||
"pages/order/refund",
|
||||
"pages/refund/list",
|
||||
"pages/refund/detail",
|
||||
"pages/car",
|
||||
"pages/choose-store",
|
||||
"pages/coupon",
|
||||
"pages/detail",
|
||||
"pages/hot-goods",
|
||||
"pages/luck",
|
||||
"pages/order",
|
||||
"pages/seckill",
|
||||
"pages/sign",
|
||||
"pages/store"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "mine/",
|
||||
"pages": [
|
||||
"pages/address/list",
|
||||
"pages/address/edit",
|
||||
"pages/balance/index",
|
||||
"pages/balance/list",
|
||||
"pages/balance/record",
|
||||
"pages/common/web",
|
||||
"pages/common/video",
|
||||
"pages/coupon/list",
|
||||
"pages/coupon/use",
|
||||
"pages/distribution/index",
|
||||
"pages/distribution/apply",
|
||||
"pages/distribution/profit",
|
||||
"pages/distribution/team",
|
||||
"pages/distribution/record",
|
||||
"pages/distribution/poster",
|
||||
"pages/evaluate/more",
|
||||
"pages/evaluate/list",
|
||||
"pages/evaluate/edit",
|
||||
"pages/about-us",
|
||||
"pages/agreement",
|
||||
"pages/cash-out",
|
||||
"pages/choose-time",
|
||||
"pages/fx-code",
|
||||
"pages/notice",
|
||||
"pages/apply-result",
|
||||
"pages/pay-result",
|
||||
"pages/pay",
|
||||
"pages/phone-code",
|
||||
"pages/phone",
|
||||
"pages/setting"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "business/",
|
||||
"pages": [
|
||||
"pages/order/list",
|
||||
"pages/order/detail",
|
||||
"pages/store-manage"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "farmer/",
|
||||
"pages": [
|
||||
"pages/finance/index",
|
||||
"pages/finance/record",
|
||||
"pages/order/claim/list",
|
||||
"pages/order/distribution/list",
|
||||
"pages/order/distribution/detail",
|
||||
"pages/order/land/list",
|
||||
"pages/apply"
|
||||
]
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "white",
|
||||
"navigationBarTitleText": "赛车",
|
||||
"navigationBarBackgroundColor": "#39b54a",
|
||||
"backgroundColor": "#ffffff",
|
||||
"onReachBottomDistance": 140
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#000000",
|
||||
"selectedColor": "#39b54a",
|
||||
"backgroundColor": "#ffffff",
|
||||
"borderStyle": "white",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/home",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/tabbar/1.png",
|
||||
"selectedIconPath": "static/tabbar/1-fill.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/land",
|
||||
"text": "租地",
|
||||
"iconPath": "/static/tabbar/2.png",
|
||||
"selectedIconPath": "static/tabbar/2-fill.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/claim",
|
||||
"text": "认养",
|
||||
"iconPath": "/static/tabbar/3.png",
|
||||
"selectedIconPath": "static/tabbar/3-fill.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/shop",
|
||||
"text": "商城",
|
||||
"iconPath": "/static/tabbar/4.png",
|
||||
"selectedIconPath": "static/tabbar/4-fill.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/mine",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/tabbar/5.png",
|
||||
"selectedIconPath": "static/tabbar/5-fill.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"plugins": {},
|
||||
"permission": {
|
||||
"scope.userLocation": {
|
||||
"desc": "你的位置信息将用于小程序距离展示"
|
||||
}
|
||||
},
|
||||
"requiredPrivateInfos": [
|
||||
"getLocation",
|
||||
"chooseLocation"
|
||||
],
|
||||
"navigateToMiniProgramAppIdList": [],
|
||||
"preloadRule": {},
|
||||
"usingComponents": {
|
||||
"banner": "/components/banner",
|
||||
"column": "/components/column",
|
||||
"fixed": "/components/fixed",
|
||||
"search": "/components/search",
|
||||
"auth": "/components/auth",
|
||||
"tab": "/components/tab",
|
||||
"timeline": "/components/timeline",
|
||||
"abnor": "/components/abnor",
|
||||
"load-more": "/components/load-more",
|
||||
"upload": "/components/upload",
|
||||
"parser": "/components/jyf-Parser/index",
|
||||
"min-countdown": "/components/min-countdown",
|
||||
"uni-nav-bar": "/components/uni-nav-bar",
|
||||
"uni-popup": "/components/uni-popup",
|
||||
"common-popup": "/components/common-popup",
|
||||
"login-info": "/components/login-info",
|
||||
"fix-bottom-button": "/components/fix-bottom-button"
|
||||
}
|
||||
}
|
||||
3
front/app.wxss
Normal file
3
front/app.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
@import './common/main.wxss';
|
||||
|
||||
[data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;}
|
||||
1
front/business/pages/order/detail.js
Normal file
1
front/business/pages/order/detail.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["business/pages/order/detail"],{4753:function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("b03e");r(n("66fd"));var o=r(n("8adf"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"55f2":function(e,t,n){},"616a":function(e,t,n){"use strict";(function(e){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("2eee")),i=r(n("c973")),u=r(n("9523")),a=n("26cb");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={components:{},data:function(){return{scrollTop:0,options:{},detail:{},payType:{1:"微信支付",2:"余额支付",3:"支付宝支付"},statusType:{"-1":"已取消",1:"待支付",2:"待发货",3:"已发货",7:"已完成"},sendType:{1:"自提",2:"快递"},param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,a.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},userInfo:function(e){return e.user.userInfo},haveOperItem:function(e){return e.order.haveOperItem}}),onLoad:function(e){this.options=e,this.$util.showLoading(),this.updateOrderItem({key:"haveOperItem",val:!1}),this.initIndex()},onUnload:function(){this.haveOperItem&&this.$util.back()},onPageScroll:function(e){this.scrollTop=e.scrollTop},methods:l(l(l({},(0,a.mapActions)(["getConfigInfo"])),(0,a.mapMutations)(["updateOrderItem"])),{},{initIndex:function(){var e=this;return(0,i.default)(o.default.mark((function t(){var n,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.options.id,t.next=3,e.$api.business.orderInfo({id:n});case 3:r=t.sent,e.detail=r,e.$util.hideAll();case 6:case"end":return t.stop()}}),t)})))()},initRefresh:function(){this.initIndex()},toMap:function(){var t=this;return(0,i.default)(o.default.mark((function n(){var r,i,u,a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.detail,i=r.lat,u=r.lng,a=r.address,n.next=3,t.$util.checkAuth({type:"userLocation"});case 3:return n.next=5,e.getLocation({type:"gcj02"});case 5:return n.next=7,e.openLocation({latitude:1*i,longitude:1*u,name:a,scale:28});case 7:case"end":return n.stop()}}),n)})))()},toTel:function(){var e=this.detail.address_info.mobile;this.$util.goUrl({url:e,openType:"call"})}})};t.default=f}).call(this,n("543d")["default"])},"72c4":function(e,t,n){"use strict";var r=n("55f2"),o=n.n(r);o.a},"8adf":function(e,t,n){"use strict";n.r(t);var r=n("c266"),o=n("c7e2");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("72c4");var u=n("f0c5"),a=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=a.exports},c266:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return t.stopPropagation(),e.$util.goUrl({url:e.detail.address_info.mobile,openType:"call"})},e.e1=function(t){return e.$util.goUrl({url:""+e.detail.order_code,openType:"copy"})},e.e2=function(t){return e.$util.goUrl({url:""+e.detail.transaction_id,openType:"copy"})},e.e3=function(t){return e.$util.goUrl({url:""+e.detail.refund_code,openType:"copy"})})},o=[]},c7e2:function(e,t,n){"use strict";n.r(t);var r=n("616a"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a}},[["4753","common/runtime","common/vendor"]]]);
|
||||
5
front/business/pages/order/detail.json
Normal file
5
front/business/pages/order/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单详情",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/business/pages/order/detail.wxml
Normal file
1
front/business/pages/order/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/business/pages/order/detail.wxss
Normal file
1
front/business/pages/order/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.business-order-detail .order-seed-item .seed-img{width:80rpx;height:80rpx;box-shadow:0 0 10px 0 rgba(0,0,0,.1)}.business-order-detail .item-video{width:710rpx;height:380rpx;display:block}.business-order-detail .footer-btn{width:100%;bottom:0}.business-order-detail .footer-btn .flex-between{height:98rpx}
|
||||
1
front/business/pages/order/list.js
Normal file
1
front/business/pages/order/list.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["business/pages/order/list"],{1799:function(t,i,n){"use strict";n.r(i);var e=n("3216"),a=n.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(o);i["default"]=a.a},2828:function(t,i,n){"use strict";n.r(i);var e=n("b6c1"),a=n("1799");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(o);var s=n("f0c5"),r=Object(s["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);i["default"]=r.exports},3216:function(t,i,n){"use strict";(function(t){var e=n("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e(n("2eee")),o=e(n("c973")),s=n("26cb"),r={components:{},data:function(){return{isLoad:!1,options:{},activeIndex:0,tabList:[{id:0,title:"全部"},{id:1,title:"待支付",number:0,key:"no_pay_count"},{id:2,title:"待发货",number:0,key:"no_send_count"},{id:3,title:"已发货",number:0,key:"have_send_count"},{id:7,title:"已完成"}],statusType:{"-1":"已取消",1:"待支付",2:"待发货",3:"已发货",7:"已完成"},param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,s.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading();var i=t.tab,n=void 0===i?0:i;this.options=t,this.activeIndex=n,this.isLoad=!0,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){var t=this.configInfo.expressList;t.map((function(t){t.currentCheck=!1,t.preCheck=!1})),this.expressList=t,this.getList()},initRefresh:function(){this.param.page=1,this.initIndex()},getList:function(){var t=this;return(0,o.default)(a.default.mark((function i(){var n,e,o,s,r;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=t.list,e=t.param,o=t.tabList,s=t.activeIndex,e.pay_type=o[s].id,i.next=4,t.$api.business.orderList(e);case 4:r=i.sent,1==t.param.page||(r.data=n.data.concat(r.data)),t.list=r,t.loading=!1,t.tabList.map((function(i,n){i.key&&(t.tabList[n].number=r[i.key])})),t.$util.hideAll();case 9:case"end":return i.stop()}}),i)})))()},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},toTel:function(t){var i=this.list.data[t].address_info.mobile;this.$util.goUrl({url:i,openType:"call"})},goDetail:function(t){var i=this.list.data[t].id,n="/business/pages/order/detail?id=".concat(i);this.$util.goUrl({url:n})}}};i.default=r}).call(this,n("543d")["default"])},b6c1:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return a})),n.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,n=(t._self._c,t.isLoad?t.tabList.length:null),e=t.isLoad&&t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,a=t.isLoad?!t.loading&&t.list.data.length<=0&&1==t.list.current_page:null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:e,g2:a}})},a=[]},cae7:function(t,i,n){"use strict";(function(t,i){var e=n("4ea4");n("b03e");e(n("66fd"));var a=e(n("2828"));t.__webpack_require_UNI_MP_PLUGIN__=n,i(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["cae7","common/runtime","common/vendor"]]]);
|
||||
5
front/business/pages/order/list.json
Normal file
5
front/business/pages/order/list.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "订单管理",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/business/pages/order/list.wxml
Normal file
1
front/business/pages/order/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{isLoad}}"><view class="business-order-list"><fixed vue-id="aed593aa-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('aed593aa-2')+','+('aed593aa-1')}}" list="{{tabList}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab><view class="b-1px-b"></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="fill-base mt-md ml-md mr-md pd-lg box-shadow-mini radius-16" catchtap="__e"><view class="flex-between pb-lg"><view class="{{['f-paragraph','c-title',[(item.pay_type<3&&item.pay_type!=-1)?'c-warning':''],[(item.pay_type==3)?'c-success':'']]}}">{{''+statusType[item.pay_type]+''}}</view><view class="iconfont icon-right _i"></view></view><block wx:for="{{item.order_goods}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="{{['order-item','flex-center',[(aindex!=0)?'mt-md':'']]}}"><image class="avatar box-shadow-mini radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{aitem.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-paragraph c-title text-bold max-490 ellipsis">{{''+aitem.goods_name+''}}</view><view class="{{['f-caption','c-title',[(aitem.refund_num*1>0)?'flex-center':'']]}}"><view class="ellipsis" style="{{'max-width:'+(aitem.refund_num*1>0?'300rpx':'490rpx')+';'}}">{{''+aitem.spe_name+''}}</view><block wx:if="{{aitem.refund_num*1>0}}"><view class="flex-1 c-warning text-right">{{"已退x"+aitem.refund_num+''}}</view></block></view><view class="flex-y-baseline mt-sm"><view class="flex-1 f-paragraph c-warning">{{"¥"+aitem.goods_price+''}}</view><view class="f-caption c-caption">{{"x "+aitem.goods_num+''}}</view></view></view></view></block><view class="flex-between mt-lg pt-md b-1px-t"><view class="c-title ml-sm mr-sm">{{''+('共'+item.all_goods_num+'件')}}</view><view class="flex-y-baseline f-desc c-title">实付:<view class="f-title c-warning">{{"¥"+item.true_price}}</view></view></view><block wx:if="{{item.pay_type!=7}}"><view class="flex-between mt-md"><view></view><view data-event-opts="{{[['tap',[['toTel',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">联系买家</view></view></block></view></block><block wx:if="{{loading}}"><load-more vue-id="aed593aa-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="aed593aa-4" bind:__l="__l"></abnor></block><view class="space-footer"></view></view></block>
|
||||
1
front/business/pages/store-manage.js
Normal file
1
front/business/pages/store-manage.js
Normal file
File diff suppressed because one or more lines are too long
6
front/business/pages/store-manage.json
Normal file
6
front/business/pages/store-manage.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "店铺管理",
|
||||
"usingComponents": {
|
||||
"w-picker": "/components/w-picker/w-picker"
|
||||
}
|
||||
}
|
||||
1
front/business/pages/store-manage.wxml
Normal file
1
front/business/pages/store-manage.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="mine-store-manage"><view class="fill-base pl-lg pb-sm flex-between b-1px-b"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">店铺头像</view></view><view class="flex-1 flex-between mr-lg"><upload vue-id="029c5559-1" imagelist="{{subForm.cover}}" imgtype="cover" text="添加封面" imgsize="{{1}}" imgclass="sm" data-event-opts="{{[['^upload',[['imgUpload']]]]}}" bind:upload="__e" bind:__l="__l"></upload><view></view></view></view><view class="fill-base pd-lg flex-between b-1px-b"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">店铺名称</view></view><input class="item-input flex-1" type="text" maxlength="20" placeholder-class="c-placeholder" placeholder="{{rule[1].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','title','$event',[]],['subForm']]]]]}}" value="{{subForm.title}}" bindinput="__e"/></view><view class="fill-base pd-lg flex-between b-1px-b"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">店铺地址</view></view><view class="item-input flex-1"><view data-event-opts="{{[['tap',[['toChooseLocation',['$event']]]]]}}" class="flex-y-center" catchtap="__e"><view class="{{['flex-1',[(!subForm.address)?'c-placeholder':''],[(subForm.address)?'c-title':'']]}}">{{''+(subForm.address||'点击右边图标设置')+''}}</view><view class="iconfont icon-dingwei ml-sm _i" style="{{'color:'+(primaryColor)+';'}}"></view></view></view></view><view class="fill-base pd-lg"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">店铺描述</view></view><textarea class="item-textarea mt-md flex-1" type="text" maxlength="200" placeholder-class="c-placeholder" placeholder="{{rule[3].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','desc','$event',[]],['subForm']]]]]}}" value="{{subForm.desc}}" bindinput="__e"></textarea></view><view class="fill-base mt-md pd-lg flex-between b-1px-b"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">姓名</view></view><input class="item-input flex-1" type="text" placeholder-class="c-placeholder" placeholder="{{rule[4].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','user_name','$event',[]],['subForm']]]]]}}" value="{{subForm.user_name}}" bindinput="__e"/></view><view class="fill-base mt-md pd-lg flex-between b-1px-b"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">联系电话</view></view><input class="item-input flex-1" type="number" placeholder-class="c-placeholder" placeholder="{{rule[5].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','mobile','$event',[]],['subForm']]]]]}}" value="{{subForm.mobile}}" bindinput="__e"/></view><view class="fill-base pd-lg flex-between"><view class="flex-y-center"><view class="iconfont icon-required c-warning _i"></view><view class="item-text">是否营业</view></view><view class="flex-1 flex-between"><view class="f-desc">{{workType[subForm.business_status]}}</view><view data-event-opts="{{[['tap',[['toChangeItem',['business_status']]]]]}}" catchtap="__e"><view class="{{['iconfont','icon-switch','c-caption','ml-sm','_i',[(subForm.business_status==1)?'icon-switch-on':'']]}}" style="{{'color:'+(subForm.business_status==1?primaryColor:'')+';'}}"></view></view></view></view><view class="space-max-footer"></view><w-picker class="vue-ref" vue-id="029c5559-2" visible="{{showTime}}" mode="time" value="{{toDayTime}}" current="{{false}}" second="{{false}}" themeColor="{{primaryColor}}" data-ref="time" data-event-opts="{{[['^updateVisible',[['__set_sync',['$0','showTime','$event'],['']]]],['^confirm',[['onConfirm']]]]}}" bind:updateVisible="__e" bind:confirm="__e" bind:__l="__l"></w-picker><fix-bottom-button vue-id="029c5559-3" text="{{[{text:'保存',type:'confirm'}]}}" bgColor="#fff" data-event-opts="{{[['^confirm',[['submit']]]]}}" bind:confirm="__e" bind:__l="__l"></fix-bottom-button></view>
|
||||
2
front/business/pages/store-manage.wxss
Normal file
2
front/business/pages/store-manage.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.mine-store-manage .item-text{width:200rpx}.mine-store-manage .item-textarea{width:690rpx;height:300rpx;overflow-y:auto}.mine-store-manage .icon-dingwei{font-size:40rpx}.mine-store-manage .icon-switch,
|
||||
.mine-store-manage .icon-switch-on{font-size:80rpx;line-height:34rpx}
|
||||
1
front/claim/pages/collage/list.js
Normal file
1
front/claim/pages/collage/list.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["claim/pages/collage/list"],{"0b88":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("2eee")),a=i(n("c973")),o=i(n("9523")),c=n("26cb");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={components:{},data:function(){return{options:{},color:"#ffffff",collageList:[{img:"pay",text:" 支付\n开团/参团"},{img:"users",text:"达到人数\n众筹成功"},{img:"claim",text:" 获得\n认养商品"},{img:"send",text:"认养到期\n配送到家"}],user_list:[],param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(){this.$util.showLoading(),this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},onPageScroll:function(t){var e=t.scrollTop<20?"#ffffff":"#000000";this.color!=e&&(this.color=e)},methods:s(s({},(0,c.mapActions)(["getConfigInfo","getUserInfo"])),{},{initIndex:function(){var t=this;return(0,a.default)(r.default.mark((function e(){return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.claim.userCollageLimit();case 2:return t.user_list=e.sent,e.next=5,t.getList();case 5:t.$util.hideAll();case 6:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.param.page=1,this.initIndex()},countEnd:function(){var t=this;this.$util.log("倒计时完了"),setTimeout((function(){t.initRefresh()}),1e3)},getList:function(){var t=this;return(0,a.default)(r.default.mark((function e(){var n,i,a;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.list,i=t.param,e.next=3,t.$api.claim.collageList(i);case 3:a=e.sent,1==t.param.page||(a.data=n.data.concat(a.data)),t.list=a,t.loading=!1,t.$util.hideAll();case 7:case"end":return e.stop()}}),e)})))()},goDetail:function(t,e){var n=1==t?this.user_list[e]:this.list.data[e],i=n.start_id,r=n.claim_id,a=void 0===r?0:r,o={1:"/claim/pages/order/collage/detail?id=".concat(i),2:"/claim/pages/detail?id=".concat(a)};this.$util.goUrl({url:o[t]})}})};e.default=u}).call(this,n("543d")["default"])},1008:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.user_list.length),i=t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,r=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t._isMounted||(t.e0=function(e){return t.$util.goUrl({url:"/claim/pages/order/collage/list"})}),t.$mp.data=Object.assign({},{$root:{g0:n,g1:i,g2:r}})},r=[]},"2c9d6":function(t,e,n){"use strict";n.r(e);var i=n("1008"),r=n("8b55");for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("52d8");var o=n("f0c5"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},"52d8":function(t,e,n){"use strict";var i=n("72ea"),r=n.n(i);r.a},"72ea":function(t,e,n){},"7b11":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("b03e");i(n("66fd"));var r=i(n("2c9d6"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"8b55":function(t,e,n){"use strict";n.r(e);var i=n("0b88"),r=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=r.a}},[["7b11","common/runtime","common/vendor"]]]);
|
||||
6
front/claim/pages/collage/list.json
Normal file
6
front/claim/pages/collage/list.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/collage/list.wxml
Normal file
1
front/claim/pages/collage/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="claim-collage"><uni-nav-bar vue-id="7d55cf00-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{color=='#ffffff'?'':primaryColor}}" leftIcon="icon-left" title="{{color=='#ffffff'?'':'众筹认养'}}" bind:__l="__l"></uni-nav-bar><image class="common-bg nav abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/nav-collage.png"></image><image class="common-bg collage abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-collage.png"></image><view class="space-collage rel"></view><view class="collage-info rel fill-base mt-md ml-md mr-md radius-24 box-shadow"><image class="title-img abs" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/collage-title.png"></image><view class="title flex-center f-title c-base">简单4步 获得宠物</view><view class="flex-x-between mt-md pd-lg"><block wx:for="{{collageList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view class="flex-center flex-column"><image class="collage-icon" src="{{'/static/image/farm/'+item.img+'.png'}}"></image><view class="f-caption mt-sm"><text style="word-break:break-all;color:#899E95;" space="ensp" decode="emsp">{{item.text}}</text></view></view><block wx:if="{{index!=3}}"><view class="flex-y-center iconfont icon-xiangyou _i"></view></block></block></block></view></view><view class="space-lg"></view><view class="flex-between pd-md c-title"><view class="f-sm-title text-bold">我参与的众筹</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="flex-y-center f-caption" bindtap="__e">查看全部<view class="iconfont icon-right _i" style="font-size:24rpx;"></view></view></view><block wx:if="{{$root.g0>0}}"><scroll-view class="my-collage-list pl-md" scroll-x="{{true}}" scroll-with-animation="{{true}}"><block wx:for="{{user_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['goDetail',[1,index]]]]]}}" class="my-item mr-md radius-16" catchtap="__e"><view class="flex-center rel"><view class="collage-status abs flex-center f-caption c-base" style="{{'background:'+(primaryColor)+';'}}"><view class="flex-y-center f-icontext"><view class="mr-sm">距成团</view><min-countdown vue-id="{{'7d55cf00-2-'+index}}" type="{{4}}" targetTime="{{item.end_time*1000}}" color="#fff" data-event-opts="{{[['^callback',[['countEnd']]]]}}" bind:callback="__e" bind:__l="__l"></min-countdown></view></view><image class="cover" mode="aspectFill" lazy-load="{{true}}" src="{{item.claim_cover}}"></image><view class="flex-1 pl-md"><view class="pr-sm f-title c-title text-bold max-300 ellipsis">{{''+item.claim_title+''}}</view><view class="flex-y-center f-desc c-warning mt-sm">众筹价<view class="flex-y-baseline f-caption ml-sm">¥<view class="f-sm-title text-bold">{{item.price}}</view></view></view><view class="flex-y-center f-icontext c-title mt-sm">已参与<view style="{{'color:'+(primaryColor)+';'}}">{{''+(item.have_num||0)+''}}</view>人, 还差<view style="{{'color:'+(primaryColor)+';'}}">{{item.surplus_num||0}}</view>人众筹成功</view></view></view></view></block></block></scroll-view></block><view class="pd-md f-sm-title c-title text-bold">众筹商品</view><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="{{['pl-md','pr-md',[(index!=0)?'mt-lg':'']]}}"><view data-event-opts="{{[['tap',[['goDetail',[2,index]]]]]}}" class="collage-item flex-center" catchtap="__e"><image class="cover radius-10" mode="aspectFill" lazy-load="{{true}}" src="{{item.claim_cover}}"></image><view class="flex-1 ml-md"><view class="f-title c-title text-bold max-510 ellipsis">{{item.claim_title}}</view><view class="flex-y-center f-desc c-warning mt-sm">众筹价<view class="flex-y-baseline f-caption ml-sm">¥<view class="f-sm-title text-bold">{{item.price}}</view></view></view><view class="f-icontext c-caption text-delete mt-md">{{"原价 ¥"+item.init_price}}</view></view></view><view class="flex-between mt-md mb-md"><view class="flex-y-center f-desc" style="{{'color:'+(primaryColor)+';'}}">剩余<min-countdown vue-id="{{'7d55cf00-3-'+index}}" type="{{2}}" targetTime="{{item.end_time*1000}}" color="{{primaryColor}}" textColor="{{primaryColor}}" borderColor="{{primaryColor}}" data-event-opts="{{[['^callback',[['countEnd']]]]}}" bind:callback="__e" bind:__l="__l"></min-countdown></view><view class="common-btn flex-center f-paragraph c-base radius" style="{{'background:'+(primaryColor)+';'}}">去众筹</view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="7d55cf00-4" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="7d55cf00-5" bind:__l="__l"></abnor></block><view class="space-footer"></view></view>
|
||||
1
front/claim/pages/collage/list.wxss
Normal file
1
front/claim/pages/collage/list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
page{background:#fff}.claim-collage .space-collage{width:100%;height:494rpx;top:0;z-index:-1}.claim-collage .collage-info{height:312rpx;z-index:1}.claim-collage .collage-info .title-img{width:390rpx;height:100rpx;top:-19rpx;left:160rpx;z-index:-1}.claim-collage .collage-info .title{height:58rpx}.claim-collage .collage-info .collage-icon{width:88rpx;height:88rpx}.claim-collage .collage-info .icon-xiangyou{color:rgba(0,146,84,.3)}.claim-collage .my-collage-list{white-space:nowrap;width:calc(100% - 20rpx)}.claim-collage .my-collage-list .my-item{width:550rpx;height:180rpx;background:#f6f7f8;display:inline-block}.claim-collage .my-collage-list .my-item .collage-status{width:188rpx;height:38rpx;top:0;left:0;border-radius:16rpx 0 0 0}.claim-collage .my-collage-list .my-item .cover{width:188rpx;height:180rpx;border-radius:16rpx 0 0 16rpx}.claim-collage .collage-item .cover{width:180rpx;height:170rpx}
|
||||
1
front/claim/pages/collage/more.js
Normal file
1
front/claim/pages/collage/more.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["claim/pages/collage/more"],{2454:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("b03e");i(n("66fd"));var a=i(n("5894"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"387b":function(t,e,n){"use strict";n.r(e);var i=n("8733"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},5894:function(t,e,n){"use strict";n.r(e);var i=n("e22a"),a=n("387b");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("909d");var o=n("f0c5"),c=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},8733:function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2eee")),r=i(n("c973")),o=i(n("9523")),c=n("26cb");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{},data:function(){return{isLoad:!1,options:{},param:{page:1},list:{data:[]},loading:!0,lockTap:!1}},onLoad:function(t){this.$util.showLoading(),this.options=t,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},userInfo:function(t){return t.user.userInfo}}),methods:u(u({},(0,c.mapActions)([""])),{},{initIndex:function(){var t=this;return(0,r.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getList();case 2:t.isLoad=!0,t.$util.hideAll();case 4:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.param.page=1,this.initIndex()},countEnd:function(){var t=this;this.$util.log("倒计时完了"),setTimeout((function(){t.initRefresh()}),1e3)},getList:function(){var t=this;return(0,r.default)(a.default.mark((function e(){var n,i,r,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.list,i=t.param,r=t.options.id,i.claim_id=r,e.next=5,t.$api.claim.claimCollageList(i);case 5:o=e.sent,1==t.param.page||(o.data=n.data.concat(o.data)),t.list=o,t.loading=!1,t.$util.hideAll();case 9:case"end":return e.stop()}}),e)})))()},toJoin:function(t){var e=this.list.data[t],n=e.id,i=e.claim_id,a=e.user_id,r=e.can_join,o=this.$util.getPage(-1).detail.collage_data.join_times,c=this.userInfo.id;if(a!=c&&r){var s="/claim/pages/order?id=".concat(i,"&cid=").concat(n,"&type=2");this.$util.goUrl({url:s})}else this.$util.showToast({title:a==c?"不能参与自己发起的众筹哦":"您已参与此众筹或已达到参与次数".concat(o)})}})};e.default=l}).call(this,n("543d")["default"])},"909d":function(t,e,n){"use strict";var i=n("fdfc"),a=n.n(i);a.a},e22a:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.isLoad&&t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null),i=t.isLoad?!t.loading&&t.list.data.length<=0&&1==t.list.current_page:null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:i}})},a=[]},fdfc:function(t,e,n){}},[["2454","common/runtime","common/vendor"]]]);
|
||||
5
front/claim/pages/collage/more.json
Normal file
5
front/claim/pages/collage/more.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "更多众筹",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/collage/more.wxml
Normal file
1
front/claim/pages/collage/more.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{isLoad}}"><view class="claim-collage-more"><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['toJoin',[index]]]]]}}" class="{{['collage-item','fill-base','flex-center','pd-lg',[(index!=0)?'b-1px-t':'']]}}" bindtap="__e"><image class="avatar radius" src="{{item.user_info.avatarUrl}}"></image><view class="flex-1 flex-center ml-md"><view class="flex-1 mr-md flex-between"><view class="f-desc c-title max-150 ellipsis">{{item.user_info.nickName}}</view><view><view class="flex-between"><view></view><view class="flex-y-center f-paragraph">差<view class="c-warning">{{item.surplus_num+''}}</view>人成团</view></view><view class="flex-y-center f-icontext c-caption">剩<min-countdown vue-id="{{'7661a829-1-'+index}}" type="{{5}}" targetTime="{{item.end_time*1000}}" color="#999" data-event-opts="{{[['^callback',[['countEnd']]]]}}" bind:callback="__e" bind:__l="__l"></min-countdown>结束</view></view></view><view class="common-btn flex-center f-paragraph c-base" style="{{'background:'+(primaryColor)+';'}}">去参与</view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="7661a829-2" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="7661a829-3" bind:__l="__l"></abnor></block><view class="space-footer"></view></view></block>
|
||||
1
front/claim/pages/collage/more.wxss
Normal file
1
front/claim/pages/collage/more.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.claim-collage-more .collage-item .avatar{width:68rpx;height:68rpx}
|
||||
1
front/claim/pages/detail.js
Normal file
1
front/claim/pages/detail.js
Normal file
File diff suppressed because one or more lines are too long
5
front/claim/pages/detail.json
Normal file
5
front/claim/pages/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "认养详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/detail.wxml
Normal file
1
front/claim/pages/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
2
front/claim/pages/detail.wxss
Normal file
2
front/claim/pages/detail.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.claim-detail .collage-info{width:100%;height:143rpx}.claim-detail .collage-info .collage-img{left:0;bottom:0;width:100%;height:156rpx}.claim-detail .collage-info .collage-count{right:12rpx;bottom:30rpx}.claim-detail .collage-info .collage-content{top:0;width:300rpx;height:140rpx}.claim-detail .collage-info .collage-content .collage-num{min-width:76rpx;height:28rpx;background:#fffb00}.claim-detail .price,
|
||||
.claim-detail .icon-share{font-size:42rpx}.claim-detail .collage-item .avatar{width:68rpx;height:68rpx}.claim-detail .count-list .count-item{width:249rpx}.claim-detail .count-list .count-item .ellipsis{max-width:220rpx}.claim-detail .count-list .line{width:1rpx;height:58rpx;background:#ccc;opacity:.4}.claim-detail .map-info map{width:100%;height:450rpx}.claim-detail .map-info .farmer-title{z-index:9;left:15rpx;bottom:10rpx;height:50rpx;background:rgba(0,0,0,.5)}.claim-detail .map-info .farmer-title .iconfont{font-size:24rpx}.claim-detail .order-count-info .count-item{width:33.33%}.claim-detail .order-count-info .machine-item{width:50%}.claim-detail .order-count-info .machine-item .num{width:50rpx}.claim-detail .order-count-info .machine-item .text{width:150rpx;padding-right:10rpx}.claim-detail .footer-btn{bottom:0}.claim-detail .footer-btn .footer-item{height:114rpx}.claim-detail .footer-btn .footer-item .iconfont{font-size:42rpx}.claim-detail .footer-btn .order-btn{width:220rpx;height:78rpx;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.claim-detail .footer-btn .order-btn.md{width:444rpx}.claim-detail .show-collage-share{width:640rpx}.claim-detail .show-collage-share .user-list .more-btn{width:92rpx;height:92rpx;background:#f8f8f8;border:1px solid #dbdbdb}.claim-detail .show-collage-share .user-list .more-btn .icon-add{color:#d8d8d7}.claim-detail .show-collage-share .share-btn{width:420rpx;height:94rpx;color:#fff;border-radius:100rpx}.claim-detail .show-collage-share .icon-close{font-size:80rpx}
|
||||
1
front/claim/pages/order.js
Normal file
1
front/claim/pages/order.js
Normal file
File diff suppressed because one or more lines are too long
5
front/claim/pages/order.json
Normal file
5
front/claim/pages/order.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "确认下单",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order.wxml
Normal file
1
front/claim/pages/order.wxml
Normal file
File diff suppressed because one or more lines are too long
2
front/claim/pages/order.wxss
Normal file
2
front/claim/pages/order.wxss
Normal file
@@ -0,0 +1,2 @@
|
||||
.claim-order .collage-tag{height:36rpx;padding:0 10rpx}.claim-order .send-list{width:180rpx;height:52rpx;border:1rpx solid #ccc;-webkit-transform:rotate(1turn);transform:rotate(1turn);overflow:hidden}.claim-order .send-list .send-item{width:90rpx;height:50rpx}.claim-order .add-btn{width:296rpx;height:72rpx;background:#f6f6f6;border-radius:36rpx;margin:0 auto}.claim-order .pay-item .iconfont{font-size:50rpx}.claim-order .pay-icon{font-size:40rpx}.claim-order .icon-right{font-size:28rpx}.claim-order .icon-peisong,
|
||||
.claim-order .agree-icon{font-size:36rpx}.claim-order .item-text{width:150rpx}.claim-order .auth-phone-btn{width:106rpx;height:36rpx;line-height:36rpx;margin-left:15rpx;font-size:20rpx;background:#f0f4ec;border-radius:10rpx}.claim-order .footer-btn{bottom:0}.claim-order .footer-btn .footer-item{height:114rpx}.claim-order .footer-btn .footer-item .order-btn{width:332rpx;height:88rpx}
|
||||
1
front/claim/pages/order/breed/detail.js
Normal file
1
front/claim/pages/order/breed/detail.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["claim/pages/order/breed/detail"],{"36a4":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("2eee")),i=r(n("c973")),c=r(n("9523")),u=n("26cb");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={components:{},data:function(){return{scrollTop:0,options:{},detail:{},payType:{1:"微信支付",2:"余额支付",3:"支付宝支付"}}},onLoad:function(e){this.$util.showLoading(),this.options=e,this.initIndex()},onPageScroll:function(e){this.scrollTop=e.scrollTop},computed:(0,u.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},userInfo:function(e){return e.user.userInfo}}),methods:f(f({},(0,u.mapActions)([""])),{},{initIndex:function(){var e=this;return(0,i.default)(o.default.mark((function t(){var n,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.options.id,t.next=3,e.$api.claim.breedOrderInfo({id:n});case 3:r=t.sent,e.detail=r,e.$util.hideAll();case 6:case"end":return t.stop()}}),t)})))()},initRefresh:function(){this.initIndex()}})};t.default=l},"3b9e":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return e.$util.goUrl({url:""+e.detail.order_code,openType:"copy"})},e.e1=function(t){return e.$util.goUrl({url:""+e.detail.transaction_id,openType:"copy"})})},o=[]},"531a":function(e,t,n){"use strict";n.r(t);var r=n("36a4"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=o.a},abf5:function(e,t,n){"use strict";var r=n("d2e6"),o=n.n(r);o.a},c902:function(e,t,n){"use strict";n.r(t);var r=n("3b9e"),o=n("531a");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("abf5");var c=n("f0c5"),u=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);t["default"]=u.exports},cf8a:function(e,t,n){"use strict";(function(e,t){var r=n("4ea4");n("b03e");r(n("66fd"));var o=r(n("c902"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},d2e6:function(e,t,n){}},[["cf8a","common/runtime","common/vendor"]]]);
|
||||
5
front/claim/pages/order/breed/detail.json
Normal file
5
front/claim/pages/order/breed/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "养殖详情",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order/breed/detail.wxml
Normal file
1
front/claim/pages/order/breed/detail.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{detail.id}}"><view class="claim-order-detail"><uni-nav-bar vue-id="2f6470e6-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{scrollTop<20?'':primaryColor}}" leftIcon="icon-left" title="养殖详情" bind:__l="__l"></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><image class="common-bg abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-cash.png"></image><view class="{{['order-item','fill-base','mg-big','pd-lg','radius-16','box-shadow',[(index!=0)?'mt-md':'']]}}"><block wx:for="{{detail.order_goods}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="aindex"><view class="{{['flex-center',[(aindex!=0)?'mt-md':'']]}}"><image class="avatar radius-16" mode="aspectFill" lazy-load="{{true}}" src="{{aitem.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-paragraph c-title text-bold ellipsis" style="max-width:498rpx;">{{''+aitem.goods_name+''}}</view><view class="flex-between f-desc c-caption mt-md"><view class="f-paragraph c-warning">{{'¥'+aitem.goods_price+''}}</view><view>{{"x"+aitem.goods_num}}</view></view></view></view></block></view><block wx:if="{{detail.text}}"><view class="fill-base mg-md pd-lg radius-24"><view class="f-paragraph c-title"><view class="c-desc">订单备注</view><view class="mt-sm"><text style="word-break:break-all;" decode="emsp">{{detail.text}}</text></view></view></view></block><view class="fill-base mg-md pd-lg radius-24"><view class="flex-between f-paragraph c-title"><view class="c-desc">订单编号</view><view class="flex-warp"><view class="max-400 ellipsis">{{detail.order_code}}</view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="copy-btn flex-center fill-body" style="{{'color:'+(primaryColor)+';'}}" bindtap="__e">复制</view></view></view><view class="flex-between f-paragraph c-title mt-lg"><view class="c-desc">付款单号</view><view class="flex-warp"><view class="max-400 ellipsis">{{detail.transaction_id}}</view><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="copy-btn flex-center fill-body" style="{{'color:'+(primaryColor)+';'}}" bindtap="__e">复制</view></view></view><view class="flex-between f-paragraph c-title mt-lg"><view class="c-desc">下单时间</view><view>{{detail.create_time}}</view></view><block wx:if="{{detail.pay_time}}"><view class="flex-between f-paragraph c-title mt-lg"><view class="c-desc">支付时间</view><view>{{detail.pay_time}}</view></view></block><view class="flex-between f-paragraph c-title mt-lg"><view class="c-desc">实付金额</view><view class="c-warning">{{"¥"+detail.pay_price}}</view></view><view class="flex-between f-paragraph c-title mt-lg"><view class="c-desc">支付方式</view><view>{{payType[detail.pay_model]}}</view></view></view></view></block>
|
||||
1
front/claim/pages/order/breed/detail.wxss
Normal file
1
front/claim/pages/order/breed/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.claim-order-detail .order-video-info{width:750rpx;height:380rpx;margin-top:26rpx}.claim-order-detail .order-video-info .video-img{width:750rpx;height:380rpx}.claim-order-detail .order-video-info .video-bg{top:0;left:0;width:750rpx;height:380rpx;background:rgba(0,0,0,.5)}.claim-order-detail .order-video-info .video-bg .iconfont{font-size:70rpx}.claim-order-detail .order-count-info .count-item{width:33.33%}.claim-order-detail .order-seed-item .seed-img{width:80rpx;height:80rpx;box-shadow:0 0 10px 0 rgba(0,0,0,.1)}.claim-order-detail .send-btn{width:180rpx;height:56rpx}
|
||||
1
front/claim/pages/order/breed/list.js
Normal file
1
front/claim/pages/order/breed/list.js
Normal file
File diff suppressed because one or more lines are too long
6
front/claim/pages/order/breed/list.json
Normal file
6
front/claim/pages/order/breed/list.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "养殖管理",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order/breed/list.wxml
Normal file
1
front/claim/pages/order/breed/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="claim-order-detail"><uni-nav-bar vue-id="00a40b60-1" fixed="{{true}}" shadow="{{false}}" statusBar="{{true}}" color="#fff" backgroundColor="{{scrollTop<20?'':primaryColor}}" leftIcon="icon-left" title="养殖管理" bind:__l="__l"></uni-nav-bar><view style="{{'height:'+(configInfo.navBarHeight+'px')+';'}}"></view><image class="common-bg breed abs" mode="aspectFill" lazy-load="{{true}}" src="https://lbqny.migugu.com/admin/farm/bg-breed.png"></image><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="{{['order-item','flex-center','fill-base','mg-big','pd-lg','radius-16','box-shadow',[(index!=0)?'mt-md':'']]}}" catchtap="__e"><image class="avatar big radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{item.cover}}"></image><view class="flex-1 ml-lg"><view class="f-title c-title text-bold ellipsis" style="max-width:468rpx;">{{''+item.title+''}}</view><view class="f-caption c-caption mt-md mb-md ellipsis" style="max-width:468rpx;">{{''+item.sub_title+''}}</view><view class="flex-between"><view class="f-title c-warning">{{'¥'+item.price+''}}</view><view class="add-remove-item flex-warp"><block wx:if="{{item.car_num>0}}"><block><view data-event-opts="{{[['tap',[['toAddCar',[index,-1]]]]]}}" class="iconfont icon-remove-square _i" catchtap="__e"></view><view class="number-text flex-center">{{item.car_num}}</view></block></block><view data-event-opts="{{[['tap',[['toAddCar',[index,1]]]]]}}" class="iconfont icon-add-square _i" style="{{'color:'+(primaryColor)+';'}}" catchtap="__e"></view></view></view></view></view></block><block wx:if="{{loading}}"><load-more vue-id="00a40b60-2" noMore="{{$root.g0}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g1}}"><abnor vue-id="00a40b60-3" bind:__l="__l"></abnor></block><view class="space-footer"></view><view class="space-max-footer"></view><block wx:if="{{list.count>0}}"><view class="footer-btn fix pl-lg pr-lg fill-base"><image class="cart-img abs" mode="aspectFill" lazy-load="{{true}}" src="/static/image/farm/breed-cart.png"></image><block wx:if="{{list.count}}"><view class="cart-msg flex-center c-base f-icontext abs" style="{{'width:'+(list.count<10?'30rpx':'50rpx')+';'}}">{{''+(list.count<100?list.count:'99+')+''}}</view></block><view class="footer-item flex-between"><view class="flex-y-baseline">总计:<view class="c-warning ml-sm">{{"¥"+list.total_price}}</view></view><view data-event-opts="{{[['tap',[['toOrder',['$event']]]]]}}" class="order-btn flex-center f-title c-base text-bold radius-20" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">立即下单</view></view><view class="space-safe"></view></view></block></view>
|
||||
1
front/claim/pages/order/breed/list.wxss
Normal file
1
front/claim/pages/order/breed/list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.claim-order-detail .footer-btn{bottom:0}.claim-order-detail .footer-btn .cart-img{width:108rpx;height:108rpx;top:-8rpx}.claim-order-detail .footer-btn .cart-msg{width:30rpx;height:30rpx;line-height:30rpx;border-radius:15rpx 15rpx 15rpx 0;background:#f12c20;top:-8rpx;left:108rpx}.claim-order-detail .footer-btn .footer-item{height:114rpx;margin-left:180rpx}.claim-order-detail .footer-btn .footer-item .order-btn{width:226rpx;height:88rpx}
|
||||
1
front/claim/pages/order/collage/detail.js
Normal file
1
front/claim/pages/order/collage/detail.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["claim/pages/order/collage/detail"],{"0c53":function(t,n,e){"use strict";(function(t){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e("2eee")),o=i(e("c973")),c=i(e("9523")),u=e("26cb");function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function f(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){(0,c.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s={components:{},data:function(){return{options:{},detail:{},statusType:{2:{title:"众筹活动已人满成功",text:"众筹成功"},3:{title:"众筹超时失败",text:"众筹失败"}}}},onLoad:function(t){this.$util.showLoading(),this.options=t,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},computed:(0,u.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),methods:f(f({},(0,u.mapActions)([""])),{},{initIndex:function(){var t=this;return(0,o.default)(r.default.mark((function n(){var e,i,o,c,u;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e=t.options.id,n.next=3,t.$api.claim.claimCollageInfo({id:e});case 3:i=n.sent,o=i.success_num,c=i.user_list,u=c.length,i.more_num=u>3?1:o>4?5-u:o-u,t.detail=i,t.$util.hideAll();case 9:case"end":return n.stop()}}),n)})))()},initRefresh:function(){this.initIndex()},countEnd:function(){var t=this;this.$util.log("倒计时完了"),setTimeout((function(){t.initRefresh()}),1e3)},toAppShare:function(){},toOrder:function(){var t=this.detail,n=t.id,e=t.atv_id,i=t.claim_id,r=t.status,o=1==r?2:1,c=1==o?e:n,u="/claim/pages/order?id=".concat(i,"&cid=").concat(c,"&type=").concat(o);this.$util.goUrl({url:u})}})};n.default=s}).call(this,e("543d")["default"])},"196c":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},r=[]},2523:function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("b03e");i(e("66fd"));var r=i(e("dd87"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(r.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"2d9a":function(t,n,e){},6494:function(t,n,e){"use strict";e.r(n);var i=e("0c53"),r=e.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=r.a},dd87:function(t,n,e){"use strict";e.r(n);var i=e("196c"),r=e("6494");for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(o);e("f590");var c=e("f0c5"),u=Object(c["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},f590:function(t,n,e){"use strict";var i=e("2d9a"),r=e.n(i);r.a}},[["2523","common/runtime","common/vendor"]]]);
|
||||
5
front/claim/pages/order/collage/detail.json
Normal file
5
front/claim/pages/order/collage/detail.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "众筹详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order/collage/detail.wxml
Normal file
1
front/claim/pages/order/collage/detail.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<block wx:if="{{detail.id}}"><view class="claim-order-collage-detail"><view class="mg-md"><view class="collage-item flex-center pd-lg fill-base radius-16"><image class="cover radius-10" mode="aspectFill" lazy-load="{{true}}" src="{{detail.claim_cover}}"></image><view class="flex-1 ml-md"><view class="f-title c-title text-bold ellipsis">{{detail.claim_title}}</view><view class="flex-y-center f-desc c-warning mt-sm">众筹价<view class="flex-y-baseline f-caption ml-sm">¥<view class="f-sm-title text-bold">{{detail.price}}</view></view><view class="f-icontext c-caption text-delete ml-sm">{{"原价 ¥"+detail.claim_price}}</view></view><view class="flex-center mt-md"><view class="collage-tag flex-center f-caption c-base" style="{{'background:'+(primaryColor)+';'}}">{{''+detail.success_num+'人团'}}</view><view class="flex-1"></view></view></view></view><view class="mt-md pd-lg flex-center flex-column fill-base radius-16"><view class="space-md"></view><view class="flex-center"><image class="tag-img mr-lg" lazy-load="{{true}}" src="/static/image/farm/tag.png"></image><view class="f-md-title text-bold" style="{{'color:'+(primaryColor)+';'}}">{{''+(detail.status==1?'还差'+detail.surplus_num+'人, 成团立享超值优惠':statusType[detail.status].title)+''}}</view><image class="tag-img ml-lg" lazy-load="{{true}}" src="/static/image/farm/tag.png"></image></view><block wx:if="{{detail.status==1}}"><block><view class="user-list flex-center mt-lg mb-md"><block wx:for="{{detail.user_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{index<detail.success_num>4?4:detail.success_num-1}}"><image class="avatar radius" src="{{item}}"></image></block></block></block><block wx:if="{{detail.surplus_num}}"><block><block wx:for="{{detail.more_num}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="avatar flex-center radius"><view class="iconfont icon-add _i"></view></view></block></block></block></view><view class="flex-y-center mt-lg mb-lg" style="{{'color:'+(primaryColor)+';'}}"><min-countdown vue-id="1ae7bb6c-1" type="{{2}}" targetTime="{{detail.end_time*1000}}" color="#333" textColor="#999" bgColor="#F7F7F7" className="sm" data-event-opts="{{[['^callback',[['countEnd']]]]}}" bind:callback="__e" bind:__l="__l"></min-countdown></view><view class="f-desc c-caption">{{"还差"+detail.surplus_num+"人成团,距离结束还剩"}}</view><view class="space-lg"></view></block></block><block wx:else><view class="collage-status-icon iconfont icon-biaoqian flex-center" style="{{'color:'+(detail.status==2?primaryColor:'#E82F21')+';'}}"><view class="f-md-title text-bold abs">{{statusType[detail.status].text}}</view></view></block><block wx:if="{{detail.status==1&&!detail.can_join}}"><block><button class="clear-btn share-btn flex-center f-sm-title" style="{{'background:'+(primaryColor)+';'}}" open-type="share">邀请好友</button></block></block><block wx:if="{{detail.status==1&&detail.can_join||detail.status>1&&detail.can_start}}"><view data-event-opts="{{[['tap',[['toOrder',['$event']]]]]}}" class="share-btn flex-center f-sm-title" style="{{'background:'+(primaryColor)+';'}}" bindtap="__e">{{''+(detail.status==1?'立即参与':'再开一团')+''}}</view></block><view class="space-lg"></view></view></view></view></block>
|
||||
1
front/claim/pages/order/collage/detail.wxss
Normal file
1
front/claim/pages/order/collage/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.claim-order-collage-detail .collage-item .cover{width:180rpx;height:170rpx}.claim-order-collage-detail .collage-item .ellipsis{max-width:450rpx}.claim-order-collage-detail .collage-item .collage-tag{height:36rpx;padding:0 10rpx}.claim-order-collage-detail .tag-img{width:26rpx;height:24rpx}.claim-order-collage-detail .collage-status-icon{width:210rpx;height:200rpx;font-size:200rpx;margin:50rpx auto}.claim-order-collage-detail .collage-status-icon .text-bold{height:40rpx;-webkit-transform:rotate(-32deg);transform:rotate(-32deg)}.claim-order-collage-detail .user-list .avatar{width:92rpx;height:92rpx;margin:0 17rpx}.claim-order-collage-detail .user-list .avatar .icon-add{color:#d8d8d7}.claim-order-collage-detail .user-list .avatar.flex-center{background:#f8f8f8;border:1px solid #dbdbdb}.claim-order-collage-detail .share-btn{width:590rpx;height:90rpx;color:#fff;border-radius:100rpx}
|
||||
1
front/claim/pages/order/collage/list.js
Normal file
1
front/claim/pages/order/collage/list.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["claim/pages/order/collage/list"],{1176:function(t,i,n){"use strict";(function(t){var a=n("4ea4");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=a(n("2eee")),o=a(n("c973")),r=n("26cb"),s={components:{},data:function(){return{options:{},activeIndex:0,tabList:[{id:1,title:"未成团"},{id:2,title:"已成团"}],statusType:{1:"进行中",2:"众筹成功",3:"众筹超时"},param:{page:1},list:{data:[]},loading:!0,popupInfo:{},lockTap:!1}},computed:(0,r.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){this.$util.showLoading(),this.options=t;var i=t.tab,n=void 0===i?0:i;this.activeIndex=n,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:{initIndex:function(){this.getList()},initRefresh:function(){this.param.page=1,this.initIndex()},countEnd:function(){var t=this;this.$util.log("倒计时完了"),setTimeout((function(){t.initRefresh()}),1e3)},handerTabChange:function(t){this.activeIndex=t,this.$util.showLoading(),this.param.page=1,this.list.data=[],this.getList()},getList:function(){var t=this;return(0,o.default)(e.default.mark((function i(){var n,a,o,r,s;return e.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=t.list,a=t.param,o=t.tabList,r=t.activeIndex,a.status=o[r].id,i.next=4,t.$api.claim.userCollageList(a);case 4:s=i.sent,1==t.param.page||(s.data=n.data.concat(s.data)),t.list=s,t.loading=!1,t.$util.hideAll();case 8:case"end":return i.stop()}}),i)})))()},goDetail:function(t){var i=this.list.data[t],n=i.start_id,a=i.order_id,e=this.activeIndex,o=0==e?"/claim/pages/order/collage/detail?id=".concat(n):"/claim/pages/order/detail?id=".concat(a);this.$util.goUrl({url:o})}}};i.default=s}).call(this,n("543d")["default"])},"11f3":function(t,i,n){"use strict";n.r(i);var a=n("1176"),e=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return a[t]}))}(o);i["default"]=e.a},"1a0e":function(t,i,n){"use strict";var a=n("b98d"),e=n.n(a);e.a},"36ef":function(t,i,n){"use strict";(function(t,i){var a=n("4ea4");n("b03e");a(n("66fd"));var e=a(n("c8bad"));t.__webpack_require_UNI_MP_PLUGIN__=n,i(e.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},b98d:function(t,i,n){},c698:function(t,i,n){"use strict";n.d(i,"b",(function(){return a})),n.d(i,"c",(function(){return e})),n.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,n=(t._self._c,t.tabList.length),a=t.loading?t.list.current_page>=t.list.last_page&&t.list.data.length>0:null,e=!t.loading&&t.list.data.length<=0&&1==t.list.current_page;t.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:e}})},e=[]},c8bad:function(t,i,n){"use strict";n.r(i);var a=n("c698"),e=n("11f3");for(var o in e)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(o);n("1a0e");var r=n("f0c5"),s=Object(r["a"])(e["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);i["default"]=s.exports}},[["36ef","common/runtime","common/vendor"]]]);
|
||||
5
front/claim/pages/order/collage/list.json
Normal file
5
front/claim/pages/order/collage/list.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的众筹",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order/collage/list.wxml
Normal file
1
front/claim/pages/order/collage/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="claim-order-collage-list"><fixed vue-id="3ad12a02-1" bind:__l="__l" vue-slots="{{['default']}}"><view class="fill-base pd-lg f-paragraph c-title b-1px-b">{{"我参与了"+(list.total_num||0)+"个众筹"}}</view><tab vue-id="{{('3ad12a02-2')+','+('3ad12a02-1')}}" list="{{tabList}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab><view class="b-1px-b"></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="order-item rel fill-base mg-big pd-lg radius-16" catchtap="__e"><block wx:if="{{activeIndex==0&&item.status==1}}"><view class="flex-between pb-lg f-desc b-1px-b" style="{{'color:'+(primaryColor)+';'}}"><view>距离开团结束仅剩</view><min-countdown vue-id="{{'3ad12a02-3-'+index}}" type="{{2}}" targetTime="{{item.end_time*1000}}" color="{{primaryColor}}" textColor="{{primaryColor}}" borderColor="{{primaryColor}}" data-event-opts="{{[['^callback',[['countEnd']]]]}}" bind:callback="__e" bind:__l="__l"></min-countdown></view></block><view class="{{['pb-lg','f-sm-title','c-title','text-bold',[(activeIndex==0&&item.status==1)?'pt-lg':'']]}}">{{''+item.claim_title+''}}</view><view class="flex-center"><view class="flex-warp flex-1"><block wx:for="{{item.user_avatar}}" wx:for-item="aitem" wx:for-index="aindex" wx:key="*this"><block><block wx:if="{{aindex<4}}"><view class="avatar-group md"><image class="abs avatar fill-body radius" mode="aspectFill" lazy-load="{{true}}" src="{{aitem}}"></image></view></block></block></block></view><block wx:if="{{activeIndex==1}}"><view class="common-btn flex-center f-desc c-base" style="{{'background:'+(primaryColor)+';'}}">查看订单</view></block></view><block wx:if="{{activeIndex==0}}"><view class="collage-status-icon abs iconfont icon-biaoqian flex-center" style="{{'color:'+(item.status==1?primaryColor:'#E82F21')+';'}}"><view class="f-icontext text-bold abs">{{statusType[item.status]}}</view></view></block></view></block><block wx:if="{{loading}}"><load-more vue-id="3ad12a02-4" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="3ad12a02-5" bind:__l="__l"></abnor></block><view class="space-footer"></view><common-popup class="vue-ref" vue-id="3ad12a02-6" type="CANCEL_ORDER" info="{{popupInfo}}" data-ref="cancel_item" data-event-opts="{{[['^confirm',[['confirmCancel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view>
|
||||
1
front/claim/pages/order/collage/list.wxss
Normal file
1
front/claim/pages/order/collage/list.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.claim-order-collage-list .order-item .collage-status-icon{right:30rpx;bottom:30rpx;width:110rpx;height:100rpx;font-size:100rpx}.claim-order-collage-list .order-item .collage-status-icon .text-bold{height:26rpx;-webkit-transform:rotate(-32deg);transform:rotate(-32deg)}
|
||||
1
front/claim/pages/order/detail.js
Normal file
1
front/claim/pages/order/detail.js
Normal file
File diff suppressed because one or more lines are too long
6
front/claim/pages/order/detail.json
Normal file
6
front/claim/pages/order/detail.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationBarTitleText": "认养详情",
|
||||
"enablePullDownRefresh": true,
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order/detail.wxml
Normal file
1
front/claim/pages/order/detail.wxml
Normal file
File diff suppressed because one or more lines are too long
1
front/claim/pages/order/detail.wxss
Normal file
1
front/claim/pages/order/detail.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.claim-order-detail .order-video-info{width:750rpx;height:380rpx;margin-top:26rpx}.claim-order-detail .order-video-info .video-img{width:750rpx;height:380rpx}.claim-order-detail .order-video-info .video-bg{top:0;left:0;width:750rpx;height:380rpx;background:rgba(0,0,0,.5)}.claim-order-detail .order-video-info .video-bg .iconfont{font-size:70rpx}.claim-order-detail .order-count-info .count-item{width:33.33%}.claim-order-detail .order-count-info .machine-item{width:50%}.claim-order-detail .order-count-info .machine-item .num{width:50rpx}.claim-order-detail .order-count-info .machine-item .text{width:150rpx;padding-right:10rpx}.claim-order-detail .order-seed-item .seed-img{width:80rpx;height:80rpx;box-shadow:0 0 10px 0 rgba(0,0,0,.1)}.claim-order-detail .send-btn{width:180rpx;height:56rpx;-webkit-transform:rotate(1turn);transform:rotate(1turn)}.claim-order-detail .popup-send{width:686rpx}.claim-order-detail .popup-send .textarea-item{width:506rpx;height:200rpx;border:1rpx solid #eee;-webkit-transform:rotate(1turn);transform:rotate(1turn)}
|
||||
1
front/claim/pages/order/list.js
Normal file
1
front/claim/pages/order/list.js
Normal file
File diff suppressed because one or more lines are too long
5
front/claim/pages/order/list.json
Normal file
5
front/claim/pages/order/list.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的认养",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/claim/pages/order/list.wxml
Normal file
1
front/claim/pages/order/list.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="farmer-order-land-list"><fixed vue-id="cf376b0a-1" bind:__l="__l" vue-slots="{{['default']}}"><tab vue-id="{{('cf376b0a-2')+','+('cf376b0a-1')}}" list="{{tabList}}" activeIndex="{{activeIndex}}" activeColor="{{primaryColor}}" width="{{100/$root.g0+'%'}}" height="100rpx" data-event-opts="{{[['^change',[['handerTabChange']]]]}}" bind:change="__e" bind:__l="__l"></tab><view class="b-1px-b"></view></fixed><block wx:for="{{list.data}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['goDetail',[index]]]]]}}" class="order-item fill-base mg-big pd-lg radius-16 box-shadow" catchtap="__e"><view class="flex-between pb-lg c-title"><view class="f-title flex-y-baseline"><view class="iconfont icon-dianpu mr-sm _i"></view><view class="text-bold max-400 ellipsis">{{item.farmer_info.title}}</view></view><view class="f-paragraph" style="{{'color:'+(item.pay_type==1?subColor:item.pay_type==2?primaryColor:'')+';'}}">{{''+statusType[item.pay_type]+''}}</view></view><view class="flex-center"><image class="avatar radius-24" mode="aspectFill" lazy-load="{{true}}" src="{{item.goods_cover}}"></image><view class="flex-1 ml-lg"><view class="f-title c-title text-bold ellipsis" style="max-width:498rpx;">{{''+item.goods_name+''}}</view><view class="f-caption c-caption mt-sm">{{'数量:'+(item.num+'/'+item.unit)+''}}</view><view class="f-caption c-caption">{{'配送周期:'+item.send_cycle+''}}</view></view></view><view class="flex-between f-paragraph mt-md pt-md b-1px-t"><view class="c-desc max-380 ellipsis">{{"认养编号 "+item.claim_code}}</view><view class="flex-y-baseline c-title">总计:<view class="f-title c-warning">{{"¥"+item.pay_price}}</view></view></view><view class="flex-between mt-md"><view></view><block wx:if="{{item.pay_type==1}}"><view class="flex-warp"><view data-event-opts="{{[['tap',[['toChangeOrder',[index,'cancel_item']]]]]}}" class="common-btn disabled flex-center f-caption c-title radius-4" catchtap="__e">取消订单</view><view data-event-opts="{{[['tap',[['toPay',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">去支付</view></view></block><block wx:if="{{item.pay_type==2}}"><view class="flex-warp"><view data-event-opts="{{[['tap',[['goDetail',[index,2]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">养殖管理</view></view></block><block wx:if="{{item.pay_type==7&&!item.have_eva}}"><view class="flex-warp"><view data-event-opts="{{[['tap',[['toEvaluate',[index]]]]]}}" class="common-btn flex-center f-caption c-base radius-4 ml-lg" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">去评价</view></view></block></view></view></block><block wx:if="{{loading}}"><load-more vue-id="cf376b0a-3" noMore="{{$root.g1}}" loading="{{loading}}" bind:__l="__l"></load-more></block><block wx:if="{{$root.g2}}"><abnor vue-id="cf376b0a-4" bind:__l="__l"></abnor></block><view class="space-footer"></view><common-popup class="vue-ref" vue-id="cf376b0a-5" type="CANCEL_ORDER" info="{{popupInfo}}" data-ref="cancel_item" data-event-opts="{{[['^confirm',[['confirmCancel']]]]}}" bind:confirm="__e" bind:__l="__l"></common-popup></view>
|
||||
1
front/common/main.js
Normal file
1
front/common/main.js
Normal file
@@ -0,0 +1 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{1341:function(n,e,t){"use strict";t.r(e);var o=t("5c4b");for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);t("ba37");var u=t("f0c5"),r=Object(u["a"])(o["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);e["default"]=r.exports},"5c4b":function(n,e,t){"use strict";t.r(e);var o=t("bb12"),c=t.n(o);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);e["default"]=c.a},"6aa1":function(n,e,t){},"8ff7":function(n,e,t){"use strict";(function(n,e){var o=t("4ea4"),c=o(t("9523"));t("b03e");var u=o(t("66fd")),r=o(t("1341")),l=o(t("f09c")),a=o(t("0883")),i=o(t("3e8a")),f=o(t("e0f6"));function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,c.default)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}n.__webpack_require_UNI_MP_PLUGIN__=t,u.default.use(l.default);u.default.component("banner",(function(){t.e("components/banner").then(function(){return resolve(t("31a9"))}.bind(null,t)).catch(t.oe)})),u.default.component("column",(function(){t.e("components/column").then(function(){return resolve(t("e6c6"))}.bind(null,t)).catch(t.oe)})),u.default.component("fixed",(function(){t.e("components/fixed").then(function(){return resolve(t("04b4"))}.bind(null,t)).catch(t.oe)})),u.default.component("search",(function(){t.e("components/search").then(function(){return resolve(t("3cc0"))}.bind(null,t)).catch(t.oe)})),u.default.component("auth",(function(){t.e("components/auth").then(function(){return resolve(t("4539"))}.bind(null,t)).catch(t.oe)})),u.default.component("tab",(function(){t.e("components/tab").then(function(){return resolve(t("882c"))}.bind(null,t)).catch(t.oe)})),u.default.component("timeline",(function(){t.e("components/timeline").then(function(){return resolve(t("f684"))}.bind(null,t)).catch(t.oe)})),u.default.component("abnor",(function(){t.e("components/abnor").then(function(){return resolve(t("bd24"))}.bind(null,t)).catch(t.oe)})),u.default.component("loadMore",(function(){t.e("components/load-more").then(function(){return resolve(t("c1dd"))}.bind(null,t)).catch(t.oe)})),u.default.component("upload",(function(){t.e("components/upload").then(function(){return resolve(t("3066"))}.bind(null,t)).catch(t.oe)})),u.default.component("parser",(function(){Promise.all([t.e("common/vendor"),t.e("components/jyf-Parser/index")]).then(function(){return resolve(t("c84c"))}.bind(null,t)).catch(t.oe)})),u.default.component("minCountdown",(function(){t.e("components/min-countdown").then(function(){return resolve(t("b00b"))}.bind(null,t)).catch(t.oe)})),u.default.component("uniNavBar",(function(){t.e("components/uni-nav-bar").then(function(){return resolve(t("99ee"))}.bind(null,t)).catch(t.oe)})),u.default.component("uniPopup",(function(){t.e("components/uni-popup").then(function(){return resolve(t("8d51"))}.bind(null,t)).catch(t.oe)})),u.default.component("commonPopup",(function(){t.e("components/common-popup").then(function(){return resolve(t("56a6"))}.bind(null,t)).catch(t.oe)})),u.default.component("loginInfo",(function(){t.e("components/login-info").then(function(){return resolve(t("ac86"))}.bind(null,t)).catch(t.oe)})),u.default.component("fixBottomButton",(function(){t.e("components/fix-bottom-button").then(function(){return resolve(t("2329"))}.bind(null,t)).catch(t.oe)})),u.default.prototype.$api=a.default,u.default.prototype.$util=i.default,u.default.config.productionTip=!1,r.default.mpType="app";var s=new u.default(d(d({},r.default),{},{store:f.default}));e(s).$mount()}).call(this,t("bc2e")["default"],t("543d")["createApp"])},ba37:function(n,e,t){"use strict";var o=t("6aa1"),c=t.n(o);c.a},bb12:function(n,e,t){"use strict";(function(n){var o=t("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=o(t("e0f6")),u={onLaunch:function(){["autograph","userInfo","appLogin","loginType","push_id"].map((function(e){var t=n.getStorageSync(e)||"";t&&c.default.commit("updateUserItem",{key:e,val:t})}))},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};e.default=u}).call(this,t("543d")["default"])}},[["8ff7","common/runtime","common/vendor"]]]);
|
||||
3
front/common/main.wxss
Normal file
3
front/common/main.wxss
Normal file
File diff suppressed because one or more lines are too long
4
front/common/runtime.js
Normal file
4
front/common/runtime.js
Normal file
File diff suppressed because one or more lines are too long
19
front/common/vendor.js
Normal file
19
front/common/vendor.js
Normal file
File diff suppressed because one or more lines are too long
10
front/components/abnor.js
Normal file
10
front/components/abnor.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/abnor"],{"20e6":function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("26cb"),u={REQUEST_ERROR:{image:"https://lbqny.migugu.com/admin/public/request-error.png",title:"网络加载失败",button:[{text:"点击刷新",type:"confirm"}],tip:[]},NOT_FOUND:{image:"https://lbqny.migugu.com/admin/public/not-found.png",title:"很抱歉,找不到你要访问的页面",button:[{text:"返回",type:"cancel"}],tip:[]},DATA:{image:"/static/image/loading/no-data.png",title:"没有相关数据哦",button:[],tip:[{text:"",color:0}]},FOLLOW:{image:"https://lbqny.migugu.com/admin/public/no-follow.png",title:"关注有趣的人",button:[],tip:[{text:"不再错过他们每一条动态",color:0}]},FEED:{image:"https://lbqny.migugu.com/admin/public/no-feed.png",title:"还没有任何反馈哦",button:[],tip:[]},SHOP:{image:"https://lbqny.migugu.com/admin/public/no-shop.png",title:"稍后再来试试吧~",button:[],tip:[]},WEIBO:{image:"https://lbqny.migugu.com/admin/public/no-weibo.png",title:"",button:[],tip:[]},SEARCH:{image:"https://lbqny.migugu.com/admin/public/no-search.png",title:"抱歉!没找到相关商品~",button:[],tip:[]},TAG:{image:"https://lbqny.migugu.com/admin/public/no-tag.png",title:"",button:[],tip:[]},MESSAGE:{image:"https://lbqny.migugu.com/admin/public/no-message.png",title:"消息通知空空如也",button:[],tip:[]},LIVE:{image:"https://lbqny.migugu.com/admin/public/no-live.png",title:"",button:[],tip:[]},ORDER:{image:"https://lbqny.migugu.com/admin/public/no-order.png",title:"还没有相关订单哦",button:[],tip:[]},CART:{image:"https://lbqny.migugu.com/admin/public/no-cart.png",title:"购物车还是空的哦~",button:[{text:"去逛逛",type:"confirm"}],tip:[]},FOOTPRINT:{image:"https://lbqny.migugu.com/admin/public/no-footprint.png",title:"你还没有足迹~",button:[],tip:[]},COUPON:{image:"/static/image/loading/coupon.png",title:"暂无卡券",button:[],tip:[{text:"去首页逛逛吧~",color:0}]},REDUCTION:{image:"https://lbqny.migugu.com/admin/reduction/nodata.png",title:"您当前没有满减券,请向工作人员索取",button:[],tip:[]}},o={name:"abnor",props:{type:{type:String,default:function(){return"DATA"}},image:{type:String,default:function(){return""}},title:{type:String,default:function(){return""}},tip:{type:Array,default:function(){return[]}},button:{type:Array,default:function(){return[]}},tipTap:{type:String,default:function(){return""}},tipMax:{type:String,default:function(){return"100%"}},btnSize:{type:String,default:function(){return"big"}},percent:{type:String,default:function(){return"100%"}}},created:function(){this.init()},data:function(){return{pimage:"",ptitle:"",ptip:"",pbutton:""}},computed:(0,e.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),methods:{emitAbnorTipTap:function(){var t=this.tipTap,i=void 0===t?"":t;i&&this.$emit(i)},emitAbnorTap:function(t){var i=this.pbutton[t].type;this.$emit(i)},init:function(){var t=this.type;u[t]&&(this.pimage=this.image||u[t].image,this.ptitle=this.title||u[t].title,this.pbutton=this.button.length>0?this.button:u[t].button,this.ptip=this.tip.length>0?this.tip:u[t].tip)}}};i.default=o},8922:function(t,i,n){"use strict";var e=n("eaec"),u=n.n(e);u.a},b84b:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return u})),n.d(i,"a",(function(){}));var e=function(){var t=this.$createElement;this._self._c},u=[]},bd24:function(t,i,n){"use strict";n.r(i);var e=n("b84b"),u=n("ed93");for(var o in u)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return u[t]}))}(o);n("8922");var p=n("f0c5"),a=Object(p["a"])(u["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],void 0);i["default"]=a.exports},eaec:function(t,i,n){},ed93:function(t,i,n){"use strict";n.r(i);var e=n("20e6"),u=n.n(e);for(var o in e)["default"].indexOf(o)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(o);i["default"]=u.a}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/abnor-create-component',
|
||||
{
|
||||
'components/abnor-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("bd24"))
|
||||
})
|
||||
},
|
||||
[['components/abnor-create-component']]
|
||||
]);
|
||||
4
front/components/abnor.json
Normal file
4
front/components/abnor.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/abnor.wxml
Normal file
1
front/components/abnor.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="abnor" style="{{'padding-bottom:'+(percent)+';'}}"><view class="abnor-box"><block wx:if="{{pimage}}"><image class="abnor-image" mode="aspectFit" src="{{pimage}}"></image></block><block wx:if="{{ptitle}}"><view class="abnor-text">{{ptitle}}</view></block><block wx:if="{{ptip}}"><view data-event-opts="{{[['tap',[['emitAbnorTipTap',['$event']]]]]}}" class="{{['abnor-tip',[(!tipMax)?'tip-flex':'']]}}" style="{{'max-width:'+(tipMax)+';'+('text-align:'+(tipMax?'left':'')+';')}}" catchtap="__e"><block wx:for="{{ptip}}" wx:for-item="item" wx:for-index="index" wx:key="index"><text style="{{'color:'+(item.color==1?primaryColor:'')+';'}}">{{item.text}}</text></block></view></block><block wx:if="{{pbutton}}"><block><block wx:for="{{pbutton}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><view data-event-opts="{{[['tap',[['emitAbnorTap',[index]]]]]}}" class="{{['abnor-btn',btnSize]}}" style="{{'background:'+(item.type=='confirm'?primaryColor:'')+';'+('color:'+(item.type=='confirm'?'white':'')+';')}}" catchtap="__e">{{item.text}}</view></block></block></block></block></view></view>
|
||||
1
front/components/abnor.wxss
Normal file
1
front/components/abnor.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.abnor{position:relative;display:block;width:100%;height:0;padding-bottom:100%;overflow:hidden}.abnor .abnor-box{position:absolute;display:flex;top:0;bottom:0;left:0;right:0;flex-direction:column;justify-content:center;align-items:center}.abnor .abnor-box .abnor-image{width:514rpx;height:260rpx;background:transparent}.abnor .abnor-box .abnor-text{margin-top:30rpx;color:#333;font-size:30rpx;font-weight:400}.abnor .abnor-box .abnor-tip{margin:15rpx 0 10rpx 0;color:#999;font-size:26rpx;text-align:center;max-height:30vh;overflow:auto}.abnor .abnor-box .tip-flex{display:flex;align-items:center;justify-content:center;flex-direction:column}.abnor .abnor-box .abnor-btn{min-width:228rpx;height:66rpx;margin-top:30rpx;padding:0 30rpx;background-color:#eee;border:0 none;border-radius:10rpx;color:#333;font-size:28rpx;text-align:center;line-height:66rpx}.abnor .abnor-box .abnor-btn.big{width:690rpx;height:100rpx;line-height:100rpx;font-size:32rpx;margin-top:40rpx;border-radius:50rpx}
|
||||
10
front/components/auth.js
Normal file
10
front/components/auth.js
Normal file
File diff suppressed because one or more lines are too long
4
front/components/auth.json
Normal file
4
front/components/auth.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/auth.wxml
Normal file
1
front/components/auth.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view style="width:100%;"><block wx:if="{{needAuth}}"><block><view data-event-opts="{{[['tap',[['toShowAuth',['$event']]]]]}}" bindtap="__e"><slot></slot></view></block></block><block wx:else><block><view data-event-opts="{{[['tap',[['go',[1]]]]]}}" bindtap="__e"><slot></slot></view></block></block><uni-popup class="vue-ref" vue-id="3b7d33fa-1" data-ref="show_auth_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="auth-box fill-base flex-column flex-center radius-26"><block wx:if="{{pType==='userInfo'}}"><block><view class="auth-top fill-base flex-column flex-center" style="{{'background-color:'+(primaryColor)+';'}}"><view class="flex-center pd-lg"><view class="auth-info" style="overflow:hidden;"><button class="auth-info" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image class="avatar" src="{{avatarUrl||'/static/mine/default_user.png'}}"></image></button></view></view><view class="f-paragraph c-base">选择头像</view></view><view class="auth-w mt-lg mb-lg"><view class="auth-input"><view style="width:110rpx;">昵称:</view><view><input type="nickname" placeholder="请输入昵称" data-event-opts="{{[['blur',[['onBlur',['$event']]]]]}}" bindblur="__e"/></view></view></view></block></block><block wx:if="{{pType=='phone'}}"><block><image class="auth-img" src="/static/mine/auth.png"></image></block></block><view class="space-sm"></view><view class="f-caption" style="{{'color:'+(primaryColor)+';'}}">{{contentList[pType][0]}}</view><view class="space-lg"></view><view class="space-lg"></view><block wx:if="{{pType==='userInfo'}}"><block><button class="clear-btn flex-center auth-btn" style="{{'background-color:'+(primaryColor)+';'+('color:'+('white')+';')}}" hover-class="btn-hover" data-event-opts="{{[['tap',[['authUserProfile',['$event']]]]]}}" catchtap="__e">{{btn_text||contentList[pType][1]}}</button></block></block><block wx:if="{{pType==='phone'}}"><block><button class="clear-btn flex-center auth-btn" style="{{'background-color:'+(primaryColor)+';'+('color:'+('white')+';')}}" open-type="getPhoneNumber" hover-class="btn-hover" data-event-opts="{{[['getphonenumber',[['authPhone',['$event']]]]]}}" bindgetphonenumber="__e">{{''+(btn_text||contentList[pType][1])+''}}</button></block></block><block wx:if="{{pType==='setting'}}"><block><button class="clear-btn flex-center auth-btn" style="{{'background-color:'+(primaryColor)+';'+('color:'+('white')+';')}}" open-type="openSetting" hover-class="btn-hover" data-event-opts="{{[['opensetting',[['openSetting',['$event']]]]]}}" bindopensetting="__e">{{''+(btn_text||contentList[pType][1])+''}}</button></block></block><block wx:if="{{!must}}"><view data-event-opts="{{[['tap',[['go',[pType=='phone'&&!userInfo.phone?2:1]]]]]}}" class="f-caption c-caption mt-md" bindtap="__e">{{pType=='userInfo'?'暂不授权':'暂不登录'}}</view></block><view class="space-md"></view></view></uni-popup><uni-popup class="vue-ref" vue-id="3b7d33fa-2" maskClick="{{false}}" data-ref="show_phone_item" bind:__l="__l" vue-slots="{{['default']}}"><view class="common-popup-content popup-phone pd-lg flex-center flex-column fill-base"><view class="f-md-title c-black">请输入手机号</view><view class="space-lg pb-lg"></view><view class="space-lg pb-lg"></view><view class="flex-center mb-lg"><view class="input-info sm mr-md radius-16"><input class="item-input flex-y-center pl-lg pr-lg f-sm-title c-title" type="number" placeholder-class="c-placeholder" placeholder="{{rule[0].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','phone','$event',[]],['subForm']]]]]}}" value="{{subForm.phone}}" bindinput="__e"/></view><view data-event-opts="{{[['tap',[['toSend',['$event']]]]]}}" class="send-btn flex-center c-base radius-16" style="{{'background:'+(primaryColor)+';'}}" bindtap="__e">{{''+(authTime>0?'('+authTime+'s)':'发送')+''}}</view></view><view class="input-info radius-16"><input class="item-input flex-y-center pl-lg pr-lg f-sm-title c-title" type="number" maxlength="6" placeholder-class="c-placeholder" placeholder="{{rule[1].errorMsg}}" data-event-opts="{{[['input',[['__set_model',['$0','short_code','$event',[]],['subForm']]]]]}}" value="{{subForm.short_code}}" bindinput="__e"/></view><view class="button"><view data-event-opts="{{[['tap',[['go',[3]]]]]}}" class="item-child" catchtap="__e">取消</view><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="item-child" style="{{'background:'+(primaryColor)+';'+('color:'+('#fff')+';')}}" catchtap="__e">确定</view></view></view></uni-popup></view>
|
||||
1
front/components/auth.wxss
Normal file
1
front/components/auth.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.auth-box{width:630rpx;height:auto;padding:0 30rpx 30rpx 30rpx;overflow:hidden}.auth-box .auth-img{width:322rpx;height:341rpx}.auth-box .auth-btn{width:100%;height:85rpx;border-radius:8rpx}.auth-box .auth-info{width:120rpx;height:120rpx;background:#f4f6f8;border-radius:50%}.auth-top{width:930rpx;height:260rpx;border-radius:0 0 50% 50%;overflow:hidden}.auth-w{width:100%}.auth-input{align-items:center;background:#efeff5;display:flex;padding:20rpx;border-radius:8rpx}.popup-phone{width:630rpx}.popup-phone .input-info{width:570rpx;height:90rpx;background:#f7f7f7}.popup-phone .input-info .item-input{height:90rpx;font-size:32rpx;text-align:left}.popup-phone .input-info.sm{width:400rpx}.popup-phone .send-btn{width:150rpx;height:90rpx}
|
||||
10
front/components/banner.js
Normal file
10
front/components/banner.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/banner"],{"31a9":function(t,n,e){"use strict";e.r(n);var r=e("4606d"),u=e("748c");for(var i in u)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("4294");var o=e("f0c5"),a=Object(o["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=a.exports},4294:function(t,n,e){"use strict";var r=e("4459"),u=e.n(r);u.a},4459:function(t,n,e){},"4606d":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){}));var r=function(){var t=this,n=t.$createElement,e=(t._self._c,t.list.length),r=t.list.length,u=t.list.length>1&&"number"==t.indicatorType,i=u?t.list.length:null,o=t.list.length>1&&"dot"==t.indicatorType;t.$mp.data=Object.assign({},{$root:{g0:e,g1:r,g2:u,g3:i,g4:o}})},u=[]},"748c":function(t,n,e){"use strict";e.r(n);var r=e("f240"),u=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n["default"]=u.a},f240:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e("26cb"),u={name:"banner",props:{list:{type:Array,default:function(){return[1,2,3]}},height:{type:Number,default:function(){return 400}},indicatorType:{type:String,default:function(){return"dot"}},indicatorColor:{type:String,default:function(){return"#FEFFFE"}},indicatorActiveColor:{type:String,default:function(){return"#fff"}},indicatorStyle:{type:String,default:function(){return"center"}},circular:{type:Boolean,default:function(){return!0}},autoplay:{type:Boolean,default:function(){return!1}},previousMargin:{type:Number,default:function(){return 0}},nextMargin:{type:Number,default:function(){return 0}},dotWidth:{type:Number,default:function(){return 12}},margin:{type:Number,default:function(){return 0}},borderRadius:{type:Number,default:function(){return 0}},haveVideo:{type:Boolean,default:function(){return!1}}},created:function(){},data:function(){return{activeIndex:0}},computed:(0,r.mapState)({configInfo:function(t){return t.config.configInfo},commonOptions:function(t){return t.user.commonOptions}}),methods:{handerChange:function(t){this.activeIndex=t.detail.current},changeItem:function(t,n){this.$emit("change",{item:t,index:n})}}};n.default=u}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/banner-create-component',
|
||||
{
|
||||
'components/banner-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("31a9"))
|
||||
})
|
||||
},
|
||||
[['components/banner-create-component']]
|
||||
]);
|
||||
4
front/components/banner.json
Normal file
4
front/components/banner.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/banner.wxml
Normal file
1
front/components/banner.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="swiper-box" style="{{'margin:'+('0 '+margin+'rpx')+';'+('border-radius:'+(.3125+'rem')+';')}}"><swiper class="swiper-ad" style="{{'height:'+(11.375+'rem')+';'+('border-radius:'+(.3125+'rem')+';')}}" indicator-dots="{{false}}" autoplay="{{autoplay}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}" circular="{{circular}}" previous-margin="{{$root.g0>1?previousMargin:0}}" next-margin="{{$root.g1>1?nextMargin:0}}" easing-function="linear" data-event-opts="{{[['change',[['handerChange',['$event']]]]]}}" bindchange="__e"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><swiper-item><view data-event-opts="{{[['tap',[['changeItem',['$0',index],[[['list','',index]]]]]]]}}" class="img-box rel" style="{{'border-radius:'+(.3125+'rem')+';'}}" bindtap="__e"><image class="swiper-ad__img" style="{{'border-radius:'+(.3125+'rem')+';'}}" mode="aspectFill" lazy-load="{{true}}" src="{{item.img||item.cover||item}}"></image><block wx:if="{{haveVideo&&index==0}}"><view class="abs play-video flex-center" style="{{'border-radius:'+(.3125+'rem')+';'}}"><view class="iconfont icon-bofang _i"></view></view></block></view></swiper-item></block></swiper><block wx:if="{{$root.g2}}"><view class="numbers" style="{{'text-align:'+(indicatorStyle)+';'}}"><view class="number">{{activeIndex+1+"/"+$root.g3}}</view></view></block><block wx:if="{{$root.g4}}"><view class="dots" style="{{'text-align:'+(indicatorStyle)+';'}}"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="dot" style="{{'background-color:'+(index==activeIndex?indicatorActiveColor:indicatorColor)+';'+('width:'+(index==activeIndex?dotWidth+'rpx':'12rpx')+';')}}"></view></block></view></block></view>
|
||||
1
front/components/banner.wxss
Normal file
1
front/components/banner.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.swiper-box{position:relative;overflow:hidden}.swiper-box .img-box{width:100%;height:100%}.swiper-box .img-box .swiper-ad__img{width:100%;height:100%;background:#fff}.swiper-box .img-box .play-video{width:100%;height:100%;top:0;background:rgba(0,0,0,.2)}.swiper-box .img-box .play-video .iconfont{font-size:100rpx;color:#fff}.swiper-box .dots{position:absolute;z-index:20rpx;text-align:right;width:100%;-webkit-transform:translateY(-48rpx);transform:translateY(-48rpx);padding:0 20rpx}.swiper-box .dots .dot{display:inline-block;height:12rpx;width:12rpx;background-color:#fefffe;border-radius:6rpx;margin:0 8rpx}.swiper-box .numbers{position:absolute;z-index:20rpx;text-align:right;width:100%;-webkit-transform:translateY(-80rpx);transform:translateY(-80rpx);padding:0 20rpx}.swiper-box .numbers .number{display:inline-block;width:90rpx;line-height:50rpx;background:rgba(0,0,0,.3);text-align:center;color:#fff;border-radius:45rpx}
|
||||
10
front/components/column.js
Normal file
10
front/components/column.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/column"],{"0d3a":function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){}));var r=function(){var t=this,n=t.$createElement,e=(t._self._c,"swiper"==t.type?t.__map(t.formatList,(function(n,e){var r=t.__get_orig(n),u=t.__map(n,(function(n,e){var r=t.__get_orig(n),u=n.icon?null:t.getFirstText(n.cate_name);return{$orig:r,m0:u}}));return{$orig:r,l0:u}})):null),r="swiper"==t.type?t.formatList.length:null,u="scroll"==t.type?t.list.length:null;t.$mp.data=Object.assign({},{$root:{l1:e,g0:r,g1:u}})},u=[]},"4c5c":function(t,n,e){"use strict";var r=e("9bb1"),u=e.n(r);u.a},"4f40":function(t,n,e){"use strict";e.r(n);var r=e("5a0f"),u=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n["default"]=u.a},"5a0f":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={name:"column",props:{type:{type:String,default:function(){return"swiper"}},list:{type:Array,default:function(){return[]}},colNum:{type:Number,default:function(){return 4}},rowNum:{type:Number,default:function(){return 2}},indicatorActiveColor:{type:String,default:function(){return"#f6f5fa"}},indicatorColor:{type:String,default:function(){return"#f6f5fa"}},wingBlank:{type:Number,default:function(){return 0}},whiteSpace:{type:Number,default:function(){return 30}},borderRadius:{type:Number,default:function(){return 0}}},created:function(){},data:function(){return{activeIndex:0,newList:[],left:0,current:0,colorList:["#fc7f87","#56b4fc","#f8ae41","#11dd9e","#fba745","#fb7c85","#46adfc","#fc7d86"]}},computed:{formatRowNum:function(){var t=this.colNum,n=this.rowNum,e=this.list,r=e.length,u=r<=t?1:n;return u},formatList:function(){var t=this.colNum,n=(this.rowNum,this.type,this.list),e=this.formatRowNum,r=0,u=n.length,i=[],c=e*t;while(r<u)i.push(n.slice(r,r+=c));return i}},methods:{handerScroll:function(n){var e=n.detail,r=e.scrollLeft,u=e.scrollWidth,i=t.getSystemInfoSync().windowWidth,c=30*r/(u-i);this.left=c},handerChange:function(t){this.current=t.detail.current},change:function(t){this.$emit("change",t)},getFirstText:function(t){return t=t||"名称",t.slice(0,1)}}};n.default=e}).call(this,e("543d")["default"])},"9bb1":function(t,n,e){},e6c6:function(t,n,e){"use strict";e.r(n);var r=e("0d3a"),u=e("4f40");for(var i in u)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return u[t]}))}(i);e("4c5c");var c=e("f0c5"),o=Object(c["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=o.exports}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/column-create-component',
|
||||
{
|
||||
'components/column-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("e6c6"))
|
||||
})
|
||||
},
|
||||
[['components/column-create-component']]
|
||||
]);
|
||||
4
front/components/column.json
Normal file
4
front/components/column.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/column.wxml
Normal file
1
front/components/column.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view><block wx:if="{{type=='swiper'}}"><view class="column-box" style="{{'padding-top:'+(whiteSpace+'rpx')+';'+('padding-bottom:'+(whiteSpace+'rpx')+';')+('padding-left:'+(wingBlank+'rpx')+';')+('padding-right:'+(wingBlank+'rpx')+';')}}"><swiper data-event-opts="{{[['change',[['handerChange',['$event']]]]]}}" class="swiper-category" style="{{'height:'+(146*formatRowNum+20*(formatRowNum-1)+'rpx')+';'}}" bindchange="__e"><block wx:for="{{$root.l1}}" wx:for-item="pitem" wx:for-index="pindex" wx:key="pindex"><swiper-item class="swiper-category-item"><block wx:for="{{pitem.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['change',['$0'],[[['formatList','',pindex],['','',index]]]]]]]}}" class="column-item" style="{{'width:'+(100/colNum+'%')+';'+('margin-top:'+(index<colNum?'0':'20rpx')+';')}}" bindtap="__e"><block wx:if="{{item.$orig.icon}}"><image class="column-img" mode="aspectFill" lazy-load="{{true}}" src="{{item.$orig.icon}}"></image></block><block wx:else><view class="column-no-img" style="{{'background:'+(colorList[index%8])+';'+('border-radius:'+('50%')+';')+('margin:'+('0rpx auto')+';')}}">{{''+item.m0+''}}</view></block><view class="column-text">{{item.$orig.cate_name}}</view></view></block></swiper-item></block></swiper><block wx:if="{{$root.g0>1}}"><view class="dots"><block wx:for="{{formatList.length}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="dot" style="{{'background:'+(index==current?indicatorActiveColor:indicatorColor)+';'}}"></view></block></view></block></view></block><block wx:if="{{type=='scroll'}}"><view class="column-box" style="{{'padding-top:'+(whiteSpace+'rpx')+';'+('padding-bottom:'+(whiteSpace+'rpx')+';')+('padding-left:'+(wingBlank+'rpx')+';')+('padding-right:'+(wingBlank+'rpx')+';')}}"><scroll-view class="scroll-x" scroll-x="{{true}}" data-event-opts="{{[['scroll',[['handerScroll',['$event']]]]]}}" bindscroll="__e"><block wx:for="{{formatList}}" wx:for-item="pItem" wx:for-index="pindex" wx:key="pindex"><view class="scroll-x-item"><block wx:for="{{pItem}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['change',['$0'],[[['formatList','',pindex],['','',index]]]]]]]}}" class="column-item" style="{{'width:'+(750/colNum+'rpx')+';'}}" bindtap="__e"><image class="column-img" mode="aspectFill" lazy-load="{{true}}" src="{{item.icon}}"></image><view class="column-text">{{item.cate_name}}</view></view></block></view></block></scroll-view><block wx:if="{{$root.g1>formatRowNum*colNum}}"><view class="ink-bar-box"><view class="ui-tabs-ink-bar-wrapper"><view class="ui-tabs-ink-bar" style="{{'left:'+(left+'rpx')+';'+('background:'+(indicatorActiveColor)+';')}}"></view></view></view></block></view></block></view>
|
||||
1
front/components/column.wxss
Normal file
1
front/components/column.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.column-box{background:#fff;font-size:24rpx;color:#888}.column-box .swiper-category{width:100%;background:#fff;font-size:24rpx;color:#666;border-radius:10rpx}.column-box .swiper-category .swiper-category-item{box-sizing:border-box;display:flex;align-items:flex-start;flex-wrap:wrap;background:#fff}.column-box .swiper-category .swiper-category-item .column-item{margin-top:20rpx;float:left}.column-box .swiper-category .swiper-category-item .column-item .column-img{width:100rpx;height:100rpx;margin:0 auto}.column-box .swiper-category .swiper-category-item .column-item .column-no-img{width:100rpx;height:100rpx;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:36rpx;color:#fff}.column-box .swiper-category .swiper-category-item .column-item .column-text{margin-top:10rpx;text-align:center;color:#454a53;width:100%;padding:0 10%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.column-box .scroll-x{white-space:nowrap;background:#fff;padding:20rpx 0}.column-box .scroll-x .scroll-x-item{position:relative;display:inline-block;vertical-align:text-top;display:flex;flex-direction:column}.column-box .scroll-x .column-item{margin-top:20rpx;float:left}.column-box .scroll-x .column-item .column-img{width:100rpx;height:100rpx;margin:0 auto}.column-box .scroll-x .column-item .column-text{margin-top:10rpx;text-align:center;color:#454a53;width:100%;padding:0 10%;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.column-box .dots{background:#fff;display:flex;align-items:center;justify-content:center;width:100%;padding-top:20rpx}.column-box .dots .dot{height:16rpx;width:16rpx;background:#ddd;border-radius:8rpx;margin:0 8rpx}.column-box .ink-bar-box{background:#fff;padding-bottom:20rpx}.column-box .ink-bar-box .ui-tabs-ink-bar-wrapper{width:60rpx;background:#ddd;position:relative;left:345rpx;bottom:0;height:8rpx;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;transition:width .25s ease-out,left .25s ease-out;overflow:hidden;border-radius:4rpx}.column-box .ink-bar-box .ui-tabs-ink-bar-wrapper .ui-tabs-ink-bar{position:absolute;width:30rpx;background:#e74d45;height:8rpx;border-radius:4rpx}
|
||||
10
front/components/common-popup.js
Normal file
10
front/components/common-popup.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/common-popup"],{"0174":function(t,e,n){"use strict";n.r(e);var i=n("3cd6"),o=n.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(c);e["default"]=o.a},"3cd6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("26cb"),o={CANCEL_ORDER:{title:"取消订单",desc:"请确认是否取消订单,取消后将无法恢复",text:"确认取消"},END_ORDER:{title:"确认收货",desc:"请确认是否收货,收货后将无法恢复",text:"确认收货"},HX_ORDER:{title:"核销订单",desc:"请确认是否核销订单,核销订单后将无法恢复",text:"确认核销"},DELETE_ORDER:{title:"删除订单",desc:"请确认是否删除订单,删除后将无法恢复",text:"确认删除"},REFUND_ORDER:{title:"申请退款",desc:"请确认是否申请退款",text:"确认申请"},CANCEL_REFUND_ORDER:{title:"取消退款",desc:"请确认是否取消退款",text:"确认取消"},NO_PASS_REFUND:{title:"拒绝退款",desc:"请确认是否拒绝退款",text:"确认拒绝"},HX_CODE:{title:"核销码",desc:"请出示二维码给核销人员"},CHANGE_UP_ITEM:{title:"上架",desc:"请确认是否上架",text:"确认上架"},CHANGE_DOWN_ITEM:{title:"下架",desc:"请确认是否下架",text:"确认下架"},DEL_ITEM:{title:"删除",desc:"请确认是否删除此数据,删除后将无法恢复",text:"确认删除"}},c={components:{},props:{maskClick:{type:Boolean,default:function(){return!1}},type:{type:String,default:function(){return"CANCEL_ORDER"}},title:{type:String,default:function(){return""}},desc:{type:String,default:function(){return""}},text:{type:String,default:function(){return""}},info:{type:Object,default:function(){return{}}},button:{type:Array,default:function(){return[{title:"取消",type:"cancel"},{title:"确定取消",type:"confirm"}]}},imgSize:{type:String,default:function(){return""}}},created:function(){this.init()},data:function(){return{ptitle:"",pdesc:"",pbutton:[]}},computed:(0,i.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),methods:{init:function(){var t=this.type;o[t]&&(this.ptitle=this.title||o[t].title,this.pdesc=this.desc||o[t].desc,this.pbutton=this.button,(this.text||o[t].text)&&(this.pbutton[1].title=this.text||o[t].text))},open:function(){this.$refs.common_popup.open()},close:function(){this.$refs.common_popup.close()},toEmit:function(t){var e=this.button[t].type;"cancel"==e?this.close():this.$emit(e)}}};e.default=c},"56a6":function(t,e,n){"use strict";n.r(e);var i=n("687a"),o=n("0174");for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);var u=n("f0c5"),r=Object(u["a"])(o["default"],i["b"],i["c"],!1,null,"019cd146",null,!1,i["a"],void 0);e["default"]=r.exports},"687a":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/common-popup-create-component',
|
||||
{
|
||||
'components/common-popup-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("56a6"))
|
||||
})
|
||||
},
|
||||
[['components/common-popup-create-component']]
|
||||
]);
|
||||
4
front/components/common-popup.json
Normal file
4
front/components/common-popup.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/common-popup.wxml
Normal file
1
front/components/common-popup.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<uni-popup vue-id="04d0f9a1-1" type="center" maskClick="{{maskClick}}" data-ref="common_popup" class="data-v-019cd146 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><view class="common-popup-content fill-base data-v-019cd146"><block wx:if="{{ptitle}}"><view class="title data-v-019cd146">{{ptitle}}</view></block><block wx:if="{{pdesc}}"><view class="desc data-v-019cd146">{{pdesc}}</view></block><block wx:if="{{info.image}}"><image class="{{['image','data-v-019cd146',imgSize]}}" mode="aspectFill" lazy-load="{{true}}" src="{{info.image}}"></image></block><block wx:if="{{info.name}}"><view class="name ellipsis-3 data-v-019cd146">{{info.name}}</view></block><view class="button data-v-019cd146"><block wx:for="{{pbutton}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-019cd146"><view data-event-opts="{{[['tap',[['toEmit',[index]]]]]}}" class="item-child data-v-019cd146" style="{{'background:'+(item.type=='confirm'?primaryColor:'')+';'+('color:'+(item.type=='confirm'?'white':'')+';')}}" catchtap="__e">{{''+item.title+''}}</view></block></block></view></view></uni-popup>
|
||||
10
front/components/fix-bottom-button.js
Normal file
10
front/components/fix-bottom-button.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/fix-bottom-button"],{"0273":function(t,n,e){"use strict";var o=e("9148"),r=e.n(o);r.a},2329:function(t,n,e){"use strict";e.r(n);var o=e("e89f"),r=e("cfd6");for(var f in r)["default"].indexOf(f)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(f);e("0273");var u=e("f0c5"),i=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"404f8f21",null,!1,o["a"],void 0);n["default"]=i.exports},6608:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("26cb"),r={props:{text:{type:Array,default:function(){return[{text:"保存",type:"confirm"}]}},bgColor:{type:String,default:function(){return"#fff"}}},computed:(0,o.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor}}),methods:{confirm:function(t){this.$emit(t.type)}}};n.default=r},9148:function(t,n,e){},cfd6:function(t,n,e){"use strict";e.r(n);var o=e("6608"),r=e.n(o);for(var f in o)["default"].indexOf(f)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(f);n["default"]=r.a},e89f:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){}));var o=function(){var t=this,n=t.$createElement,e=(t._self._c,t.text.length),o=t.text.length,r=t.text.length,f=t.__map(t.text,(function(n,e){var f=t.__get_orig(n),u=1!=o&&0!=e?t.text.length:null,i=1!=r&&0!=e?t.text.length:null;return{$orig:f,g2:u,g4:i}}));t.$mp.data=Object.assign({},{$root:{g0:e,g1:o,g3:r,l0:f}})},r=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/fix-bottom-button-create-component',
|
||||
{
|
||||
'components/fix-bottom-button-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("2329"))
|
||||
})
|
||||
},
|
||||
[['components/fix-bottom-button-create-component']]
|
||||
]);
|
||||
4
front/components/fix-bottom-button.json
Normal file
4
front/components/fix-bottom-button.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
1
front/components/fix-bottom-button.wxml
Normal file
1
front/components/fix-bottom-button.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="content data-v-404f8f21" style="{{'background:'+(bgColor)+';'}}"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-404f8f21"><view data-event-opts="{{[['tap',[['confirm',['$0'],[[['text','',index]]]]]]]}}" class="bottom-view data-v-404f8f21" style="{{'width:'+(100/$root.g0+'%')+';'+('margin:'+($root.g1==1?'0 30rpx':index==0?'0 0 0 30rpx':index==item.g2-1?'0 30rpx 0 0':'')+';')+('border-radius:'+($root.g3==1?'88rpx':index==0?'88rpx 0 0 88rpx':index==item.g4-1?'0 88rpx 88rpx 0':'')+';')+('background:'+(item.$orig.type=='confirm'?primaryColor:subColor)+';')}}" bindtap="__e">{{''+item.$orig.text+''}}</view></block></block></view>
|
||||
1
front/components/fix-bottom-button.wxss
Normal file
1
front/components/fix-bottom-button.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.content.data-v-404f8f21{position:fixed;bottom:0rpx;display:flex;align-items:center;justify-content:center;width:100%;height:128rpx;z-index:997;height:calc(128rpx + env(safe-area-inset-bottom) / 2);padding-bottom:calc(env(safe-area-inset-bottom) / 2)}.content .bottom-view.data-v-404f8f21{width:auto;height:88rpx;line-height:88rpx;text-align:center;font-size:32rpx;font-weight:700;color:#fff}
|
||||
10
front/components/fixed.js
Normal file
10
front/components/fixed.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/fixed"],{"04b4":function(t,e,n){"use strict";n.r(e);var i=n("67de"),u=n("e109");for(var o in u)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(o);n("5d09");var r=n("f0c5"),c=Object(r["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},"38d1":function(t,e,n){},"5d09":function(t,e,n){"use strict";var i=n("38d1"),u=n.n(i);u.a},"67de":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},u=[]},e109:function(t,e,n){"use strict";n.r(e);var i=n("e452"),u=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=u.a},e452:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"fixed",props:{position:{type:[String],default:function(){return"top"}},zIndex:{type:Number,default:function(){return 999}},refresh:{type:Boolean,default:function(){return!1}}},data:function(){return{height:100*t.getSystemInfoSync().windowWidth/750}},mounted:function(){this.setHeight()},onReady:function(){this.setHeight()},watch:{refresh:function(t){console.log(t,"=======val"),t||this.setHeight()}},methods:{setHeight:function(){var e=this,n=t.createSelectorQuery().in(this);n.select(".ui-fixed").boundingClientRect((function(t){e.height=t.height})).exec()}}};e.default=n}).call(this,n("543d")["default"])}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/fixed-create-component',
|
||||
{
|
||||
'components/fixed-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("04b4"))
|
||||
})
|
||||
},
|
||||
[['components/fixed-create-component']]
|
||||
]);
|
||||
4
front/components/fixed.json
Normal file
4
front/components/fixed.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/fixed.wxml
Normal file
1
front/components/fixed.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view><view class="{{['ui-fixed',(position=='top')?'fixed-top':'',(position=='bottom')?'fixed-bottom':'']}}" style="{{'z-index:'+(zIndex)+';'}}"><slot></slot></view><view style="{{'height:'+(height+'px')+';'}}"></view></view>
|
||||
1
front/components/fixed.wxss
Normal file
1
front/components/fixed.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.ui-fixed{position:fixed;left:0;width:100%}.fixed-top{top:0}.fixed-bottom{bottom:0}
|
||||
56
front/components/jyf-Parser/handler.wxs
Normal file
56
front/components/jyf-Parser/handler.wxs
Normal file
@@ -0,0 +1,56 @@
|
||||
var inlineTags = {
|
||||
abbr: true,
|
||||
b: true,
|
||||
big: true,
|
||||
code: true,
|
||||
del: true,
|
||||
em: true,
|
||||
font: true,
|
||||
i: true,
|
||||
ins: true,
|
||||
label: true,
|
||||
mark: true,
|
||||
q: true,
|
||||
s: true,
|
||||
small: true,
|
||||
span: true,
|
||||
strong: true,
|
||||
u: true
|
||||
}
|
||||
module.exports = {
|
||||
getStyle: function(style, display) {
|
||||
var res = "";
|
||||
var reg = getRegExp("float[^;]+(?![\s\S]*?float)", "i");
|
||||
if (reg.test(style)) res += reg.exec(style)[0];
|
||||
reg = getRegExp("margin[^;]+", "gi");
|
||||
if (reg.test(style)) res += (';' + style.match(reg).join(';'));
|
||||
reg = getRegExp("display\s*:\s*([^;]*)(?![\s\S]*?display)", "i");
|
||||
if (reg.test(style) && reg.exec(style)[1] != "flex") res += (';' + reg.exec(style)[0]);
|
||||
else res += (';display:' + display);
|
||||
reg = getRegExp("flex[^;]*:[^;]+", "ig");
|
||||
if (reg.test(style)) res += (';' + style.match(reg).join(';'));
|
||||
reg = getRegExp("[^;\s]*width[^;]+", "ig");
|
||||
if (reg.test(style)) res += (';' + style.match(reg).join(';'));
|
||||
return res;
|
||||
},
|
||||
setImgStyle: function(item, imgMode, imgLoad) {
|
||||
if (imgMode == "widthFix") item.attrs.style = (item.attrs.style || '') + ";height:auto !important";
|
||||
if (item.attrs.style)
|
||||
item.attrs.style = item.attrs.style.replace(getRegExp("width[^;]*?%", "gi"), "width:100%").replace(getRegExp(
|
||||
'margin[^;]+', "gi"), "");
|
||||
if (!imgLoad) {
|
||||
delete item.attrs.src;
|
||||
item.attrs.style += ";width:20px !important;height:20px !important";
|
||||
}
|
||||
return [item];
|
||||
},
|
||||
setStyle: function(item) {
|
||||
if (item.attrs.style)
|
||||
item.attrs.style = item.attrs.style.replace(getRegExp("width[^;]*?%", "gi"), "width:100%").replace(getRegExp(
|
||||
'margin[^;]+', "gi"), "");
|
||||
return [item];
|
||||
},
|
||||
notContinue: function(item) {
|
||||
return !(item.c || inlineTags[item.name] || item["continue"]);
|
||||
}
|
||||
}
|
||||
10
front/components/jyf-Parser/index.js
Normal file
10
front/components/jyf-Parser/index.js
Normal file
File diff suppressed because one or more lines are too long
6
front/components/jyf-Parser/index.json
Normal file
6
front/components/jyf-Parser/index.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"trees": "/components/jyf-Parser/trees"
|
||||
}
|
||||
}
|
||||
1
front/components/jyf-Parser/index.wxml
Normal file
1
front/components/jyf-Parser/index.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view><block wx:if="{{$root.g0}}"><slot></slot></block><trees class="_contain" style="{{('display:block;'+(selectable?'user-select:text;-webkit-user-select:text;':'')+(showWithAnimation?'opacity:0;'+showAnimation:''))}}" vue-id="116ecbda-1" nodes="{{$root.g1?nodes:html[0].name||html[0].type?html:[]}}" imgMode="{{imgMode}}" loadVideo="{{loadVideo}}" bind:__l="__l"></trees></view>
|
||||
1
front/components/jyf-Parser/index.wxss
Normal file
1
front/components/jyf-Parser/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
:host{display:block;overflow:scroll;-webkit-overflow-scrolling:touch}
|
||||
10
front/components/jyf-Parser/trees.js
Normal file
10
front/components/jyf-Parser/trees.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/jyf-Parser/trees"],{"162f":function(t,r,e){"use strict";(function(t){function n(t,r){var e="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"===typeof t)return o(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,r)}(t))||r&&t&&"number"===typeof t.length){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==e.return||e.return()}finally{if(s)throw a}}}}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i={components:{trees:function(){Promise.resolve().then(function(){return resolve(e("ada1"))}.bind(null,e)).catch(e.oe)}},name:"trees",data:function(){return{controls:{},imgLoad:!0}},props:{nodes:{type:Array,default:[]},imgMode:{type:String,default:"default"}},mounted:function(){this._top=this.$parent;while("parser"!=this._top.$options.name){if(this._top._top){this._top=this._top._top;break}this._top=this._top.$parent}},beforeDestroy:function(){this._observer&&this._observer.disconnect()},methods:{playEvent:function(t){if((this._top.videoContexts||[]).length>1&&this._top.autopause){var r,e=n(this._top.videoContexts);try{for(e.s();!(r=e.n()).done;){var o=r.value;o.id!=t.currentTarget.id&&o.pause()}}catch(i){e.e(i)}finally{e.f()}}},previewEvent:function(r){var e=r.currentTarget.dataset.attrs;if(!e.ignore){var n=!0;if(this._top.$emit("imgtap",{id:r.currentTarget.id,src:e.src,ignore:function(){return n=!1}}),n&&this._top.autopreview){var o=this._top.imgList||[],i=o[e.i]?e.i:(o=[e.src],0);t.previewImage({current:i,urls:o})}}},tapEvent:function(r){var e=!0,n=r.currentTarget.dataset.attrs;if(n.ignore=function(){return e=!1},this._top.$emit("linkpress",n),e){if(n["app-id"]||n.appId)return t.navigateToMiniProgram({appId:n["app-id"]||n.appId,path:n.path||""});n.href&&("#"==n.href[0]?this._top.useAnchor&&this._top.navigateTo({id:n.href.substring(1)}):0==n.href.indexOf("http")||0==n.href.indexOf("//")?this._top.autocopy&&t.setClipboardData({data:n.href,success:function(){t.showToast({title:"链接已复制"})}}):t.navigateTo({url:n.href}))}},triggerError:function(t,r,e,n,o){this._top.$emit("error",{source:t,target:r,errMsg:e,errCode:n,context:o})},loadSource:function(t){var r=(this.controls[t.id]?this.controls[t.id].index:0)+1;return r<t.dataset.source.length&&(this.$set(this.controls[t.id],"index",r),!0)},adError:function(t){this.triggerError("ad",t.currentTarget,"",t.detail.errorCode)},videoError:function(r){!this.loadSource(r.currentTarget)&&this._top&&this.triggerError("video",r.currentTarget,r.detail.errMsg,void 0,t.createVideoContext(r.currentTarget.id,this))},audioError:function(t){this.loadSource(t.currentTarget)||this.triggerError("audio",t.currentTarget,t.detail.errMsg)},_loadVideo:function(t){this.$set(this.controls,t.currentTarget.id,{play:!0,index:0})}}};r.default=i}).call(this,e("543d")["default"])},"2db3":function(t,r,e){},"6d39":function(t,r,e){"use strict";e.r(r);var n=e("162f"),o=e.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){e.d(r,t,(function(){return n[t]}))}(i);r["default"]=o.a},a87d:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"c",(function(){return o})),e.d(r,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},o=[]},ada1:function(t,r,e){"use strict";e.r(r);var n=e("a87d"),o=e("6d39");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(r,t,(function(){return o[t]}))}(i);e("b870");var a=e("f0c5"),u=e("d5b9"),s=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);"function"===typeof u["a"]&&Object(u["a"])(s),r["default"]=s.exports},b870:function(t,r,e){"use strict";var n=e("2db3"),o=e.n(n);o.a},d5b9:function(t,r,e){"use strict";r["a"]=function(t){t.options.wxsCallMethods||(t.options.wxsCallMethods=[])}}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/jyf-Parser/trees-create-component',
|
||||
{
|
||||
'components/jyf-Parser/trees-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("ada1"))
|
||||
})
|
||||
},
|
||||
[['components/jyf-Parser/trees-create-component']]
|
||||
]);
|
||||
6
front/components/jyf-Parser/trees.json
Normal file
6
front/components/jyf-Parser/trees.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"trees": "/components/jyf-Parser/trees"
|
||||
}
|
||||
}
|
||||
2
front/components/jyf-Parser/trees.wxml
Normal file
2
front/components/jyf-Parser/trees.wxml
Normal file
@@ -0,0 +1,2 @@
|
||||
<wxs src="./handler.wxs" module="handler"></wxs>
|
||||
<view style="display:inherit;white-space:inherit;"><block wx:for="{{nodes}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block><block wx:if="{{handler.notContinue(item)}}"><block><block wx:if="{{item.name=='img'}}"><rich-text class="img" style="{{('text-indent:0;'+handler.getStyle(item.attrs.style,'inline-block'))}}" id="{{item.attrs.id}}" nodes="{{handler.setImgStyle(item,imgMode,imgLoad)}}" data-attrs="{{item.attrs}}" data-event-opts="{{[['tap',[['previewEvent',['$event']]]]]}}" bindtap="__e"></rich-text></block><block wx:else><block wx:if="{{item.type=='text'}}"><block><block wx:if="{{!item.decode}}"><text decode="{{true}}">{{item.text}}</text></block><block wx:else><rich-text style="display:inline-block;" nodes="{{[item]}}"></rich-text></block></block></block><block wx:else><block wx:if="{{item.name=='br'}}"><text>\n</text></block><block wx:else><block wx:if="{{item.name=='video'}}"><block><block wx:if="{{item.lazyLoad&&!controls[item.attrs.id].play}}"><view class="{{['_video '+(item.attrs.class||'')]}}" style="{{(item.attrs.style||'')}}" id="{{item.attrs.id}}" data-event-opts="{{[['tap',[['_loadVideo',['$event']]]]]}}" bindtap="__e"></view></block><block wx:else><video class="{{[item.attrs.class]}}" style="{{(item.attrs.style||'')}}" src="{{controls[item.attrs.id]?item.attrs.source[controls[item.attrs.id].index]:item.attrs.src}}" id="{{item.attrs.id}}" loop="{{item.attrs.loop}}" controls="{{item.attrs.controls}}" autoplay="{{item.attrs.autoplay||controls[item.attrs.id]&&controls[item.attrs.id].play}}" unit-id="{{item.attrs['unit-id']}}" data-source="{{item.attrs.source}}" data-event-opts="{{[['play',[['playEvent',['$event']]]],['error',[['videoError',['$event']]]]]}}" muted="{{item.attrs.muted}}" bindplay="__e" binderror="__e"></video></block></block></block><block wx:else><block wx:if="{{item.name=='iframe'}}"><block><block wx:if="{{item.attrs.lbType=='vid'||item.attrs.lbtype=='vid'}}"><txv-video vue-id="{{'26db2430-1-'+index}}" vid="{{item.attrs.src}}" playerid="{{item.attrs.src}}" width="100%" height="100%" controls="{{true}}" autoplay="{{false}}" isHiddenStop="{{true}}" bind:__l="__l"></txv-video></block></block></block><block wx:else><block wx:if="{{item.name=='audio'}}"><audio class="{{[item.attrs.class]}}" style="{{(item.attrs.style||'')}}" src="{{controls[item.attrs.id]?item.attrs.source[controls[item.attrs.id].index]:item.attrs.src}}" id="{{item.attrs.id}}" loop="{{item.attrs.loop}}" controls="{{item.attrs.controls}}" poster="{{item.attrs.poster}}" name="{{item.attrs.name}}" author="{{item.attrs.author}}" data-source="{{item.attrs.source}}" data-event-opts="{{[['error',[['audioError',['$event']]]]]}}" binderror="__e"></audio></block><block wx:else><block wx:if="{{item.name=='a'}}"><view class="{{['_a '+(item.attrs.class||'')]}}" style="{{(item.attrs.style||'')}}" data-attrs="{{item.attrs}}" hover-class="navigator-hover" hover-start-time="{{25}}" hover-stay-time="{{300}}" data-event-opts="{{[['tap',[['tapEvent',['$event']]]]]}}" bindtap="__e"><trees vue-id="{{'26db2430-2-'+index}}" nodes="{{item.children}}" imgMode="{{imgMode}}" bind:__l="__l"></trees></view></block><block wx:else><block wx:if="{{item.name=='ad'}}"><ad class="{{[item.attrs.class||'']}}" style="{{(item.attrs.style||'')}}" unit-id="{{item.attrs['unit-id']}}" data-event-opts="{{[['error',[['adError',['$event']]]]]}}" binderror="__e"></ad></block><block wx:else><rich-text class="{{['__'+item.name]}}" style="{{(''+handler.getStyle(item.attrs.style,'block'))}}" id="{{item.attrs.id}}" nodes="{{handler.setStyle(item)}}"></rich-text></block></block></block></block></block></block></block></block></block></block><block wx:else><trees class="{{[item.attrs.id+' _'+item.name+' '+(item.attrs.class||'')]}}" style="{{(item.attrs.style||'')}}" vue-id="{{'26db2430-3-'+index}}" nodes="{{item.children}}" imgMode="{{imgMode}}" loadVideo="{{loadVideo}}" bind:__l="__l"></trees></block></block></block></view>
|
||||
28
front/components/jyf-Parser/trees.wxss
Normal file
28
front/components/jyf-Parser/trees.wxss
Normal file
@@ -0,0 +1,28 @@
|
||||
.navigator-hover{opacity:.7;text-decoration:underline}:host{display:inherit;float:inherit}._b,
|
||||
._strong{font-weight:700}._big{font-size:1.2em}._small{font-size:.8em}._blockquote,
|
||||
._div,
|
||||
._p{display:block}._code{font-family:monospace}._del{text-decoration:line-through}._em,
|
||||
._i{font-style:italic}._h1{font-size:2em}._h2{font-size:1.5em}._h3{font-size:1.17em}._h5{font-size:.67em}._h1,
|
||||
._h2,
|
||||
._h3,
|
||||
._h4,
|
||||
._h5,
|
||||
._h6{font-weight:700}._ins{text-decoration:underline}._q::before{content:'"'}._q::after{content:'"'}._a,
|
||||
._abbr,
|
||||
._b,
|
||||
._big,
|
||||
._small,
|
||||
._code,
|
||||
._del,
|
||||
._em,
|
||||
._i,
|
||||
._ins,
|
||||
._label,
|
||||
._q,
|
||||
._span,
|
||||
._strong{display:inline}.__sub,
|
||||
.__sup,
|
||||
.__bdo,
|
||||
.__bdi,
|
||||
.__ruby,
|
||||
.__rt{display:inline-block!important}._video{background-color:#000;width:300px;height:225px;display:inline-block;position:relative}._video::after{content:"";border-width:15px 0 15px 30px;border-style:solid;border-color:transparent transparent transparent #fff;position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px}
|
||||
10
front/components/load-more.js
Normal file
10
front/components/load-more.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/load-more"],{"5e82":function(n,t,e){},7182:function(n,t,e){"use strict";e.r(t);var u=e("d6da"),o=e.n(u);for(var r in u)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(r);t["default"]=o.a},"8e2d":function(n,t,e){"use strict";var u=e("5e82"),o=e.n(u);o.a},"9faf":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){}));var u=function(){var n=this.$createElement;this._self._c},o=[]},c1dd:function(n,t,e){"use strict";e.r(t);var u=e("9faf"),o=e("7182");for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);e("8e2d");var a=e("f0c5"),f=Object(a["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);t["default"]=f.exports},d6da:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={name:"load-more",props:{loadText:{type:String,default:function(){return"努力加载中"}},noMoreText:{type:String,default:function(){return"没有更多了"}},noMore:{type:Boolean,default:function(){return!1}},loading:{type:Boolean,default:function(){return!0}}},created:function(){},data:function(){return{}},methods:{}};t.default=u}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/load-more-create-component',
|
||||
{
|
||||
'components/load-more-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("c1dd"))
|
||||
})
|
||||
},
|
||||
[['components/load-more-create-component']]
|
||||
]);
|
||||
4
front/components/load-more.json
Normal file
4
front/components/load-more.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/load-more.wxml
Normal file
1
front/components/load-more.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="load-more"><block wx:if="{{!loading&&noMore}}"><block><view class="loadmore__line"></view><text class="loadmore__text">{{noMoreText}}</text><view class="loadmore__line"></view></block></block><block wx:if="{{loading}}"><block><view class="weui-loading"></view><text class="loadmore__text">{{loadText}}</text></block></block></view>
|
||||
1
front/components/load-more.wxss
Normal file
1
front/components/load-more.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.load-more{display:flex;width:100%;height:90rpx;justify-content:center;align-items:center}.loading-icon{width:30rpx;height:30rpx;margin-right:8rpx;display:inline-block;vertical-align:middle;-webkit-animation:weuiLoading 1s steps(12) infinite;animation:weuiLoading 1s steps(12) infinite;background:url(https://s10.mogucdn.com/mlcdn/c45406/171016_4a61e09hcadd157gadhdeje55e82c_32x32.png) no-repeat;background-size:100%}.loadmore__text{margin:0 8rpx 0 8rpx;color:#333;font-size:28rpx}.loadmore__line{width:100rpx;height:1rpx;border-top:1rpx solid #d2d2d2}.weui-loading{margin:0 5px;width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:a 1s steps(12) infinite;animation:a 1s steps(12) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;background-size:100%}.weui-loading.weui-loading_transparent{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect xmlns='http://www.w3.org/2000/svg' width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.56)' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.5)' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.43)' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.38)' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.32)' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.28)' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.25)' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.2)' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.17)' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.14)' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.1)' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='rgba(255,255,255,.03)' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E")}@-webkit-keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes a{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}
|
||||
10
front/components/login-info.js
Normal file
10
front/components/login-info.js
Normal file
@@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/login-info"],{"08d3":function(t,n,e){"use strict";var r=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(e("2eee")),i=r(e("c973")),c=r(e("9523")),u=e("26cb");function f(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function a(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?f(Object(e),!0).forEach((function(n){(0,c.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s={components:{},props:{},mounted:function(){this.init()},data:function(){return{}},computed:(0,u.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},isShowLogin:function(t){return t.user.isShowLogin}}),methods:a(a(a({},(0,u.mapActions)(["getConfigInfo","getUserInfo"])),(0,u.mapMutations)(["updateUserItem"])),{},{init:function(){return(0,i.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()},toClose:function(){this.updateUserItem({key:"isShowLogin",val:!1})},toLogin:function(){var t=getCurrentPages(),n=t[t.length-1].route;this.updateUserItem({key:"loginPage",val:"/".concat(n)}),this.$util.goUrl({url:"/pages/login?type=1"})}})};n.default=s},"25ba":function(t,n,e){"use strict";var r=e("b571"),o=e.n(r);o.a},ac86:function(t,n,e){"use strict";e.r(n);var r=e("f45d"),o=e("bc53");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("25ba");var c=e("f0c5"),u=Object(c["a"])(o["default"],r["b"],r["c"],!1,null,"71e1e44a",null,!1,r["a"],void 0);n["default"]=u.exports},b571:function(t,n,e){},bc53:function(t,n,e){"use strict";e.r(n);var r=e("08d3"),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n["default"]=o.a},f45d:function(t,n,e){"use strict";e.d(n,"b",(function(){return r})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var r=function(){var t=this.$createElement;this._self._c},o=[]}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'components/login-info-create-component',
|
||||
{
|
||||
'components/login-info-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('543d')['createComponent'](__webpack_require__("ac86"))
|
||||
})
|
||||
},
|
||||
[['components/login-info-create-component']]
|
||||
]);
|
||||
4
front/components/login-info.json
Normal file
4
front/components/login-info.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
front/components/login-info.wxml
Normal file
1
front/components/login-info.wxml
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-71e1e44a"><block wx:if="{{isShowLogin}}"><view class="login-info pd-lg flex-center rel data-v-71e1e44a"><view data-event-opts="{{[['tap',[['toClose',['$event']]]]]}}" class="login-close flex-center radius abs data-v-71e1e44a" catchtap="__e"><view class="iconfont icon-add c-base _i data-v-71e1e44a"></view></view><image class="logo-img radius data-v-71e1e44a" mode="aspectFill" lazy-load="{{true}}" src="{{configInfo.app_logo}}"></image><view class="flex-center flex-1 ml-md data-v-71e1e44a"><view class="flex-1 data-v-71e1e44a"><view class="f-title c-base max-380 ellipsis data-v-71e1e44a">{{'欢迎来到'+configInfo.app_text}}</view><view class="text f-caption data-v-71e1e44a">登录后获取更多精彩内容</view></view><view data-event-opts="{{[['tap',[['toLogin',['$event']]]]]}}" class="login-btn flex-center f-desc c-base radius data-v-71e1e44a" style="{{'background:'+(primaryColor)+';'}}" catchtap="__e">去登录</view></view></view></block></view>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user