一日万里

This commit is contained in:
aiShuiJiaoDeXioShou 2024-10-01 09:15:35 +08:00
parent 4e9e2d789d
commit 4516ffb5b5
3759 changed files with 48622 additions and 50643 deletions

View File

@ -80,16 +80,15 @@
"triggerRef": true,
"unref": true,
"useAttrs": true,
"useColPickerData": true,
"useCssModule": true,
"useCssVars": true,
"useRequest": true,
"useSlots": true,
"useUpload": true,
"useUpload2": true,
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"useColPickerData": true
"watchSyncEffect": true
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,6 +28,7 @@
},
"SQLite": {},
"Payment": {},
"Webview-x5": {},
"UniNView": {
"description": "UniNView原生渲染"
}
@ -40,16 +41,8 @@
"splashscreen": {
"target": "id:1",
"autoclose": true,
"waiting": true,
"delay": 0,
"androidStyle": "default",
"android": {
"hdpi": "src/static/start_bg.png",
"xhdpi": "src/static/start_bg.png",
"xxhdpi": "src/static/start_bg.png"
},
"useOriginalMsgbox": true,
"iosStyle": "common"
"waiting": false,
"delay": 0
},
"popGesture": "close",
"launchwebview": {
@ -60,6 +53,43 @@
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"distribute": {
"splashscreen": {
"androidStyle": "default",
"android": {
"hdpi": "src/static/index/start_bg.png",
"xhdpi": "src/static/index/start_bg.png",
"xxhdpi": "src/static/index/start_bg.png"
},
"ios": {
"iphone": {
"portrait-896h@3x": "src/static/index/start_bg.png",
"landscape-896h@3x": "src/static/index/start_bg.png",
"portrait-896h@2x": "src/static/index/start_bg.png",
"landscape-896h@2x": "src/static/index/start_bg.png",
"iphonex": "src/static/index/start_bg.png",
"iphonexl": "src/static/index/start_bg.png",
"retina55": "src/static/index/start_bg.png",
"retina55l": "src/static/index/start_bg.png",
"retina47": "src/static/index/start_bg.png",
"retina47l": "src/static/index/start_bg.png",
"retina40": "src/static/index/start_bg.png",
"retina40l": "src/static/index/start_bg.png",
"retina35": "src/static/index/start_bg.png"
},
"ipad": {
"portrait-1366h@2x": "src/static/index/start_bg.png",
"landscape-1366h@2x": "src/static/index/start_bg.png",
"portrait-1194h@2x": "src/static/index/start_bg.png",
"landscape-1194h@2x": "src/static/index/start_bg.png",
"portrait-1112h@2x": "src/static/index/start_bg.png",
"landscape-1112h@2x": "src/static/index/start_bg.png",
"portrait-retina7": "src/static/index/start_bg.png",
"landscape-retina7": "src/static/index/start_bg.png",
"portrait7": "src/static/index/start_bg.png",
"landscape7": "src/static/index/start_bg.png"
}
}
},
"icons": {
"android": {
"hdpi": "unpackage/res/icons/72x72.png",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
.order-item[data-v-136f0357]{margin-bottom:1rem;border-radius:.5rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));padding:1rem;--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.order-header[data-v-136f0357]{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between}.order-title[data-v-136f0357]{font-size:1.125rem;line-height:1.75rem;font-weight:700}.order-status[data-v-136f0357]{font-size:.875rem;line-height:1.25rem;--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.order-info[data-v-136f0357]{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.pet-info[data-v-136f0357]{margin-bottom:1rem;display:flex;align-items:center}.user-info[data-v-136f0357],.payment-info[data-v-136f0357]{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.btn[data-v-136f0357]{border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem}.btn-primary[data-v-136f0357]{border-radius:.25rem;--un-bg-opacity:1;background-color:rgb(255 193 7 / var(--un-bg-opacity));padding:.25rem .5rem;font-size:.75rem;line-height:1rem;--un-text-opacity:1;color:rgb(255 255 255 / var(--un-text-opacity))}.text-red-500[data-v-136f0357]{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.main-page[data-v-b043a447]{padding:1rem}.flex[data-v-b043a447]{display:flex}.text-gray-400[data-v-b043a447]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.h-64[data-v-b043a447]{height:16rem}.w-32[data-v-b043a447]{width:8rem}.mb-4[data-v-b043a447]{margin-bottom:1rem}
.order-item[data-v-87880194]{margin-bottom:1rem;border-radius:.5rem;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));padding:1rem;--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.order-header[data-v-87880194]{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between}.order-title[data-v-87880194]{font-size:1.125rem;line-height:1.75rem;font-weight:700}.order-status[data-v-87880194]{font-size:.875rem;line-height:1.25rem;--un-text-opacity:1;color:rgb(107 114 128 / var(--un-text-opacity))}.order-info[data-v-87880194]{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.pet-info[data-v-87880194]{margin-bottom:1rem;display:flex;align-items:center}.user-info[data-v-87880194],.payment-info[data-v-87880194]{margin-bottom:1rem;font-size:.875rem;line-height:1.25rem;--un-text-opacity:1;color:rgb(55 65 81 / var(--un-text-opacity))}.order-item-btn[data-v-87880194]{width:25vw;border-radius:.25rem;border-radius:9rem;--un-bg-opacity:1;background-color:rgb(243 244 246 / var(--un-bg-opacity));padding:.25rem .5rem;padding-top:5px;padding-bottom:5px;font-size:.75rem;line-height:1rem;font-size:15px}.btn-primary[data-v-87880194]{width:25vw;border-radius:9rem;--un-bg-opacity:1;background-color:rgb(255 193 7 / var(--un-bg-opacity));padding:.25rem .5rem;padding-top:5px;padding-bottom:5px;text-align:center;font-size:.75rem;line-height:1rem;font-size:15px;--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.text-red-500[data-v-87880194]{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.main-page[data-v-0d5fb72c]{padding:1rem}.flex[data-v-0d5fb72c]{display:flex}.text-gray-400[data-v-0d5fb72c]{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.h-64[data-v-0d5fb72c]{height:16rem}.w-32[data-v-0d5fb72c]{width:8rem}.mb-4[data-v-0d5fb72c]{margin-bottom:1rem}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.navigation[data-v-775139eb]{border-radius:10px 10px 0 0;height:2.5rem;display:flex;align-items:center;background-color:#ffefeb}.card_accompany[data-v-775139eb]{width:1.25rem;height:1.25rem;margin-left:.5625rem}.card_font[data-v-775139eb]{font-size:13px;color:#ff9a81}.position[data-v-775139eb]{flex-direction:column;display:flex;align-items:center;color:#fa3534}.specific_img[data-v-775139eb]{margin:7px 0;height:20px;width:30px}.specific_position[data-v-775139eb]{font-weight:700}.get_address[data-v-775139eb]{display:flex;align-items:center;border:1px solid #9093ff;margin-bottom:1.25rem;width:90%;height:4.0625rem;border-radius:10px}.reach_address[data-v-775139eb]{border:1px solid #9093ff}.address_input[data-v-775139eb]{margin-left:15px;width:80%}.get_phone[data-v-775139eb]{display:flex;align-items:center;width:90%;height:3.125rem;border-bottom:1px solid #f4f6f8}.get_quote[data-v-775139eb]{margin:25px 0 20px;background-color:#9093ff;color:#f4f6f8;width:90%}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.pet-questions[data-v-d659c898]{background-color:#dfede4;height:100%;display:flex;flex-direction:column;align-items:center;padding:10px 10px 0}.question-box[data-v-d659c898]{width:90%;background-color:#fff;border-radius:10px;padding:20px;display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.question-input[data-v-d659c898]{width:100%;height:110px;border-radius:50px;padding:10px;font-size:16px}.submit-btn[data-v-d659c898]{background-color:#34c759;color:#fff;border:none;padding:0 30px;font-size:16px;border-radius:70px;cursor:pointer;box-shadow:0 4px 8px rgba(0,0,0,.1);outline:none;transition:background-color .3s ease;height:40px;right:-110px}.cards[data-v-d659c898]{margin-top:1px;background-color:#f0f5f2;justify-content:space-between;border-radius:20px;height:100%}.card[data-v-d659c898]{background-color:#fff;border-radius:10px;height:170px;width:100%;padding:15px;margin-right:10px;box-shadow:0 2px 10px rgba(0,0,0,.1)}.card-title[data-v-d659c898]{color:#56c98d;font-weight:700;line-height:50px}.bottom-nav[data-v-d659c898]{height:80px;width:100%;background-color:#fff;padding:10px;display:flex;justify-content:space-between;position:absolute;align-items:center;bottom:0;left:0}.iconfont[data-v-d659c898]{font-size:24px}.cat-card[data-v-d659c898]{width:44px;height:44px}.cat-card_button[data-v-d659c898]{height:95px;width:100%}.question[data-v-d659c898]{font-size:24px;margin:110px 0 20px}.logo[data-v-d659c898]{width:34px;height:34px;left:-170px}.title[data-v-d659c898]{color:#8d9f8b;font-size:16px;margin:20px 0;left:25px;position:absolute}.card_internal[data-v-d659c898]{width:95%;padding-top:50px;display:flex}.cards_internal[data-v-d659c898]{height:100%;display:flex;flex-direction:column;align-items:center;padding:10px}.bottom_picture[data-v-d659c898]{width:45%;padding-left:70px;align-items:center}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

View File

@ -1 +1 @@
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),t=require("./service/notificationService.js"),r=require("./sheep/index.js"),o=require("./store/index.js"),n=require("./interceptors/route.js"),s=require("./interceptors/request.js"),i=require("./interceptors/prototype.js"),a=require("./sheep/store/index.js");Math;const p={__name:"App",setup:o=>(e.onLoad((()=>{e.index.hideTabBar()})),e.onLaunch((()=>{e.index.hideTabBar(),t.notificationService.startPollingUnreadMessages(),r.ShoproInit()})),e.onShow((()=>{t.notificationService.startPollingUnreadMessages()})),e.onHide((()=>{t.notificationService.stopPollingUnreadMessages()})),()=>{})};function u(){const t=e.createSSRApp(p);return a.setupPinia(o.store),t.use(o.store),t.use(n.routeInterceptor),t.use(s.requestInterceptor),t.use(i.prototypeInterceptor),t.component("layout-default-uni",c),t.component("layout-demo-uni",d),{app:t}}const c=()=>"./layouts/default.js",d=()=>"./layouts/demo.js";u().app.mount("#app"),exports.createApp=u;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),t=require("./service/notificationService.js"),o=require("./store/index.js"),r=require("./utils/commUtils.js"),s=require("./store/user.js"),n=require("./interceptors/route.js"),i=require("./interceptors/request.js"),u=require("./interceptors/prototype.js");Math;const a={__name:"App",setup:o=>(e.onLoad((()=>{e.index.hideTabBar()})),e.onLaunch((()=>{e.index.hideTabBar();const o=s.useUserStore();t.notificationService.startPollingUnreadMessages(),""!=o.userInfo.token&&o.userInfo.token||r.toPath("/modules/pet/login/index")})),e.onShow((()=>{t.notificationService.startPollingUnreadMessages()})),e.onHide((()=>{t.notificationService.stopPollingUnreadMessages()})),()=>{})};function c(){const t=e.createSSRApp(a);return t.use(o.store),t.use(n.routeInterceptor),t.use(i.requestInterceptor),t.use(u.prototypeInterceptor),t.component("layout-default-uni",p),t.component("layout-demo-uni",d),{app:t}}const p=()=>"./layouts/default.js",d=()=>"./layouts/demo.js";c().app.mount("#app"),exports.createApp=c;

View File

@ -1,154 +1,115 @@
{
"pages": [
"pages/index/index",
"pages/address/index",
"pages/ai/ai-interactive-space",
"pages/certification/index",
"pages/certification/pet-sitter",
"pages/extended/index",
"pages/h5mall/index",
"pages/login/index",
"pages/login/phone",
"pages/map/index",
"pages/message/chat",
"pages/message/index",
"pages/message/message-list",
"pages/message/privatechat",
"pages/my/index",
"pages/order/index",
"pages/order/order-detail",
"pages/order/take",
"pages/others/agreement",
"pages/others/null",
"pages/others/official-account",
"pages/permission/bind-phone",
"pages/permission/real-name-auth",
"pages/pet/index",
"pages/pet/pet-add-page",
"pages/pet/pet-detail-page",
"pages/push/door",
"pages/push/goods",
"pages/push/index",
"pages/push/share",
"pages/service/accompany",
"pages/service/detail",
"pages/service/door",
"pages/service/index",
"pages/service/knowledge",
"pages/service/my-service",
"pages/service/search",
"pages/service/shop",
"pages/service/slippery",
"pages/service/store",
"pages/settings/index",
"pages/space/index",
"pages/webview/webview",
"modules/mall/index/index",
"modules/mall/index/user",
"modules/mall/index/category",
"modules/mall/index/cart",
"modules/mall/index/login",
"modules/mall/index/search",
"modules/mall/index/page"
"pages/index/404"
],
"subPackages": [
{
"root": "modules/mall/goods",
"root": "modules/pet",
"pages": [
"index",
"groupon",
"seckill",
"list",
"comment/add",
"comment/list"
"address/index",
"ai/ai-interactive-space",
"certification/index",
"certification/pet-sitter",
"extended/index",
"h5mall/index",
"login/index",
"login/phone",
"map/index",
"message/chat",
"message/index",
"message/message-list",
"message/privatechat",
"my/index",
"order/index",
"order/order-detail",
"order/take",
"others/agreement",
"others/null",
"others/official-account",
"permission/bind-phone",
"permission/real-name-auth",
"pet/index",
"pet/pet-add-page",
"pet/pet-detail-page",
"push/door",
"push/goods",
"push/index",
"push/share",
"service/accompany",
"service/detail",
"service/door",
"service/index",
"service/knowledge",
"service/my-service",
"service/search",
"service/shop",
"service/slippery",
"service/store",
"settings/index",
"space/index",
"webview/webview"
]
},
{
"root": "modules/mall/order",
"root": "modules/mall",
"pages": [
"detail",
"confirm",
"list",
"aftersale/apply",
"aftersale/return-delivery",
"aftersale/list",
"aftersale/detail",
"aftersale/log",
"express/log"
]
},
{
"root": "modules/mall/user",
"pages": [
"info",
"goods-collect",
"goods-log",
"address/list",
"address/edit",
"goods_details_store/index",
"wallet/money",
"wallet/score"
]
},
{
"root": "modules/mall/commission",
"pages": [
"index",
"wallet",
"goods",
"order",
"team",
"promoter",
"commission-ranking",
"withdraw"
]
},
{
"root": "modules/mall/app",
"pages": [
"sign"
]
},
{
"root": "modules/mall/public",
"pages": [
"setting",
"richtext",
"faq",
"error",
"webview"
]
},
{
"root": "modules/mall/coupon",
"pages": [
"list",
"detail"
]
},
{
"root": "modules/mall/chat",
"pages": [
"index"
]
},
{
"root": "modules/mall/pay",
"pages": [
"index",
"result",
"recharge",
"recharge-log"
]
},
{
"root": "modules/mall/activity",
"pages": [
"groupon/detail",
"groupon/order",
"index",
"groupon/list",
"seckill/list"
"index/index",
"index/user",
"index/category",
"index/cart",
"index/login",
"index/search",
"index/page",
"goods/index",
"goods/groupon",
"goods/seckill",
"goods/list",
"goods/comment/add",
"goods/comment/list",
"order/detail",
"order/confirm",
"order/list",
"order/aftersale/apply",
"order/aftersale/return-delivery",
"order/aftersale/list",
"order/aftersale/detail",
"order/aftersale/log",
"order/express/log",
"user/info",
"user/goods-collect",
"user/goods-log",
"user/address/list",
"user/address/edit",
"user/goods_details_store/index",
"user/wallet/money",
"user/wallet/score",
"commission/index",
"commission/wallet",
"commission/goods",
"commission/order",
"commission/team",
"commission/promoter",
"commission/commission-ranking",
"commission/withdraw",
"app/sign",
"public/setting",
"public/richtext",
"public/faq",
"public/error",
"public/webview",
"coupon/list",
"coupon/detail",
"chat/index",
"pay/index",
"pay/result",
"pay/recharge",
"pay/recharge-log",
"activity/groupon/detail",
"activity/groupon/order",
"activity/index",
"activity/groupon/list",
"activity/seckill/list"
]
}
],
@ -166,34 +127,10 @@
"borderStyle": "black",
"list": [
{
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/homeL.png",
"pagePath": "pages/index/index",
"text": "首页"
"pagePath": "pages/index/index"
},
{
"iconPath": "static/tabbar/space.png",
"selectedIconPath": "static/tabbar/spaceL.png",
"pagePath": "pages/space/index",
"text": "互动空间"
},
{
"iconPath": "static/tabbar/24gl-paperPlane.png",
"selectedIconPath": "static/tabbar/24gl-paperPlaneL.png",
"pagePath": "pages/push/index",
"text": "发布"
},
{
"iconPath": "static/tabbar/message.png",
"selectedIconPath": "static/tabbar/messageL.png",
"pagePath": "pages/message/index",
"text": "消息"
},
{
"iconPath": "static/tabbar/my.png",
"selectedIconPath": "static/tabbar/myL.png",
"pagePath": "pages/my/index",
"text": "我的 "
"pagePath": "pages/index/404"
}
]
},

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
"use strict";exports._imports_0="/static/null/mapnull.png",exports._imports_1="/static/null/searchnull.png",exports._imports_2="/static/null/messagenull.png";

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";var e=(e,t,n)=>new Promise(((r,o)=>{var s=e=>{try{i(n.next(e))}catch(t){o(t)}},a=e=>{try{i(n.throw(e))}catch(t){o(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,a);i((n=n.apply(e,t)).next())}));const t=require("../common/vendor.js"),n=require("../service/mapService.js"),r=require("../utils/platform.js"),o={__name:"AddressCell",setup(o){const s=t.ref({}),a=()=>e(this,null,(function*(){try{const e=yield n.getLocation(),t=yield n.getMapDetailAddress(e.longitude,e.latitude);s.value=t}catch(e){}}));return t.onLoad((()=>e(this,null,(function*(){yield a()})))),(e,n)=>({a:t.t(t.unref(s).addressComponent?`${t.unref(s).addressComponent.city} ${t.unref(s).addressComponent.district}`:"正在加载..."),b:t.n(t.unref(r.isH5)?"top-_a_3vw_a_":"top-_a_6vw_a_")})}};wx.createComponent(o);
"use strict";var e=(e,t,r)=>new Promise(((n,s)=>{var a=e=>{try{i(r.next(e))}catch(t){s(t)}},o=e=>{try{i(r.throw(e))}catch(t){s(t)}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,o);i((r=r.apply(e,t)).next())}));const t=require("../common/vendor.js"),r=require("../service/mapService.js"),n=require("../utils/commUtils.js"),s=require("../utils/platform.js"),a={__name:"AddressCell",setup(a){const o=t.ref({}),i=t.ref(!0),l=()=>e(this,null,(function*(){try{const e=yield r.getLocation(),t=yield r.getMapDetailAddress(e.longitude,e.latitude);o.value=t,o.value.addressComponent||(i.value=!1)}catch(e){i.value=!1}}));return t.onLoad((()=>e(this,null,(function*(){yield l()})))),(e,r)=>t.e({a:t.unref(n.imgUrl)("@/static/addresscell/location.png"),b:t.unref(i)},t.unref(i)?{c:t.t(t.unref(o).addressComponent?`${t.unref(o).addressComponent.city} ${t.unref(o).addressComponent.district}`:"正在加载...")}:{},{d:t.n(t.unref(s.isH5)?"top-_a_2_a__a_":"top-_a_6_a__a_")})}};wx.createComponent(a);

View File

@ -1 +1 @@
<view class="{{['pos-fixed z-999 left-_a_1px_a_ flex gap-_a_5px_a_ items-center content-center justify-center', b]}}"><image src="/static/addresscell/location.png" class="w-_a_30px_a_" mode="widthFix"/><view>{{a}}</view></view>
<view class="{{['pos-fixed z-999 left-_a_1px_a_ flex gap-_a_5px_a_ items-center content-center justify-center', d]}}"><image src="{{a}}" class="w-_a_6vw_a_" mode="widthFix"/><view wx:if="{{b}}" class="text-size-_a_4vw_a_">{{c}}</view><view wx:else>未获取</view></view>

View File

@ -1 +1 @@
"use strict";const e=require("../common/vendor.js"),t=require("../common/assets.js"),s={name:"EmptyState",props:{type:{type:String,default:"default"},message:{type:String,default:"空空如也!"}}};const p=e._export_sfc(s,[["render",function(s,p,r,a,m,o){return e.e({a:"map"==this.type},"map"==this.type?{b:t._imports_0}:"search"==this.type?{d:t._imports_1}:"message"==this.type?{f:t._imports_2}:{g:t._imports_1},{c:"search"==this.type,e:"message"==this.type,h:e.t(r.message)})}],["__scopeId","data-v-61587a54"]]);wx.createComponent(p);
"use strict";const e=require("../common/vendor.js"),t={name:"EmptyState",components:{Page:()=>"../modules/mall/index/page2.js"},props:{type:{type:String,default:"default"},message:{type:String,default:"空空如也!"}}};const s=e._export_sfc(t,[["render",function(t,s,a,n,l,p){return e.e({a:"map"==this.type},"map"==this.type?{b:t.imgUrl("@/static/null/mapnull.png")}:"search"==this.type?{d:t.imgUrl("@/static/null/searchnull.png")}:"message"==this.type?{f:t.imgUrl("@/static/null/messagenull.png")}:{g:t.imgUrl("@/static/null/searchnull.png")},{c:"search"==this.type,e:"message"==this.type,h:e.t(a.message)})}],["__scopeId","data-v-c1f045d0"]]);wx.createComponent(s);

View File

@ -1 +1 @@
<view class="empty-state data-v-61587a54"><image wx:if="{{a}}" class="img data-v-61587a54" src="{{b}}" mode="widthFix"/><image wx:elif="{{c}}" class="img data-v-61587a54" src="{{d}}" mode="widthFix"/><image wx:elif="{{e}}" class="img data-v-61587a54" src="{{f}}" mode="widthFix"/><image wx:else class="img data-v-61587a54" src="{{g}}" mode="widthFix"/><view class="txt data-v-61587a54">{{h}}</view></view>
<view class="empty-state data-v-c1f045d0"><image wx:if="{{a}}" class="img data-v-c1f045d0" src="{{b}}" mode="widthFix"/><image wx:elif="{{c}}" class="img data-v-c1f045d0" src="{{d}}" mode="widthFix"/><image wx:elif="{{e}}" class="img data-v-c1f045d0" src="{{f}}" mode="widthFix"/><image wx:else class="img data-v-c1f045d0" src="{{g}}" mode="widthFix"/><view class="txt data-v-c1f045d0">{{h}}</view></view>

View File

@ -1 +1 @@
.empty-state.data-v-61587a54{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-state .img.data-v-61587a54{width:100%;width:250px;height:auto;margin:20px 0}.empty-state .txt.data-v-61587a54{font-size:16px;color:#666;text-align:center}
.empty-state.data-v-c1f045d0{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-state .img.data-v-c1f045d0{width:100%;width:250px;height:auto;margin:20px 0}.empty-state .txt.data-v-c1f045d0{font-size:16px;color:#666;text-align:center}

View File

@ -1 +1 @@
"use strict";const e=require("../common/vendor.js"),t=require("../service/mapService.js"),i=require("../utils/commUtils.js");if(!Array){(e.resolveComponent("u-col")+e.resolveComponent("u-row"))()}const a={__name:"Map",props:{initialLongitude:{type:Number,default:null},initialLatitude:{type:Number,default:null},iconPath:{type:String,default:"/static/map/self.png"},locationName:{type:String,default:"本地位置"}},emits:["doneFun"],setup(a,{emit:l}){const u=a,n=e.ref(u.initialLongitude||0),o=e.ref(u.initialLatitude||0),d=e.ref(0),c=e.ref(0),r=e.ref("16"),s=e.ref(!0),v=l,g=e.reactive([{longitude:n.value,latitude:o.value,iconPath:u.iconPath,width:30,height:30,label:{content:u.locationName,textAlign:"center",color:"#FB3109"}}]),p=()=>{e.index.chooseLocation({success:e=>{n.value=e.longitude,o.value=e.latitude,g[0].longitude=e.longitude,g[0].latitude=e.latitude},fail:e=>{i.toast("获取位置失败")}})};return e.watch((()=>[u.initialLongitude,u.initialLatitude]),(([e,t])=>{null!==e&&(n.value=e,g[0].longitude=e),null!==t&&(o.value=t,g[0].latitude=t)})),e.onLoad((()=>{0===n.value&&0===o.value?e.index.getLocation({type:"gcj02",timeout:1e3,geocode:s.value,success:i=>{e.index.hideLoading(),n.value=i.longitude,o.value=i.latitude,d.value=i.longitude,c.value=i.latitude,g[0].longitude=i.longitude,g[0].latitude=i.latitude,t.getMapDetailAddress(i.longitude,i.latitude).then((e=>{v("doneFun",e)}))},fail:t=>{e.index.showModal({title:"提示",content:"位置信息获取失败(请确定定位功能是否打开)",showCancel:!1})}}):(g[0].longitude=n.value,g[0].latitude=o.value,t.getMapDetailAddress(n.value,o.value).then((e=>{v("doneFun",e)})))})),(t,i)=>({a:n.value,b:o.value,c:r.value,d:e.o(p),e:g,f:e.p({span:"12"})})}},l=e._export_sfc(a,[["__scopeId","data-v-78afe88e"]]);wx.createComponent(l);
"use strict";const e=require("../common/vendor.js"),t=require("../service/mapService.js"),i=require("../utils/commUtils.js");if(!Array){(e.resolveComponent("u-col")+e.resolveComponent("u-row"))()}const l={__name:"Map",props:{initialLongitude:{type:Number,default:null},initialLatitude:{type:Number,default:null},iconPath:{type:String,default:"/static/map/self.png"},locationName:{type:String,default:"本地位置"}},emits:["doneFun"],setup(l,{emit:a}){const u=l,n=e.ref(u.initialLongitude||0),o=e.ref(u.initialLatitude||0),d=e.ref(0),c=e.ref(0),r=e.ref("16"),s=e.ref(!0),g=a,v=e.reactive([{longitude:n.value,latitude:o.value,iconPath:u.iconPath,width:30,height:30,label:{content:u.locationName,textAlign:"center",color:"#FB3109"}}]),p=()=>{e.index.chooseLocation({success:e=>{n.value=e.longitude,o.value=e.latitude,v[0].longitude=e.longitude,v[0].latitude=e.latitude},fail:e=>{i.toast("获取位置失败")}})};return e.watch((()=>[u.initialLongitude,u.initialLatitude]),(([e,t])=>{null!==e&&(n.value=e,v[0].longitude=e),null!==t&&(o.value=t,v[0].latitude=t)})),e.onLoad((()=>{0===n.value&&0===o.value?e.index.getLocation({type:"gcj02",timeout:1e3,geocode:s.value,success:i=>{e.index.hideLoading(),n.value=i.longitude,o.value=i.latitude,d.value=i.longitude,c.value=i.latitude,v[0].longitude=i.longitude,v[0].latitude=i.latitude,t.getMapDetailAddress(i.longitude,i.latitude).then((e=>{e.location={longitude:i.longitude,latitude:i.latitude},g("doneFun",e)}))},fail:t=>{e.index.showModal({title:"提示",content:"位置信息获取失败(请确定定位功能是否打开)",showCancel:!1})}}):(v[0].longitude=n.value,v[0].latitude=o.value,t.getMapDetailAddress(n.value,o.value).then((e=>{g("doneFun",e)})))})),(t,i)=>({a:n.value,b:o.value,c:r.value,d:e.o(p),e:v,f:e.p({span:"12"})})}},a=e._export_sfc(l,[["__scopeId","data-v-4aae03c3"]]);wx.createComponent(a);

View File

@ -1 +1 @@
<view class="objView data-v-78afe88e"><u-row class="data-v-78afe88e" u-s="{{['d']}}" u-i="78afe88e-0" bind:__l="__l"><u-col wx:if="{{f}}" class="data-v-78afe88e" u-s="{{['d']}}" u-i="78afe88e-1,78afe88e-0" bind:__l="__l" u-p="{{f}}"><map class="data-v-78afe88e" id="myMap" ref="myMap" longitude="{{a}}" latitude="{{b}}" scale="{{c}}" bindtap="{{d}}" markers="{{e}}" style="width:100vw;height:100%"></map></u-col></u-row></view>
<view class="objView data-v-4aae03c3"><u-row class="data-v-4aae03c3" u-s="{{['d']}}" u-i="4aae03c3-0" bind:__l="__l"><u-col wx:if="{{f}}" class="data-v-4aae03c3" u-s="{{['d']}}" u-i="4aae03c3-1,4aae03c3-0" bind:__l="__l" u-p="{{f}}"><map class="data-v-4aae03c3" id="myMap" ref="myMap" longitude="{{a}}" latitude="{{b}}" scale="{{c}}" bindtap="{{d}}" markers="{{e}}" style="width:100vw;height:100%"></map></u-col></u-row></view>

View File

@ -1 +1 @@
.objView.data-v-78afe88e{width:100%;height:100%}#myMap.data-v-78afe88e{width:100%}.myInfoRow.data-v-78afe88e{height:50px}textarea.data-v-78afe88e{width:100%}
.objView.data-v-4aae03c3{width:100%;height:100%}#myMap.data-v-4aae03c3{width:100%}.myInfoRow.data-v-4aae03c3{height:50px}textarea.data-v-4aae03c3{width:100%}

View File

@ -1 +1 @@
"use strict";const e=require("../common/vendor.js"),t=require("../utils/commUtils.js");if(!Array){e.resolveComponent("wd-icon")()}Math;const r={__name:"PetSitterCard",props:{petSitter:{type:Object,required:!0}},setup(r){const i=r,o=()=>{e.index.navigateTo({url:"/pages/service/detail?id="+i.petSitter.id})};return(i,s)=>({a:e.unref(t.imgUrl)(r.petSitter.url),b:e.t(r.petSitter.serviceName),c:e.t(r.petSitter.price),d:e.f(5,((e,t,r)=>({a:e,b:"8bdab26f-0-"+r}))),e:e.p({name:"star-on",size:"20"}),f:e.t(r.petSitter.description),g:e.o(o)})}},i=e._export_sfc(r,[["__scopeId","data-v-8bdab26f"]]);wx.createComponent(i);
"use strict";const e=require("../common/vendor.js"),t=require("../utils/commUtils.js");if(!Array){e.resolveComponent("wd-icon")()}Math;const r={__name:"PetSitterCard",props:{petSitter:{type:Object,required:!0}},setup(r){const i=r,o=()=>{e.index.navigateTo({url:"/modules/pet/service/detail?id="+i.petSitter.id})};return(i,s)=>({a:e.unref(t.imgUrl)(r.petSitter.url),b:e.t(r.petSitter.serviceName),c:e.t(r.petSitter.price),d:e.f(5,((e,t,r)=>({a:e,b:"6184ebfe-0-"+r}))),e:e.p({name:"star-on",size:"20"}),f:e.t(r.petSitter.description),g:e.o(o)})}},i=e._export_sfc(r,[["__scopeId","data-v-6184ebfe"]]);wx.createComponent(i);

View File

@ -1 +1 @@
<view bindtap="{{g}}" class="pet-sitter-card bg-white p-4 rounded-lg shadow flex data-v-8bdab26f"><view class="flex-shrink-0 mr-4 relative data-v-8bdab26f"><image src="{{a}}" class="w-16 h-16 object-cover rounded-full data-v-8bdab26f"></image><view class="absolute top-0 left-0 bg-_a__a_ffc107_a_ text-white rounded-full text-xs px-2 py-1 data-v-8bdab26f"> V 超赞 </view></view><view class="flex-1 data-v-8bdab26f"><view class="flex justify-between items-center data-v-8bdab26f"><text class="text-lg font-bold data-v-8bdab26f">{{b}}</text><text class="text-red-500 text-lg data-v-8bdab26f">{{c}}¥/小时</text></view><view class="flex items-center mt-1 data-v-8bdab26f"><view class="flex data-v-8bdab26f"><wd-icon wx:for="{{d}}" wx:for-item="n" wx:key="a" class="text-_a__a_ffc107_a_ data-v-8bdab26f" u-i="{{n.b}}" bind:__l="__l" u-p="{{e}}"></wd-icon></view><text class="ml-2 text-_a__a_ffc107_a_ data-v-8bdab26f">5星好评</text></view><text class="text-gray-600 mt-2 data-v-8bdab26f">{{f}}</text><view class="flex justify-between items-center mt-2 data-v-8bdab26f"><view class="flex items-center data-v-8bdab26f"><text class="text-xs text-gray-400 mr-2 data-v-8bdab26f">专业宠托师</text><text class="text-xs text-gray-400 data-v-8bdab26f">多次服务,信赖</text></view><text class="text-xs text-gray-400 data-v-8bdab26f">专业宠托师</text></view></view></view>
<view bindtap="{{g}}" class="pet-sitter-card bg-white p-4 rounded-lg shadow flex data-v-6184ebfe"><view class="flex-shrink-0 mr-4 relative data-v-6184ebfe"><image src="{{a}}" class="w-16 h-16 object-cover rounded-full data-v-6184ebfe"></image><view class="absolute top-0 left-0 bg-_a__a_ffc107_a_ text-white rounded-full text-xs px-2 py-1 data-v-6184ebfe"> V 超赞 </view></view><view class="flex-1 data-v-6184ebfe"><view class="flex justify-between items-center data-v-6184ebfe"><text class="text-lg font-bold data-v-6184ebfe">{{b}}</text><text class="text-red-500 text-lg data-v-6184ebfe">{{c}}¥/小时</text></view><view class="flex items-center mt-1 data-v-6184ebfe"><view class="flex data-v-6184ebfe"><wd-icon wx:for="{{d}}" wx:for-item="n" wx:key="a" class="text-_a__a_ffc107_a_ data-v-6184ebfe" u-i="{{n.b}}" bind:__l="__l" u-p="{{e}}"></wd-icon></view><text class="ml-2 text-_a__a_ffc107_a_ data-v-6184ebfe">5星好评</text></view><text class="text-gray-600 mt-2 data-v-6184ebfe">{{f}}</text><view class="flex justify-between items-center mt-2 data-v-6184ebfe"><view class="flex items-center data-v-6184ebfe"><text class="text-xs text-gray-400 mr-2 data-v-6184ebfe">专业宠托师</text><text class="text-xs text-gray-400 data-v-6184ebfe">多次服务,信赖</text></view><text class="text-xs text-gray-400 data-v-6184ebfe">专业宠托师</text></view></view></view>

View File

@ -1 +1 @@
.pet-sitter-card.data-v-8bdab26f{display:flex;border-radius:16rpx;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));padding:32rpx;--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.flex-shrink-0.data-v-8bdab26f{position:relative;margin-right:32rpx;flex-shrink:0}.flex-1.data-v-8bdab26f{flex:1 1 0%}.text-lg.data-v-8bdab26f{font-size:36rpx;line-height:56rpx}.font-bold.data-v-8bdab26f{font-weight:700}.text-red-500.data-v-8bdab26f{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.flex.data-v-8bdab26f{display:flex}.text-_a__a_ffc107_a_.data-v-8bdab26f{--un-text-opacity:1;color:rgb(255 193 7 / var(--un-text-opacity))}.ml-2.data-v-8bdab26f{margin-left:16rpx}.text-gray-600.data-v-8bdab26f{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.mt-2.data-v-8bdab26f{margin-top:16rpx}.text-xs.data-v-8bdab26f{font-size:24rpx;line-height:32rpx}.text-gray-400.data-v-8bdab26f{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.bg-_a__a_ffc107_a_.data-v-8bdab26f{--un-bg-opacity:1;background-color:rgb(255 193 7 / var(--un-bg-opacity))}
.pet-sitter-card.data-v-6184ebfe{display:flex;border-radius:16rpx;--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity));padding:32rpx;--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.flex-shrink-0.data-v-6184ebfe{position:relative;margin-right:32rpx;flex-shrink:0}.flex-1.data-v-6184ebfe{flex:1 1 0%}.text-lg.data-v-6184ebfe{font-size:36rpx;line-height:56rpx}.font-bold.data-v-6184ebfe{font-weight:700}.text-red-500.data-v-6184ebfe{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity))}.flex.data-v-6184ebfe{display:flex}.text-_a__a_ffc107_a_.data-v-6184ebfe{--un-text-opacity:1;color:rgb(255 193 7 / var(--un-text-opacity))}.ml-2.data-v-6184ebfe{margin-left:16rpx}.text-gray-600.data-v-6184ebfe{--un-text-opacity:1;color:rgb(75 85 99 / var(--un-text-opacity))}.mt-2.data-v-6184ebfe{margin-top:16rpx}.text-xs.data-v-6184ebfe{font-size:24rpx;line-height:32rpx}.text-gray-400.data-v-6184ebfe{--un-text-opacity:1;color:rgb(156 163 175 / var(--un-text-opacity))}.bg-_a__a_ffc107_a_.data-v-6184ebfe{--un-bg-opacity:1;background-color:rgb(255 193 7 / var(--un-bg-opacity))}

View File

@ -1 +1 @@
"use strict";const e=require("../common/vendor.js"),t=require("../store/routers.js"),r={__name:"Tabbar",setup(r){const n=t.useRoutersStore();return(t,r)=>({a:e.f(e.unref(n).tabList,((t,r,s)=>({a:e.unref(n).selected===r?t.selectedIconPath:t.iconPath,b:e.t(t.text),c:r,d:e.unref(n).selected===r?1:"",e:e.o((r=>function(t){n.setCurrentTab(t.pagePath),e.index.switchTab({url:t.pagePath})}(t)),r)})))})}};wx.createComponent(r);
"use strict";const e=require("../common/vendor.js"),t=require("../store/routers.js"),n={__name:"Tabbar",setup(n){const r=t.useRoutersStore();return(t,n)=>({a:e.f(e.unref(r).tabList,((t,n,a)=>({a:e.unref(r).selected===n?t.selectedIconPath:t.iconPath,b:e.t(t.text),c:n,d:e.unref(r).selected===n?1:"",e:e.o((n=>function(t){r.setCurrentTab(t.pagePath),"/pages/index/index"!==t.pagePath?e.index.navigateTo({url:t.pagePath}):e.index.switchTab({url:"/pages/index/index"})}(t)),n)})))})}};wx.createComponent(n);

View File

@ -1 +1 @@
"use strict";var e=Object.defineProperty,r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;const n=require("../common/vendor.js");require("../store/index.js");const u=require("../utils/platform.js"),i=require("../store/user.js"),a={invoke(e){if(e.query){const r=n.qs.stringify(e.query);e.url.includes("?")?e.url+=`&${r}`:e.url+=`?${r}`}e.url.startsWith("http")||(e.url="http://47.99.70.12:28184/api"+e.url),e.timeout=1e4,e.header=((e,n)=>{for(var u in n||(n={}))t.call(n,u)&&s(e,u,n[u]);if(r)for(var u of r(n))o.call(n,u)&&s(e,u,n[u]);return e})({platform:u.platform},e.header);const a=i.useUserStore(),{token:l}=a.userInfo;l&&(e.header.Authorization=`Bearer ${l}`)}},l={install(){n.index.addInterceptor("request",a),n.index.addInterceptor("uploadFile",a)}};exports.requestInterceptor=l;
"use strict";var e=Object.defineProperty,r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;const n=require("../common/vendor.js");require("../store/index.js");const u=require("../utils/platform.js"),i=require("../store/user.js"),a={invoke(e){if(e.query){const r=n.qs.stringify(e.query);e.url.includes("?")?e.url+=`&${r}`:e.url+=`?${r}`}e.url.startsWith("http")||(e.url="http://116.204.119.171:48080/app-api"+e.url),e.timeout=1e4,e.header=((e,n)=>{for(var u in n||(n={}))t.call(n,u)&&s(e,u,n[u]);if(r)for(var u of r(n))o.call(n,u)&&s(e,u,n[u]);return e})({platform:u.platform},e.header);const a=i.useUserStore(),{token:l}=a.userInfo;l&&(e.header.Authorization=`Bearer ${l}`)}},l={install(){n.index.addInterceptor("request",a),n.index.addInterceptor("uploadFile",a)}};exports.requestInterceptor=l;

View File

@ -1 +1 @@
"use strict";const e=require("../common/vendor.js");require("../store/index.js");const r=require("../utils/index.js"),n=require("../store/user.js"),t={invoke({url:t}){const i=t.split("?")[0];let o=[];o=r.needLoginPages;if(!o.includes(i))return!0;if(n.useUserStore().isLogined)return!0;const s=`/pages/login/index?redirect=${encodeURIComponent(t)}`;return e.index.navigateTo({url:s}),!1}},i={install(){e.index.addInterceptor("navigateTo",t),e.index.addInterceptor("reLaunch",t),e.index.addInterceptor("redirectTo",t)}};exports.routeInterceptor=i;
"use strict";const e=require("../common/vendor.js");require("../store/index.js");const r=require("../utils/index.js"),n=require("../store/user.js"),t={invoke({url:t}){const i=t.split("?")[0];let o=[];o=r.needLoginPages;if(!o.includes(i))return!0;if(n.useUserStore().isLogined)return!0;const s=`/modules/pet/login/index?redirect=${encodeURIComponent(t)}`;return e.index.navigateTo({url:s}),!1}},i={install(){e.index.addInterceptor("navigateTo",t),e.index.addInterceptor("reLaunch",t),e.index.addInterceptor("redirectTo",t)}};exports.routeInterceptor=i;

View File

@ -1 +1 @@
"use strict";var e=(e,t,n)=>new Promise(((o,r)=>{var s=e=>{try{i(n.next(e))}catch(t){r(t)}},a=e=>{try{i(n.throw(e))}catch(t){r(t)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(s,a);i((n=n.apply(e,t)).next())}));const t=require("../common/vendor.js"),n=require("../utils/http.js");exports.pay=o=>e(exports,null,(function*(){try{const r=yield n.httpPost("/order/create",o);if(200===r.code){const n=r.data;"requestPayment:ok"===(yield(e=n.payData,new Promise(((n,o)=>{t.index.requestPayment({provider:"wxpay",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign,success:function(e){n(e)},fail:function(e){o(e)}})})))).errMsg?t.index.showToast({title:"支付成功",icon:"success"}):t.index.showToast({title:"支付失败",icon:"none"})}}catch(r){t.index.showToast({title:"创建订单失败",icon:"none"})}var e})),exports.payOrder=t=>e(exports,null,(function*(){return yield n.httpPost("/order/pay/"+t,{})}));
"use strict";require("../common/vendor.js");const e=require("../utils/http.js");exports.payOrder=r=>{return t=exports,o=null,n=function*(){return yield e.httpPost("/order/pay/"+r,{})},new Promise(((e,r)=>{var s=e=>{try{a(n.next(e))}catch(t){r(t)}},u=e=>{try{a(n.throw(e))}catch(t){r(t)}},a=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,u);a((n=n.apply(t,o)).next())}));var t,o,n};

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,9 @@
{
"navigationBarTitleText": "拼团详情",
"usingComponents": {
"s-goods-item": "../../../../sheep/components/s-goods-item/s-goods-item",
"s-select-groupon-sku": "../../../../sheep/components/s-select-groupon-sku/s-select-groupon-sku",
"s-empty": "../../../../sheep/components/s-empty/s-empty",
"s-layout": "../../../../sheep/components/s-layout/s-layout"
"s-goods-item": "../../sheep/components/s-goods-item/s-goods-item",
"s-select-groupon-sku": "../../sheep/components/s-select-groupon-sku/s-select-groupon-sku",
"s-empty": "../../sheep/components/s-empty/s-empty",
"s-layout": "../../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-12408d46" u-s="{{['d']}}" style="{{U}}" u-i="12408d46-0" bind:__l="__l"><s-layout wx:if="{{T}}" u-s="{{['d']}}" class="detail-wrap data-v-12408d46" u-i="12408d46-1,12408d46-0" bind:__l="__l" u-p="{{T}}"><view wx:if="{{a}}" class="data-v-12408d46"></view><view wx:if="{{b}}" class="data-v-12408d46"><view wx:if="{{c}}" class="recharge-box data-v-12408d46" style="{{i}}"><s-goods-item wx:if="{{h}}" u-s="{{['groupon']}}" class="goods-box data-v-12408d46" bindtap="{{f}}" style="{{g}}" u-i="12408d46-2,12408d46-1" bind:__l="__l" u-p="{{h}}"><view class="ss-flex data-v-12408d46" slot="groupon"><view class="sales-title data-v-12408d46">{{d}}人团</view><view class="num-title ss-m-l-20 data-v-12408d46">已拼{{e}}件</view></view></s-goods-item></view><view class="countdown-box detail-card ss-p-t-44 ss-flex-col ss-col-center data-v-12408d46"><view wx:if="{{j}}" class="data-v-12408d46"><view wx:if="{{k}}" class="data-v-12408d46"><view class="countdown-title ss-flex data-v-12408d46"><text class="cicon-check-round data-v-12408d46"/> 恭喜您~拼团成功 </view></view><view wx:else class="data-v-12408d46"><view class="countdown-title ss-flex data-v-12408d46"><text class="cicon-info data-v-12408d46"/> 抱歉~该团已满员 </view></view></view><view wx:if="{{l}}" class="data-v-12408d46"><view class="countdown-title ss-flex data-v-12408d46"><text class="cicon-info data-v-12408d46"></text> {{m}}</view></view><view wx:if="{{n}}" class="data-v-12408d46"><view wx:if="{{o}}" class="data-v-12408d46"><view class="countdown-title ss-flex data-v-12408d46"><text class="cicon-info data-v-12408d46"></text> 拼团已结束,请关注下次活动 </view></view><view wx:else class="countdown-title ss-flex data-v-12408d46"> 还差 <view class="num data-v-12408d46">{{p}}人 </view> 拼团成功 <view class="ss-flex countdown-time data-v-12408d46"><view class="countdown-h ss-flex ss-row-center data-v-12408d46">{{q}}</view><view class="ss-m-x-4 data-v-12408d46">:</view><view class="countdown-num ss-flex ss-row-center data-v-12408d46">{{r}}</view><view class="ss-m-x-4 data-v-12408d46">:</view><view class="countdown-num ss-flex ss-row-center data-v-12408d46">{{s}}</view></view></view></view><view class="ss-m-t-60 ss-flex ss-flex-wrap ss-row-center data-v-12408d46"><view class="header-avatar ss-m-r-24 ss-m-b-20 data-v-12408d46"><image src="{{t}}" class="avatar-img data-v-12408d46"></image><view class="header-tag ss-flex ss-col-center ss-row-center data-v-12408d46">团长</view></view><view wx:for="{{v}}" wx:for-item="item" wx:key="c" class="header-avatar ss-m-r-24 ss-m-b-20 data-v-12408d46"><image src="{{item.a}}" class="avatar-img data-v-12408d46"></image><view wx:if="{{item.b}}" class="header-tag ss-flex ss-col-center ss-row-center data-v-12408d46"> 团长 </view></view><view wx:for="{{w}}" wx:for-item="item" wx:key="a" class="default-avatar ss-m-r-24 ss-m-b-20 data-v-12408d46"><image src="{{x}}" class="avatar-img data-v-12408d46"></image></view></view></view><view wx:if="{{y}}" class="ss-m-t-40 ss-flex ss-row-center data-v-12408d46"><button wx:if="{{z}}" class="ss-reset-button order-btn data-v-12408d46" bindtap="{{A}}"> 查看订单 </button><button wx:else class="ss-reset-button join-btn data-v-12408d46" bindtap="{{B}}">我要开团</button></view><view wx:if="{{C}}" class="ss-m-t-40 ss-flex ss-row-center data-v-12408d46"><view wx:if="{{D}}" class="data-v-12408d46"><button wx:if="{{E}}" class="ss-reset-button join-btn data-v-12408d46" bindtap="{{F}}"> 查看订单 </button><button wx:else class="ss-reset-button disabled-btn data-v-12408d46" disabled bindtap="{{G}}"> 去参团 </button></view><view wx:else class="ss-flex ss-row-center data-v-12408d46"><view wx:if="{{H}}" class="data-v-12408d46"><button class="ss-reset-button join-btn data-v-12408d46" disabled="{{I}}" bindtap="{{J}}"> 邀请好友来拼团 </button></view><view wx:else class="data-v-12408d46"><button class="ss-reset-button join-btn data-v-12408d46" disabled="{{K}}" bindtap="{{L}}"> 立即参团 </button></view></view></view><view wx:if="{{M}}" class="data-v-12408d46"><s-select-groupon-sku wx:if="{{Q}}" class="data-v-12408d46" bindbuy="{{N}}" bindchange="{{O}}" bindclose="{{P}}" u-i="12408d46-3,12408d46-1" bind:__l="__l" u-p="{{Q}}"/></view></view><s-empty wx:if="{{R}}" class="data-v-12408d46" u-i="12408d46-4,12408d46-1" bind:__l="__l" u-p="{{S}}"/></s-layout></layout-default-uni>
<layout-default-uni class="data-v-ee1f372d" u-s="{{['d']}}" style="{{U}}" u-i="ee1f372d-0" bind:__l="__l"><s-layout wx:if="{{T}}" u-s="{{['d']}}" class="detail-wrap data-v-ee1f372d" u-i="ee1f372d-1,ee1f372d-0" bind:__l="__l" u-p="{{T}}"><view wx:if="{{a}}" class="data-v-ee1f372d"></view><view wx:if="{{b}}" class="data-v-ee1f372d"><view wx:if="{{c}}" class="recharge-box data-v-ee1f372d" style="{{i}}"><s-goods-item wx:if="{{h}}" u-s="{{['groupon']}}" class="goods-box data-v-ee1f372d" bindtap="{{f}}" style="{{g}}" u-i="ee1f372d-2,ee1f372d-1" bind:__l="__l" u-p="{{h}}"><view class="ss-flex data-v-ee1f372d" slot="groupon"><view class="sales-title data-v-ee1f372d">{{d}}人团</view><view class="num-title ss-m-l-20 data-v-ee1f372d">已拼{{e}}件</view></view></s-goods-item></view><view class="countdown-box detail-card ss-p-t-44 ss-flex-col ss-col-center data-v-ee1f372d"><view wx:if="{{j}}" class="data-v-ee1f372d"><view wx:if="{{k}}" class="data-v-ee1f372d"><view class="countdown-title ss-flex data-v-ee1f372d"><text class="cicon-check-round data-v-ee1f372d"/> 恭喜您~拼团成功 </view></view><view wx:else class="data-v-ee1f372d"><view class="countdown-title ss-flex data-v-ee1f372d"><text class="cicon-info data-v-ee1f372d"/> 抱歉~该团已满员 </view></view></view><view wx:if="{{l}}" class="data-v-ee1f372d"><view class="countdown-title ss-flex data-v-ee1f372d"><text class="cicon-info data-v-ee1f372d"></text> {{m}}</view></view><view wx:if="{{n}}" class="data-v-ee1f372d"><view wx:if="{{o}}" class="data-v-ee1f372d"><view class="countdown-title ss-flex data-v-ee1f372d"><text class="cicon-info data-v-ee1f372d"></text> 拼团已结束,请关注下次活动 </view></view><view wx:else class="countdown-title ss-flex data-v-ee1f372d"> 还差 <view class="num data-v-ee1f372d">{{p}}人 </view> 拼团成功 <view class="ss-flex countdown-time data-v-ee1f372d"><view class="countdown-h ss-flex ss-row-center data-v-ee1f372d">{{q}}</view><view class="ss-m-x-4 data-v-ee1f372d">:</view><view class="countdown-num ss-flex ss-row-center data-v-ee1f372d">{{r}}</view><view class="ss-m-x-4 data-v-ee1f372d">:</view><view class="countdown-num ss-flex ss-row-center data-v-ee1f372d">{{s}}</view></view></view></view><view class="ss-m-t-60 ss-flex ss-flex-wrap ss-row-center data-v-ee1f372d"><view class="header-avatar ss-m-r-24 ss-m-b-20 data-v-ee1f372d"><image src="{{t}}" class="avatar-img data-v-ee1f372d"></image><view class="header-tag ss-flex ss-col-center ss-row-center data-v-ee1f372d">团长</view></view><view wx:for="{{v}}" wx:for-item="item" wx:key="c" class="header-avatar ss-m-r-24 ss-m-b-20 data-v-ee1f372d"><image src="{{item.a}}" class="avatar-img data-v-ee1f372d"></image><view wx:if="{{item.b}}" class="header-tag ss-flex ss-col-center ss-row-center data-v-ee1f372d"> 团长 </view></view><view wx:for="{{w}}" wx:for-item="item" wx:key="a" class="default-avatar ss-m-r-24 ss-m-b-20 data-v-ee1f372d"><image src="{{x}}" class="avatar-img data-v-ee1f372d"></image></view></view></view><view wx:if="{{y}}" class="ss-m-t-40 ss-flex ss-row-center data-v-ee1f372d"><button wx:if="{{z}}" class="ss-reset-button order-btn data-v-ee1f372d" bindtap="{{A}}"> 查看订单 </button><button wx:else class="ss-reset-button join-btn data-v-ee1f372d" bindtap="{{B}}">我要开团</button></view><view wx:if="{{C}}" class="ss-m-t-40 ss-flex ss-row-center data-v-ee1f372d"><view wx:if="{{D}}" class="data-v-ee1f372d"><button wx:if="{{E}}" class="ss-reset-button join-btn data-v-ee1f372d" bindtap="{{F}}"> 查看订单 </button><button wx:else class="ss-reset-button disabled-btn data-v-ee1f372d" disabled bindtap="{{G}}"> 去参团 </button></view><view wx:else class="ss-flex ss-row-center data-v-ee1f372d"><view wx:if="{{H}}" class="data-v-ee1f372d"><button class="ss-reset-button join-btn data-v-ee1f372d" disabled="{{I}}" bindtap="{{J}}"> 邀请好友来拼团 </button></view><view wx:else class="data-v-ee1f372d"><button class="ss-reset-button join-btn data-v-ee1f372d" disabled="{{K}}" bindtap="{{L}}"> 立即参团 </button></view></view></view><view wx:if="{{M}}" class="data-v-ee1f372d"><s-select-groupon-sku wx:if="{{Q}}" class="data-v-ee1f372d" bindbuy="{{N}}" bindchange="{{O}}" bindclose="{{P}}" u-i="ee1f372d-3,ee1f372d-1" bind:__l="__l" u-p="{{Q}}"/></view></view><s-empty wx:if="{{R}}" class="data-v-ee1f372d" u-i="ee1f372d-4,ee1f372d-1" bind:__l="__l" u-p="{{S}}"/></s-layout></layout-default-uni>

View File

@ -1 +1 @@
.recharge-box.data-v-12408d46{position:relative;height:100rpx;margin-bottom:120rpx;background:var(--3ce32533) center/750rpx 100% no-repeat,linear-gradient(115deg,#f44739,#f60);border-radius:0 0 5% 5%}.recharge-box .goods-box.data-v-12408d46{position:absolute;left:20rpx;box-sizing:border-box;width:710rpx;border-radius:20rpx}.recharge-box .sales-title.data-v-12408d46{height:32rpx;padding:6rpx 20rpx;font-size:24rpx;font-weight:400;color:#f7979c;background:rgba(255,224,226,.29);border-radius:16rpx}.recharge-box .num-title.data-v-12408d46{font-size:24rpx;font-weight:400;color:#999}.countdown-time.data-v-12408d46{font-size:26rpx;font-weight:500;color:#383a46}.countdown-time .countdown-h.data-v-12408d46{height:40rpx;padding:0 4rpx;margin-left:16rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#ff6000,#fe832a);border-radius:6rpx}.countdown-time .countdown-num.data-v-12408d46{width:40rpx;height:40rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#ff6000,#fe832a);border-radius:6rpx}.countdown-box.data-v-12408d46{box-sizing:border-box;background:#fff;border-radius:10rpx}.countdown-box .countdown-title.data-v-12408d46{font-size:28rpx;font-weight:500;color:#333}.countdown-box .countdown-title .cicon-check-round.data-v-12408d46{margin-right:24rpx;color:#42b111}.countdown-box .countdown-title .cicon-info.data-v-12408d46{margin-right:24rpx;color:#d71e08}.countdown-box .countdown-title .num.data-v-12408d46{color:#ff6000}.countdown-box .header-avatar.data-v-12408d46{position:relative;box-sizing:border-box;width:86rpx;height:86rpx;background:#ececec;border:4rpx solid #edc36c;border-radius:50%}.countdown-box .header-avatar .avatar-img.data-v-12408d46{width:100%;height:100%;border-radius:50%}.countdown-box .header-avatar .header-tag.data-v-12408d46{position:absolute;top:-36rpx;left:4rpx;width:72rpx;height:36rpx;font-size:24rpx;line-height:nor;background:linear-gradient(132deg,#f3dfb1,#f3dfb1,#ecbe60);border-radius:16rpx}.countdown-box .default-avatar.data-v-12408d46{width:86rpx;height:86rpx;background:#ececec;border-radius:50%}.countdown-box .default-avatar .avatar-img.data-v-12408d46{width:100%;height:100%;border-radius:50%}.countdown-box .user-avatar.data-v-12408d46{width:86rpx;height:86rpx;background:#ececec;border-radius:50%}.order-btn.data-v-12408d46{width:668rpx;height:70rpx;font-size:26rpx;font-weight:500;line-height:normal;color:#999;border:2rpx solid #dfdfdf;border-radius:35rpx}.disabled-btn.data-v-12408d46{width:668rpx;height:70rpx;font-size:28rpx;font-weight:500;line-height:normal;color:#999;background:#ddd;border-radius:35rpx}.join-btn.data-v-12408d46{width:668rpx;height:70rpx;font-size:28rpx;font-weight:500;line-height:normal;color:#fff;background:linear-gradient(90deg,#ff6000,#fe832a);border-radius:35rpx;box-shadow:0 8rpx 6rpx rgba(255,104,4,.22)}.detail-cell-wrap.data-v-12408d46{box-sizing:border-box;width:100%;padding:10rpx 20rpx;background-color:#fff;border-top:2rpx solid #dfdfdf}.detail-cell-wrap .label-text.data-v-12408d46{font-size:28rpx;font-weight:400}.detail-cell-wrap .cell-content.data-v-12408d46{font-size:28rpx;font-weight:500;color:#666}.detail-cell-wrap .right-forwrad-icon.data-v-12408d46{font-size:28rpx;font-weight:500;color:#999}
.recharge-box.data-v-ee1f372d{position:relative;height:100rpx;margin-bottom:120rpx;background:var(--0851ccf3) center/750rpx 100% no-repeat,linear-gradient(115deg,#f44739,#f60);border-radius:0 0 5% 5%}.recharge-box .goods-box.data-v-ee1f372d{position:absolute;left:20rpx;box-sizing:border-box;width:710rpx;border-radius:20rpx}.recharge-box .sales-title.data-v-ee1f372d{height:32rpx;padding:6rpx 20rpx;font-size:24rpx;font-weight:400;color:#f7979c;background:rgba(255,224,226,.29);border-radius:16rpx}.recharge-box .num-title.data-v-ee1f372d{font-size:24rpx;font-weight:400;color:#999}.countdown-time.data-v-ee1f372d{font-size:26rpx;font-weight:500;color:#383a46}.countdown-time .countdown-h.data-v-ee1f372d{height:40rpx;padding:0 4rpx;margin-left:16rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#ff6000,#fe832a);border-radius:6rpx}.countdown-time .countdown-num.data-v-ee1f372d{width:40rpx;height:40rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#ff6000,#fe832a);border-radius:6rpx}.countdown-box.data-v-ee1f372d{box-sizing:border-box;background:#fff;border-radius:10rpx}.countdown-box .countdown-title.data-v-ee1f372d{font-size:28rpx;font-weight:500;color:#333}.countdown-box .countdown-title .cicon-check-round.data-v-ee1f372d{margin-right:24rpx;color:#42b111}.countdown-box .countdown-title .cicon-info.data-v-ee1f372d{margin-right:24rpx;color:#d71e08}.countdown-box .countdown-title .num.data-v-ee1f372d{color:#ff6000}.countdown-box .header-avatar.data-v-ee1f372d{position:relative;box-sizing:border-box;width:86rpx;height:86rpx;background:#ececec;border:4rpx solid #edc36c;border-radius:50%}.countdown-box .header-avatar .avatar-img.data-v-ee1f372d{width:100%;height:100%;border-radius:50%}.countdown-box .header-avatar .header-tag.data-v-ee1f372d{position:absolute;top:-36rpx;left:4rpx;width:72rpx;height:36rpx;font-size:24rpx;line-height:nor;background:linear-gradient(132deg,#f3dfb1,#f3dfb1,#ecbe60);border-radius:16rpx}.countdown-box .default-avatar.data-v-ee1f372d{width:86rpx;height:86rpx;background:#ececec;border-radius:50%}.countdown-box .default-avatar .avatar-img.data-v-ee1f372d{width:100%;height:100%;border-radius:50%}.countdown-box .user-avatar.data-v-ee1f372d{width:86rpx;height:86rpx;background:#ececec;border-radius:50%}.order-btn.data-v-ee1f372d{width:668rpx;height:70rpx;font-size:26rpx;font-weight:500;line-height:normal;color:#999;border:2rpx solid #dfdfdf;border-radius:35rpx}.disabled-btn.data-v-ee1f372d{width:668rpx;height:70rpx;font-size:28rpx;font-weight:500;line-height:normal;color:#999;background:#ddd;border-radius:35rpx}.join-btn.data-v-ee1f372d{width:668rpx;height:70rpx;font-size:28rpx;font-weight:500;line-height:normal;color:#fff;background:linear-gradient(90deg,#ff6000,#fe832a);border-radius:35rpx;box-shadow:0 8rpx 6rpx rgba(255,104,4,.22)}.detail-cell-wrap.data-v-ee1f372d{box-sizing:border-box;width:100%;padding:10rpx 20rpx;background-color:#fff;border-top:2rpx solid #dfdfdf}.detail-cell-wrap .label-text.data-v-ee1f372d{font-size:28rpx;font-weight:400}.detail-cell-wrap .cell-content.data-v-ee1f372d{font-size:28rpx;font-weight:500;color:#666}.detail-cell-wrap .right-forwrad-icon.data-v-ee1f372d{font-size:28rpx;font-weight:500;color:#999}

View File

@ -1 +1 @@
"use strict";var o=Object.defineProperty,e=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(e,t,a)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,s=(o,e,t)=>new Promise(((a,n)=>{var r=o=>{try{s(t.next(o))}catch(e){n(e)}},i=o=>{try{s(t.throw(o))}catch(e){n(e)}},s=o=>o.done?a(o.value):Promise.resolve(o.value).then(r,i);s((t=t.apply(o,e)).next())}));const p=require("../../../../common/vendor.js"),l=require("../../../../sheep/index.js"),u=require("../../../../sheep/api/promotion/combination.js");if(!Array){(p.resolveComponent("s-goods-column")+p.resolveComponent("uni-load-more")+p.resolveComponent("s-layout")+p.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../../sheep/components/s-layout/s-layout.js"))();const c={__name:"list",setup(o){p.useCssVars((o=>({"6eec621d":p.unref(h)})));const{safeAreaInsets:c,safeArea:m}=l.sheep.$platform.device,d=l.sheep.$platform.navbar,g=2*l.sheep.$platform.device.statusBarHeight,b=2*(m.height+c.bottom)+g-d-350,h=l.sheep.$url.css("/static/img/shop/goods/groupon-header.png"),y=p.reactive({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}}),f=()=>s(this,null,(function*(){const{data:o}=yield u.CombinationApi.getCombinationRecordSummary();y.summaryData=o}));function v(){return s(this,null,(function*(){y.loadStatus="loading";const{data:o}=yield u.CombinationApi.getCombinationActivityPage({pageNo:y.pagination.pageNo,pageSize:y.pagination.pageSize});o.list.forEach((o=>{var s,p;y.pagination.list.push((s=((o,e)=>{for(var t in e||(e={}))n.call(e,t)&&i(o,t,e[t]);if(a)for(var t of a(e))r.call(e,t)&&i(o,t,e[t]);return o})({},o),p={price:o.combinationPrice},e(s,t(p))))})),y.pagination.total=o.total,y.loadStatus=y.pagination.list.length<y.pagination.total?"more":"noMore"}))}function j(){"noMore"!==y.loadStatus&&(y.pagination.pageNo++,v())}return p.onReachBottom((()=>j())),p.onLoad((()=>{f(),v()})),(o,e)=>p.e({a:p.s({marginTop:"-"+Number(g+88)+"rpx"}),b:p.f(y.summaryData.avatars,((o,e,t)=>p.e({a:p.s(`background-image: url(${o})`),b:6===e&&y.summaryData.avatars.length>3},(6===e&&y.summaryData.avatars.length,{}),{c:e,d:p.s(6===e?"position: relative":"position: static")}))),c:p.t(y.summaryData.userCount||0),d:p.f(y.pagination.list,((o,e,t)=>({a:p.o((e=>p.unref(l.sheep).$router.go("/modules/mall/goods/groupon",{id:o.id})),o.id),b:"d37b9dd4-2-"+t+",d37b9dd4-1",c:p.p({size:"lg",data:o,grouponTag:!0}),d:o.id}))),e:y.pagination.total>0},y.pagination.total>0?{f:p.o(j),g:p.p({status:y.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{h:b+"rpx",i:p.p({navbar:"inner",bgStyle:{color:"#FE832A"}}),j:p.s(o.__cssVars())})}},m=p._export_sfc(c,[["__scopeId","data-v-d37b9dd4"]]);wx.createPage(m);
"use strict";var o=Object.defineProperty,e=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(e,t,a)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,s=(o,e,t)=>new Promise(((a,n)=>{var r=o=>{try{s(t.next(o))}catch(e){n(e)}},i=o=>{try{s(t.throw(o))}catch(e){n(e)}},s=o=>o.done?a(o.value):Promise.resolve(o.value).then(r,i);s((t=t.apply(o,e)).next())}));const p=require("../../../../common/vendor.js"),l=require("../../sheep/index.js"),u=require("../../sheep/api/promotion/combination.js");if(!Array){(p.resolveComponent("s-goods-column")+p.resolveComponent("uni-load-more")+p.resolveComponent("s-layout")+p.resolveComponent("layout-default-uni"))()}Math||((()=>"../../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../sheep/components/s-layout/s-layout.js"))();const c={__name:"list",setup(o){p.useCssVars((o=>({"1d3f0804":p.unref(y)})));const{safeAreaInsets:c,safeArea:m}=l.sheep.$platform.device,g=l.sheep.$platform.navbar,d=2*l.sheep.$platform.device.statusBarHeight,h=2*(m.height+c.bottom)+d-g-350,y=l.sheep.$url.css("/static/img/shop/goods/groupon-header.png"),b=p.reactive({pagination:{list:[],total:0,pageNo:1,pageSize:10},loadStatus:"",summaryData:{}}),f=()=>s(this,null,(function*(){const{data:o}=yield u.CombinationApi.getCombinationRecordSummary();b.summaryData=o}));function v(){return s(this,null,(function*(){b.loadStatus="loading";const{data:o}=yield u.CombinationApi.getCombinationActivityPage({pageNo:b.pagination.pageNo,pageSize:b.pagination.pageSize});o.list.forEach((o=>{var s,p;b.pagination.list.push((s=((o,e)=>{for(var t in e||(e={}))n.call(e,t)&&i(o,t,e[t]);if(a)for(var t of a(e))r.call(e,t)&&i(o,t,e[t]);return o})({},o),p={price:o.combinationPrice},e(s,t(p))))})),b.pagination.total=o.total,b.loadStatus=b.pagination.list.length<b.pagination.total?"more":"noMore"}))}function j(){"noMore"!==b.loadStatus&&(b.pagination.pageNo++,v())}return p.onReachBottom((()=>j())),p.onLoad((()=>{f(),v()})),(o,e)=>p.e({a:p.s({marginTop:"-"+Number(d+88)+"rpx"}),b:p.f(b.summaryData.avatars,((o,e,t)=>p.e({a:p.s(`background-image: url(${o})`),b:6===e&&b.summaryData.avatars.length>3},(6===e&&b.summaryData.avatars.length,{}),{c:e,d:p.s(6===e?"position: relative":"position: static")}))),c:p.t(b.summaryData.userCount||0),d:p.f(b.pagination.list,((o,e,t)=>({a:p.o((e=>p.unref(l.sheep).$router.go("/modules/mall/goods/groupon",{id:o.id})),o.id),b:"1344088d-2-"+t+",1344088d-1",c:p.p({size:"lg",data:o,grouponTag:!0}),d:o.id}))),e:b.pagination.total>0},b.pagination.total>0?{f:p.o(j),g:p.p({status:b.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{h:h+"rpx",i:p.p({navbar:"inner",bgStyle:{color:"#FE832A"}}),j:p.s(o.__cssVars())})}},m=p._export_sfc(c,[["__scopeId","data-v-1344088d"]]);wx.createPage(m);

View File

@ -1,8 +1,8 @@
{
"navigationBarTitleText": "拼团活动",
"usingComponents": {
"s-goods-column": "../../../../sheep/components/s-goods-column/s-goods-column",
"s-goods-column": "../../sheep/components/s-goods-column/s-goods-column",
"uni-load-more": "../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more",
"s-layout": "../../../../sheep/components/s-layout/s-layout"
"s-layout": "../../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-d37b9dd4" u-s="{{['d']}}" style="{{j}}" u-i="d37b9dd4-0" bind:__l="__l"><s-layout wx:if="{{i}}" class="data-v-d37b9dd4" u-s="{{['d']}}" u-i="d37b9dd4-1,d37b9dd4-0" bind:__l="__l" u-p="{{i}}"><view class="page-bg data-v-d37b9dd4" style="{{a}}"/><view class="list-content data-v-d37b9dd4"><view class="content-header ss-flex-col ss-col-center ss-row-center data-v-d37b9dd4"><view class="content-header-title ss-flex ss-row-center data-v-d37b9dd4"><view wx:for="{{b}}" wx:for-item="item" wx:key="c" class="picture data-v-d37b9dd4" style="{{item.d}}"><label class="avatar data-v-d37b9dd4" style="{{item.a}}"/><label wx:if="{{item.b}}" class="mengceng data-v-d37b9dd4"><view class="data-v-d37b9dd4">···</view></label></view><text class="pic_count data-v-d37b9dd4">{{c}}人参与</text></view></view><scroll-view class="scroll-box data-v-d37b9dd4" style="{{'height:' + h}}" scroll-y="true" scroll-with-animation="{{false}}" enable-back-to-top="{{true}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="goods-box ss-m-b-20 data-v-d37b9dd4"><s-goods-column wx:if="{{item.c}}" u-s="{{['cart']}}" class=" data-v-d37b9dd4" bindclick="{{item.a}}" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"><button class="ss-reset-button cart-btn data-v-d37b9dd4" slot="cart">去拼团</button></s-goods-column></view><uni-load-more wx:if="{{e}}" class="data-v-d37b9dd4" bindtap="{{f}}" u-i="d37b9dd4-3,d37b9dd4-1" bind:__l="__l" u-p="{{g}}"/></scroll-view></view></s-layout></layout-default-uni>
<layout-default-uni class="data-v-1344088d" u-s="{{['d']}}" style="{{j}}" u-i="1344088d-0" bind:__l="__l"><s-layout wx:if="{{i}}" class="data-v-1344088d" u-s="{{['d']}}" u-i="1344088d-1,1344088d-0" bind:__l="__l" u-p="{{i}}"><view class="page-bg data-v-1344088d" style="{{a}}"/><view class="list-content data-v-1344088d"><view class="content-header ss-flex-col ss-col-center ss-row-center data-v-1344088d"><view class="content-header-title ss-flex ss-row-center data-v-1344088d"><view wx:for="{{b}}" wx:for-item="item" wx:key="c" class="picture data-v-1344088d" style="{{item.d}}"><label class="avatar data-v-1344088d" style="{{item.a}}"/><label wx:if="{{item.b}}" class="mengceng data-v-1344088d"><view class="data-v-1344088d">···</view></label></view><text class="pic_count data-v-1344088d">{{c}}人参与</text></view></view><scroll-view class="scroll-box data-v-1344088d" style="{{'height:' + h}}" scroll-y="true" scroll-with-animation="{{false}}" enable-back-to-top="{{true}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="d" class="goods-box ss-m-b-20 data-v-1344088d"><s-goods-column wx:if="{{item.c}}" u-s="{{['cart']}}" class=" data-v-1344088d" bindclick="{{item.a}}" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"><button class="ss-reset-button cart-btn data-v-1344088d" slot="cart">去拼团</button></s-goods-column></view><uni-load-more wx:if="{{e}}" class="data-v-1344088d" bindtap="{{f}}" u-i="1344088d-3,1344088d-1" bind:__l="__l" u-p="{{g}}"/></scroll-view></view></s-layout></layout-default-uni>

View File

@ -1 +1 @@
.page-bg.data-v-d37b9dd4{width:100%;height:458rpx;margin-top:-88rpx;background:var(--6eec621d) no-repeat;background-size:100% 100%}.list-content.data-v-d37b9dd4{position:relative;z-index:3;margin:-190rpx 20rpx 0;background:#fff;border-radius:20rpx 20rpx 0 0}.list-content .content-header.data-v-d37b9dd4{width:100%;height:100rpx;background:linear-gradient(180deg,#fff4f7,#ffe4d1);border-radius:20rpx 20rpx 0 0}.list-content .content-header .content-header-title.data-v-d37b9dd4{position:relative;width:100%;font-size:30rpx;font-weight:500;line-height:30rpx;color:#ff2923}.list-content .content-header .content-header-title .more.data-v-d37b9dd4{position:absolute;top:0;right:30rpx;font-size:24rpx;font-weight:400;line-height:30rpx;color:#999}.list-content .content-header .content-header-title .picture.data-v-d37b9dd4{display:inline-table}.list-content .content-header .content-header-title .avatar.data-v-d37b9dd4{display:inline-table;width:38rpx;height:38rpx;margin-right:-10rpx;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;background-position:0 0;background-size:cover;border-radius:50%;box-shadow:0 0 0 1px #fe832a}.list-content .content-header .content-header-title .pic_count.data-v-d37b9dd4{width:auto;height:auto;padding:4rpx 14rpx;margin-left:30rpx;font-size:22rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#f60,#fe832a);border-radius:19rpx}.list-content .content-header .content-header-title .mengceng.data-v-d37b9dd4{position:absolute;top:2rpx;left:-2rpx;width:40rpx;height:40rpx;line-height:36rpx;color:#fff;text-align:center;background:rgba(51,51,51,.6);border-radius:50%;opacity:1}.list-content .content-header .content-header-title .mengceng i.data-v-d37b9dd4{font-size:20rpx;font-style:normal}.list-content .scroll-box.data-v-d37b9dd4{height:900rpx}.list-content .scroll-box .goods-box.data-v-d37b9dd4{position:relative}.list-content .scroll-box .goods-box .cart-btn.data-v-d37b9dd4{position:absolute;right:20rpx;bottom:10rpx;z-index:11;height:50rpx;padding:0 20rpx;font-size:24rpx;line-height:50rpx;color:#fff;background:linear-gradient(90deg,#f60,#fe832a);border-radius:25rpx}
.page-bg.data-v-1344088d{width:100%;height:458rpx;margin-top:-88rpx;background:var(--1d3f0804) no-repeat;background-size:100% 100%}.list-content.data-v-1344088d{position:relative;z-index:3;margin:-190rpx 20rpx 0;background:#fff;border-radius:20rpx 20rpx 0 0}.list-content .content-header.data-v-1344088d{width:100%;height:100rpx;background:linear-gradient(180deg,#fff4f7,#ffe4d1);border-radius:20rpx 20rpx 0 0}.list-content .content-header .content-header-title.data-v-1344088d{position:relative;width:100%;font-size:30rpx;font-weight:500;line-height:30rpx;color:#ff2923}.list-content .content-header .content-header-title .more.data-v-1344088d{position:absolute;top:0;right:30rpx;font-size:24rpx;font-weight:400;line-height:30rpx;color:#999}.list-content .content-header .content-header-title .picture.data-v-1344088d{display:inline-table}.list-content .content-header .content-header-title .avatar.data-v-1344088d{display:inline-table;width:38rpx;height:38rpx;margin-right:-10rpx;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;background-position:0 0;background-size:cover;border-radius:50%;box-shadow:0 0 0 1px #fe832a}.list-content .content-header .content-header-title .pic_count.data-v-1344088d{width:auto;height:auto;padding:4rpx 14rpx;margin-left:30rpx;font-size:22rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#f60,#fe832a);border-radius:19rpx}.list-content .content-header .content-header-title .mengceng.data-v-1344088d{position:absolute;top:2rpx;left:-2rpx;width:40rpx;height:40rpx;line-height:36rpx;color:#fff;text-align:center;background:rgba(51,51,51,.6);border-radius:50%;opacity:1}.list-content .content-header .content-header-title .mengceng i.data-v-1344088d{font-size:20rpx;font-style:normal}.list-content .scroll-box.data-v-1344088d{height:900rpx}.list-content .scroll-box .goods-box.data-v-1344088d{position:relative}.list-content .scroll-box .goods-box .cart-btn.data-v-1344088d{position:absolute;right:20rpx;bottom:10rpx;z-index:11;height:50rpx;padding:0 20rpx;font-size:24rpx;line-height:50rpx;color:#fff;background:linear-gradient(90deg,#f60,#fe832a);border-radius:25rpx}

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),t=require("../../../../sheep/index.js"),o=require("../../../../sheep/hooks/useGoods.js"),a=require("../../../../sheep/util/index.js"),n=require("../../../../sheep/api/promotion/combination.js");if(!Array){(e.resolveComponent("su-tabs")+e.resolveComponent("su-sticky")+e.resolveComponent("s-empty")+e.resolveComponent("s-goods-item")+e.resolveComponent("uni-load-more")+e.resolveComponent("s-layout")+e.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../../sheep/ui/su-tabs/su-tabs.js")+(()=>"../../../../sheep/ui/su-sticky/su-sticky.js")+(()=>"../../../../sheep/components/s-empty/s-empty.js")+(()=>"../../../../sheep/components/s-goods-item/s-goods-item.js")+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../../sheep/components/s-layout/s-layout.js"))();const i={__name:"order",setup(i){const s=e.reactive({currentTab:0,pagination:{list:[],total:0,pageNo:1,pageSize:5},loadStatus:"",deleteOrderId:0}),r=[{name:"全部"},{name:"进行中",value:0},{name:"拼团成功",value:1},{name:"拼团失败",value:2}];function l(e){a.resetPagination(s.pagination),s.currentTab=e.index,u()}function u(){return t=this,o=null,a=function*(){s.loadStatus="loading";const{code:t,data:o}=yield n.CombinationApi.getCombinationRecordPage({pageNo:s.pagination.pageNo,pageSize:s.pagination.pageSize,status:r[s.currentTab].value});0===t&&(s.pagination.list=e.lodash.concat(s.pagination.list,o.list),s.pagination.total=o.total,s.loadStatus=s.pagination.list.length<s.pagination.total?"more":"noMore")},new Promise(((e,n)=>{var i=e=>{try{r(a.next(e))}catch(t){n(t)}},s=e=>{try{r(a.throw(e))}catch(t){n(t)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,s);r((a=a.apply(t,o)).next())}));var t,o,a}function p(){"noMore"!==s.loadStatus&&(s.pagination.pageNo++,u())}return e.onLoad((e=>{e.type&&(s.currentTab=e.type),u()})),e.onReachBottom((()=>{p()})),e.onPullDownRefresh((()=>{u(),setTimeout((function(){e.index.stopPullDownRefresh()}),800)})),(a,n)=>e.e({a:e.o(l),b:e.p({list:r,scrollable:!1,current:s.currentTab}),c:e.p({bgColor:"#fff"}),d:0===s.pagination.total},0===s.pagination.total?{e:e.p({icon:"/static/goods-empty.png"})}:{},{f:s.pagination.total>0},s.pagination.total>0?{g:e.f(s.pagination.list,((a,n,i)=>({a:e.t(a.id),b:e.t(r.find((e=>e.value===a.status)).name),c:e.n(e.unref(o.formatOrderColor)(a)),d:e.t(a.userSize),e:"3ca89987-5-"+i+",3ca89987-1",f:e.p({img:a.picUrl,title:a.spuName,price:a.combinationPrice}),g:e.o((o=>e.unref(t.sheep).$router.go("/modules/mall/order/detail",{id:a.orderId})),a.id),h:e.t(0===a.status?"邀请拼团":"拼团详情"),i:0===a.status?1:"",j:e.o((o=>e.unref(t.sheep).$router.go("/modules/mall/activity/groupon/detail",{id:a.id})),a.id),k:a.id})))}:{},{h:s.pagination.total>0},s.pagination.total>0?{i:e.o(p),j:e.p({status:s.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{k:e.p({title:"我的拼团"})})}},s=e._export_sfc(i,[["__scopeId","data-v-3ca89987"]]);wx.createPage(s);
"use strict";const e=require("../../../../common/vendor.js"),t=require("../../sheep/index.js"),o=require("../../sheep/hooks/useGoods.js"),n=require("../../sheep/util/index.js"),a=require("../../sheep/api/promotion/combination.js");if(!Array){(e.resolveComponent("su-tabs")+e.resolveComponent("su-sticky")+e.resolveComponent("s-empty")+e.resolveComponent("s-goods-item")+e.resolveComponent("uni-load-more")+e.resolveComponent("s-layout")+e.resolveComponent("layout-default-uni"))()}Math||((()=>"../../sheep/ui/su-tabs/su-tabs.js")+(()=>"../../sheep/ui/su-sticky/su-sticky.js")+(()=>"../../sheep/components/s-empty/s-empty.js")+(()=>"../../sheep/components/s-goods-item/s-goods-item.js")+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../sheep/components/s-layout/s-layout.js"))();const i={__name:"order",setup(i){const s=e.reactive({currentTab:0,pagination:{list:[],total:0,pageNo:1,pageSize:5},loadStatus:"",deleteOrderId:0}),r=[{name:"全部"},{name:"进行中",value:0},{name:"拼团成功",value:1},{name:"拼团失败",value:2}];function l(e){n.resetPagination(s.pagination),s.currentTab=e.index,u()}function u(){return t=this,o=null,n=function*(){s.loadStatus="loading";const{code:t,data:o}=yield a.CombinationApi.getCombinationRecordPage({pageNo:s.pagination.pageNo,pageSize:s.pagination.pageSize,status:r[s.currentTab].value});0===t&&(s.pagination.list=e.lodash.concat(s.pagination.list,o.list),s.pagination.total=o.total,s.loadStatus=s.pagination.list.length<s.pagination.total?"more":"noMore")},new Promise(((e,a)=>{var i=e=>{try{r(n.next(e))}catch(t){a(t)}},s=e=>{try{r(n.throw(e))}catch(t){a(t)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,s);r((n=n.apply(t,o)).next())}));var t,o,n}function p(){"noMore"!==s.loadStatus&&(s.pagination.pageNo++,u())}return e.onLoad((e=>{e.type&&(s.currentTab=e.type),u()})),e.onReachBottom((()=>{p()})),e.onPullDownRefresh((()=>{u(),setTimeout((function(){e.index.stopPullDownRefresh()}),800)})),(n,a)=>e.e({a:e.o(l),b:e.p({list:r,scrollable:!1,current:s.currentTab}),c:e.p({bgColor:"#fff"}),d:0===s.pagination.total},0===s.pagination.total?{e:e.p({icon:"/static/goods-empty.png"})}:{},{f:s.pagination.total>0},s.pagination.total>0?{g:e.f(s.pagination.list,((n,a,i)=>({a:e.t(n.id),b:e.t(r.find((e=>e.value===n.status)).name),c:e.n(e.unref(o.formatOrderColor)(n)),d:e.t(n.userSize),e:"ccb34436-5-"+i+",ccb34436-1",f:e.p({img:n.picUrl,title:n.spuName,price:n.combinationPrice}),g:e.o((o=>e.unref(t.sheep).$router.go("/modules/mall/order/detail",{id:n.orderId})),n.id),h:e.t(0===n.status?"邀请拼团":"拼团详情"),i:0===n.status?1:"",j:e.o((o=>e.unref(t.sheep).$router.go("/modules/mall/activity/groupon/detail",{id:n.id})),n.id),k:n.id})))}:{},{h:s.pagination.total>0},s.pagination.total>0?{i:e.o(p),j:e.p({status:s.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{k:e.p({title:"我的拼团"})})}},s=e._export_sfc(i,[["__scopeId","data-v-ccb34436"]]);wx.createPage(s);

View File

@ -2,11 +2,11 @@
"navigationBarTitleText": "我的拼团",
"enablePullDownRefresh": true,
"usingComponents": {
"su-tabs": "../../../../sheep/ui/su-tabs/su-tabs",
"su-sticky": "../../../../sheep/ui/su-sticky/su-sticky",
"s-empty": "../../../../sheep/components/s-empty/s-empty",
"s-goods-item": "../../../../sheep/components/s-goods-item/s-goods-item",
"su-tabs": "../../sheep/ui/su-tabs/su-tabs",
"su-sticky": "../../sheep/ui/su-sticky/su-sticky",
"s-empty": "../../sheep/components/s-empty/s-empty",
"s-goods-item": "../../sheep/components/s-goods-item/s-goods-item",
"uni-load-more": "../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more",
"s-layout": "../../../../sheep/components/s-layout/s-layout"
"s-layout": "../../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-3ca89987" u-s="{{['d']}}" u-i="3ca89987-0" bind:__l="__l"><s-layout wx:if="{{k}}" class="data-v-3ca89987" u-s="{{['d']}}" u-i="3ca89987-1,3ca89987-0" bind:__l="__l" u-p="{{k}}"><su-sticky wx:if="{{c}}" class="data-v-3ca89987" u-s="{{['d']}}" u-i="3ca89987-2,3ca89987-1" bind:__l="__l" u-p="{{c}}"><su-tabs wx:if="{{b}}" class="data-v-3ca89987" bindchange="{{a}}" u-i="3ca89987-3,3ca89987-2" bind:__l="__l" u-p="{{b}}"></su-tabs></su-sticky><s-empty wx:if="{{d}}" class="data-v-3ca89987" u-i="3ca89987-4,3ca89987-1" bind:__l="__l" u-p="{{e}}"/><view wx:if="{{f}}" class="data-v-3ca89987"><view wx:for="{{g}}" wx:for-item="record" wx:key="k" class="order-list-card-box bg-white ss-r-10 ss-m-t-14 ss-m-20 data-v-3ca89987"><view class="order-card-header ss-flex ss-col-center ss-row-between ss-p-x-20 data-v-3ca89987"><view class="order-no data-v-3ca89987">拼团编号:{{record.a}}</view><view class="{{['ss-font-26', 'data-v-3ca89987', record.c]}}">{{record.b}}</view></view><view class="border-bottom data-v-3ca89987"><s-goods-item wx:if="{{record.f}}" class="data-v-3ca89987" u-s="{{['groupon']}}" u-i="{{record.e}}" bind:__l="__l" u-p="{{record.f}}"><view class="ss-flex data-v-3ca89987" slot="groupon"><view class="sales-title data-v-3ca89987">{{record.d}} 人团</view></view></s-goods-item></view><view class="order-card-footer ss-flex ss-row-right ss-p-x-20 data-v-3ca89987"><button class="detail-btn ss-reset-button data-v-3ca89987" bindtap="{{record.g}}"> 订单详情 </button><button class="{{['tool-btn', 'ss-reset-button', 'data-v-3ca89987', record.i && 'ui-BG-Main-Gradient']}}" bindtap="{{record.j}}">{{record.h}}</button></view></view></view><uni-load-more wx:if="{{h}}" class="data-v-3ca89987" bindtap="{{i}}" u-i="3ca89987-6,3ca89987-1" bind:__l="__l" u-p="{{j}}"/></s-layout></layout-default-uni>
<layout-default-uni class="data-v-ccb34436" u-s="{{['d']}}" u-i="ccb34436-0" bind:__l="__l"><s-layout wx:if="{{k}}" class="data-v-ccb34436" u-s="{{['d']}}" u-i="ccb34436-1,ccb34436-0" bind:__l="__l" u-p="{{k}}"><su-sticky wx:if="{{c}}" class="data-v-ccb34436" u-s="{{['d']}}" u-i="ccb34436-2,ccb34436-1" bind:__l="__l" u-p="{{c}}"><su-tabs wx:if="{{b}}" class="data-v-ccb34436" bindchange="{{a}}" u-i="ccb34436-3,ccb34436-2" bind:__l="__l" u-p="{{b}}"></su-tabs></su-sticky><s-empty wx:if="{{d}}" class="data-v-ccb34436" u-i="ccb34436-4,ccb34436-1" bind:__l="__l" u-p="{{e}}"/><view wx:if="{{f}}" class="data-v-ccb34436"><view wx:for="{{g}}" wx:for-item="record" wx:key="k" class="order-list-card-box bg-white ss-r-10 ss-m-t-14 ss-m-20 data-v-ccb34436"><view class="order-card-header ss-flex ss-col-center ss-row-between ss-p-x-20 data-v-ccb34436"><view class="order-no data-v-ccb34436">拼团编号:{{record.a}}</view><view class="{{['ss-font-26', 'data-v-ccb34436', record.c]}}">{{record.b}}</view></view><view class="border-bottom data-v-ccb34436"><s-goods-item wx:if="{{record.f}}" class="data-v-ccb34436" u-s="{{['groupon']}}" u-i="{{record.e}}" bind:__l="__l" u-p="{{record.f}}"><view class="ss-flex data-v-ccb34436" slot="groupon"><view class="sales-title data-v-ccb34436">{{record.d}} 人团</view></view></s-goods-item></view><view class="order-card-footer ss-flex ss-row-right ss-p-x-20 data-v-ccb34436"><button class="detail-btn ss-reset-button data-v-ccb34436" bindtap="{{record.g}}"> 订单详情 </button><button class="{{['tool-btn', 'ss-reset-button', 'data-v-ccb34436', record.i && 'ui-BG-Main-Gradient']}}" bindtap="{{record.j}}">{{record.h}}</button></view></view></view><uni-load-more wx:if="{{h}}" class="data-v-ccb34436" bindtap="{{i}}" u-i="ccb34436-6,ccb34436-1" bind:__l="__l" u-p="{{j}}"/></s-layout></layout-default-uni>

View File

@ -1 +1 @@
.swiper-box.data-v-3ca89987{flex:1}.swiper-box .swiper-item.data-v-3ca89987{width:100%;height:100%}.order-list-card-box .order-card-header.data-v-3ca89987{height:80rpx}.order-list-card-box .order-card-header .order-no.data-v-3ca89987{font-size:26rpx;font-weight:500}.order-list-card-box .order-card-footer.data-v-3ca89987{height:100rpx}.order-list-card-box .order-card-footer .detail-btn.data-v-3ca89987{width:210rpx;height:66rpx;margin-right:20rpx;font-size:26rpx;font-weight:400;color:#999;border:2rpx solid #dfdfdf;border-radius:33rpx}.order-list-card-box .order-card-footer .tool-btn.data-v-3ca89987{width:210rpx;height:66rpx;margin-right:20rpx;font-size:26rpx;font-weight:400;background:#f6f6f6;border-radius:33rpx}.order-list-card-box .order-card-footer .invite-btn.data-v-3ca89987{width:210rpx;height:66rpx;font-size:26rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#fe832a,#f60);border-radius:33rpx;box-shadow:0 8rpx 6rpx rgba(255,104,4,.22)}.sales-title.data-v-3ca89987{height:32rpx;padding:6rpx 20rpx;font-size:24rpx;font-weight:400;color:#f7979c;background:rgba(255,224,226,.29);border-radius:16rpx}.num-title.data-v-3ca89987{font-size:24rpx;font-weight:400;color:#999}.warning-color.data-v-3ca89987{color:#faad14}.danger-color.data-v-3ca89987{color:#ff3000}.success-color.data-v-3ca89987{color:#52c41a}
.swiper-box.data-v-ccb34436{flex:1}.swiper-box .swiper-item.data-v-ccb34436{width:100%;height:100%}.order-list-card-box .order-card-header.data-v-ccb34436{height:80rpx}.order-list-card-box .order-card-header .order-no.data-v-ccb34436{font-size:26rpx;font-weight:500}.order-list-card-box .order-card-footer.data-v-ccb34436{height:100rpx}.order-list-card-box .order-card-footer .detail-btn.data-v-ccb34436{width:210rpx;height:66rpx;margin-right:20rpx;font-size:26rpx;font-weight:400;color:#999;border:2rpx solid #dfdfdf;border-radius:33rpx}.order-list-card-box .order-card-footer .tool-btn.data-v-ccb34436{width:210rpx;height:66rpx;margin-right:20rpx;font-size:26rpx;font-weight:400;background:#f6f6f6;border-radius:33rpx}.order-list-card-box .order-card-footer .invite-btn.data-v-ccb34436{width:210rpx;height:66rpx;font-size:26rpx;font-weight:500;color:#fff;background:linear-gradient(90deg,#fe832a,#f60);border-radius:33rpx;box-shadow:0 8rpx 6rpx rgba(255,104,4,.22)}.sales-title.data-v-ccb34436{height:32rpx;padding:6rpx 20rpx;font-size:24rpx;font-weight:400;color:#f7979c;background:rgba(255,224,226,.29);border-radius:16rpx}.num-title.data-v-ccb34436{font-size:24rpx;font-weight:400;color:#999}.warning-color.data-v-ccb34436{color:#faad14}.danger-color.data-v-ccb34436{color:#ff3000}.success-color.data-v-ccb34436{color:#52c41a}

View File

@ -1 +1 @@
"use strict";var t=Object.defineProperty,o=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(o,e,i)=>e in o?t(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i,n=(t,o,e)=>new Promise(((i,a)=>{var n=t=>{try{r(e.next(t))}catch(o){a(o)}},s=t=>{try{r(e.throw(t))}catch(o){a(o)}},r=t=>t.done?i(t.value):Promise.resolve(t.value).then(n,s);r((e=e.apply(t,o)).next())}));const s=require("../../../common/vendor.js"),r=require("../../../sheep/index.js"),l=require("../../../sheep/api/promotion/rewardActivity.js"),d=require("../../../sheep/hooks/useGoods.js"),p=require("../../../sheep/api/product/spu.js");if(!Array){(s.resolveComponent("su-sticky")+s.resolveComponent("s-goods-column")+s.resolveComponent("uni-load-more")+s.resolveComponent("s-layout")+s.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../sheep/ui/su-sticky/su-sticky.js")+(()=>"../../../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const c={__name:"index",setup(t){const c=s.reactive({activityId:0,activityInfo:{},pagination:{list:[],total:1,pageNo:1,pageSize:8},loadStatus:"",leftGoodsList:[],rightGoodsList:[]});let u=0,f=0,g=0;function y(t=0,o="left"){c.pagination.list[u]&&("left"===o?f+=t:g+=t,f<=g?c.leftGoodsList.push(c.pagination.list[u]):c.rightGoodsList.push(c.pagination.list[u]),u++)}function m(){return n(this,null,(function*(){const t={};2===c.activityInfo.productScope?t.ids=c.activityInfo.productSpuIds.join(","):3===c.activityInfo.productScope&&(t.categoryIds=c.activityInfo.productSpuIds.join(",")),c.loadStatus="loading";const{code:n,data:r}=yield p.SpuApi.getSpuPage(((t,n)=>{for(var s in n||(n={}))e.call(n,s)&&a(t,s,n[s]);if(o)for(var s of o(n))i.call(n,s)&&a(t,s,n[s]);return t})({pageNo:c.pagination.pageNo,pageSize:c.pagination.pageSize},t));0===n&&(c.pagination.list=s.lodash.concat(c.pagination.list,r.list),c.pagination.total=r.total,c.loadStatus=c.pagination.list.length<c.pagination.total?"more":"noMore",y())}))}function v(){"noMore"!==c.loadStatus&&(c.pagination.pageNo++,m())}return s.onReachBottom((()=>{v()})),s.onLoad((t=>n(this,null,(function*(){c.activityId=t.activityId,yield function(t){return n(this,null,(function*(){const{code:o,data:e}=yield l.RewardActivityApi.getRewardActivity(t);0===o&&(c.activityInfo=e)}))}(c.activityId),yield m(c.activityId)})))),(t,o)=>s.e({a:s.f(c.activityInfo.rules,((t,o,e)=>({a:s.t(s.unref(d.formatRewardActivityRule)(c.activityInfo,t)),b:t}))),b:s.p({bgColor:"#fff"}),c:s.f(c.leftGoodsList,((t,o,e)=>({a:s.o((o=>s.unref(r.sheep).$router.go("/modules/mall/goods/index",{id:t.id})),t.id),b:s.o((t=>y(t,"left")),t.id),c:"2b398f46-3-"+e+",2b398f46-1",d:s.p({size:"md",data:t}),e:t.id}))),d:s.f(c.rightGoodsList,((t,o,e)=>({a:s.o((o=>s.unref(r.sheep).$router.go("/modules/mall/goods/index",{id:t.id})),t.id),b:s.o((t=>y(t,"right")),t.id),c:"2b398f46-4-"+e+",2b398f46-1",d:s.p({size:"md",data:t}),e:t.id}))),e:c.pagination.total>0},c.pagination.total>0?{f:s.o(v),g:s.p({status:c.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{h:s.p({title:c.activityInfo.title})})}},u=s._export_sfc(c,[["__scopeId","data-v-2b398f46"]]);wx.createPage(u);
"use strict";var t=Object.defineProperty,o=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(o,e,i)=>e in o?t(o,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[e]=i,n=(t,o,e)=>new Promise(((i,a)=>{var n=t=>{try{r(e.next(t))}catch(o){a(o)}},s=t=>{try{r(e.throw(t))}catch(o){a(o)}},r=t=>t.done?i(t.value):Promise.resolve(t.value).then(n,s);r((e=e.apply(t,o)).next())}));const s=require("../../../common/vendor.js"),r=require("../sheep/index.js"),c=require("../sheep/api/promotion/rewardActivity.js"),l=require("../sheep/hooks/useGoods.js"),d=require("../sheep/api/product/spu.js");if(!Array){(s.resolveComponent("su-sticky")+s.resolveComponent("s-goods-column")+s.resolveComponent("uni-load-more")+s.resolveComponent("s-layout")+s.resolveComponent("layout-default-uni"))()}Math||((()=>"../sheep/ui/su-sticky/su-sticky.js")+(()=>"../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../sheep/components/s-layout/s-layout.js"))();const p={__name:"index",setup(t){const p=s.reactive({activityId:0,activityInfo:{},pagination:{list:[],total:1,pageNo:1,pageSize:8},loadStatus:"",leftGoodsList:[],rightGoodsList:[]});let u=0,g=0,f=0;function y(t=0,o="left"){p.pagination.list[u]&&("left"===o?g+=t:f+=t,g<=f?p.leftGoodsList.push(p.pagination.list[u]):p.rightGoodsList.push(p.pagination.list[u]),u++)}function m(){return n(this,null,(function*(){const t={};2===p.activityInfo.productScope?t.ids=p.activityInfo.productSpuIds.join(","):3===p.activityInfo.productScope&&(t.categoryIds=p.activityInfo.productSpuIds.join(",")),p.loadStatus="loading";const{code:n,data:r}=yield d.SpuApi.getSpuPage(((t,n)=>{for(var s in n||(n={}))e.call(n,s)&&a(t,s,n[s]);if(o)for(var s of o(n))i.call(n,s)&&a(t,s,n[s]);return t})({pageNo:p.pagination.pageNo,pageSize:p.pagination.pageSize},t));0===n&&(p.pagination.list=s.lodash.concat(p.pagination.list,r.list),p.pagination.total=r.total,p.loadStatus=p.pagination.list.length<p.pagination.total?"more":"noMore",y())}))}function v(){"noMore"!==p.loadStatus&&(p.pagination.pageNo++,m())}return s.onReachBottom((()=>{v()})),s.onLoad((t=>n(this,null,(function*(){p.activityId=t.activityId,yield function(t){return n(this,null,(function*(){const{code:o,data:e}=yield c.RewardActivityApi.getRewardActivity(t);0===o&&(p.activityInfo=e)}))}(p.activityId),yield m(p.activityId)})))),(t,o)=>s.e({a:s.f(p.activityInfo.rules,((t,o,e)=>({a:s.t(s.unref(l.formatRewardActivityRule)(p.activityInfo,t)),b:t}))),b:s.p({bgColor:"#fff"}),c:s.f(p.leftGoodsList,((t,o,e)=>({a:s.o((o=>s.unref(r.sheep).$router.go("/modules/mall/goods/index",{id:t.id})),t.id),b:s.o((t=>y(t,"left")),t.id),c:"e2aacc04-3-"+e+",e2aacc04-1",d:s.p({size:"md",data:t}),e:t.id}))),d:s.f(p.rightGoodsList,((t,o,e)=>({a:s.o((o=>s.unref(r.sheep).$router.go("/modules/mall/goods/index",{id:t.id})),t.id),b:s.o((t=>y(t,"right")),t.id),c:"e2aacc04-4-"+e+",e2aacc04-1",d:s.p({size:"md",data:t}),e:t.id}))),e:p.pagination.total>0},p.pagination.total>0?{f:s.o(v),g:s.p({status:p.loadStatus,"content-text":{contentdown:"上拉加载更多"}})}:{},{h:s.p({title:p.activityInfo.title})})}},u=s._export_sfc(p,[["__scopeId","data-v-e2aacc04"]]);wx.createPage(u);

View File

@ -1,9 +1,9 @@
{
"navigationBarTitleText": "营销商品",
"usingComponents": {
"su-sticky": "../../../sheep/ui/su-sticky/su-sticky",
"s-goods-column": "../../../sheep/components/s-goods-column/s-goods-column",
"su-sticky": "../sheep/ui/su-sticky/su-sticky",
"s-goods-column": "../sheep/components/s-goods-column/s-goods-column",
"uni-load-more": "../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more",
"s-layout": "../../../sheep/components/s-layout/s-layout"
"s-layout": "../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-2b398f46" u-s="{{['d']}}" u-i="2b398f46-0" bind:__l="__l"><s-layout wx:if="{{h}}" u-s="{{['d']}}" class="activity-wrap data-v-2b398f46" u-i="2b398f46-1,2b398f46-0" bind:__l="__l" u-p="{{h}}"><su-sticky wx:if="{{b}}" class="data-v-2b398f46" u-s="{{['d']}}" u-i="2b398f46-2,2b398f46-1" bind:__l="__l" u-p="{{b}}"><view class="ss-flex ss-col-top tip-box data-v-2b398f46"><view class="type-text ss-flex ss-row-center data-v-2b398f46">满减:</view><view class="ss-flex-1 data-v-2b398f46"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="tip-content data-v-2b398f46">{{item.a}}</view></view><image class="activity-left-image data-v-2b398f46" src="/static/activity-left.png"/><image class="activity-right-image data-v-2b398f46" src="/static/activity-right.png"/></view></su-sticky><view class="ss-flex ss-flex-wrap ss-p-x-20 ss-m-t-20 ss-col-top data-v-2b398f46"><view class="goods-list-box data-v-2b398f46"><view wx:for="{{c}}" wx:for-item="item" wx:key="e" class="left-list data-v-2b398f46"><s-goods-column wx:if="{{item.d}}" u-s="{{['cart']}}" class="goods-md-box data-v-2b398f46" bindclick="{{item.a}}" bindgetHeight="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"><button class="ss-reset-button cart-btn data-v-2b398f46" slot="cart"></button></s-goods-column></view></view><view class="goods-list-box data-v-2b398f46"><view wx:for="{{d}}" wx:for-item="item" wx:key="e" class="right-list data-v-2b398f46"><s-goods-column wx:if="{{item.d}}" u-s="{{['cart']}}" class="goods-md-box data-v-2b398f46" bindclick="{{item.a}}" bindgetHeight="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"><button class="ss-reset-button cart-btn data-v-2b398f46" slot="cart"/></s-goods-column></view></view></view><uni-load-more wx:if="{{e}}" class="data-v-2b398f46" bindtap="{{f}}" u-i="2b398f46-5,2b398f46-1" bind:__l="__l" u-p="{{g}}"/></s-layout></layout-default-uni>
<layout-default-uni class="data-v-e2aacc04" u-s="{{['d']}}" u-i="e2aacc04-0" bind:__l="__l"><s-layout wx:if="{{h}}" u-s="{{['d']}}" class="activity-wrap data-v-e2aacc04" u-i="e2aacc04-1,e2aacc04-0" bind:__l="__l" u-p="{{h}}"><su-sticky wx:if="{{b}}" class="data-v-e2aacc04" u-s="{{['d']}}" u-i="e2aacc04-2,e2aacc04-1" bind:__l="__l" u-p="{{b}}"><view class="ss-flex ss-col-top tip-box data-v-e2aacc04"><view class="type-text ss-flex ss-row-center data-v-e2aacc04">满减:</view><view class="ss-flex-1 data-v-e2aacc04"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="tip-content data-v-e2aacc04">{{item.a}}</view></view><image class="activity-left-image data-v-e2aacc04" src="/static/activity-left.png"/><image class="activity-right-image data-v-e2aacc04" src="/static/activity-right.png"/></view></su-sticky><view class="ss-flex ss-flex-wrap ss-p-x-20 ss-m-t-20 ss-col-top data-v-e2aacc04"><view class="goods-list-box data-v-e2aacc04"><view wx:for="{{c}}" wx:for-item="item" wx:key="e" class="left-list data-v-e2aacc04"><s-goods-column wx:if="{{item.d}}" u-s="{{['cart']}}" class="goods-md-box data-v-e2aacc04" bindclick="{{item.a}}" bindgetHeight="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"><button class="ss-reset-button cart-btn data-v-e2aacc04" slot="cart"></button></s-goods-column></view></view><view class="goods-list-box data-v-e2aacc04"><view wx:for="{{d}}" wx:for-item="item" wx:key="e" class="right-list data-v-e2aacc04"><s-goods-column wx:if="{{item.d}}" u-s="{{['cart']}}" class="goods-md-box data-v-e2aacc04" bindclick="{{item.a}}" bindgetHeight="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"><button class="ss-reset-button cart-btn data-v-e2aacc04" slot="cart"/></s-goods-column></view></view></view><uni-load-more wx:if="{{e}}" class="data-v-e2aacc04" bindtap="{{f}}" u-i="e2aacc04-5,e2aacc04-1" bind:__l="__l" u-p="{{g}}"/></s-layout></layout-default-uni>

View File

@ -1 +1 @@
.goods-list-box.data-v-2b398f46{box-sizing:border-box;width:50%}.goods-list-box .left-list.data-v-2b398f46{margin-right:10rpx;margin-bottom:20rpx}.goods-list-box .right-list.data-v-2b398f46{margin-bottom:20rpx;margin-left:10rpx}.tip-box.data-v-2b398f46{position:relative;box-sizing:border-box;width:100%;padding:20rpx;background:#fff0e7}.tip-box .activity-left-image.data-v-2b398f46{position:absolute;bottom:0;left:0;width:58rpx;height:36rpx}.tip-box .activity-right-image.data-v-2b398f46{position:absolute;top:0;right:0;width:72rpx;height:50rpx}.tip-box .type-text.data-v-2b398f46,.tip-box .tip-content.data-v-2b398f46{font-size:26rpx;font-weight:500;line-height:42rpx;color:#ff6000}
.goods-list-box.data-v-e2aacc04{box-sizing:border-box;width:50%}.goods-list-box .left-list.data-v-e2aacc04{margin-right:10rpx;margin-bottom:20rpx}.goods-list-box .right-list.data-v-e2aacc04{margin-bottom:20rpx;margin-left:10rpx}.tip-box.data-v-e2aacc04{position:relative;box-sizing:border-box;width:100%;padding:20rpx;background:#fff0e7}.tip-box .activity-left-image.data-v-e2aacc04{position:absolute;bottom:0;left:0;width:58rpx;height:36rpx}.tip-box .activity-right-image.data-v-e2aacc04{position:absolute;top:0;right:0;width:72rpx;height:50rpx}.tip-box .type-text.data-v-e2aacc04,.tip-box .tip-content.data-v-e2aacc04{font-size:26rpx;font-weight:500;line-height:42rpx;color:#ff6000}

View File

@ -1 +1 @@
"use strict";var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(t,s,a)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,r=(e,t)=>{for(var s in t||(t={}))o.call(t,s)&&l(e,s,t[s]);if(a)for(var s of a(t))u.call(t,s)&&l(e,s,t[s]);return e},n=(e,t,s)=>new Promise(((a,o)=>{var u=e=>{try{r(s.next(e))}catch(t){o(t)}},l=e=>{try{r(s.throw(e))}catch(t){o(t)}},r=e=>e.done?a(e.value):Promise.resolve(e.value).then(u,l);r((s=s.apply(e,t)).next())}));const i=require("../../../../common/vendor.js"),c=require("../../../../sheep/index.js"),m=require("../../../../sheep/hooks/useGoods.js"),v=require("../../../../sheep/api/promotion/seckill.js"),d=require("../../../../sheep/util/const.js");if(!Array){(i.resolveComponent("su-progress")+i.resolveComponent("s-goods-column")+i.resolveComponent("uni-load-more")+i.resolveComponent("s-layout")+i.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../../sheep/ui/su-progress/su-progress.js")+(()=>"../../../../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../../sheep/components/s-layout/s-layout.js"))();const p={__name:"list",setup(e){i.useCssVars((e=>({"153d46c7":i.unref(p)})));const{safeAreaInsets:a,safeArea:o}=c.sheep.$platform.device,u=2*c.sheep.$platform.device.statusBarHeight,l=2*(o.height+a.bottom)+u-c.sheep.$platform.navbar-350,p=c.sheep.$url.css("/static/img/shop/goods/seckill-header.png"),f={name:{show:!0},introduction:{show:!0},price:{show:!0},marketPrice:{show:!0}},h=i.ref([]),g=()=>n(this,null,(function*(){const{data:e}=yield v.SeckillApi.getSeckillConfigList(),t=i.dayjs(),s=t.format("YYYY-MM-DD");e.forEach(((e,a)=>{const o=i.dayjs(`${s} ${e.startTime}`),u=i.dayjs(`${s} ${e.endTime}`);t.isBefore(o)?e.status=d.TimeStatusEnum.WAIT_START:t.isAfter(u)?e.status=d.TimeStatusEnum.END:(e.status=d.TimeStatusEnum.STARTED,y.value=a)})),h.value=e,j(y.value),S(y.value)})),T=i.ref(""),S=e=>{i.nextTick$1((()=>T.value=`timeItem${e}`))},y=i.ref(0),b=i.computed((()=>h.value[y.value])),j=e=>{y.value=e,A.pageNo=1,P.value=[],D()},E=i.computed((()=>{var e;const t=null==(e=b.value)?void 0:e.endTime;if(t)return m.useDurationTime(`${i.dayjs().format("YYYY-MM-DD")} ${t}`)})),A=i.reactive({id:0,pageNo:1,pageSize:5}),k=i.ref(0),P=i.ref([]),$=i.ref("");function D(){return n(this,null,(function*(){$.value="loading";const{data:e}=yield v.SeckillApi.getSeckillActivityPage(A);e.list.forEach((e=>{e.percent=parseInt(100*(e.totalStock-e.stock)/e.totalStock)})),P.value=P.value.concat(...e.list),k.value=e.total,$.value=P.value.length<k.value?"more":"noMore"}))}function w(){"noMore"!==$.value&&(A.pageNo+=1,D())}return i.onReachBottom((()=>w())),i.onLoad((()=>n(this,null,(function*(){yield g()})))),(e,a)=>{var o,n,m,v,p,g,S,A,D;return i.e({a:i.s({marginTop:"-"+Number(u+88)+"rpx"}),b:(null==(n=null==(o=b.value)?void 0:o.sliderPicUrls)?void 0:n.length)>0},(null==(v=null==(m=b.value)?void 0:m.sliderPicUrls)?void 0:v.length)>0?{c:i.f(b.value.sliderPicUrls,((e,t,s)=>({a:e,b:t})))}:{},{d:i.f(h.value,((e,t,s)=>({a:i.t(e.startTime),b:i.t(e.status),c:t,d:i.n({active:y.value===t}),e:`timeItem${t}`,f:i.o((e=>j(t)),t)}))),e:T.value,f:(null==(p=b.value)?void 0:p.status)===i.unref(d.TimeStatusEnum).STARTED},(null==(g=b.value)?void 0:g.status)===i.unref(d.TimeStatusEnum).STARTED?{g:i.t(E.value.h),h:i.t(E.value.m),i:i.t(E.value.s)}:{j:i.t(null==(S=b.value)?void 0:S.status)},{k:i.f(P.value,((e,a,o)=>{var u,l,n,m;return i.e({a:i.t(e.stock),b:i.t(e.unitName),c:"a041fca7-3-"+o+",a041fca7-2-"+o,d:i.p({percentage:e.percent,strokeWidth:"10",textInside:!0,isAnimate:!0})},((null==(u=b.value)?void 0:u.status)===i.unref(d.TimeStatusEnum).WAIT_START||(null==(l=b.value)||l.status,i.unref(d.TimeStatusEnum).STARTED),{}),{e:i.o((t=>i.unref(c.sheep).$router.go("/modules/mall/goods/seckill",{id:e.id})),e.id),f:"a041fca7-2-"+o+",a041fca7-1",g:i.p({size:"lg",data:(n=r({},e),m={price:e.seckillPrice},t(n,s(m))),goodsFields:f,seckillTag:!0}),h:e.id})})),l:(null==(A=b.value)?void 0:A.status)===i.unref(d.TimeStatusEnum).WAIT_START,m:(null==(D=b.value)?void 0:D.status)===i.unref(d.TimeStatusEnum).STARTED,n:i.n({disabled:b.value.status===i.unref(d.TimeStatusEnum).END}),o:k.value>0},k.value>0?{p:i.o(w),q:i.p({status:$.value,"content-text":{contentdown:"上拉加载更多"}})}:{},{r:l+"rpx",s:i.p({navbar:"inner",bgStyle:{color:"rgb(245,28,19)"}}),t:i.s(e.__cssVars())})}}},f=i._export_sfc(p,[["__scopeId","data-v-a041fca7"]]);wx.createPage(f);
"use strict";var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,l=(t,s,a)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[s]=a,r=(e,t)=>{for(var s in t||(t={}))o.call(t,s)&&l(e,s,t[s]);if(a)for(var s of a(t))u.call(t,s)&&l(e,s,t[s]);return e},n=(e,t,s)=>new Promise(((a,o)=>{var u=e=>{try{r(s.next(e))}catch(t){o(t)}},l=e=>{try{r(s.throw(e))}catch(t){o(t)}},r=e=>e.done?a(e.value):Promise.resolve(e.value).then(u,l);r((s=s.apply(e,t)).next())}));const i=require("../../../../common/vendor.js"),c=require("../../sheep/index.js"),d=require("../../sheep/hooks/useGoods.js"),m=require("../../sheep/api/promotion/seckill.js"),v=require("../../sheep/util/const.js");if(!Array){(i.resolveComponent("su-progress")+i.resolveComponent("s-goods-column")+i.resolveComponent("uni-load-more")+i.resolveComponent("s-layout")+i.resolveComponent("layout-default-uni"))()}Math||((()=>"../../sheep/ui/su-progress/su-progress.js")+(()=>"../../sheep/components/s-goods-column/s-goods-column.js")+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../sheep/components/s-layout/s-layout.js"))();const p={__name:"list",setup(e){i.useCssVars((e=>({"09ad7494":i.unref(p)})));const{safeAreaInsets:a,safeArea:o}=c.sheep.$platform.device,u=2*c.sheep.$platform.device.statusBarHeight,l=2*(o.height+a.bottom)+u-c.sheep.$platform.navbar-350,p=c.sheep.$url.css("/static/img/shop/goods/seckill-header.png"),f={name:{show:!0},introduction:{show:!0},price:{show:!0},marketPrice:{show:!0}},h=i.ref([]),g=()=>n(this,null,(function*(){const{data:e}=yield m.SeckillApi.getSeckillConfigList(),t=i.dayjs(),s=t.format("YYYY-MM-DD");e.forEach(((e,a)=>{const o=i.dayjs(`${s} ${e.startTime}`),u=i.dayjs(`${s} ${e.endTime}`);t.isBefore(o)?e.status=v.TimeStatusEnum.WAIT_START:t.isAfter(u)?e.status=v.TimeStatusEnum.END:(e.status=v.TimeStatusEnum.STARTED,y.value=a)})),h.value=e,j(y.value),S(y.value)})),T=i.ref(""),S=e=>{i.nextTick$1((()=>T.value=`timeItem${e}`))},y=i.ref(0),b=i.computed((()=>h.value[y.value])),j=e=>{y.value=e,A.pageNo=1,P.value=[],D()},E=i.computed((()=>{var e;const t=null==(e=b.value)?void 0:e.endTime;if(t)return d.useDurationTime(`${i.dayjs().format("YYYY-MM-DD")} ${t}`)})),A=i.reactive({id:0,pageNo:1,pageSize:5}),k=i.ref(0),P=i.ref([]),$=i.ref("");function D(){return n(this,null,(function*(){$.value="loading";const{data:e}=yield m.SeckillApi.getSeckillActivityPage(A);e.list.forEach((e=>{e.percent=parseInt(100*(e.totalStock-e.stock)/e.totalStock)})),P.value=P.value.concat(...e.list),k.value=e.total,$.value=P.value.length<k.value?"more":"noMore"}))}function w(){"noMore"!==$.value&&(A.pageNo+=1,D())}return i.onReachBottom((()=>w())),i.onLoad((()=>n(this,null,(function*(){yield g()})))),(e,a)=>{var o,n,d,m,p,g,S,A,D;return i.e({a:i.s({marginTop:"-"+Number(u+88)+"rpx"}),b:(null==(n=null==(o=b.value)?void 0:o.sliderPicUrls)?void 0:n.length)>0},(null==(m=null==(d=b.value)?void 0:d.sliderPicUrls)?void 0:m.length)>0?{c:i.f(b.value.sliderPicUrls,((e,t,s)=>({a:e,b:t})))}:{},{d:i.f(h.value,((e,t,s)=>({a:i.t(e.startTime),b:i.t(e.status),c:t,d:i.n({active:y.value===t}),e:`timeItem${t}`,f:i.o((e=>j(t)),t)}))),e:T.value,f:(null==(p=b.value)?void 0:p.status)===i.unref(v.TimeStatusEnum).STARTED},(null==(g=b.value)?void 0:g.status)===i.unref(v.TimeStatusEnum).STARTED?{g:i.t(E.value.h),h:i.t(E.value.m),i:i.t(E.value.s)}:{j:i.t(null==(S=b.value)?void 0:S.status)},{k:i.f(P.value,((e,a,o)=>{var u,l,n,d;return i.e({a:i.t(e.stock),b:i.t(e.unitName),c:"8d8624ac-3-"+o+",8d8624ac-2-"+o,d:i.p({percentage:e.percent,strokeWidth:"10",textInside:!0,isAnimate:!0})},((null==(u=b.value)?void 0:u.status)===i.unref(v.TimeStatusEnum).WAIT_START||(null==(l=b.value)||l.status,i.unref(v.TimeStatusEnum).STARTED),{}),{e:i.o((t=>i.unref(c.sheep).$router.go("/modules/mall/goods/seckill",{id:e.id})),e.id),f:"8d8624ac-2-"+o+",8d8624ac-1",g:i.p({size:"lg",data:(n=r({},e),d={price:e.seckillPrice},t(n,s(d))),goodsFields:f,seckillTag:!0}),h:e.id})})),l:(null==(A=b.value)?void 0:A.status)===i.unref(v.TimeStatusEnum).WAIT_START,m:(null==(D=b.value)?void 0:D.status)===i.unref(v.TimeStatusEnum).STARTED,n:i.n({disabled:b.value.status===i.unref(v.TimeStatusEnum).END}),o:k.value>0},k.value>0?{p:i.o(w),q:i.p({status:$.value,"content-text":{contentdown:"上拉加载更多"}})}:{},{r:l+"rpx",s:i.p({navbar:"inner",bgStyle:{color:"rgb(245,28,19)"}}),t:i.s(e.__cssVars())})}}},f=i._export_sfc(p,[["__scopeId","data-v-8d8624ac"]]);wx.createPage(f);

View File

@ -1,9 +1,9 @@
{
"navigationBarTitleText": "秒杀活动",
"usingComponents": {
"su-progress": "../../../../sheep/ui/su-progress/su-progress",
"s-goods-column": "../../../../sheep/components/s-goods-column/s-goods-column",
"su-progress": "../../sheep/ui/su-progress/su-progress",
"s-goods-column": "../../sheep/components/s-goods-column/s-goods-column",
"uni-load-more": "../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more",
"s-layout": "../../../../sheep/components/s-layout/s-layout"
"s-layout": "../../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-a041fca7" u-s="{{['d']}}" style="{{t}}" u-i="a041fca7-0" bind:__l="__l"><s-layout wx:if="{{s}}" class="data-v-a041fca7" u-s="{{['d']}}" u-i="a041fca7-1,a041fca7-0" bind:__l="__l" u-p="{{s}}"><view class="page-bg data-v-a041fca7" style="{{a}}"></view><view wx:if="{{b}}" class="header data-v-a041fca7"><swiper class="data-v-a041fca7" indicator-dots="true" autoplay="true" circular="{{true}}" interval="3000" duration="1500" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff"><block wx:for="{{c}}" wx:for-item="picUrl" wx:key="b"><swiper-item class="borRadius14 data-v-a041fca7"><image src="{{picUrl.a}}" class="slide-image borRadius14 data-v-a041fca7" lazy-load/></swiper-item></block></swiper></view><view class="flex align-center justify-between ss-p-25 data-v-a041fca7"><view class="time-icon data-v-a041fca7"><image class="ss-w-100 ss-h-100 data-v-a041fca7" src="http://mall.yudao.iocoder.cn/static/images/priceTag.png"/></view><scroll-view class="time-list data-v-a041fca7" scroll-into-view="{{e}}" scroll-x scroll-with-animation><view wx:for="{{d}}" wx:for-item="config" wx:key="c" class="{{['data-v-a041fca7', 'item', config.d]}}" id="{{config.e}}" bindtap="{{config.f}}"><view class="time data-v-a041fca7">{{config.a}}</view><view class="status data-v-a041fca7">{{config.b}}</view></view></scroll-view></view><view class="list-content data-v-a041fca7"><view class="content-header ss-flex-col ss-col-center ss-row-center data-v-a041fca7"><view class="content-header-box ss-flex ss-row-center data-v-a041fca7"><view wx:if="{{f}}" class="countdown-box ss-flex data-v-a041fca7"><view class="countdown-title ss-m-r-12 data-v-a041fca7">距结束</view><view class="ss-flex countdown-time data-v-a041fca7"><view class="ss-flex countdown-h data-v-a041fca7">{{g}}</view><view class="ss-m-x-4 data-v-a041fca7">:</view><view class="countdown-num ss-flex ss-row-center data-v-a041fca7">{{h}}</view><view class="ss-m-x-4 data-v-a041fca7">:</view><view class="countdown-num ss-flex ss-row-center data-v-a041fca7">{{i}}</view></view></view><view wx:else class="data-v-a041fca7">{{j}}</view></view></view><scroll-view class="scroll-box data-v-a041fca7" style="{{'height:' + r}}" scroll-y="true" scroll-with-animation="{{false}}" enable-back-to-top="{{true}}"><view wx:for="{{k}}" wx:for-item="activity" wx:key="h" class="goods-box ss-m-b-20 data-v-a041fca7"><s-goods-column wx:if="{{activity.g}}" class="data-v-a041fca7" u-s="{{['activity','cart']}}" bindclick="{{activity.e}}" u-i="{{activity.f}}" bind:__l="__l" u-p="{{activity.g}}"><view slot="activity"><view class="limit data-v-a041fca7"> 限量 <text class="ss-m-l-5 data-v-a041fca7">{{activity.a}} {{activity.b}}</text></view><su-progress wx:if="{{activity.d}}" class="data-v-a041fca7" u-i="{{activity.c}}" bind:__l="__l" u-p="{{activity.d}}"/></view><button class="{{['data-v-a041fca7', 'ss-reset-button cart-btn', n]}}" slot="cart"><label wx:if="{{l}}" class="data-v-a041fca7">未开始</label><label wx:elif="{{m}}" class="data-v-a041fca7">马上抢</label><label wx:else class="data-v-a041fca7">已结束</label></button></s-goods-column></view><uni-load-more wx:if="{{o}}" class="data-v-a041fca7" bindtap="{{p}}" u-i="a041fca7-4,a041fca7-1" bind:__l="__l" u-p="{{q}}"/></scroll-view></view></s-layout></layout-default-uni>
<layout-default-uni class="data-v-8d8624ac" u-s="{{['d']}}" style="{{t}}" u-i="8d8624ac-0" bind:__l="__l"><s-layout wx:if="{{s}}" class="data-v-8d8624ac" u-s="{{['d']}}" u-i="8d8624ac-1,8d8624ac-0" bind:__l="__l" u-p="{{s}}"><view class="page-bg data-v-8d8624ac" style="{{a}}"></view><view wx:if="{{b}}" class="header data-v-8d8624ac"><swiper class="data-v-8d8624ac" indicator-dots="true" autoplay="true" circular="{{true}}" interval="3000" duration="1500" indicator-color="rgba(255,255,255,0.6)" indicator-active-color="#fff"><block wx:for="{{c}}" wx:for-item="picUrl" wx:key="b"><swiper-item class="borRadius14 data-v-8d8624ac"><image src="{{picUrl.a}}" class="slide-image borRadius14 data-v-8d8624ac" lazy-load/></swiper-item></block></swiper></view><view class="flex align-center justify-between ss-p-25 data-v-8d8624ac"><view class="time-icon data-v-8d8624ac"><image class="ss-w-100 ss-h-100 data-v-8d8624ac" src="http://mall.yudao.iocoder.cn/static/images/priceTag.png"/></view><scroll-view class="time-list data-v-8d8624ac" scroll-into-view="{{e}}" scroll-x scroll-with-animation><view wx:for="{{d}}" wx:for-item="config" wx:key="c" class="{{['data-v-8d8624ac', 'item', config.d]}}" id="{{config.e}}" bindtap="{{config.f}}"><view class="time data-v-8d8624ac">{{config.a}}</view><view class="status data-v-8d8624ac">{{config.b}}</view></view></scroll-view></view><view class="list-content data-v-8d8624ac"><view class="content-header ss-flex-col ss-col-center ss-row-center data-v-8d8624ac"><view class="content-header-box ss-flex ss-row-center data-v-8d8624ac"><view wx:if="{{f}}" class="countdown-box ss-flex data-v-8d8624ac"><view class="countdown-title ss-m-r-12 data-v-8d8624ac">距结束</view><view class="ss-flex countdown-time data-v-8d8624ac"><view class="ss-flex countdown-h data-v-8d8624ac">{{g}}</view><view class="ss-m-x-4 data-v-8d8624ac">:</view><view class="countdown-num ss-flex ss-row-center data-v-8d8624ac">{{h}}</view><view class="ss-m-x-4 data-v-8d8624ac">:</view><view class="countdown-num ss-flex ss-row-center data-v-8d8624ac">{{i}}</view></view></view><view wx:else class="data-v-8d8624ac">{{j}}</view></view></view><scroll-view class="scroll-box data-v-8d8624ac" style="{{'height:' + r}}" scroll-y="true" scroll-with-animation="{{false}}" enable-back-to-top="{{true}}"><view wx:for="{{k}}" wx:for-item="activity" wx:key="h" class="goods-box ss-m-b-20 data-v-8d8624ac"><s-goods-column wx:if="{{activity.g}}" class="data-v-8d8624ac" u-s="{{['activity','cart']}}" bindclick="{{activity.e}}" u-i="{{activity.f}}" bind:__l="__l" u-p="{{activity.g}}"><view slot="activity"><view class="limit data-v-8d8624ac"> 限量 <text class="ss-m-l-5 data-v-8d8624ac">{{activity.a}} {{activity.b}}</text></view><su-progress wx:if="{{activity.d}}" class="data-v-8d8624ac" u-i="{{activity.c}}" bind:__l="__l" u-p="{{activity.d}}"/></view><button class="{{['data-v-8d8624ac', 'ss-reset-button cart-btn', n]}}" slot="cart"><label wx:if="{{l}}" class="data-v-8d8624ac">未开始</label><label wx:elif="{{m}}" class="data-v-8d8624ac">马上抢</label><label wx:else class="data-v-8d8624ac">已结束</label></button></s-goods-column></view><uni-load-more wx:if="{{o}}" class="data-v-8d8624ac" bindtap="{{p}}" u-i="8d8624ac-4,8d8624ac-1" bind:__l="__l" u-p="{{q}}"/></scroll-view></view></s-layout></layout-default-uni>

View File

@ -1 +1 @@
.page-bg.data-v-a041fca7{width:100%;height:458rpx;background:var(--153d46c7) no-repeat;background-size:100% 100%}.header.data-v-a041fca7{width:710rpx;height:330rpx;margin:-276rpx auto 0;overflow:hidden;border-radius:14rpx}.header swiper.data-v-a041fca7{height:330rpx!important;overflow:hidden;border-radius:14rpx}.header image.data-v-a041fca7{width:100%;height:100%;overflow:hidden;border-radius:14rpx}.header image img.data-v-a041fca7{border-radius:14rpx}.time-icon.data-v-a041fca7{width:75rpx;height:70rpx}.time-list.data-v-a041fca7{width:596rpx;white-space:nowrap}.time-list .item.data-v-a041fca7{box-sizing:border-box;display:inline-block;width:130rpx;margin-right:30rpx;font-size:20rpx;color:#666;text-align:center}.time-list .item .time.data-v-a041fca7{font-size:36rpx;font-weight:600;color:#333}.time-list .item.active .time.data-v-a041fca7{color:var(--ui-BG-Main)}.time-list .item.active .status.data-v-a041fca7{width:128rpx;height:30rpx;line-height:30rpx;color:#fff;background:linear-gradient(90deg,var(--ui-BG-Main) 0%,var(--ui-BG-Main-gradient) 100%);border-radius:15rpx}.list-content.data-v-a041fca7{position:relative;z-index:3;margin:0 20rpx;background:#fff;border-radius:20rpx 20rpx 0 0}.list-content .content-header.data-v-a041fca7{width:100%;height:150rpx;background:linear-gradient(180deg,#fff4f7,#ffe6ec);border-radius:20rpx 20rpx 0 0}.list-content .content-header .content-header-box.data-v-a041fca7{width:678rpx;height:64rpx;background:rgba(255,255,255,.66);border-radius:32px}.list-content .content-header .content-header-box .countdown-title.data-v-a041fca7{font-size:28rpx;font-weight:500;line-height:28rpx;color:#333}.list-content .content-header .content-header-box .countdown-time.data-v-a041fca7{font-size:28rpx;color:rgba(237,60,48,.23)}.list-content .content-header .content-header-box .countdown-time .countdown-h.data-v-a041fca7{height:40rpx;padding:0 4rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:rgba(237,60,48,.23);border-radius:6rpx}.list-content .content-header .content-header-box .countdown-time .countdown-num.data-v-a041fca7{width:40rpx;height:40rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:rgba(237,60,48,.23);border-radius:6rpx}.list-content .scroll-box.data-v-a041fca7{height:900rpx}.list-content .scroll-box .goods-box.data-v-a041fca7{position:relative}.list-content .scroll-box .goods-box .cart-btn.data-v-a041fca7{position:absolute;right:20rpx;bottom:10rpx;z-index:11;height:44rpx;padding:0 20rpx;font-size:24rpx;line-height:50rpx;color:#fff;background:linear-gradient(90deg,#f60,#fe832a);border-radius:25rpx}.list-content .scroll-box .goods-box .cart-btn.disabled.data-v-a041fca7{color:#fff;background:#bbb}.list-content .scroll-box .goods-box .limit.data-v-a041fca7{margin-bottom:5rpx;font-size:22rpx;color:#999}
.page-bg.data-v-8d8624ac{width:100%;height:458rpx;background:var(--09ad7494) no-repeat;background-size:100% 100%}.header.data-v-8d8624ac{width:710rpx;height:330rpx;margin:-276rpx auto 0;overflow:hidden;border-radius:14rpx}.header swiper.data-v-8d8624ac{height:330rpx!important;overflow:hidden;border-radius:14rpx}.header image.data-v-8d8624ac{width:100%;height:100%;overflow:hidden;border-radius:14rpx}.header image img.data-v-8d8624ac{border-radius:14rpx}.time-icon.data-v-8d8624ac{width:75rpx;height:70rpx}.time-list.data-v-8d8624ac{width:596rpx;white-space:nowrap}.time-list .item.data-v-8d8624ac{box-sizing:border-box;display:inline-block;width:130rpx;margin-right:30rpx;font-size:20rpx;color:#666;text-align:center}.time-list .item .time.data-v-8d8624ac{font-size:36rpx;font-weight:600;color:#333}.time-list .item.active .time.data-v-8d8624ac{color:var(--ui-BG-Main)}.time-list .item.active .status.data-v-8d8624ac{width:128rpx;height:30rpx;line-height:30rpx;color:#fff;background:linear-gradient(90deg,var(--ui-BG-Main) 0%,var(--ui-BG-Main-gradient) 100%);border-radius:15rpx}.list-content.data-v-8d8624ac{position:relative;z-index:3;margin:0 20rpx;background:#fff;border-radius:20rpx 20rpx 0 0}.list-content .content-header.data-v-8d8624ac{width:100%;height:150rpx;background:linear-gradient(180deg,#fff4f7,#ffe6ec);border-radius:20rpx 20rpx 0 0}.list-content .content-header .content-header-box.data-v-8d8624ac{width:678rpx;height:64rpx;background:rgba(255,255,255,.66);border-radius:32px}.list-content .content-header .content-header-box .countdown-title.data-v-8d8624ac{font-size:28rpx;font-weight:500;line-height:28rpx;color:#333}.list-content .content-header .content-header-box .countdown-time.data-v-8d8624ac{font-size:28rpx;color:rgba(237,60,48,.23)}.list-content .content-header .content-header-box .countdown-time .countdown-h.data-v-8d8624ac{height:40rpx;padding:0 4rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:rgba(237,60,48,.23);border-radius:6rpx}.list-content .content-header .content-header-box .countdown-time .countdown-num.data-v-8d8624ac{width:40rpx;height:40rpx;font-family:OPPOSANS;font-size:24rpx;font-weight:500;color:#fff;background:rgba(237,60,48,.23);border-radius:6rpx}.list-content .scroll-box.data-v-8d8624ac{height:900rpx}.list-content .scroll-box .goods-box.data-v-8d8624ac{position:relative}.list-content .scroll-box .goods-box .cart-btn.data-v-8d8624ac{position:absolute;right:20rpx;bottom:10rpx;z-index:11;height:44rpx;padding:0 20rpx;font-size:24rpx;line-height:50rpx;color:#fff;background:linear-gradient(90deg,#f60,#fe832a);border-radius:25rpx}.list-content .scroll-box .goods-box .cart-btn.disabled.data-v-8d8624ac{color:#fff;background:#bbb}.list-content .scroll-box .goods-box .limit.data-v-8d8624ac{margin-bottom:5rpx;font-size:22rpx;color:#999}

View File

@ -1 +1 @@
"use strict";var n=(n,e,s)=>new Promise(((t,o)=>{var i=n=>{try{g(s.next(n))}catch(e){o(e)}},a=n=>{try{g(s.throw(n))}catch(e){o(e)}},g=n=>n.done?t(n.value):Promise.resolve(n.value).then(i,a);g((s=s.apply(n,e)).next())}));const e=require("../../../common/vendor.js"),s=require("../../../sheep/index.js"),t=require("../../../sheep/api/member/signin.js");if(!Array){(e.resolveComponent("s-empty")+e.resolveComponent("su-popup")+e.resolveComponent("s-layout")+e.resolveComponent("layout-default-uni"))()}Math||((()=>"../../../sheep/components/s-empty/s-empty.js")+(()=>"../../../sheep/ui/su-popup/su-popup.js")+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const o={__name:"sign",setup(o){e.useCssVars((n=>({"290aaab0":e.unref(i)})));const i=s.sheep.$url.css("/static/img/shop/app/sign.png"),a=e.reactive({loading:!0,signInfo:{},signConfigList:[],maxDay:0,showModel:!1,signResult:{}});function g(){return n(this,null,(function*(){const{code:n,data:e}=yield t.SignInApi.createSignInRecord();0===n&&(a.showModel=!0,a.signResult=e,yield l())}))}function u(){a.showModel=!1}function l(){return n(this,null,(function*(){const{code:n,data:e}=yield t.SignInApi.getSignInRecordSummary();0===n&&(a.signInfo=e,a.loading=!1)}))}return e.onReady((()=>{l(),function(){n(this,null,(function*(){const{code:n,data:e}=yield t.SignInApi.getSignInConfigList();0===n&&(a.signConfigList=e,e.length>0&&(a.maxDay=e[e.length-1].day))}))}()})),(n,s)=>e.e({a:a.loading},a.loading?{b:e.p({icon:"/static/data-empty.png",text:"签到活动还未开始"})}:{},{c:a.loading},a.loading||a.loading?{}:e.e({e:e.t(a.signInfo.continuousDay),f:e.f(a.signConfigList,((n,s,t)=>({a:e.t(n.day),b:e.n((s===a.signConfigList.length?"reward":"")+" "+(a.signInfo.continuousDay>=n.day?"rewardTxt":"")),c:e.n((s+1===a.signConfigList.length?"reward":"")+" "+(a.signInfo.continuousDay>=n.day?"venusSelect":"")),d:e.t(n.point),e:e.n(a.signInfo.continuousDay>=n.day?"on":""),f:s}))),g:!a.signInfo.todaySignIn},a.signInfo.todaySignIn?{}:{h:e.o(g)},{i:e.t(a.signInfo.totalDay),j:e.t(a.maxDay)}),{d:!a.loading,k:a.signResult.point},a.signResult.point?{l:e.t(a.signResult.point)}:{},{m:a.signResult.experience},a.signResult.experience?{n:e.t(a.signResult.experience)}:{},{o:e.t(a.signResult.day),p:e.o(u),q:e.p({show:a.showModel,type:"center",round:"10",isMaskClick:!1}),r:e.p({title:"签到有礼"}),s:e.s(n.__cssVars())})}},i=e._export_sfc(o,[["__scopeId","data-v-218760d4"]]);wx.createPage(i);
"use strict";var n=(n,e,s)=>new Promise(((t,o)=>{var i=n=>{try{g(s.next(n))}catch(e){o(e)}},a=n=>{try{g(s.throw(n))}catch(e){o(e)}},g=n=>n.done?t(n.value):Promise.resolve(n.value).then(i,a);g((s=s.apply(n,e)).next())}));const e=require("../../../common/vendor.js"),s=require("../sheep/index.js"),t=require("../sheep/api/member/signin.js");if(!Array){(e.resolveComponent("s-empty")+e.resolveComponent("su-popup")+e.resolveComponent("s-layout")+e.resolveComponent("layout-default-uni"))()}Math||((()=>"../sheep/components/s-empty/s-empty.js")+(()=>"../sheep/ui/su-popup/su-popup.js")+(()=>"../sheep/components/s-layout/s-layout.js"))();const o={__name:"sign",setup(o){e.useCssVars((n=>({bb67fe5a:e.unref(i)})));const i=s.sheep.$url.css("/static/img/shop/app/sign.png"),a=e.reactive({loading:!0,signInfo:{},signConfigList:[],maxDay:0,showModel:!1,signResult:{}});function g(){return n(this,null,(function*(){const{code:n,data:e}=yield t.SignInApi.createSignInRecord();0===n&&(a.showModel=!0,a.signResult=e,yield l())}))}function u(){a.showModel=!1}function l(){return n(this,null,(function*(){const{code:n,data:e}=yield t.SignInApi.getSignInRecordSummary();0===n&&(a.signInfo=e,a.loading=!1)}))}return e.onReady((()=>{l(),function(){n(this,null,(function*(){const{code:n,data:e}=yield t.SignInApi.getSignInConfigList();0===n&&(a.signConfigList=e,e.length>0&&(a.maxDay=e[e.length-1].day))}))}()})),(n,s)=>e.e({a:a.loading},a.loading?{b:e.p({icon:"/static/data-empty.png",text:"签到活动还未开始"})}:{},{c:a.loading},a.loading||a.loading?{}:e.e({e:e.t(a.signInfo.continuousDay),f:e.f(a.signConfigList,((n,s,t)=>({a:e.t(n.day),b:e.n((s===a.signConfigList.length?"reward":"")+" "+(a.signInfo.continuousDay>=n.day?"rewardTxt":"")),c:e.n((s+1===a.signConfigList.length?"reward":"")+" "+(a.signInfo.continuousDay>=n.day?"venusSelect":"")),d:e.t(n.point),e:e.n(a.signInfo.continuousDay>=n.day?"on":""),f:s}))),g:!a.signInfo.todaySignIn},a.signInfo.todaySignIn?{}:{h:e.o(g)},{i:e.t(a.signInfo.totalDay),j:e.t(a.maxDay)}),{d:!a.loading,k:a.signResult.point},a.signResult.point?{l:e.t(a.signResult.point)}:{},{m:a.signResult.experience},a.signResult.experience?{n:e.t(a.signResult.experience)}:{},{o:e.t(a.signResult.day),p:e.o(u),q:e.p({show:a.showModel,type:"center",round:"10",isMaskClick:!1}),r:e.p({title:"签到有礼"}),s:e.s(n.__cssVars())})}},i=e._export_sfc(o,[["__scopeId","data-v-dd491667"]]);wx.createPage(i);

View File

@ -1,8 +1,8 @@
{
"navigationBarTitleText": "签到中心",
"usingComponents": {
"s-empty": "../../../sheep/components/s-empty/s-empty",
"su-popup": "../../../sheep/ui/su-popup/su-popup",
"s-layout": "../../../sheep/components/s-layout/s-layout"
"s-empty": "../sheep/components/s-empty/s-empty",
"su-popup": "../sheep/ui/su-popup/su-popup",
"s-layout": "../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-218760d4" u-s="{{['d']}}" style="{{s}}" u-i="218760d4-0" bind:__l="__l"><s-layout wx:if="{{r}}" class="data-v-218760d4" u-s="{{['d']}}" u-i="218760d4-1,218760d4-0" bind:__l="__l" u-p="{{r}}"><s-empty wx:if="{{a}}" class="data-v-218760d4" u-i="218760d4-2,218760d4-1" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="data-v-218760d4"/><view wx:elif="{{d}}" class="sign-wrap data-v-218760d4"><view class="content-box calendar data-v-218760d4"><view class="sign-everyday ss-flex ss-col-center ss-row-between ss-p-x-30 data-v-218760d4"><text class="sign-everyday-title data-v-218760d4">签到日历</text><view class="sign-num-box data-v-218760d4"> 已连续签到 <text class="sign-num data-v-218760d4">{{e}}</text> 天 </view></view><view class="list acea-row row-between-wrapper data-v-218760d4" style="display:flex;align-items:center;justify-content:space-between;height:240rpx;padding:0 30rpx"><view wx:for="{{f}}" wx:for-item="item" wx:key="f" class="item data-v-218760d4"><view class="{{['data-v-218760d4', item.b]}}"> 第{{item.a}}天 </view><view class="{{['venus', 'data-v-218760d4', item.c]}}"></view><view class="{{['num', 'data-v-218760d4', item.e]}}"> + {{item.d}}</view></view></view><view class="myDateTable data-v-218760d4"><view class="ss-flex ss-col-center ss-row-center sign-box ss-m-y-40 data-v-218760d4"><button wx:if="{{g}}" class="ss-reset-button sign-btn data-v-218760d4" bindtap="{{h}}"> 签到 </button><button wx:else class="ss-reset-button already-btn data-v-218760d4" disabled>已签到</button></view></view></view><view class="bg-white ss-m-t-16 ss-p-t-30 ss-p-b-60 ss-p-x-40 data-v-218760d4"><view class="activity-title ss-m-b-30 data-v-218760d4">签到说明</view><view class="activity-des data-v-218760d4">1、已累计签到{{i}}天</view><view class="activity-des data-v-218760d4"> 2、据说连续签到第 {{j}} 天可获得超额积分,一定要坚持签到哦~~~ </view></view></view><su-popup wx:if="{{q}}" class="data-v-218760d4" u-s="{{['d']}}" u-i="218760d4-3,218760d4-1" bind:__l="__l" u-p="{{q}}"><view class="model-box ss-flex-col data-v-218760d4"><view class="ss-m-t-56 ss-flex-col ss-col-center data-v-218760d4"><text class="cicon-check-round data-v-218760d4"></text><view class="score-title data-v-218760d4"><text wx:if="{{k}}" class="data-v-218760d4">{{l}} 积分</text><text wx:if="{{m}}" class="data-v-218760d4">{{n}} 经验</text></view><view class="model-title ss-flex ss-col-center ss-m-t-22 ss-m-b-30 data-v-218760d4"> 已连续打卡 {{o}} 天 </view></view><view class="model-bg ss-flex-col ss-col-center ss-row-right data-v-218760d4"><view class="title ss-m-b-64 data-v-218760d4">签到成功</view><view class="ss-m-b-40 data-v-218760d4"><button class="ss-reset-button confirm-btn data-v-218760d4" bindtap="{{p}}">确认</button></view></view></view></su-popup></s-layout></layout-default-uni>
<layout-default-uni class="data-v-dd491667" u-s="{{['d']}}" style="{{s}}" u-i="dd491667-0" bind:__l="__l"><s-layout wx:if="{{r}}" class="data-v-dd491667" u-s="{{['d']}}" u-i="dd491667-1,dd491667-0" bind:__l="__l" u-p="{{r}}"><s-empty wx:if="{{a}}" class="data-v-dd491667" u-i="dd491667-2,dd491667-1" bind:__l="__l" u-p="{{b}}"/><view wx:if="{{c}}" class="data-v-dd491667"/><view wx:elif="{{d}}" class="sign-wrap data-v-dd491667"><view class="content-box calendar data-v-dd491667"><view class="sign-everyday ss-flex ss-col-center ss-row-between ss-p-x-30 data-v-dd491667"><text class="sign-everyday-title data-v-dd491667">签到日历</text><view class="sign-num-box data-v-dd491667"> 已连续签到 <text class="sign-num data-v-dd491667">{{e}}</text> 天 </view></view><view class="list acea-row row-between-wrapper data-v-dd491667" style="display:flex;align-items:center;justify-content:space-between;height:240rpx;padding:0 30rpx"><view wx:for="{{f}}" wx:for-item="item" wx:key="f" class="item data-v-dd491667"><view class="{{['data-v-dd491667', item.b]}}"> 第{{item.a}}天 </view><view class="{{['venus', 'data-v-dd491667', item.c]}}"></view><view class="{{['num', 'data-v-dd491667', item.e]}}"> + {{item.d}}</view></view></view><view class="myDateTable data-v-dd491667"><view class="ss-flex ss-col-center ss-row-center sign-box ss-m-y-40 data-v-dd491667"><button wx:if="{{g}}" class="ss-reset-button sign-btn data-v-dd491667" bindtap="{{h}}"> 签到 </button><button wx:else class="ss-reset-button already-btn data-v-dd491667" disabled>已签到</button></view></view></view><view class="bg-white ss-m-t-16 ss-p-t-30 ss-p-b-60 ss-p-x-40 data-v-dd491667"><view class="activity-title ss-m-b-30 data-v-dd491667">签到说明</view><view class="activity-des data-v-dd491667">1、已累计签到{{i}}天</view><view class="activity-des data-v-dd491667"> 2、据说连续签到第 {{j}} 天可获得超额积分,一定要坚持签到哦~~~ </view></view></view><su-popup wx:if="{{q}}" class="data-v-dd491667" u-s="{{['d']}}" u-i="dd491667-3,dd491667-1" bind:__l="__l" u-p="{{q}}"><view class="model-box ss-flex-col data-v-dd491667"><view class="ss-m-t-56 ss-flex-col ss-col-center data-v-dd491667"><text class="cicon-check-round data-v-dd491667"></text><view class="score-title data-v-dd491667"><text wx:if="{{k}}" class="data-v-dd491667">{{l}} 积分</text><text wx:if="{{m}}" class="data-v-dd491667">{{n}} 经验</text></view><view class="model-title ss-flex ss-col-center ss-m-t-22 ss-m-b-30 data-v-dd491667"> 已连续打卡 {{o}} 天 </view></view><view class="model-bg ss-flex-col ss-col-center ss-row-right data-v-dd491667"><view class="title ss-m-b-64 data-v-dd491667">签到成功</view><view class="ss-m-b-40 data-v-dd491667"><button class="ss-reset-button confirm-btn data-v-dd491667" bindtap="{{p}}">确认</button></view></view></view></su-popup></s-layout></layout-default-uni>

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"component": true,
"usingComponents": {
"s-goods-item": "../../../../sheep/components/s-goods-item/s-goods-item"
"s-goods-item": "../../sheep/components/s-goods-item/s-goods-item"
}
}

View File

@ -1 +1 @@
"use strict";var e=(e,a,t)=>new Promise(((o,s)=>{var i=e=>{try{r(t.next(e))}catch(a){s(a)}},l=e=>{try{r(t.throw(e))}catch(a){s(a)}},r=e=>e.done?o(e.value):Promise.resolve(e.value).then(i,l);r((t=t.apply(e,a)).next())}));const a=require("../../../../common/vendor.js"),t=require("../../../../sheep/api/promotion/kefu.js"),o=require("../../../../sheep/helper/utils.js");if(!Array){a.resolveComponent("z-paging")()}Math||(s+(()=>"../../../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const s=()=>"./messageListItem.js",i={__name:"messageList",setup(s,{expose:i}){const l=a.ref([]),r=a.ref(!1),n=a.reactive({width:"100px","background-color":"#fff","border-radius":"30px","box-shadow":"0 2px 4px rgba(0, 0, 0, 0.1)",display:"flex",justifyContent:"center",alignItems:"center"}),u=a.reactive({pageNo:1,pageSize:10}),p=a.ref(null),c=(a,t)=>e(this,null,(function*(){u.pageNo=a,u.pageSize=t,yield g()})),g=()=>e(this,null,(function*(){const{data:e}=yield t.KeFuApi.getKefuMessagePage(u);o.isEmpty(e.list)||p.value.completeByTotal(e.list,e.total)})),d=(e=void 0)=>{if(1!=u.pageNo&&void 0!==e)return r.value=!0,void p.value.addChatRecordData([e],!1);p.value.reload()},m=e=>{e(!1),p.value.scrollToBottom()},v=()=>{1!==u.pageNo&&(r.value=!1,d())};return i({getMessageList:g,refreshMessageList:d}),(e,t)=>({a:a.w((({item:e,index:t},o,s)=>({a:"70e007a2-1-"+s+",70e007a2-0",b:a.p({message:e,"message-index":t,"message-list":l.value}),c:s,d:o})),{name:"cell",path:"a",vueId:"70e007a2-0"}),b:a.sr(p,"70e007a2-0",{k:"pagingRef"}),c:a.o(m),d:a.o(v),e:a.o(c),f:a.o((e=>l.value=e)),g:a.p({"use-chat-record-mode":!0,"use-virtual-list":!0,"cell-height-mode":"dynamic","default-page-size":"20","auto-clean-list-when-reload":!1,"safe-area-inset-bottom":!0,"bottom-bg-color":"#f8f8f8","back-to-top-style":n,"auto-show-back-to-top":r.value,modelValue:l.value})})}};wx.createComponent(i);
"use strict";var e=(e,a,t)=>new Promise(((o,s)=>{var i=e=>{try{r(t.next(e))}catch(a){s(a)}},l=e=>{try{r(t.throw(e))}catch(a){s(a)}},r=e=>e.done?o(e.value):Promise.resolve(e.value).then(i,l);r((t=t.apply(e,a)).next())}));const a=require("../../../../common/vendor.js"),t=require("../../sheep/api/promotion/kefu.js"),o=require("../../sheep/helper/utils.js");if(!Array){a.resolveComponent("z-paging")()}Math||(s+(()=>"../../../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const s=()=>"./messageListItem.js",i={__name:"messageList",setup(s,{expose:i}){const l=a.ref([]),r=a.ref(!1),n=a.reactive({width:"100px","background-color":"#fff","border-radius":"30px","box-shadow":"0 2px 4px rgba(0, 0, 0, 0.1)",display:"flex",justifyContent:"center",alignItems:"center"}),u=a.reactive({pageNo:1,pageSize:10}),p=a.ref(null),c=(a,t)=>e(this,null,(function*(){u.pageNo=a,u.pageSize=t,yield g()})),g=()=>e(this,null,(function*(){const{data:e}=yield t.KeFuApi.getKefuMessagePage(u);o.isEmpty(e.list)||p.value.completeByTotal(e.list,e.total)})),d=(e=void 0)=>{if(1!=u.pageNo&&void 0!==e)return r.value=!0,void p.value.addChatRecordData([e],!1);p.value.reload()},m=e=>{e(!1),p.value.scrollToBottom()},v=()=>{1!==u.pageNo&&(r.value=!1,d())};return i({getMessageList:g,refreshMessageList:d}),(e,t)=>({a:a.w((({item:e,index:t},o,s)=>({a:"70e007a2-1-"+s+",70e007a2-0",b:a.p({message:e,"message-index":t,"message-list":l.value}),c:s,d:o})),{name:"cell",path:"a",vueId:"70e007a2-0"}),b:a.sr(p,"70e007a2-0",{k:"pagingRef"}),c:a.o(m),d:a.o(v),e:a.o(c),f:a.o((e=>l.value=e)),g:a.p({"use-chat-record-mode":!0,"use-virtual-list":!0,"cell-height-mode":"dynamic","default-page-size":"20","auto-clean-list-when-reload":!1,"safe-area-inset-bottom":!0,"bottom-bg-color":"#f8f8f8","back-to-top-style":n,"auto-show-back-to-top":r.value,modelValue:l.value})})}};wx.createComponent(i);

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),s=require("../util/constants.js"),n=require("../util/emoji.js"),t=require("../../../../sheep/index.js"),r=require("../../../../sheep/util/index.js");if(!Array){(e.resolveComponent("mp-html")+e.resolveComponent("su-image"))()}Math||((()=>"../../../../uni_modules/mp-html/components/mp-html/mp-html.js")+(()=>"../../../../sheep/ui/su-image/su-image.js")+u+a)();const u=()=>"./goods.js",a=()=>"./order.js",m={__name:"messageListItem",props:{message:{type:Object,default:()=>({})},messageIndex:{type:Number,default:0},messageList:{type:Array,default:()=>[]}},setup(u){const a=u,m=e.computed((()=>e=>JSON.parse(e.content))),o=e.computed((()=>(s,n)=>{if(e.unref(a.messageList)[n+1]){return e.dayjs(e.unref(a.messageList)[n+1].createTime).fromNow()!==e.dayjs(e.unref(s).createTime).fromNow()}return!1}));function p(e){let s=e;if("object"!=typeof s){const e=/\[(.+?)]/g,r=s.match(e);r&&r.forEach((e=>{const r=function(e){for(const s in n.emojiList)if(n.emojiList[s].name===e)return n.emojiList[s].file;return!1}(e);s=s.replace(e,`<img class="chat-img" style="width: 24px;height: 24px;margin: 0 3px;" src="${t.sheep.$url.cdn("/static/img/chat/emoji/"+r)}"/>`)}))}return s}return(n,a)=>e.e({a:u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM&&o.value(u.message,u.messageIndex)},u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM&&o.value(u.message,u.messageIndex)?{b:e.t(e.unref(r.formatDate)(u.message.createTime))}:{},{c:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).SYSTEM},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).SYSTEM?{d:e.t(u.message.content)}:{},{e:u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM},u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM?e.e({f:u.message.senderType===e.unref(s.UserTypeEnum).ADMIN,g:e.unref(t.sheep).$url.cdn(u.message.senderAvatar)||e.unref(t.sheep).$url.static("/static/img/shop/chat/default.png"),h:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).TEXT},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).TEXT?{i:e.p({content:p(u.message.content)}),j:u.message.senderType===e.unref(s.UserTypeEnum).ADMIN?1:""}:{},{k:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).IMAGE},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).IMAGE?{l:e.p({isPreview:!0,previewList:[e.unref(t.sheep).$url.cdn(u.message.content)],current:0,src:e.unref(t.sheep).$url.cdn(u.message.content),height:200,width:200,mode:"aspectFill"}),m:u.message.senderType===e.unref(s.UserTypeEnum).ADMIN?1:""}:{},{n:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).PRODUCT},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).PRODUCT?{o:e.o((s=>e.unref(t.sheep).$router.go("/modules/mall/goods/index",{id:m.value(u.message).id}))),p:e.p({goodsData:m.value(u.message)})}:{},{q:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).ORDER},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).ORDER?{r:e.o((s=>e.unref(t.sheep).$router.go("/modules/mall/order/detail",{id:m.value(u.message).id}))),s:e.p({orderData:m.value(u.message)})}:{},{t:u.message.senderType===e.unref(s.UserTypeEnum).MEMBER},u.message.senderType===e.unref(s.UserTypeEnum).MEMBER?{v:e.unref(t.sheep).$url.cdn(u.message.senderAvatar)||e.unref(t.sheep).$url.static("/static/img/shop/chat/default.png")}:{},{w:e.n(u.message.senderType===e.unref(s.UserTypeEnum).ADMIN?"ss-row-left":u.message.senderType===e.unref(s.UserTypeEnum).MEMBER?"ss-row-right":"")}):{})}},o=e._export_sfc(m,[["__scopeId","data-v-39a13162"]]);wx.createComponent(o);
"use strict";const e=require("../../../../common/vendor.js"),s=require("../util/constants.js"),n=require("../util/emoji.js"),t=require("../../sheep/index.js"),r=require("../../sheep/util/index.js");if(!Array){(e.resolveComponent("mp-html")+e.resolveComponent("su-image"))()}Math||((()=>"../../../../uni_modules/mp-html/components/mp-html/mp-html.js")+(()=>"../../sheep/ui/su-image/su-image.js")+u+a)();const u=()=>"./goods.js",a=()=>"./order.js",m={__name:"messageListItem",props:{message:{type:Object,default:()=>({})},messageIndex:{type:Number,default:0},messageList:{type:Array,default:()=>[]}},setup(u){const a=u,m=e.computed((()=>e=>JSON.parse(e.content))),o=e.computed((()=>(s,n)=>{if(e.unref(a.messageList)[n+1]){return e.dayjs(e.unref(a.messageList)[n+1].createTime).fromNow()!==e.dayjs(e.unref(s).createTime).fromNow()}return!1}));function p(e){let s=e;if("object"!=typeof s){const e=/\[(.+?)]/g,r=s.match(e);r&&r.forEach((e=>{const r=function(e){for(const s in n.emojiList)if(n.emojiList[s].name===e)return n.emojiList[s].file;return!1}(e);s=s.replace(e,`<img class="chat-img" style="width: 24px;height: 24px;margin: 0 3px;" src="${t.sheep.$url.cdn("/static/img/chat/emoji/"+r)}"/>`)}))}return s}return(n,a)=>e.e({a:u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM&&o.value(u.message,u.messageIndex)},u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM&&o.value(u.message,u.messageIndex)?{b:e.t(e.unref(r.formatDate)(u.message.createTime))}:{},{c:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).SYSTEM},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).SYSTEM?{d:e.t(u.message.content)}:{},{e:u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM},u.message.contentType!==e.unref(s.KeFuMessageContentTypeEnum).SYSTEM?e.e({f:u.message.senderType===e.unref(s.UserTypeEnum).ADMIN,g:e.unref(t.sheep).$url.cdn(u.message.senderAvatar)||e.unref(t.sheep).$url.static("/static/img/shop/chat/default.png"),h:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).TEXT},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).TEXT?{i:e.p({content:p(u.message.content)}),j:u.message.senderType===e.unref(s.UserTypeEnum).ADMIN?1:""}:{},{k:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).IMAGE},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).IMAGE?{l:e.p({isPreview:!0,previewList:[e.unref(t.sheep).$url.cdn(u.message.content)],current:0,src:e.unref(t.sheep).$url.cdn(u.message.content),height:200,width:200,mode:"aspectFill"}),m:u.message.senderType===e.unref(s.UserTypeEnum).ADMIN?1:""}:{},{n:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).PRODUCT},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).PRODUCT?{o:e.o((s=>e.unref(t.sheep).$router.go("/modules/mall/goods/index",{id:m.value(u.message).id}))),p:e.p({goodsData:m.value(u.message)})}:{},{q:u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).ORDER},u.message.contentType===e.unref(s.KeFuMessageContentTypeEnum).ORDER?{r:e.o((s=>e.unref(t.sheep).$router.go("/modules/mall/order/detail",{id:m.value(u.message).id}))),s:e.p({orderData:m.value(u.message)})}:{},{t:u.message.senderType===e.unref(s.UserTypeEnum).MEMBER},u.message.senderType===e.unref(s.UserTypeEnum).MEMBER?{v:e.unref(t.sheep).$url.cdn(u.message.senderAvatar)||e.unref(t.sheep).$url.static("/static/img/shop/chat/default.png")}:{},{w:e.n(u.message.senderType===e.unref(s.UserTypeEnum).ADMIN?"ss-row-left":u.message.senderType===e.unref(s.UserTypeEnum).MEMBER?"ss-row-right":"")}):{})}},o=e._export_sfc(m,[["__scopeId","data-v-b89c8dbe"]]);wx.createComponent(o);

View File

@ -2,7 +2,7 @@
"component": true,
"usingComponents": {
"mp-html": "../../../../uni_modules/mp-html/components/mp-html/mp-html",
"su-image": "../../../../sheep/ui/su-image/su-image",
"su-image": "../../sheep/ui/su-image/su-image",
"goods-item": "./goods",
"order-item": "./order"
}

View File

@ -1 +1 @@
<view class="chat-box data-v-39a13162"><view class="message-item ss-flex-col scroll-item data-v-39a13162"><view class="ss-flex ss-row-center ss-col-center data-v-39a13162"><view wx:if="{{a}}" class="date-message data-v-39a13162">{{b}}</view><view wx:if="{{c}}" class="system-message data-v-39a13162">{{d}}</view></view><view wx:if="{{e}}" class="{{['ss-flex', 'ss-col-top', 'data-v-39a13162', w]}}"><image hidden="{{!f}}" class="chat-avatar ss-m-r-24 data-v-39a13162" src="{{g}}" mode="aspectFill"></image><block wx:if="{{h}}"><view class="{{['message-box', 'data-v-39a13162', j && 'admin']}}"><mp-html wx:if="{{i}}" class="data-v-39a13162" u-i="39a13162-0" bind:__l="__l" u-p="{{i}}"/></view></block><block wx:if="{{k}}"><view class="{{['message-box', 'data-v-39a13162', m && 'admin']}}" style="{{'width:' + '200rpx'}}"><su-image wx:if="{{l}}" class="message-img data-v-39a13162" u-i="39a13162-1" bind:__l="__l" u-p="{{l}}"></su-image></view></block><block wx:if="{{n}}"><goods-item wx:if="{{p}}" class="data-v-39a13162" bindtap="{{o}}" u-i="39a13162-2" bind:__l="__l" u-p="{{p}}"/></block><block wx:if="{{q}}"><order-item wx:if="{{s}}" class="data-v-39a13162" bindtap="{{r}}" u-i="39a13162-3" bind:__l="__l" u-p="{{s}}"/></block><image wx:if="{{t}}" class="chat-avatar ss-m-l-24 data-v-39a13162" src="{{v}}" mode="aspectFill"></image></view></view></view>
<view class="chat-box data-v-b89c8dbe"><view class="message-item ss-flex-col scroll-item data-v-b89c8dbe"><view class="ss-flex ss-row-center ss-col-center data-v-b89c8dbe"><view wx:if="{{a}}" class="date-message data-v-b89c8dbe">{{b}}</view><view wx:if="{{c}}" class="system-message data-v-b89c8dbe">{{d}}</view></view><view wx:if="{{e}}" class="{{['ss-flex', 'ss-col-top', 'data-v-b89c8dbe', w]}}"><image hidden="{{!f}}" class="chat-avatar ss-m-r-24 data-v-b89c8dbe" src="{{g}}" mode="aspectFill"></image><block wx:if="{{h}}"><view class="{{['message-box', 'data-v-b89c8dbe', j && 'admin']}}"><mp-html wx:if="{{i}}" class="data-v-b89c8dbe" u-i="b89c8dbe-0" bind:__l="__l" u-p="{{i}}"/></view></block><block wx:if="{{k}}"><view class="{{['message-box', 'data-v-b89c8dbe', m && 'admin']}}" style="{{'width:' + '200rpx'}}"><su-image wx:if="{{l}}" class="message-img data-v-b89c8dbe" u-i="b89c8dbe-1" bind:__l="__l" u-p="{{l}}"></su-image></view></block><block wx:if="{{n}}"><goods-item wx:if="{{p}}" class="data-v-b89c8dbe" bindtap="{{o}}" u-i="b89c8dbe-2" bind:__l="__l" u-p="{{p}}"/></block><block wx:if="{{q}}"><order-item wx:if="{{s}}" class="data-v-b89c8dbe" bindtap="{{r}}" u-i="b89c8dbe-3" bind:__l="__l" u-p="{{s}}"/></block><image wx:if="{{t}}" class="chat-avatar ss-m-l-24 data-v-b89c8dbe" src="{{v}}" mode="aspectFill"></image></view></view></view>

View File

@ -1 +1 @@
.message-item.data-v-39a13162{margin-bottom:33rpx}.date-message.data-v-39a13162,.system-message.data-v-39a13162{width:-moz-fit-content;width:fit-content;padding:8rpx 16rpx;margin-bottom:16rpx;font-size:24rpx;color:#999;background-color:var(--ui-BG-3);border-radius:12rpx}.chat-avatar.data-v-39a13162{width:70rpx;height:70rpx;border-radius:50%}.send-status.data-v-39a13162{display:flex;align-items:center;height:80rpx;margin-right:8rpx;color:#333}.send-status .loading.data-v-39a13162{width:32rpx;height:32rpx;animation:rotating-39a13162 2s linear infinite}@keyframes rotating-39a13162{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.send-status .warning.data-v-39a13162{width:32rpx;height:32rpx;color:#ff3000}.message-box.data-v-39a13162{max-width:50%;padding:20rpx;font-size:16px;line-height:20px;color:#fff;word-break:break-all;word-wrap:break-word;white-space:normal;background:linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient));border-radius:10rpx}.message-box.admin.data-v-39a13162{color:#333;background:#fff}.message-box.data-v-39a13162 .imgred,.message-box.data-v-39a13162 img{width:100%}.data-v-39a13162 .goods,.data-v-39a13162 .order{max-width:500rpx}.message-img.data-v-39a13162{width:100px;height:100px;border-radius:6rpx}.template-wrap.data-v-39a13162{padding:20rpx 24rpx;background:#fff;border-radius:10rpx}.template-wrap .title.data-v-39a13162{margin-bottom:29rpx;font-size:26rpx;font-weight:500;color:#333}.template-wrap .item.data-v-39a13162{margin-bottom:16rpx;font-size:24rpx;color:var(--ui-BG-Main)}.template-wrap .item.data-v-39a13162:last-of-type{margin-bottom:0}.error-img.data-v-39a13162{width:400rpx;height:400rpx}
.message-item.data-v-b89c8dbe{margin-bottom:33rpx}.date-message.data-v-b89c8dbe,.system-message.data-v-b89c8dbe{width:-moz-fit-content;width:fit-content;padding:8rpx 16rpx;margin-bottom:16rpx;font-size:24rpx;color:#999;background-color:var(--ui-BG-3);border-radius:12rpx}.chat-avatar.data-v-b89c8dbe{width:70rpx;height:70rpx;border-radius:50%}.send-status.data-v-b89c8dbe{display:flex;align-items:center;height:80rpx;margin-right:8rpx;color:#333}.send-status .loading.data-v-b89c8dbe{width:32rpx;height:32rpx;animation:rotating-b89c8dbe 2s linear infinite}@keyframes rotating-b89c8dbe{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.send-status .warning.data-v-b89c8dbe{width:32rpx;height:32rpx;color:#ff3000}.message-box.data-v-b89c8dbe{max-width:50%;padding:20rpx;font-size:16px;line-height:20px;color:#fff;word-break:break-all;word-wrap:break-word;white-space:normal;background:linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient));border-radius:10rpx}.message-box.admin.data-v-b89c8dbe{color:#333;background:#fff}.message-box.data-v-b89c8dbe .imgred,.message-box.data-v-b89c8dbe img{width:100%}.data-v-b89c8dbe .goods,.data-v-b89c8dbe .order{max-width:500rpx}.message-img.data-v-b89c8dbe{width:100px;height:100px;border-radius:6rpx}.template-wrap.data-v-b89c8dbe{padding:20rpx 24rpx;background:#fff;border-radius:10rpx}.template-wrap .title.data-v-b89c8dbe{margin-bottom:29rpx;font-size:26rpx;font-weight:500;color:#333}.template-wrap .item.data-v-b89c8dbe{margin-bottom:16rpx;font-size:24rpx;color:var(--ui-BG-Main)}.template-wrap .item.data-v-b89c8dbe:last-of-type{margin-bottom:0}.error-img.data-v-b89c8dbe{width:400rpx;height:400rpx}

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),r=require("../../../../sheep/hooks/useGoods.js");if(!Array){e.resolveComponent("s-goods-item")()}Math;const t={__name:"order",props:{orderData:{type:Object,default:{}}},setup:t=>(o,a)=>({a:e.t(t.orderData.no),b:e.t(e.unref(r.formatOrderStatus)(t.orderData)),c:e.n(e.unref(r.formatOrderColor)(t.orderData)),d:e.f(t.orderData.items,((r,t,o)=>({a:"28c6c13c-0-"+o,b:e.p({img:r.picUrl,title:r.spuName,skuText:r.properties.map((e=>e.valueName)).join(" "),price:r.price,num:r.count}),c:r.id}))),e:e.t(t.orderData.productCount),f:e.t(e.unref(r.fen2yuan)(t.orderData.payPrice)),g:t.orderData.id})},o=e._export_sfc(t,[["__scopeId","data-v-28c6c13c"]]);wx.createComponent(o);
"use strict";const e=require("../../../../common/vendor.js"),r=require("../../sheep/hooks/useGoods.js");if(!Array){e.resolveComponent("s-goods-item")()}Math;const t={__name:"order",props:{orderData:{type:Object,default:{}}},setup:t=>(o,a)=>({a:e.t(t.orderData.no),b:e.t(e.unref(r.formatOrderStatus)(t.orderData)),c:e.n(e.unref(r.formatOrderColor)(t.orderData)),d:e.f(t.orderData.items,((r,t,o)=>({a:"c3175480-0-"+o,b:e.p({img:r.picUrl,title:r.spuName,skuText:r.properties.map((e=>e.valueName)).join(" "),price:r.price,num:r.count}),c:r.id}))),e:e.t(t.orderData.productCount),f:e.t(e.unref(r.fen2yuan)(t.orderData.payPrice)),g:t.orderData.id})},o=e._export_sfc(t,[["__scopeId","data-v-c3175480"]]);wx.createComponent(o);

View File

@ -1,6 +1,6 @@
{
"component": true,
"usingComponents": {
"s-goods-item": "../../../../sheep/components/s-goods-item/s-goods-item"
"s-goods-item": "../../sheep/components/s-goods-item/s-goods-item"
}
}

View File

@ -1 +1 @@
<view class="bg-white order-list-card-box ss-r-10 ss-m-t-14 ss-m-20 data-v-28c6c13c" key="{{g}}"><view class="order-card-header ss-flex ss-col-center ss-row-between ss-p-x-20 data-v-28c6c13c"><view class="order-no data-v-28c6c13c">订单号:{{a}}</view><view class="{{['order-state', 'ss-font-26', 'data-v-28c6c13c', c]}}">{{b}}</view></view><view wx:for="{{d}}" wx:for-item="item" wx:key="c" class="border-bottom data-v-28c6c13c"><s-goods-item wx:if="{{item.b}}" class="data-v-28c6c13c" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/></view><view class="pay-box ss-m-t-30 ss-flex ss-row-right ss-p-r-20 data-v-28c6c13c"><view class="ss-flex ss-col-center data-v-28c6c13c"><view class="discounts-title pay-color data-v-28c6c13c"> 共 {{e}} 件商品,总金额: </view><view class="discounts-money pay-color data-v-28c6c13c">¥{{f}}</view></view></view></view>
<view class="bg-white order-list-card-box ss-r-10 ss-m-t-14 ss-m-20 data-v-c3175480" key="{{g}}"><view class="order-card-header ss-flex ss-col-center ss-row-between ss-p-x-20 data-v-c3175480"><view class="order-no data-v-c3175480">订单号:{{a}}</view><view class="{{['order-state', 'ss-font-26', 'data-v-c3175480', c]}}">{{b}}</view></view><view wx:for="{{d}}" wx:for-item="item" wx:key="c" class="border-bottom data-v-c3175480"><s-goods-item wx:if="{{item.b}}" class="data-v-c3175480" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/></view><view class="pay-box ss-m-t-30 ss-flex ss-row-right ss-p-r-20 data-v-c3175480"><view class="ss-flex ss-col-center data-v-c3175480"><view class="discounts-title pay-color data-v-c3175480"> 共 {{e}} 件商品,总金额: </view><view class="discounts-money pay-color data-v-c3175480">¥{{f}}</view></view></view></view>

View File

@ -1 +1 @@
.order-list-card-box .order-card-header.data-v-28c6c13c{height:80rpx}.order-list-card-box .order-card-header .order-no.data-v-28c6c13c{font-size:26rpx;font-weight:500}.order-list-card-box .pay-box .discounts-title.data-v-28c6c13c{font-size:24rpx;line-height:normal;color:#999}.order-list-card-box .pay-box .discounts-money.data-v-28c6c13c{font-family:OPPOSANS;font-size:24rpx;line-height:normal;color:#999}.order-list-card-box .pay-box .pay-color.data-v-28c6c13c{color:#333}.order-list-card-box .order-card-footer.data-v-28c6c13c{height:100rpx}.order-list-card-box .order-card-footer .more-item-box.data-v-28c6c13c{padding:20rpx}.order-list-card-box .order-card-footer .more-item-box .more-item.data-v-28c6c13c{height:60rpx}.order-list-card-box .order-card-footer .more-item-box .more-item .title.data-v-28c6c13c{font-size:26rpx}.order-list-card-box .order-card-footer .more-btn.data-v-28c6c13c{font-size:24rpx;color:#999}.order-list-card-box .order-card-footer .content.data-v-28c6c13c{width:154rpx;font-size:26rpx;font-weight:500;color:#333}.warning-color.data-v-28c6c13c{color:#faad14}.danger-color.data-v-28c6c13c{color:#ff3000}.success-color.data-v-28c6c13c{color:#52c41a}.info-color.data-v-28c6c13c{color:#999}
.order-list-card-box .order-card-header.data-v-c3175480{height:80rpx}.order-list-card-box .order-card-header .order-no.data-v-c3175480{font-size:26rpx;font-weight:500}.order-list-card-box .pay-box .discounts-title.data-v-c3175480{font-size:24rpx;line-height:normal;color:#999}.order-list-card-box .pay-box .discounts-money.data-v-c3175480{font-family:OPPOSANS;font-size:24rpx;line-height:normal;color:#999}.order-list-card-box .pay-box .pay-color.data-v-c3175480{color:#333}.order-list-card-box .order-card-footer.data-v-c3175480{height:100rpx}.order-list-card-box .order-card-footer .more-item-box.data-v-c3175480{padding:20rpx}.order-list-card-box .order-card-footer .more-item-box .more-item.data-v-c3175480{height:60rpx}.order-list-card-box .order-card-footer .more-item-box .more-item .title.data-v-c3175480{font-size:26rpx}.order-list-card-box .order-card-footer .more-btn.data-v-c3175480{font-size:24rpx;color:#999}.order-list-card-box .order-card-footer .content.data-v-c3175480{width:154rpx;font-size:26rpx;font-weight:500;color:#333}.warning-color.data-v-c3175480{color:#faad14}.danger-color.data-v-c3175480{color:#ff3000}.success-color.data-v-c3175480{color:#52c41a}.info-color.data-v-c3175480{color:#999}

View File

@ -1 +1 @@
"use strict";var e=Object.defineProperty,o=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(o,t,a)=>t in o?e(o,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[t]=a;const p=require("../../../../common/vendor.js"),d=require("../../../../sheep/api/trade/order.js"),i=require("../../../../sheep/api/product/history.js");if(!Array){(p.resolveComponent("uni-load-more")+p.resolveComponent("su-popup"))()}Math||(c+l+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../../../sheep/ui/su-popup/su-popup.js"))();const c=()=>"./goods.js",l=()=>"./order.js",u={__name:"select-popup",props:{mode:{type:String,default:"goods"},show:{type:Boolean,default:!1}},emits:["select","close"],setup(e,{emit:c}){const l=c,u=e;p.watch((()=>u.mode),(()=>{g.pagination.data=[],u.mode&&m(g.pagination.page)}));const g=p.reactive({loadStatus:"",pagination:{data:[],current_page:1,total:1,last_page:1}});function m(e,c=5){return l=this,m=null,y=function*(){g.loadStatus="loading";const l="goods"==u.mode?yield i.SpuHistoryApi.getBrowseHistoryPage({page:e,list_rows:c}):yield d.OrderApi.getOrderPage({page:e,list_rows:c}),m=p.lodash.concat(g.pagination.data,l.data.list);var y;g.pagination=(y=((e,o)=>{for(var t in o||(o={}))r.call(o,t)&&s(e,t,o[t]);if(a)for(var t of a(o))n.call(o,t)&&s(e,t,o[t]);return e})({},l.data),o(y,t({data:m}))),g.pagination.current_page<g.pagination.last_page?g.loadStatus="more":g.loadStatus="noMore"},new Promise(((e,o)=>{var t=e=>{try{r(y.next(e))}catch(t){o(t)}},a=e=>{try{r(y.throw(e))}catch(t){o(t)}},r=o=>o.done?e(o.value):Promise.resolve(o.value).then(t,a);r((y=y.apply(l,m)).next())}));var l,m,y}function y(){"noMore"!==g.loadStatus&&m(g.pagination.current_page+1)}return(o,t)=>({a:p.t("goods"==e.mode?"我的浏览":"我的订单"),b:p.f(g.pagination.data,((o,t,a)=>p.e("goods"==e.mode?{a:"84c38b2e-1-"+a+",84c38b2e-0",b:p.p({goodsData:o})}:{},"order"==e.mode?{c:"84c38b2e-2-"+a+",84c38b2e-0",d:p.p({orderData:o})}:{},{e:o.id,f:p.o((t=>l("select",{type:e.mode,data:o})),o.id)}))),c:"goods"==e.mode,d:"order"==e.mode,e:p.p({status:g.loadStatus,"content-text":{contentdown:"上拉加载更多"}}),f:p.o(y),g:p.o((e=>l("close"))),h:p.p({show:e.show,showClose:!0,round:"10",backgroundColor:"#eee"})})}},g=p._export_sfc(u,[["__scopeId","data-v-84c38b2e"]]);wx.createComponent(g);
"use strict";var e=Object.defineProperty,o=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(o,t,a)=>t in o?e(o,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[t]=a;const d=require("../../../../common/vendor.js"),p=require("../../sheep/api/trade/order.js"),i=require("../../sheep/api/product/history.js");if(!Array){(d.resolveComponent("uni-load-more")+d.resolveComponent("su-popup"))()}Math||(l+u+(()=>"../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js")+(()=>"../../sheep/ui/su-popup/su-popup.js"))();const l=()=>"./goods.js",u=()=>"./order.js",c={__name:"select-popup",props:{mode:{type:String,default:"goods"},show:{type:Boolean,default:!1}},emits:["select","close"],setup(e,{emit:l}){const u=l,c=e;d.watch((()=>c.mode),(()=>{g.pagination.data=[],c.mode&&m(g.pagination.page)}));const g=d.reactive({loadStatus:"",pagination:{data:[],current_page:1,total:1,last_page:1}});function m(e,l=5){return u=this,m=null,y=function*(){g.loadStatus="loading";const u="goods"==c.mode?yield i.SpuHistoryApi.getBrowseHistoryPage({page:e,list_rows:l}):yield p.OrderApi.getOrderPage({page:e,list_rows:l}),m=d.lodash.concat(g.pagination.data,u.data.list);var y;g.pagination=(y=((e,o)=>{for(var t in o||(o={}))r.call(o,t)&&s(e,t,o[t]);if(a)for(var t of a(o))n.call(o,t)&&s(e,t,o[t]);return e})({},u.data),o(y,t({data:m}))),g.pagination.current_page<g.pagination.last_page?g.loadStatus="more":g.loadStatus="noMore"},new Promise(((e,o)=>{var t=e=>{try{r(y.next(e))}catch(t){o(t)}},a=e=>{try{r(y.throw(e))}catch(t){o(t)}},r=o=>o.done?e(o.value):Promise.resolve(o.value).then(t,a);r((y=y.apply(u,m)).next())}));var u,m,y}function y(){"noMore"!==g.loadStatus&&m(g.pagination.current_page+1)}return(o,t)=>({a:d.t("goods"==e.mode?"我的浏览":"我的订单"),b:d.f(g.pagination.data,((o,t,a)=>d.e("goods"==e.mode?{a:"2d74deb1-1-"+a+",2d74deb1-0",b:d.p({goodsData:o})}:{},"order"==e.mode?{c:"2d74deb1-2-"+a+",2d74deb1-0",d:d.p({orderData:o})}:{},{e:o.id,f:d.o((t=>u("select",{type:e.mode,data:o})),o.id)}))),c:"goods"==e.mode,d:"order"==e.mode,e:d.p({status:g.loadStatus,"content-text":{contentdown:"上拉加载更多"}}),f:d.o(y),g:d.o((e=>u("close"))),h:d.p({show:e.show,showClose:!0,round:"10",backgroundColor:"#eee"})})}},g=d._export_sfc(c,[["__scopeId","data-v-2d74deb1"]]);wx.createComponent(g);

View File

@ -2,7 +2,7 @@
"component": true,
"usingComponents": {
"uni-load-more": "../../../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more",
"su-popup": "../../../../sheep/ui/su-popup/su-popup",
"su-popup": "../../sheep/ui/su-popup/su-popup",
"goods-item": "./goods",
"order-item": "./order"
}

View File

@ -1 +1 @@
<su-popup wx:if="{{h}}" class="data-v-84c38b2e" u-s="{{['d']}}" bindclose="{{g}}" u-i="84c38b2e-0" bind:__l="__l" u-p="{{h}}"><view class="select-popup data-v-84c38b2e"><view class="title data-v-84c38b2e"><label class="data-v-84c38b2e">{{a}}</label></view><scroll-view class="scroll-box data-v-84c38b2e" scroll-y="true" scroll-with-animation="{{true}}" show-scrollbar="{{false}}" bindscrolltolower="{{f}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="e" class="item data-v-84c38b2e" bindtap="{{item.f}}"><block wx:if="{{c}}"><goods-item wx:if="{{item.b}}" class="data-v-84c38b2e" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/></block><block wx:if="{{d}}"><order-item wx:if="{{item.d}}" class="data-v-84c38b2e" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"/></block></view><uni-load-more wx:if="{{e}}" class="data-v-84c38b2e" u-i="84c38b2e-3,84c38b2e-0" bind:__l="__l" u-p="{{e}}"/></scroll-view></view></su-popup>
<su-popup wx:if="{{h}}" class="data-v-2d74deb1" u-s="{{['d']}}" bindclose="{{g}}" u-i="2d74deb1-0" bind:__l="__l" u-p="{{h}}"><view class="select-popup data-v-2d74deb1"><view class="title data-v-2d74deb1"><label class="data-v-2d74deb1">{{a}}</label></view><scroll-view class="scroll-box data-v-2d74deb1" scroll-y="true" scroll-with-animation="{{true}}" show-scrollbar="{{false}}" bindscrolltolower="{{f}}"><view wx:for="{{b}}" wx:for-item="item" wx:key="e" class="item data-v-2d74deb1" bindtap="{{item.f}}"><block wx:if="{{c}}"><goods-item wx:if="{{item.b}}" class="data-v-2d74deb1" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/></block><block wx:if="{{d}}"><order-item wx:if="{{item.d}}" class="data-v-2d74deb1" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"/></block></view><uni-load-more wx:if="{{e}}" class="data-v-2d74deb1" u-i="2d74deb1-3,2d74deb1-0" bind:__l="__l" u-p="{{e}}"/></scroll-view></view></su-popup>

View File

@ -1 +1 @@
.select-popup.data-v-84c38b2e{max-height:600rpx}.select-popup .title.data-v-84c38b2e{height:100rpx;padding:0 26rpx;line-height:100rpx;background:#fff;border-radius:20rpx 20rpx 0 0}.select-popup .title span.data-v-84c38b2e{position:relative;font-size:32rpx}.select-popup .title span.data-v-84c38b2e:after{position:absolute;bottom:-15px;left:0;z-index:1;display:block;width:100%;height:2px;pointer-events:none;content:"";background:var(--ui-BG-Main)}.select-popup .scroll-box.data-v-84c38b2e{height:500rpx}.select-popup .item.data-v-84c38b2e{margin:26rpx 26rpx 0;background:#fff;border-radius:20rpx}.select-popup .item.data-v-84c38b2e .image{width:140rpx;height:140rpx}
.select-popup.data-v-2d74deb1{max-height:600rpx}.select-popup .title.data-v-2d74deb1{height:100rpx;padding:0 26rpx;line-height:100rpx;background:#fff;border-radius:20rpx 20rpx 0 0}.select-popup .title span.data-v-2d74deb1{position:relative;font-size:32rpx}.select-popup .title span.data-v-2d74deb1:after{position:absolute;bottom:-15px;left:0;z-index:1;display:block;width:100%;height:2px;pointer-events:none;content:"";background:var(--ui-BG-Main)}.select-popup .scroll-box.data-v-2d74deb1{height:500rpx}.select-popup .item.data-v-2d74deb1{margin:26rpx 26rpx 0;background:#fff;border-radius:20rpx}.select-popup .item.data-v-2d74deb1 .image{width:140rpx;height:140rpx}

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),o=require("../util/emoji.js"),t=require("../../../../sheep/index.js");if(!Array){(e.resolveComponent("s-uploader")+e.resolveComponent("su-popup"))()}Math||((()=>"../../../../sheep/components/s-uploader/s-uploader.js")+(()=>"../../../../sheep/ui/su-popup/su-popup.js"))();const s={__name:"toolsPopup",props:{toolsMode:{type:String,default:""},showTools:{type:Boolean,default:()=>!1}},emits:["onEmoji","imageSelect","onShowSelect","close"],setup(s,{emit:i}){const p=i;function n(){p("close")}function a(e){p("onShowSelect",e)}return(i,r)=>e.e({a:"emoji"===s.toolsMode},"emoji"===s.toolsMode?{b:e.f(e.unref(o.emojiPage),((o,s,i)=>({a:e.f(o,((o,s,i)=>({a:o,b:e.unref(t.sheep).$url.cdn(`/static/img/chat/emoji/${o.file}`),c:e.o((e=>function(e){p("onEmoji",e)}(o)),o)}))),b:o})))}:{c:e.unref(t.sheep).$url.static("/static/img/shop/chat/image.png"),d:e.o((e=>{p("imageSelect",{type:"image",data:e})})),e:e.p({"file-mediatype":"image",imageStyles:{width:50,height:50,border:!1}}),f:e.unref(t.sheep).$url.static("/static/img/shop/chat/goods.png"),g:e.o((e=>a("goods"))),h:e.unref(t.sheep).$url.static("/static/img/shop/chat/order.png"),i:e.o((e=>a("order")))},{j:e.o(n),k:e.p({show:s.showTools})})}},i=e._export_sfc(s,[["__scopeId","data-v-d4350ff8"]]);wx.createComponent(i);
"use strict";const e=require("../../../../common/vendor.js"),o=require("../util/emoji.js"),t=require("../../sheep/index.js");if(!Array){(e.resolveComponent("s-uploader")+e.resolveComponent("su-popup"))()}Math||((()=>"../../sheep/components/s-uploader/s-uploader.js")+(()=>"../../sheep/ui/su-popup/su-popup.js"))();const s={__name:"toolsPopup",props:{toolsMode:{type:String,default:""},showTools:{type:Boolean,default:()=>!1}},emits:["onEmoji","imageSelect","onShowSelect","close"],setup(s,{emit:i}){const p=i;function n(){p("close")}function a(e){p("onShowSelect",e)}return(i,r)=>e.e({a:"emoji"===s.toolsMode},"emoji"===s.toolsMode?{b:e.f(e.unref(o.emojiPage),((o,s,i)=>({a:e.f(o,((o,s,i)=>({a:o,b:e.unref(t.sheep).$url.cdn(`/static/img/chat/emoji/${o.file}`),c:e.o((e=>function(e){p("onEmoji",e)}(o)),o)}))),b:o})))}:{c:e.unref(t.sheep).$url.static("/static/img/shop/chat/image.png"),d:e.o((e=>{p("imageSelect",{type:"image",data:e})})),e:e.p({"file-mediatype":"image",imageStyles:{width:50,height:50,border:!1}}),f:e.unref(t.sheep).$url.static("/static/img/shop/chat/goods.png"),g:e.o((e=>a("goods"))),h:e.unref(t.sheep).$url.static("/static/img/shop/chat/order.png"),i:e.o((e=>a("order")))},{j:e.o(n),k:e.p({show:s.showTools})})}},i=e._export_sfc(s,[["__scopeId","data-v-1580d4e9"]]);wx.createComponent(i);

View File

@ -1,7 +1,7 @@
{
"component": true,
"usingComponents": {
"s-uploader": "../../../../sheep/components/s-uploader/s-uploader",
"su-popup": "../../../../sheep/ui/su-popup/su-popup"
"s-uploader": "../../sheep/components/s-uploader/s-uploader",
"su-popup": "../../sheep/ui/su-popup/su-popup"
}
}

View File

@ -1 +1 @@
<su-popup wx:if="{{k}}" class="data-v-d4350ff8" u-s="{{['d']}}" bindclose="{{j}}" u-i="d4350ff8-0" bind:__l="__l" u-p="{{k}}"><view class="ss-modal-box ss-flex-col data-v-d4350ff8"><slot></slot><view class="content ss-flex ss-flex-1 data-v-d4350ff8"><block wx:if="{{a}}"><swiper class="emoji-swiper data-v-d4350ff8" indicator-dots="{{true}}" circular indicator-active-color="#7063D2" indicator-color="rgba(235, 231, 255, 1)" autoplay="{{false}}" interval="{{3000}}" duration="{{1000}}"><swiper-item wx:for="{{b}}" wx:for-item="emoji" wx:key="b" class="data-v-d4350ff8"><view class="ss-flex ss-flex-wrap data-v-d4350ff8"><image wx:for="{{emoji.a}}" wx:for-item="item" wx:key="a" class="emoji-img data-v-d4350ff8" src="{{item.b}}" bindtap="{{item.c}}"></image></view></swiper-item></swiper></block><block wx:else><view class="image data-v-d4350ff8"><s-uploader wx:if="{{e}}" class="data-v-d4350ff8" u-s="{{['d']}}" bindselect="{{d}}" u-i="d4350ff8-1,d4350ff8-0" bind:__l="__l" u-p="{{e}}"><image class="icon data-v-d4350ff8" src="{{c}}" mode="aspectFill"></image></s-uploader><view class="data-v-d4350ff8">图片</view></view><view class="goods data-v-d4350ff8" bindtap="{{g}}"><image class="icon data-v-d4350ff8" src="{{f}}" mode="aspectFill"></image><view class="data-v-d4350ff8">商品</view></view><view class="order data-v-d4350ff8" bindtap="{{i}}"><image class="icon data-v-d4350ff8" src="{{h}}" mode="aspectFill"></image><view class="data-v-d4350ff8">订单</view></view></block></view></view></su-popup>
<su-popup wx:if="{{k}}" class="data-v-1580d4e9" u-s="{{['d']}}" bindclose="{{j}}" u-i="1580d4e9-0" bind:__l="__l" u-p="{{k}}"><view class="ss-modal-box ss-flex-col data-v-1580d4e9"><slot></slot><view class="content ss-flex ss-flex-1 data-v-1580d4e9"><block wx:if="{{a}}"><swiper class="emoji-swiper data-v-1580d4e9" indicator-dots="{{true}}" circular indicator-active-color="#7063D2" indicator-color="rgba(235, 231, 255, 1)" autoplay="{{false}}" interval="{{3000}}" duration="{{1000}}"><swiper-item wx:for="{{b}}" wx:for-item="emoji" wx:key="b" class="data-v-1580d4e9"><view class="ss-flex ss-flex-wrap data-v-1580d4e9"><image wx:for="{{emoji.a}}" wx:for-item="item" wx:key="a" class="emoji-img data-v-1580d4e9" src="{{item.b}}" bindtap="{{item.c}}"></image></view></swiper-item></swiper></block><block wx:else><view class="image data-v-1580d4e9"><s-uploader wx:if="{{e}}" class="data-v-1580d4e9" u-s="{{['d']}}" bindselect="{{d}}" u-i="1580d4e9-1,1580d4e9-0" bind:__l="__l" u-p="{{e}}"><image class="icon data-v-1580d4e9" src="{{c}}" mode="aspectFill"></image></s-uploader><view class="data-v-1580d4e9">图片</view></view><view class="goods data-v-1580d4e9" bindtap="{{g}}"><image class="icon data-v-1580d4e9" src="{{f}}" mode="aspectFill"></image><view class="data-v-1580d4e9">商品</view></view><view class="order data-v-1580d4e9" bindtap="{{i}}"><image class="icon data-v-1580d4e9" src="{{h}}" mode="aspectFill"></image><view class="data-v-1580d4e9">订单</view></view></block></view></view></su-popup>

View File

@ -1 +1 @@
.content.data-v-d4350ff8{width:100%;align-content:space-around;border-top:1px solid #dfdfdf;padding:20rpx 0 0}.content .emoji-swiper.data-v-d4350ff8{width:100%;height:280rpx;padding:0 20rpx}.content .emoji-swiper .emoji-img.data-v-d4350ff8{width:50rpx;height:50rpx;display:inline-block;margin:10rpx}.content .image.data-v-d4350ff8,.content .goods.data-v-d4350ff8,.content .order.data-v-d4350ff8{width:33.3%;height:280rpx;text-align:center;font-size:24rpx;color:#333;display:flex;flex-direction:column;align-items:center;justify-content:center}.content .image .icon.data-v-d4350ff8,.content .goods .icon.data-v-d4350ff8,.content .order .icon.data-v-d4350ff8{width:50rpx;height:50rpx;margin-bottom:21rpx}.content.data-v-d4350ff8 .uni-file-picker__container{justify-content:center}.content.data-v-d4350ff8 .file-picker__box{display:none}.content.data-v-d4350ff8 .file-picker__box:last-of-type{display:flex}
.content.data-v-1580d4e9{width:100%;align-content:space-around;border-top:1px solid #dfdfdf;padding:20rpx 0 0}.content .emoji-swiper.data-v-1580d4e9{width:100%;height:280rpx;padding:0 20rpx}.content .emoji-swiper .emoji-img.data-v-1580d4e9{width:50rpx;height:50rpx;display:inline-block;margin:10rpx}.content .image.data-v-1580d4e9,.content .goods.data-v-1580d4e9,.content .order.data-v-1580d4e9{width:33.3%;height:280rpx;text-align:center;font-size:24rpx;color:#333;display:flex;flex-direction:column;align-items:center;justify-content:center}.content .image .icon.data-v-1580d4e9,.content .goods .icon.data-v-1580d4e9,.content .order .icon.data-v-1580d4e9{width:50rpx;height:50rpx;margin-bottom:21rpx}.content.data-v-1580d4e9 .uni-file-picker__container{justify-content:center}.content.data-v-1580d4e9 .file-picker__box{display:none}.content.data-v-1580d4e9 .file-picker__box:last-of-type{display:flex}

View File

@ -1 +1 @@
"use strict";var e=(e,o,s)=>new Promise(((t,n)=>{var l=e=>{try{c(s.next(e))}catch(o){n(o)}},a=e=>{try{c(s.throw(e))}catch(o){n(o)}},c=e=>e.done?t(e.value):Promise.resolve(e.value).then(l,a);c((s=s.apply(e,o)).next())}));const o=require("../../../common/vendor.js"),s=require("../../../sheep/index.js"),t=require("./util/constants.js"),n=require("../../../sheep/api/infra/file.js"),l=require("../../../sheep/api/promotion/kefu.js"),a=require("../../../sheep/hooks/useWebSocket.js");if(!Array){(o.resolveComponent("s-layout")+o.resolveComponent("layout-default-uni"))()}Math||(r+c+i+u+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const c=()=>"./components/messageList.js",i=()=>"./components/toolsPopup.js",r=()=>"./components/messageInput.js",u=()=>"./components/select-popup.js",p={__name:"index",setup(c){const i=s.sheep.$platform.navbar,r=o.reactive({msg:"",scrollInto:"",showTools:!1,toolsMode:"",showSelect:!1,selectMode:""});function u(){return e(this,null,(function*(){if(r.msg)try{const e={contentType:t.KeFuMessageContentTypeEnum.TEXT,content:r.msg};yield l.KeFuApi.sendKefuMessage(e),yield p.value.refreshMessageList(),r.msg=""}finally{r.showTools=!1}}))}const p=o.ref();function d(){r.showTools=!1,r.toolsMode=""}function h(e){r.msg+=e.name}function m(e){M.value?s.sheep.$helper.toast("您已掉线!请返回重试"):(r.toolsMode&&r.toolsMode!==e||(r.showTools=!r.showTools),r.toolsMode=e,r.showTools||(r.toolsMode=""))}function f(e){r.showTools=!1,r.showSelect=!0,r.selectMode=e}function g(o){return e(this,arguments,(function*({type:e,data:o}){let s;switch(e){case"image":const e=yield n.FileApi.uploadFile(o.tempFiles[0].path);s={contentType:t.KeFuMessageContentTypeEnum.IMAGE,content:e.data};break;case"goods":s={contentType:t.KeFuMessageContentTypeEnum.PRODUCT,content:JSON.stringify(o)};break;case"order":s={contentType:t.KeFuMessageContentTypeEnum.ORDER,content:JSON.stringify(o)}}s&&(yield l.KeFuApi.sendKefuMessage(s),yield p.value.refreshMessageList(),r.showTools=!1,r.showSelect=!1,r.selectMode="")}))}const{options:y}=a.useWebSocket({onConnected:()=>e(this,null,(function*(){})),onMessage:o=>e(this,null,(function*(){const e=o.type;e&&(e!==t.WebSocketMessageTypeConstants.KEFU_MESSAGE_TYPE?t.WebSocketMessageTypeConstants.KEFU_MESSAGE_ADMIN_READ:yield p.value.refreshMessageList(JSON.parse(o.content)))}))}),M=o.toRefs(y).isReconnecting;return(e,s)=>({a:o.unref(i)+"px",b:o.o(m),c:o.o(u),d:o.o((e=>r.msg=e)),e:o.p({modelValue:r.msg}),f:o.sr(p,"2a8bf5bd-2,2a8bf5bd-1",{k:"messageListRef"}),g:o.o(m),h:o.o(u),i:o.o((e=>r.msg=e)),j:o.p({modelValue:r.msg}),k:o.o(d),l:o.o(h),m:o.o(g),n:o.o(f),o:o.p({"show-tools":r.showTools,"tools-mode":r.toolsMode}),p:o.o(g),q:o.o((e=>r.showSelect=!1)),r:o.p({mode:r.selectMode,show:r.showSelect}),s:o.p({title:o.unref(M)?"会话重连中":"连接客服成功",navbar:"inner"})})}},d=o._export_sfc(p,[["__scopeId","data-v-2a8bf5bd"]]);wx.createPage(d);
"use strict";var e=(e,o,s)=>new Promise(((t,n)=>{var l=e=>{try{a(s.next(e))}catch(o){n(o)}},c=e=>{try{a(s.throw(e))}catch(o){n(o)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(l,c);a((s=s.apply(e,o)).next())}));const o=require("../../../common/vendor.js"),s=require("../sheep/index.js"),t=require("./util/constants.js"),n=require("../sheep/api/infra/file.js"),l=require("../sheep/api/promotion/kefu.js"),c=require("../sheep/hooks/useWebSocket.js");if(!Array){(o.resolveComponent("s-layout")+o.resolveComponent("layout-default-uni"))()}Math||(r+a+i+u+(()=>"../sheep/components/s-layout/s-layout.js"))();const a=()=>"./components/messageList.js",i=()=>"./components/toolsPopup.js",r=()=>"./components/messageInput.js",u=()=>"./components/select-popup.js",p={__name:"index",setup(a){const i=s.sheep.$platform.navbar,r=o.reactive({msg:"",scrollInto:"",showTools:!1,toolsMode:"",showSelect:!1,selectMode:""});function u(){return e(this,null,(function*(){if(r.msg)try{const e={contentType:t.KeFuMessageContentTypeEnum.TEXT,content:r.msg};yield l.KeFuApi.sendKefuMessage(e),yield p.value.refreshMessageList(),r.msg=""}finally{r.showTools=!1}}))}const p=o.ref();function h(){r.showTools=!1,r.toolsMode=""}function m(e){r.msg+=e.name}function d(e){M.value?s.sheep.$helper.toast("您已掉线!请返回重试"):(r.toolsMode&&r.toolsMode!==e||(r.showTools=!r.showTools),r.toolsMode=e,r.showTools||(r.toolsMode=""))}function f(e){r.showTools=!1,r.showSelect=!0,r.selectMode=e}function g(o){return e(this,arguments,(function*({type:e,data:o}){let s;switch(e){case"image":const e=yield n.FileApi.uploadFile(o.tempFiles[0].path);s={contentType:t.KeFuMessageContentTypeEnum.IMAGE,content:e.data};break;case"goods":s={contentType:t.KeFuMessageContentTypeEnum.PRODUCT,content:JSON.stringify(o)};break;case"order":s={contentType:t.KeFuMessageContentTypeEnum.ORDER,content:JSON.stringify(o)}}s&&(yield l.KeFuApi.sendKefuMessage(s),yield p.value.refreshMessageList(),r.showTools=!1,r.showSelect=!1,r.selectMode="")}))}const{options:y}=c.useWebSocket({onConnected:()=>e(this,null,(function*(){})),onMessage:o=>e(this,null,(function*(){const e=o.type;e&&(e!==t.WebSocketMessageTypeConstants.KEFU_MESSAGE_TYPE?t.WebSocketMessageTypeConstants.KEFU_MESSAGE_ADMIN_READ:yield p.value.refreshMessageList(JSON.parse(o.content)))}))}),M=o.toRefs(y).isReconnecting;return(e,s)=>({a:o.unref(i)+"px",b:o.o(d),c:o.o(u),d:o.o((e=>r.msg=e)),e:o.p({modelValue:r.msg}),f:o.sr(p,"200166cc-2,200166cc-1",{k:"messageListRef"}),g:o.o(d),h:o.o(u),i:o.o((e=>r.msg=e)),j:o.p({modelValue:r.msg}),k:o.o(h),l:o.o(m),m:o.o(g),n:o.o(f),o:o.p({"show-tools":r.showTools,"tools-mode":r.toolsMode}),p:o.o(g),q:o.o((e=>r.showSelect=!1)),r:o.p({mode:r.selectMode,show:r.showSelect}),s:o.p({title:o.unref(M)?"会话重连中":"连接客服成功",navbar:"inner"})})}},h=o._export_sfc(p,[["__scopeId","data-v-200166cc"]]);wx.createPage(h);

View File

@ -1,7 +1,7 @@
{
"navigationBarTitleText": "客服",
"usingComponents": {
"s-layout": "../../../sheep/components/s-layout/s-layout",
"s-layout": "../sheep/components/s-layout/s-layout",
"message-list": "./components/messageList",
"tools-popup": "./components/toolsPopup",
"message-input": "./components/messageInput",

View File

@ -1 +1 @@
<layout-default-uni class="data-v-2a8bf5bd" u-s="{{['d']}}" u-i="2a8bf5bd-0" bind:__l="__l"><s-layout wx:if="{{s}}" u-s="{{['d']}}" class="chat-wrap data-v-2a8bf5bd" u-i="2a8bf5bd-1,2a8bf5bd-0" bind:__l="__l" u-p="{{s}}"><view class="page-bg data-v-2a8bf5bd" style="{{'height:' + a}}"></view><message-list class="r data-v-2a8bf5bd" u-s="{{['bottom']}}" u-r="messageListRef" u-i="2a8bf5bd-2,2a8bf5bd-1" bind:__l="__l"><message-input class="data-v-2a8bf5bd" bindonTools="{{b}}" bindsendMessage="{{c}}" u-i="2a8bf5bd-3,2a8bf5bd-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}" slot="bottom"></message-input></message-list><tools-popup wx:if="{{o}}" class="data-v-2a8bf5bd" u-s="{{['d']}}" bindclose="{{k}}" bindonEmoji="{{l}}" bindimageSelect="{{m}}" bindonShowSelect="{{n}}" u-i="2a8bf5bd-4,2a8bf5bd-1" bind:__l="__l" u-p="{{o}}"><message-input wx:if="{{j}}" class="data-v-2a8bf5bd" bindonTools="{{g}}" bindsendMessage="{{h}}" u-i="2a8bf5bd-5,2a8bf5bd-4" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></message-input></tools-popup><select-popup wx:if="{{r}}" class="data-v-2a8bf5bd" bindselect="{{p}}" bindclose="{{q}}" u-i="2a8bf5bd-6,2a8bf5bd-1" bind:__l="__l" u-p="{{r}}"/></s-layout></layout-default-uni>
<layout-default-uni class="data-v-200166cc" u-s="{{['d']}}" u-i="200166cc-0" bind:__l="__l"><s-layout wx:if="{{s}}" u-s="{{['d']}}" class="chat-wrap data-v-200166cc" u-i="200166cc-1,200166cc-0" bind:__l="__l" u-p="{{s}}"><view class="page-bg data-v-200166cc" style="{{'height:' + a}}"></view><message-list class="r data-v-200166cc" u-s="{{['bottom']}}" u-r="messageListRef" u-i="200166cc-2,200166cc-1" bind:__l="__l"><message-input class="data-v-200166cc" bindonTools="{{b}}" bindsendMessage="{{c}}" u-i="200166cc-3,200166cc-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}" slot="bottom"></message-input></message-list><tools-popup wx:if="{{o}}" class="data-v-200166cc" u-s="{{['d']}}" bindclose="{{k}}" bindonEmoji="{{l}}" bindimageSelect="{{m}}" bindonShowSelect="{{n}}" u-i="200166cc-4,200166cc-1" bind:__l="__l" u-p="{{o}}"><message-input wx:if="{{j}}" class="data-v-200166cc" bindonTools="{{g}}" bindsendMessage="{{h}}" u-i="200166cc-5,200166cc-4" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"></message-input></tools-popup><select-popup wx:if="{{r}}" class="data-v-200166cc" bindselect="{{p}}" bindclose="{{q}}" u-i="200166cc-6,200166cc-1" bind:__l="__l" u-p="{{r}}"/></s-layout></layout-default-uni>

View File

@ -1 +1 @@
.chat-wrap .page-bg.data-v-2a8bf5bd{position:absolute;top:0;left:0;z-index:1;width:100%;background-color:var(--ui-BG-Main)}.chat-wrap .status.data-v-2a8bf5bd{position:relative;z-index:3;box-sizing:border-box;display:flex;align-items:center;height:70rpx;padding:0 30rpx;font-size:30rpx;font-weight:400;color:var(--ui-BG-Main);background:var(--ui-BG-Main-opacity-1)}
.chat-wrap .page-bg.data-v-200166cc{position:absolute;top:0;left:0;z-index:1;width:100%;background-color:var(--ui-BG-Main)}.chat-wrap .status.data-v-200166cc{position:relative;z-index:3;box-sizing:border-box;display:flex;align-items:center;height:70rpx;padding:0 30rpx;font-size:30rpx;font-weight:400;color:var(--ui-BG-Main);background:var(--ui-BG-Main-opacity-1)}

View File

@ -1 +1 @@
"use strict";var e=(e,t,n)=>new Promise(((r,a)=>{var o=e=>{try{s(n.next(e))}catch(t){a(t)}},i=e=>{try{s(n.throw(e))}catch(t){a(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);s((n=n.apply(e,t)).next())}));const t=require("../../../common/vendor.js"),n=require("../../../sheep/index.js"),r=require("../../../sheep/api/trade/brokerage.js"),a=require("../../../sheep/hooks/useGoods.js");if(!Array){(t.resolveComponent("emptyPage")+t.resolveComponent("s-layout")+t.resolveComponent("layout-default-uni"))()}Math;const o={__name:"commission-ranking",setup(o){const i=["周排行","月排行"],s=t.reactive({currentTab:0,position:0,rankList:[]});function c(){return e(this,null,(function*(){const{code:e,data:t}=yield r.BrokerageApi.getBrokerageUserChildSummaryPageByPrice({pageNo:1,pageSize:10,"times[0]":s.times[0],"times[1]":s.times[1]});0===e&&(s.rankList=t.list)}))}function u(){return e(this,null,(function*(){const{code:e,data:t}=yield r.BrokerageApi.getRankByPrice({times:s.times});0===e&&(s.position=t)}))}function l(e){return n.sheep.$helper.timeFormat(e,"yyyy-mm-dd hh:MM:ss")}function g(){let e;e=0===s.currentTab?function(){const e=new Date,t=e.getDay();return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-t,0,0,0),new Date(e.getFullYear(),e.getMonth(),e.getDate()+(6-t),23,59,59)]}():function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=new Date(t,n,1,0,0,0),a=new Date(t,n+1,1),o=new Date(a.getTime()-1);return[r,o]}(),s.times=[l(e[0]),l(e[1])]}return t.onLoad((function(){g(),c(),u()})),(n,r)=>t.e({a:s.position},s.position?{b:t.t(s.position)}:{},{c:t.f(i,((n,r,a)=>({a:t.t(n),b:t.n(s.currentTab===r?"font-color":""),c:r,d:t.o((t=>function(t){return e(this,null,(function*(){s.currentTab=t,s.rankList=[],g(),c(),u()}))}(r)),r)}))),d:t.f(s.rankList,((e,n,r)=>t.e({a:n<=2},n<=2?{b:"/static/images/medal0"+(n+1)+".png"}:{c:t.t(n+1)},{d:e.avatar,e:t.t(e.nickname),f:t.t(t.unref(a.fen2yuan)(e.brokeragePrice)),g:n}))),e:0===s.rankList.length&&(1!==s.page||0===s.active)},0!==s.rankList.length||1===s.page&&0!==s.active?{}:{f:t.p({title:"暂无排行~"})},{g:t.p({title:"佣金排行榜"})})}},i=t._export_sfc(o,[["__scopeId","data-v-4f1f246d"]]);wx.createPage(i);
"use strict";var e=(e,t,n)=>new Promise(((r,a)=>{var o=e=>{try{s(n.next(e))}catch(t){a(t)}},i=e=>{try{s(n.throw(e))}catch(t){a(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,i);s((n=n.apply(e,t)).next())}));const t=require("../../../common/vendor.js"),n=require("../sheep/index.js"),r=require("../sheep/api/trade/brokerage.js"),a=require("../sheep/hooks/useGoods.js");if(!Array){(t.resolveComponent("emptyPage")+t.resolveComponent("s-layout")+t.resolveComponent("layout-default-uni"))()}Math;const o={__name:"commission-ranking",setup(o){const i=["周排行","月排行"],s=t.reactive({currentTab:0,position:0,rankList:[]});function c(){return e(this,null,(function*(){const{code:e,data:t}=yield r.BrokerageApi.getBrokerageUserChildSummaryPageByPrice({pageNo:1,pageSize:10,"times[0]":s.times[0],"times[1]":s.times[1]});0===e&&(s.rankList=t.list)}))}function u(){return e(this,null,(function*(){const{code:e,data:t}=yield r.BrokerageApi.getRankByPrice({times:s.times});0===e&&(s.position=t)}))}function l(e){return n.sheep.$helper.timeFormat(e,"yyyy-mm-dd hh:MM:ss")}function g(){let e;e=0===s.currentTab?function(){const e=new Date,t=e.getDay();return[new Date(e.getFullYear(),e.getMonth(),e.getDate()-t,0,0,0),new Date(e.getFullYear(),e.getMonth(),e.getDate()+(6-t),23,59,59)]}():function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=new Date(t,n,1,0,0,0),a=new Date(t,n+1,1),o=new Date(a.getTime()-1);return[r,o]}(),s.times=[l(e[0]),l(e[1])]}return t.onLoad((function(){g(),c(),u()})),(n,r)=>t.e({a:s.position},s.position?{b:t.t(s.position)}:{},{c:t.f(i,((n,r,a)=>({a:t.t(n),b:t.n(s.currentTab===r?"font-color":""),c:r,d:t.o((t=>function(t){return e(this,null,(function*(){s.currentTab=t,s.rankList=[],g(),c(),u()}))}(r)),r)}))),d:t.f(s.rankList,((e,n,r)=>t.e({a:n<=2},n<=2?{b:"/static/images/medal0"+(n+1)+".png"}:{c:t.t(n+1)},{d:e.avatar,e:t.t(e.nickname),f:t.t(t.unref(a.fen2yuan)(e.brokeragePrice)),g:n}))),e:0===s.rankList.length&&(1!==s.page||0===s.active)},0!==s.rankList.length||1===s.page&&0!==s.active?{}:{f:t.p({title:"暂无排行~"})},{g:t.p({title:"佣金排行榜"})})}},i=t._export_sfc(o,[["__scopeId","data-v-205e3ffd"]]);wx.createPage(i);

View File

@ -1,6 +1,6 @@
{
"navigationBarTitleText": "佣金排行榜",
"usingComponents": {
"s-layout": "../../../sheep/components/s-layout/s-layout"
"s-layout": "../sheep/components/s-layout/s-layout"
}
}

View File

@ -1 +1 @@
<layout-default-uni class="data-v-4f1f246d" u-s="{{['d']}}" u-i="4f1f246d-0" bind:__l="__l"><s-layout wx:if="{{g}}" class="data-v-4f1f246d" u-s="{{['d']}}" u-i="4f1f246d-1,4f1f246d-0" bind:__l="__l" u-p="{{g}}"><view class="CommissionRank data-v-4f1f246d"><view class="header data-v-4f1f246d"><view wx:if="{{a}}" class="rank data-v-4f1f246d"> 您目前的排名 <text class="num data-v-4f1f246d">{{b}}</text> 名 </view><view wx:else class="rank data-v-4f1f246d">您目前暂无排名</view></view><view class="wrapper data-v-4f1f246d"><view class="nav acea-row row-around data-v-4f1f246d" style="display:flex;justify-content:space-around"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['item', 'data-v-4f1f246d', item.b]}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="list data-v-4f1f246d"><view wx:for="{{d}}" wx:for-item="item" wx:key="g" class="item acea-row row-between-wrapper data-v-4f1f246d"><view wx:if="{{item.a}}" class="num data-v-4f1f246d"><image class="data-v-4f1f246d" src="{{item.b}}"/></view><view wx:else class="num data-v-4f1f246d">{{item.c}}</view><view class="picTxt acea-row row-between-wrapper data-v-4f1f246d"><view class="pictrue data-v-4f1f246d"><image class="data-v-4f1f246d" src="{{item.d}}"/></view><view class="text line1 data-v-4f1f246d">{{item.e}}</view></view><view class="people font-color data-v-4f1f246d">¥{{item.f}}</view></view></view><view wx:if="{{e}}" class="noCommodity data-v-4f1f246d"><empty-page wx:if="{{f}}" class="data-v-4f1f246d" u-i="4f1f246d-2,4f1f246d-1" bind:__l="__l" u-p="{{f}}"/></view></view></view></s-layout></layout-default-uni>
<layout-default-uni class="data-v-205e3ffd" u-s="{{['d']}}" u-i="205e3ffd-0" bind:__l="__l"><s-layout wx:if="{{g}}" class="data-v-205e3ffd" u-s="{{['d']}}" u-i="205e3ffd-1,205e3ffd-0" bind:__l="__l" u-p="{{g}}"><view class="CommissionRank data-v-205e3ffd"><view class="header data-v-205e3ffd"><view wx:if="{{a}}" class="rank data-v-205e3ffd"> 您目前的排名 <text class="num data-v-205e3ffd">{{b}}</text> 名 </view><view wx:else class="rank data-v-205e3ffd">您目前暂无排名</view></view><view class="wrapper data-v-205e3ffd"><view class="nav acea-row row-around data-v-205e3ffd" style="display:flex;justify-content:space-around"><view wx:for="{{c}}" wx:for-item="item" wx:key="c" class="{{['item', 'data-v-205e3ffd', item.b]}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="list data-v-205e3ffd"><view wx:for="{{d}}" wx:for-item="item" wx:key="g" class="item acea-row row-between-wrapper data-v-205e3ffd"><view wx:if="{{item.a}}" class="num data-v-205e3ffd"><image class="data-v-205e3ffd" src="{{item.b}}"/></view><view wx:else class="num data-v-205e3ffd">{{item.c}}</view><view class="picTxt acea-row row-between-wrapper data-v-205e3ffd"><view class="pictrue data-v-205e3ffd"><image class="data-v-205e3ffd" src="{{item.d}}"/></view><view class="text line1 data-v-205e3ffd">{{item.e}}</view></view><view class="people font-color data-v-205e3ffd">¥{{item.f}}</view></view></view><view wx:if="{{e}}" class="noCommodity data-v-205e3ffd"><empty-page wx:if="{{f}}" class="data-v-205e3ffd" u-i="205e3ffd-2,205e3ffd-1" bind:__l="__l" u-p="{{f}}"/></view></view></view></s-layout></layout-default-uni>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),o=require("../../../../sheep/index.js"),r=require("../../../../sheep/api/trade/brokerage.js"),s=require("../../../../sheep/hooks/useGoods.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const n={__name:"account-info",setup(n){e.computed((()=>o.sheep.$store("user").userInfo));const t=e.reactive({showMoney:!1,summary:{}});return e.onMounted((()=>{return e=this,o=null,s=function*(){const{code:e,data:o}=yield r.BrokerageApi.getBrokerageUserSummary();0===e&&(t.summary=o||{})},new Promise(((r,n)=>{var t=e=>{try{u(s.next(e))}catch(o){n(o)}},a=e=>{try{u(s.throw(e))}catch(o){n(o)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(t,a);u((s=s.apply(e,o)).next())}));var e,o,s})),(r,n)=>({a:e.p({type:t.showMoney?"eye-filled":"eye-slash-filled",color:"#A57A55",size:"20"}),b:e.o((e=>t.showMoney=!t.showMoney)),c:e.o((r=>e.unref(o.sheep).$router.go("/modules/mall/commission/wallet"))),d:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.brokeragePrice||0):"***"),e:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.yesterdayPrice||0):"***"),f:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.withdrawPrice||0):"***")})}},t=e._export_sfc(n,[["__scopeId","data-v-c335eb46"]]);wx.createComponent(t);
"use strict";const e=require("../../../../common/vendor.js"),o=require("../../sheep/index.js"),r=require("../../sheep/api/trade/brokerage.js"),s=require("../../sheep/hooks/useGoods.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const n={__name:"account-info",setup(n){e.computed((()=>o.sheep.$store("user").userInfo));const t=e.reactive({showMoney:!1,summary:{}});return e.onMounted((()=>{return e=this,o=null,s=function*(){const{code:e,data:o}=yield r.BrokerageApi.getBrokerageUserSummary();0===e&&(t.summary=o||{})},new Promise(((r,n)=>{var t=e=>{try{u(s.next(e))}catch(o){n(o)}},a=e=>{try{u(s.throw(e))}catch(o){n(o)}},u=e=>e.done?r(e.value):Promise.resolve(e.value).then(t,a);u((s=s.apply(e,o)).next())}));var e,o,s})),(r,n)=>({a:e.p({type:t.showMoney?"eye-filled":"eye-slash-filled",color:"#A57A55",size:"20"}),b:e.o((e=>t.showMoney=!t.showMoney)),c:e.o((r=>e.unref(o.sheep).$router.go("/modules/mall/commission/wallet"))),d:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.brokeragePrice||0):"***"),e:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.yesterdayPrice||0):"***"),f:e.t(t.showMoney?e.unref(s.fen2yuan)(t.summary.withdrawPrice||0):"***")})}},t=e._export_sfc(n,[["__scopeId","data-v-df360d53"]]);wx.createComponent(t);

View File

@ -1 +1 @@
<view class="account-card data-v-c335eb46"><view class="account-card-box data-v-c335eb46"><view class="ss-flex ss-row-between card-box-header data-v-c335eb46"><view class="ss-flex data-v-c335eb46"><view class="header-title ss-m-r-16 data-v-c335eb46">账户信息</view><button class="ss-reset-button look-btn ss-flex data-v-c335eb46" bindtap="{{b}}"><uni-icons wx:if="{{a}}" class="data-v-c335eb46" u-i="c335eb46-0" bind:__l="__l" u-p="{{a}}"/></button></view><view class="ss-flex data-v-c335eb46" bindtap="{{c}}"><view class="header-title ss-m-r-4 data-v-c335eb46">查看明细</view><text class="cicon-play-arrow data-v-c335eb46"/></view></view><view class="card-content ss-flex data-v-c335eb46"><view class="ss-flex-1 ss-flex-col ss-col-center data-v-c335eb46"><view class="item-title data-v-c335eb46">当前佣金(元)</view><view class="item-detail data-v-c335eb46">{{d}}</view></view><view class="ss-flex-1 ss-flex-col ss-col-center data-v-c335eb46"><view class="item-title data-v-c335eb46">昨天的佣金(元)</view><view class="item-detail data-v-c335eb46">{{e}}</view></view><view class="ss-flex-1 ss-flex-col ss-col-center data-v-c335eb46"><view class="item-title data-v-c335eb46">累计已提(元)</view><view class="item-detail data-v-c335eb46">{{f}}</view></view></view></view></view>
<view class="account-card data-v-df360d53"><view class="account-card-box data-v-df360d53"><view class="ss-flex ss-row-between card-box-header data-v-df360d53"><view class="ss-flex data-v-df360d53"><view class="header-title ss-m-r-16 data-v-df360d53">账户信息</view><button class="ss-reset-button look-btn ss-flex data-v-df360d53" bindtap="{{b}}"><uni-icons wx:if="{{a}}" class="data-v-df360d53" u-i="df360d53-0" bind:__l="__l" u-p="{{a}}"/></button></view><view class="ss-flex data-v-df360d53" bindtap="{{c}}"><view class="header-title ss-m-r-4 data-v-df360d53">查看明细</view><text class="cicon-play-arrow data-v-df360d53"/></view></view><view class="card-content ss-flex data-v-df360d53"><view class="ss-flex-1 ss-flex-col ss-col-center data-v-df360d53"><view class="item-title data-v-df360d53">当前佣金(元)</view><view class="item-detail data-v-df360d53">{{d}}</view></view><view class="ss-flex-1 ss-flex-col ss-col-center data-v-df360d53"><view class="item-title data-v-df360d53">昨天的佣金(元)</view><view class="item-detail data-v-df360d53">{{e}}</view></view><view class="ss-flex-1 ss-flex-col ss-col-center data-v-df360d53"><view class="item-title data-v-df360d53">累计已提(元)</view><view class="item-detail data-v-df360d53">{{f}}</view></view></view></view></view>

View File

@ -1 +1 @@
.account-card.data-v-c335eb46{position:relative;z-index:3;width:694rpx;padding:2rpx;margin:0 auto;background:linear-gradient(180deg,#fff .88%,#fff9ec);border-radius:12rpx}.account-card .account-card-box.data-v-c335eb46{background:#ffefd6}.account-card .account-card-box .card-box-header.data-v-c335eb46{height:72rpx;padding:0 30rpx;box-shadow:0 2px 6px #f2debe}.account-card .account-card-box .card-box-header .header-title.data-v-c335eb46{font-size:24rpx;font-weight:500;line-height:30rpx;color:#a17545}.account-card .account-card-box .card-box-header .cicon-play-arrow.data-v-c335eb46{font-size:24rpx;line-height:30rpx;color:#a17545}.account-card .account-card-box .card-content.data-v-c335eb46{height:190rpx;background:#fdfae9}.account-card .account-card-box .card-content .item-title.data-v-c335eb46{margin-bottom:24rpx;font-size:24rpx;font-weight:500;line-height:30rpx;color:#cba67e}.account-card .account-card-box .card-content .item-detail.data-v-c335eb46{font-family:OPPOSANS;font-size:36rpx;font-weight:700;line-height:30rpx;color:#692e04}
.account-card.data-v-df360d53{position:relative;z-index:3;width:694rpx;padding:2rpx;margin:0 auto;background:linear-gradient(180deg,#fff .88%,#fff9ec);border-radius:12rpx}.account-card .account-card-box.data-v-df360d53{background:#ffefd6}.account-card .account-card-box .card-box-header.data-v-df360d53{height:72rpx;padding:0 30rpx;box-shadow:0 2px 6px #f2debe}.account-card .account-card-box .card-box-header .header-title.data-v-df360d53{font-size:24rpx;font-weight:500;line-height:30rpx;color:#a17545}.account-card .account-card-box .card-box-header .cicon-play-arrow.data-v-df360d53{font-size:24rpx;line-height:30rpx;color:#a17545}.account-card .account-card-box .card-content.data-v-df360d53{height:190rpx;background:#fdfae9}.account-card .account-card-box .card-content .item-title.data-v-df360d53{margin-bottom:24rpx;font-size:24rpx;font-weight:500;line-height:30rpx;color:#cba67e}.account-card .account-card-box .card-content .item-detail.data-v-df360d53{font-family:OPPOSANS;font-size:36rpx;font-weight:700;line-height:30rpx;color:#692e04}

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),t=require("../../../../sheep/index.js");if(!Array){e.resolveComponent("su-popup")()}Math;const a={__name:"account-type-select",props:{modelValue:{type:Object,default(){}},show:{type:Boolean,default:!1},methods:{type:Array,default:[]}},emits:["update:modelValue","change","close"],setup(a,{emit:o}){const l=o,c=e.reactive({currentValue:""}),n=[{title:"钱包余额",value:"1"},{icon:"/static/img/shop/pay/bank.png",title:"银行卡转账",value:"2"},{icon:"/static/img/shop/pay/wechat.png",title:"微信零钱",value:"3"},{icon:"/static/img/shop/pay/alipay.png",title:"支付宝账户",value:"4"}];function u(e){c.currentValue=e.detail.value}const r=()=>{return e=this,a=null,o=function*(){""!==c.currentValue?(l("update:modelValue",{type:c.currentValue}),l("close")):t.sheep.$helper.toast("请选择提现方式")},new Promise(((t,l)=>{var c=e=>{try{u(o.next(e))}catch(t){l(t)}},n=e=>{try{u(o.throw(e))}catch(t){l(t)}},u=e=>e.done?t(e.value):Promise.resolve(e.value).then(c,n);u((o=o.apply(e,a)).next())}));var e,a,o},s=()=>{l("close")};return(o,l)=>({a:e.f(n,((o,l,n)=>({a:e.unref(t.sheep).$url.static(o.icon),b:e.t(o.title),c:o.value,d:o.value===c.currentValue,e:!a.methods.includes(parseInt(o.value)),f:l}))),b:e.o(u),c:e.o(r),d:e.o(s),e:e.p({show:a.show})})}},o=e._export_sfc(a,[["__scopeId","data-v-ddcf2f8c"]]);wx.createComponent(o);
"use strict";const e=require("../../../../common/vendor.js"),t=require("../../sheep/index.js");if(!Array){e.resolveComponent("su-popup")()}Math;const a={__name:"account-type-select",props:{modelValue:{type:Object,default(){}},show:{type:Boolean,default:!1},methods:{type:Array,default:[]}},emits:["update:modelValue","change","close"],setup(a,{emit:o}){const l=o,n=e.reactive({currentValue:""}),u=[{title:"钱包余额",value:"1"},{icon:"/static/img/shop/pay/bank.png",title:"银行卡转账",value:"2"},{icon:"/static/img/shop/pay/wechat.png",title:"微信零钱",value:"3"},{icon:"/static/img/shop/pay/alipay.png",title:"支付宝账户",value:"4"}];function c(e){n.currentValue=e.detail.value}const r=()=>{return e=this,a=null,o=function*(){""!==n.currentValue?(l("update:modelValue",{type:n.currentValue}),l("close")):t.sheep.$helper.toast("请选择提现方式")},new Promise(((t,l)=>{var n=e=>{try{c(o.next(e))}catch(t){l(t)}},u=e=>{try{c(o.throw(e))}catch(t){l(t)}},c=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,u);c((o=o.apply(e,a)).next())}));var e,a,o},s=()=>{l("close")};return(o,l)=>({a:e.f(u,((o,l,u)=>({a:e.unref(t.sheep).$url.static(o.icon),b:e.t(o.title),c:o.value,d:o.value===n.currentValue,e:!a.methods.includes(parseInt(o.value)),f:l}))),b:e.o(c),c:e.o(r),d:e.o(s),e:e.p({show:a.show})})}},o=e._export_sfc(a,[["__scopeId","data-v-7333cf79"]]);wx.createComponent(o);

View File

@ -1,6 +1,6 @@
{
"component": true,
"usingComponents": {
"su-popup": "../../../../sheep/ui/su-popup/su-popup"
"su-popup": "../../sheep/ui/su-popup/su-popup"
}
}

View File

@ -1 +1 @@
<su-popup wx:if="{{e}}" u-s="{{['d']}}" class="ss-checkout-counter-wrap data-v-ddcf2f8c" bindclose="{{d}}" u-i="ddcf2f8c-0" bind:__l="__l" u-p="{{e}}"><view class="ss-modal-box bg-white ss-flex-col data-v-ddcf2f8c"><view class="modal-header ss-flex-col ss-col-left data-v-ddcf2f8c"><text class="modal-title ss-m-b-20 data-v-ddcf2f8c">选择提现方式</text></view><view class="modal-content ss-flex-1 ss-p-b-100 data-v-ddcf2f8c"><radio-group class="data-v-ddcf2f8c" bindchange="{{b}}"><label wx:for="{{a}}" wx:for-item="item" wx:key="f" class="container-list ss-p-l-34 ss-p-r-24 ss-flex ss-col-center ss-row-center data-v-ddcf2f8c"><view class="container-icon ss-flex ss-m-r-20 data-v-ddcf2f8c"><image class="data-v-ddcf2f8c" src="{{item.a}}"/></view><view class="ss-flex-1 data-v-ddcf2f8c">{{item.b}}</view><radio class="data-v-ddcf2f8c" value="{{item.c}}" color="var(--ui-BG-Main)" checked="{{item.d}}" disabled="{{item.e}}"/></label></radio-group></view><view class="modal-footer ss-flex ss-row-center ss-col-center data-v-ddcf2f8c"><button class="ss-reset-button save-btn data-v-ddcf2f8c" bindtap="{{c}}">确定</button></view></view></su-popup>
<su-popup wx:if="{{e}}" u-s="{{['d']}}" class="ss-checkout-counter-wrap data-v-7333cf79" bindclose="{{d}}" u-i="7333cf79-0" bind:__l="__l" u-p="{{e}}"><view class="ss-modal-box bg-white ss-flex-col data-v-7333cf79"><view class="modal-header ss-flex-col ss-col-left data-v-7333cf79"><text class="modal-title ss-m-b-20 data-v-7333cf79">选择提现方式</text></view><view class="modal-content ss-flex-1 ss-p-b-100 data-v-7333cf79"><radio-group class="data-v-7333cf79" bindchange="{{b}}"><label wx:for="{{a}}" wx:for-item="item" wx:key="f" class="container-list ss-p-l-34 ss-p-r-24 ss-flex ss-col-center ss-row-center data-v-7333cf79"><view class="container-icon ss-flex ss-m-r-20 data-v-7333cf79"><image class="data-v-7333cf79" src="{{item.a}}"/></view><view class="ss-flex-1 data-v-7333cf79">{{item.b}}</view><radio class="data-v-7333cf79" value="{{item.c}}" color="var(--ui-BG-Main)" checked="{{item.d}}" disabled="{{item.e}}"/></label></radio-group></view><view class="modal-footer ss-flex ss-row-center ss-col-center data-v-7333cf79"><button class="ss-reset-button save-btn data-v-7333cf79" bindtap="{{c}}">确定</button></view></view></su-popup>

View File

@ -1 +1 @@
.ss-modal-box.data-v-ddcf2f8c{max-height:1000rpx;border-radius:30rpx 30rpx 0 0}.ss-modal-box .modal-header.data-v-ddcf2f8c{position:relative;padding:60rpx 40rpx 40rpx}.ss-modal-box .modal-header .modal-title.data-v-ddcf2f8c{font-size:32rpx;font-weight:700}.ss-modal-box .modal-header .close-icon.data-v-ddcf2f8c{position:absolute;top:10rpx;right:20rpx;font-size:46rpx;opacity:.2}.ss-modal-box .modal-content.data-v-ddcf2f8c{overflow-y:auto}.ss-modal-box .modal-content .container-list.data-v-ddcf2f8c{height:96rpx;font-size:28rpx;font-weight:500;color:#333;border-bottom:2rpx solid rgba(223,223,223,.5)}.ss-modal-box .modal-content .container-list .container-icon.data-v-ddcf2f8c{width:36rpx;height:36rpx}.ss-modal-box .modal-footer.data-v-ddcf2f8c{height:120rpx}.ss-modal-box .modal-footer .save-btn.data-v-ddcf2f8c{width:710rpx;height:80rpx;color:#fff;background:linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient));border-radius:40rpx}image.data-v-ddcf2f8c{width:100%;height:100%}
.ss-modal-box.data-v-7333cf79{max-height:1000rpx;border-radius:30rpx 30rpx 0 0}.ss-modal-box .modal-header.data-v-7333cf79{position:relative;padding:60rpx 40rpx 40rpx}.ss-modal-box .modal-header .modal-title.data-v-7333cf79{font-size:32rpx;font-weight:700}.ss-modal-box .modal-header .close-icon.data-v-7333cf79{position:absolute;top:10rpx;right:20rpx;font-size:46rpx;opacity:.2}.ss-modal-box .modal-content.data-v-7333cf79{overflow-y:auto}.ss-modal-box .modal-content .container-list.data-v-7333cf79{height:96rpx;font-size:28rpx;font-weight:500;color:#333;border-bottom:2rpx solid rgba(223,223,223,.5)}.ss-modal-box .modal-content .container-list .container-icon.data-v-7333cf79{width:36rpx;height:36rpx}.ss-modal-box .modal-footer.data-v-7333cf79{height:120rpx}.ss-modal-box .modal-footer .save-btn.data-v-7333cf79{width:710rpx;height:80rpx;color:#fff;background:linear-gradient(90deg,var(--ui-BG-Main),var(--ui-BG-Main-gradient));border-radius:40rpx}image.data-v-7333cf79{width:100%;height:100%}

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),r=require("../../../../sheep/index.js"),o=require("../../../../sheep/api/trade/brokerage.js");if(!Array){e.resolveComponent("su-popup")()}Math;const s={__name:"commission-auth",setup(s){const t=e.reactive({show:!1});return e.onShow((()=>{return e=this,r=null,s=function*(){const{code:e,data:r}=yield o.BrokerageApi.getBrokerageUser();0!==e||(null==r?void 0:r.brokerageEnabled)||(t.show=!0)},new Promise(((o,t)=>{var n=e=>{try{c(s.next(e))}catch(r){t(r)}},a=e=>{try{c(s.throw(e))}catch(r){t(r)}},c=e=>e.done?o(e.value):Promise.resolve(e.value).then(n,a);c((s=s.apply(e,r)).next())}));var e,r,s})),(o,s)=>({a:e.unref(r.sheep).$url.static("/static/img/shop/commission/forbidden.png"),b:e.o((o=>e.unref(r.sheep).$router.back())),c:e.o((o=>e.unref(r.sheep).$router.back())),d:e.o((e=>t.show=!1)),e:e.p({show:t.show,type:"center",round:"10",isMaskClick:!1,maskBackgroundColor:"rgba(0, 0, 0, 0.7)"})})}},t=e._export_sfc(s,[["__scopeId","data-v-9c38e63b"]]);wx.createComponent(t);
"use strict";const e=require("../../../../common/vendor.js"),r=require("../../sheep/index.js"),o=require("../../sheep/api/trade/brokerage.js");if(!Array){e.resolveComponent("su-popup")()}Math;const s={__name:"commission-auth",setup(s){const t=e.reactive({show:!1});return e.onShow((()=>{return e=this,r=null,s=function*(){const{code:e,data:r}=yield o.BrokerageApi.getBrokerageUser();0!==e||(null==r?void 0:r.brokerageEnabled)||(t.show=!0)},new Promise(((o,t)=>{var n=e=>{try{c(s.next(e))}catch(r){t(r)}},a=e=>{try{c(s.throw(e))}catch(r){t(r)}},c=e=>e.done?o(e.value):Promise.resolve(e.value).then(n,a);c((s=s.apply(e,r)).next())}));var e,r,s})),(o,s)=>({a:e.unref(r.sheep).$url.static("/static/img/shop/commission/forbidden.png"),b:e.o((o=>e.unref(r.sheep).$router.back())),c:e.o((o=>e.unref(r.sheep).$router.back())),d:e.o((e=>t.show=!1)),e:e.p({show:t.show,type:"center",round:"10",isMaskClick:!1,maskBackgroundColor:"rgba(0, 0, 0, 0.7)"})})}},t=e._export_sfc(s,[["__scopeId","data-v-2f0d7fb4"]]);wx.createComponent(t);

View File

@ -1,6 +1,6 @@
{
"component": true,
"usingComponents": {
"su-popup": "../../../../sheep/ui/su-popup/su-popup"
"su-popup": "../../sheep/ui/su-popup/su-popup"
}
}

View File

@ -1 +1 @@
<su-popup wx:if="{{e}}" class="data-v-9c38e63b" u-s="{{['d']}}" bindclose="{{d}}" u-i="9c38e63b-0" bind:__l="__l" u-p="{{e}}"><view class="notice-box data-v-9c38e63b"><view class="img-wrap data-v-9c38e63b"><image class="notice-img data-v-9c38e63b" src="{{a}}" mode="aspectFill"/></view><view class="notice-title data-v-9c38e63b">抱歉!您没有分销权限</view><view class="notice-detail data-v-9c38e63b">该功能暂不可用</view><button class="ss-reset-button notice-btn ui-Shadow-Main ui-BG-Main-Gradient data-v-9c38e63b" bindtap="{{b}}"> 知道了 </button><button class="ss-reset-button back-btn data-v-9c38e63b" bindtap="{{c}}">返回</button></view></su-popup>
<su-popup wx:if="{{e}}" class="data-v-2f0d7fb4" u-s="{{['d']}}" bindclose="{{d}}" u-i="2f0d7fb4-0" bind:__l="__l" u-p="{{e}}"><view class="notice-box data-v-2f0d7fb4"><view class="img-wrap data-v-2f0d7fb4"><image class="notice-img data-v-2f0d7fb4" src="{{a}}" mode="aspectFill"/></view><view class="notice-title data-v-2f0d7fb4">抱歉!您没有分销权限</view><view class="notice-detail data-v-2f0d7fb4">该功能暂不可用</view><button class="ss-reset-button notice-btn ui-Shadow-Main ui-BG-Main-Gradient data-v-2f0d7fb4" bindtap="{{b}}"> 知道了 </button><button class="ss-reset-button back-btn data-v-2f0d7fb4" bindtap="{{c}}">返回</button></view></su-popup>

View File

@ -1 +1 @@
.notice-box.data-v-9c38e63b{display:flex;flex-direction:column;align-items:center;justify-content:center;width:612rpx;min-height:658rpx;padding:30rpx;background:#fff;background-color:#fff;border-radius:20rpx}.notice-box .img-wrap.data-v-9c38e63b{margin-bottom:50rpx}.notice-box .img-wrap .notice-img.data-v-9c38e63b{width:180rpx;height:170rpx}.notice-box .notice-title.data-v-9c38e63b{margin-bottom:28rpx;font-size:35rpx;font-weight:700;color:#333}.notice-box .notice-detail.data-v-9c38e63b{margin-bottom:50rpx;font-size:28rpx;font-weight:400;line-height:36rpx;color:#999}.notice-box .notice-btn.data-v-9c38e63b{width:492rpx;margin-bottom:10rpx;font-size:28rpx;font-weight:500;line-height:70rpx;color:#fff;border-radius:35rpx}.notice-box .back-btn.data-v-9c38e63b{width:492rpx;font-size:28rpx;font-weight:500;line-height:70rpx;color:var(--ui-BG-Main-gradient);background:none}
.notice-box.data-v-2f0d7fb4{display:flex;flex-direction:column;align-items:center;justify-content:center;width:612rpx;min-height:658rpx;padding:30rpx;background:#fff;background-color:#fff;border-radius:20rpx}.notice-box .img-wrap.data-v-2f0d7fb4{margin-bottom:50rpx}.notice-box .img-wrap .notice-img.data-v-2f0d7fb4{width:180rpx;height:170rpx}.notice-box .notice-title.data-v-2f0d7fb4{margin-bottom:28rpx;font-size:35rpx;font-weight:700;color:#333}.notice-box .notice-detail.data-v-2f0d7fb4{margin-bottom:50rpx;font-size:28rpx;font-weight:400;line-height:36rpx;color:#999}.notice-box .notice-btn.data-v-2f0d7fb4{width:492rpx;margin-bottom:10rpx;font-size:28rpx;font-weight:500;line-height:70rpx;color:#fff;border-radius:35rpx}.notice-box .back-btn.data-v-2f0d7fb4{width:492rpx;font-size:28rpx;font-weight:500;line-height:70rpx;color:var(--ui-BG-Main-gradient);background:none}

View File

@ -1 +1 @@
"use strict";const e=require("../../../../common/vendor.js"),s=require("../../../../sheep/index.js"),r={__name:"commission-info",setup(r){e.useCssVars((s=>({"0c89ba0c":e.unref(n)})));const c=e.computed((()=>s.sheep.$store("user").userInfo)),n=s.sheep.$url.css("/static/img/shop/commission/background.png");return e.reactive({showMoney:!1}),(r,n)=>({a:e.unref(s.sheep).$url.cdn(c.value.avatar),b:e.t(c.value.nickname),c:e.s(r.__cssVars())})}},c=e._export_sfc(r,[["__scopeId","data-v-cf1f9f9f"]]);wx.createComponent(c);
"use strict";const e=require("../../../../common/vendor.js"),s=require("../../sheep/index.js"),r={__name:"commission-info",setup(r){e.useCssVars((s=>({"03ee72e1":e.unref(o)})));const n=e.computed((()=>s.sheep.$store("user").userInfo)),o=s.sheep.$url.css("/static/img/shop/commission/background.png");return e.reactive({showMoney:!1}),(r,o)=>({a:e.unref(s.sheep).$url.cdn(n.value.avatar),b:e.t(n.value.nickname),c:e.s(r.__cssVars())})}},n=e._export_sfc(r,[["__scopeId","data-v-efb9da48"]]);wx.createComponent(n);

View File

@ -1 +1 @@
<view class="user-card ss-flex ss-col-bottom data-v-cf1f9f9f" style="{{c}}"><view class="card-top ss-flex ss-row-between data-v-cf1f9f9f"><view class="ss-flex data-v-cf1f9f9f"><view class="head-img-box data-v-cf1f9f9f"><image class="head-img data-v-cf1f9f9f" src="{{a}}" mode="aspectFill"></image></view><view class="ss-flex-col data-v-cf1f9f9f"><view class="user-name data-v-cf1f9f9f">{{b}}</view></view></view></view></view>
<view class="user-card ss-flex ss-col-bottom data-v-efb9da48" style="{{c}}"><view class="card-top ss-flex ss-row-between data-v-efb9da48"><view class="ss-flex data-v-efb9da48"><view class="head-img-box data-v-efb9da48"><image class="head-img data-v-efb9da48" src="{{a}}" mode="aspectFill"></image></view><view class="ss-flex-col data-v-efb9da48"><view class="user-name data-v-efb9da48">{{b}}</view></view></view></view></view>

Some files were not shown because too many files have changed in this diff Show More