first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:27:25 +08:00
commit 85b89ccea7
1694 changed files with 168292 additions and 0 deletions

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/shop/create"],{"171e":function(e,n,t){"use strict";t.r(n);var o=t("2111"),u=t("42ec");for(var i in u)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(i);var r=t("828b"),c=Object(r["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=c.exports},2111:function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var o={"u-Form":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--form/u--form")]).then(t.bind(null,"8b7a"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"1237"))},"u-Input":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--input/u--input")]).then(t.bind(null,"2ee7"))},uCodeInput:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-code-input/u-code-input")]).then(t.bind(null,"bbe7"))},uToast:function(){return t.e("node-modules/uview-ui/components/u-toast/u-toast").then(t.bind(null,"a526"))},uCode:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-code/u-code")]).then(t.bind(null,"0b2d"))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,"e1a8"))},uNumberBox:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-number-box/u-number-box")]).then(t.bind(null,"5ccf"))}},u=function(){var e=this.$createElement;this._self._c},i=[]},"42ec":function(e,n,t){"use strict";t.r(n);var o=t("d3e2"),u=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=u.a},"72c7":function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("4233");o(t("3240"));var u=o(t("171e"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(u.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},d3e2:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;t("599f");var o,u={data:function(){return{form:{nickname:"",username:"",password:"",mobile:"",code:"",invite_code:"",vip:0},rules:{nickname:{type:"string",required:!0,message:"昵称必填项",trigger:["blur","change"]},username:{type:"string",required:!0,message:"用户名必填项",trigger:["blur","change"]},password:{type:"string",required:!0,message:"密码必填项",trigger:["blur","change"]},mobile:{type:"string",required:!0,message:"手机号必填项",trigger:["blur","change"]},code:{type:"string",required:!0,message:"验证码必填项",trigger:["blur","change"]}},code:{tips:"获取验证码",seconds:60}}},onLoad:function(e){o=this,e&&e.invite_code&&(o.form.invite_code=e.invite_code)},onReady:function(){o.$refs.uForm.setRules(o.rules)},methods:{topage:function(n){e.redirectTo({url:n})},codeChange:function(e){o.code.tips=e},getCode:function(){11==o.form.mobile.length?o.$refs.uCode.canGetCode?(e.showLoading({title:"正在获取验证码"}),o.$http.get("/com/sms/sendcode",o.form).then((function(n){n.success&&(e.hideLoading(),e.$u.toast("验证码已发送"),o.$refs.uCode.start())}))):e.$u.toast("倒计时结束后再发送"):e.$u.toast("请输入手机号")},end:function(){e.$u.toast("倒计时结束")},start:function(){e.$u.toast("倒计时开始")},userlogin:function(){this.$refs.uForm.validate().then((function(n){o.$http.get("/shop/admin/shop/create",o.form).then((function(n){n.success&&e.navigateBack()}))})).catch((function(n){e.$u.toast(n[0].message)}))}}};n.default=u}).call(this,t("df3c")["default"])}},[["72c7","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,13 @@
{
"navigationBarTitleText": "投资人添加",
"usingComponents": {
"u--form": "/node-modules/uview-ui/components/u--form/u--form",
"u-form-item": "/node-modules/uview-ui/components/u-form-item/u-form-item",
"u--input": "/node-modules/uview-ui/components/u--input/u--input",
"u-code-input": "/node-modules/uview-ui/components/u-code-input/u-code-input",
"u-toast": "/node-modules/uview-ui/components/u-toast/u-toast",
"u-code": "/node-modules/uview-ui/components/u-code/u-code",
"u-button": "/node-modules/uview-ui/components/u-button/u-button",
"u-number-box": "/node-modules/uview-ui/components/u-number-box/u-number-box"
}
}

View File

@@ -0,0 +1 @@
<view style="padding:30rpx;"><view style="height:50rpx;"></view><u--form class="vue-ref" vue-id="589b1e8c-1" labelPosition="left" model="{{form}}" rules="{{rules}}" errorType="border-bottom" labelWidth="130rpx" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('589b1e8c-2')+','+('589b1e8c-1')}}" label="昵称" prop="nickname" borderBottom="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('589b1e8c-3')+','+('589b1e8c-2')}}" border="none" value="{{form.nickname}}" data-event-opts="{{[['^input',[['__set_model',['$0','nickname','$event',[]],['form']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item vue-id="{{('589b1e8c-4')+','+('589b1e8c-1')}}" label="用户名" prop="username" borderBottom="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('589b1e8c-5')+','+('589b1e8c-4')}}" border="none" value="{{form.username}}" data-event-opts="{{[['^input',[['__set_model',['$0','username','$event',[]],['form']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item vue-id="{{('589b1e8c-6')+','+('589b1e8c-1')}}" label="密码" prop="password" borderBottom="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('589b1e8c-7')+','+('589b1e8c-6')}}" type="password" border="none" value="{{form.password}}" data-event-opts="{{[['^input',[['__set_model',['$0','password','$event',[]],['form']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item vue-id="{{('589b1e8c-8')+','+('589b1e8c-1')}}" label="手机号" prop="mobile" borderBottom="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u--input bind:input="__e" vue-id="{{('589b1e8c-9')+','+('589b1e8c-8')}}" type="mobile" border="none" value="{{form.mobile}}" data-event-opts="{{[['^input',[['__set_model',['$0','mobile','$event',[]],['form']]]]]}}" bind:__l="__l"></u--input></u-form-item><u-form-item vue-id="{{('589b1e8c-10')+','+('589b1e8c-1')}}" label="验证码" prop="code" borderBottom="{{true}}" bind:__l="__l" vue-slots="{{['default','right']}}"><u-code-input bind:input="__e" vue-id="{{('589b1e8c-11')+','+('589b1e8c-10')}}" maxlength="{{4}}" mode="line" value="{{form.code}}" data-event-opts="{{[['^input',[['__set_model',['$0','code','$event',[]],['form']]]]]}}" bind:__l="__l"></u-code-input><view slot="right"><u-toast class="vue-ref" vue-id="{{('589b1e8c-12')+','+('589b1e8c-10')}}" data-ref="uToast" bind:__l="__l"></u-toast><u-code class="vue-ref" vue-id="{{('589b1e8c-13')+','+('589b1e8c-10')}}" seconds="{{code.seconds}}" data-ref="uCode" data-event-opts="{{[['^end',[['end']]],['^start',[['start']]],['^change',[['codeChange']]]]}}" bind:end="__e" bind:start="__e" bind:change="__e" bind:__l="__l"></u-code><u-button vue-id="{{('589b1e8c-14')+','+('589b1e8c-10')}}" type="primary" data-event-opts="{{[['^tap',[['getCode']]]]}}" bind:tap="__e" bind:__l="__l" vue-slots="{{['default']}}">{{code.tips}}</u-button></view></u-form-item><u-form-item vue-id="{{('589b1e8c-15')+','+('589b1e8c-1')}}" label="等级" borderBottom="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u-number-box bind:input="__e" vue-id="{{('589b1e8c-16')+','+('589b1e8c-15')}}" min="{{0}}" max="{{9}}" value="{{form.vip}}" data-event-opts="{{[['^input',[['__set_model',['$0','vip','$event',[]],['form']]]]]}}" bind:__l="__l"></u-number-box></u-form-item></u--form><view style="height:100rpx;"></view><u-button vue-id="589b1e8c-17" type="primary" data-event-opts="{{[['^click',[['userlogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">提交</u-button></view>

View File

@@ -0,0 +1 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/shop/index"],{"1dce":function(e,t,n){"use strict";n.r(t);var o=n("4864"),a=n.n(o);for(var u in o)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(u);t["default"]=a.a},"44a3":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return o}));var o={uButton:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-button/u-button")]).then(n.bind(null,"e1a8"))},uSearch:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,"fae8"))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,"7d1b"))}},a=function(){var e=this.$createElement;this._self._c},u=[]},4864:function(e,t,n){"use strict";(function(e){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{shopItems:[],status:[],type:[],loadStatus:"loadmore",search:{page:1,status:0,mobile:""},page:{current:0,last_page:1}}},onLoad:function(){n=this},onShow:function(){n.shopItems=[],n.getShopItems()},onPullDownRefresh:function(){n.search.page=1,n.shopItems=[],n.getShopItems(),e.stopPullDownRefresh()},onReachBottom:function(){n.pageStatus()&&(n.loadStatus="loading",n.search.page=++n.search.page,n.getShopItems())},methods:{onsearch:function(){n.shopItems=[],n.getShopItems()},pageStatus:function(){return n.loadStatus="loadmore",!(n.search.page>=n.page.last_page)||(n.loadStatus="nomore",!1)},getShopItems:function(){n.$http.get("/shop/admin/shop/items",n.search).then((function(e){var t=e.data;e.success;n.shopItems=n.shopItems.concat(t.data),n.page.last_page=t.last_page,n.pageStatus()}))}}};t.default=o}).call(this,n("df3c")["default"])},b60e:function(e,t,n){"use strict";n.r(t);var o=n("44a3"),a=n("1dce");for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);var s=n("828b"),r=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},cd4b:function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("4233");o(n("3240"));var a=o(n("b60e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["cd4b","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "投资人管理",
"enablePullDownRefresh": true,
"usingComponents": {
"u-button": "/node-modules/uview-ui/components/u-button/u-button",
"u-search": "/node-modules/uview-ui/components/u-search/u-search",
"u-loadmore": "/node-modules/uview-ui/components/u-loadmore/u-loadmore"
}
}

View File

@@ -0,0 +1 @@
<view class="xkl-com-bg"><view style="height:20rpx;"></view><navigator url="/pages/admin/shop/create"><u-button vue-id="6b838014-1" type="primary" bind:__l="__l" vue-slots="{{['default']}}">添加</u-button></navigator><view style="height:20rpx;"></view><u-search vue-id="6b838014-2" placeholder="请输入手机号" shape="square" value="{{search.mobile}}" data-event-opts="{{[['^search',[['onsearch']]],['^input',[['__set_model',['$0','mobile','$event',[]],['search']]]]]}}" bind:search="__e" bind:input="__e" bind:__l="__l"></u-search><view style="height:20rpx;"></view><view><block wx:for="{{shopItems}}" wx:for-item="item" wx:for-index="index" wx:key="index"><navigator style="background-color:#ffffff;color:#666666;padding:20rpx;font-size:28rpx;margin-bottom:20rpx;border-radius:12rpx;" url="{{'/pages/team/detail?team_shop_id='+item.id}}"><view class="u-flex"><view><view>{{"用户名:"+item.username}}</view><view style="height:10rpx;"></view><view>{{"手机号:"+item.mobile}}</view><view style="height:10rpx;"></view><view>{{"余额:"+item.money}}</view></view><view style="width:100rpx;"></view><view><view>{{"等级v"+item.vip}}</view><view style="height:10rpx;"></view><view>{{"充电桩:"+item.device_num}}</view><view style="height:10rpx;"></view><view>{{"已安装:"+item.install_num}}</view></view></view><view style="height:20rpx;"></view><view>{{"注册时间:"+item.created_at}}</view></navigator></block></view><u-loadmore vue-id="6b838014-3" status="{{loadStatus}}" bind:__l="__l"></u-loadmore><view style="height:100rpx;"></view></view>