| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532 |
- <?php
- use common\helpers\ComponentHelper;
- ComponentHelper::loadComponentView('com-rich-text');
- ComponentHelper::loadComponentView('com-dialog-select');
- ComponentHelper::loadComponentView('com-qq-map');
- ComponentHelper::loadComponentView('com-dialog-screen-select');
- ?>
- <div id="app" v-cloak>
- <el-card v-loading="loading" style="border:0" shadow="never" body-style="background-color: #f3f3f3;padding: 0 0;">
- <el-tabs v-model="activeName" @tab-click="handleClick">
- <el-tab-pane label="基本信息" name="basic_setting">
- <?php ComponentHelper::loadComponentView('detail-basic', __DIR__ . '/');
- ?>
- </el-tab-pane>
- </el-tabs>
- </el-card>
- </div>
- <script>
- const app = new Vue({
- el: '#app',
- data() {
- return {
- store_id: 0,
- loading: false,
- activeName: 'basic_setting',
- basicForm: {
- goods_auth: 0,
- service_fee: 0,
- settle_type: 0,
- platform_ratio: 0,
- risk_management: 0,
- risk_management_ratio: 0,
- settle_scene: 1,
- store_distribution_status: 0,
- store_agent_status: 0,
- store_area_status: 0,
- store_boss_status: 0,
- payment_settlement_type: 0,
- address: '',
- province_id: '',
- city_id: '',
- district_id: '',
- street_id: '',
- community_id: ''
- },
- statisticsData: { // 基础信息数据统计对象
- 'total_money': '累计收入',
- 'balance': '当前余额',
- 'unsettled_amount': '累计提现',
- 'user_nums': '小店用户数',
- 'good_counts': '商品数',
- 'total_order_number': '订单支付数',
- },
- };
- },
- mounted: function() {
- this.store_id = getQuery('store_id');
- this.loadData();
- },
- computed: {
- show_clear_search_btn: function() {
- return !isEmpty(this.search_data.cats) || !isEmpty(this.search_data.start) ||
- !isEmpty(this.search_data.end) || !isEmpty(this.search_data.goods_id) ||
- !isEmpty(this.search_data.goods_name);
- }
- },
- methods: {
- changeTime(e) {
- // console.log(e)
- this.search_data.start = e[0]
- this.search_data.end = e[1]
- },
- clearSearch() {
- this.search_data.cats = [];
- this.search_data.start = null;
- this.search_data.end = null;
- this.search_data.goods_id = null;
- this.search_data.goods_name = null;
- this.datetime = [];
- this.getList();
- },
- loadData() {
- let self = this;
- this.loading = true;
- request({
- params: {
- r: 'happiness/store/detail',
- store_id: self.store_id,
- },
- method: 'get'
- }).then(e => {
- self.loading = false;
- if (e.data.code === 0) {
- self.provinces = e.data.data.provinces;
- //赋予初始值
- if (e.data.data.basic_setting) {
- self.basicForm = e.data.data.basic_setting;
- if (1 == e.data.data.basic_setting.status) {
- this.isDisable = false;
- } else {
- this.isDisable = true;
- }
- }
- if (e.data.data.store_setting) {
- e.data.data.store_setting.status=0;
- self.storeForm = {...self.storeForm, ...e.data.data.store_setting};
- self.times = [e.data.data.store_setting.business_time_start, e.data.data.store_setting.business_time_end];
- }
- self.system_setting = e.data.data.configs;
- if (Object.keys(e.data.data.configs).length > 0 && self.storeForm.intra_city_distribution.is_alone == 0) {
- self.storeForm.intra_city_distribution.distribution_scope = e.data.data.configs.localtion_limit;
- self.storeForm.intra_city_distribution.delivery_fee = e.data.data.configs.delivery_fee;
- self.storeForm.intra_city_distribution.initial_delivery_amount = e.data.data.configs.delivery_amount;
- self.storeForm.intra_city_distribution.distance = e.data.data.configs.start_limit;
- self.storeForm.intra_city_distribution.distance_charge = e.data.data.configs.start_amount;
- self.storeForm.intra_city_distribution.every_distance = e.data.data.configs.add_limit;
- self.storeForm.intra_city_distribution.every_distance_charge = e.data.data.configs.add_amount;
- }
- } else {
- self.$message.error(e.data.msg);
- }
- }).catch(e => {
- // console.log(e);
- self.$message.error('网络错误');
- });
- },
- },
- });
- </script>
- <style>
- .grid-box {
- padding: 0 40px;
- background: #fff;
- border-radius: 0 0 4px 4px;
- }
- .grid-item {
- height: 130px;
- }
- .grid-text {
- font-size: 15px;
- }
- .grid-val {
- font-size: 20px;
- padding-top: 10px;
- }
- .grid-icon {
- color: #999;
- cursor: pointer;
- font-size: 18px;
- }
- .store-card {
- margin-top: 15px;
- }
- .store-card.el-card {
- border: 0;
- }
- .store-card-body .store-name {
- padding-left: 10px;
- }
- .store-card-body .el-descriptions__body {
- padding: 20px 40px;
- }
- .store-send-code {
- padding-left: 10px;
- font-size: 12px;
- cursor: pointer;
- }
- .el-tabs__header {
- padding: 0 20px;
- height: 56px;
- line-height: 56px;
- background-color: #fff;
- margin-bottom: 0;
- }
- .title {
- padding: 0px 8px;
- border-left: 5px solid #1479F0;
- background-color: #fff;
- font-size: 18px;
- position: relative;
- left: 32px;
- margin: 20px 0;
- }
- .form-body {
- background-color: #fff;
- padding: 20px 50% 20px 0;
- }
- .button-item {
- padding: 9px 25px;
- margin-bottom: 15px;
- }
- .form-body .item {
- width: 300px;
- margin-bottom: 50px;
- margin-right: 25px;
- }
- .item-img {
- height: 550px;
- padding: 25px 10px;
- border-radius: 30px;
- border: 1px solid #CCCCCC;
- background-color: #fff;
- }
- .item .el-form-item {
- width: 300px;
- margin: 20px auto;
- }
- .left-setting-menu {
- width: 260px;
- }
- .left-setting-menu .el-form-item {
- height: 60px;
- padding-left: 20px;
- display: flex;
- align-items: center;
- margin-bottom: 0;
- cursor: pointer;
- }
- .left-setting-menu .el-form-item .el-form-item__label {
- cursor: pointer;
- }
- .left-setting-menu .el-form-item.active {
- background-color: #F3F5F6;
- border-top-left-radius: 10px;
- width: 105%;
- border-bottom-left-radius: 10px;
- }
- .left-setting-menu .el-form-item .el-form-item__content {
- margin-left: 0 !important
- }
- .no-radius {
- border-top-left-radius: 0 !important;
- }
- .reset {
- position: absolute;
- top: 3px;
- left: 90px;
- }
- .app-tip {
- position: absolute;
- right: 24px;
- top: 16px;
- height: 72px;
- line-height: 72px;
- max-width: calc(100% - 78px);
- }
- .app-tip:before {
- content: ' ';
- width: 0;
- height: 0;
- border-color: inherit;
- position: absolute;
- top: -32px;
- right: 100px;
- border-width: 16px;
- border-style: solid;
- }
- .tip-content {
- display: block;
- white-space: nowrap;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- margin: 0 28px;
- font-size: 28px;
- }
- .btn-abs {
- position: absolute;
- top: 12px;
- right: 18px;
- }
- .form-body .app-share {
- padding-top: 12px;
- border-top: 1px solid #e2e2e2;
- margin-top: -20px;
- }
- .form-body .app-share .app-share-bg {
- position: relative;
- width: 310px;
- height: 360px;
- background-repeat: no-repeat;
- background-size: contain;
- background-position: center
- }
- .form-body .app-share .app-share-bg .title {
- width: 160px;
- height: 29px;
- line-height: 1;
- word-break: break-all;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- }
- .form-body .app-share .app-share-bg .pic-image {
- background-repeat: no-repeat;
- background-position: 0 0;
- background-size: cover;
- width: 160px;
- height: 130px;
- }
- .cashier-tabs .el-tabs__header {
- padding: 0;
- height: 45px;
- line-height: 45px;
- /* background-color: #F5F7FA; */
- margin-bottom: 0;
- }
- .cashier-tabs .el-tabs__item {
- height: 43px;
- line-height: 43px;
- }
- .cashier-tabs .el-tabs__content {
- margin-top: 20px;
- }
- .form-body {
- background-color: #fff;
- padding: 20px 50% 20px 0;
- }
- .button-item {
- margin-top: 12px;
- padding: 9px 25px;
- }
- .form-body .item {
- width: 300px;
- margin-bottom: 50px;
- margin-right: 25px;
- }
- .item-img {
- height: 550px;
- padding: 25px 10px;
- border-radius: 30px;
- border: 1px solid #CCCCCC;
- background-color: #fff;
- }
- .item .el-form-item {
- width: 300px;
- margin: 20px auto;
- }
- .left-setting-menu {
- width: 260px;
- }
- .left-setting-menu .el-form-item {
- height: 60px;
- padding-left: 20px;
- display: flex;
- align-items: center;
- margin-bottom: 0;
- cursor: pointer;
- }
- .left-setting-menu .el-form-item .el-form-item__label {
- cursor: pointer;
- }
- .left-setting-menu .el-form-item.active {
- background-color: #F3F5F6;
- border-top-left-radius: 10px;
- width: 105%;
- border-bottom-left-radius: 10px;
- }
- .left-setting-menu .el-form-item .el-form-item__content {
- margin-left: 0 !important
- }
- .no-radius {
- border-top-left-radius: 0 !important;
- }
- .del-btn {
- position: absolute;
- right: -8px;
- top: -8px;
- padding: 4px 4px;
- }
- .reset {
- position: absolute;
- top: 3px;
- left: 90px;
- }
- .app-tip {
- position: absolute;
- right: 24px;
- top: 16px;
- height: 72px;
- line-height: 72px;
- max-width: calc(100% - 78px);
- }
- .app-tip:before {
- content: ' ';
- width: 0;
- height: 0;
- border-color: inherit;
- position: absolute;
- top: -32px;
- right: 100px;
- border-width: 16px;
- border-style: solid;
- }
- .tip-content {
- display: block;
- white-space: nowrap;
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- margin: 0 28px;
- font-size: 28px;
- }
- .add-image-btn {
- width: 100px;
- height: 100px;
- color: #419EFB;
- border: 1px solid #e2e2e2;
- cursor: pointer;
- }
- .addon-no-install {
- margin-top: 15px;
- margin-left: 40px;
- }
- .desc-container {
- padding: 20px;
- }
- .el-descriptions__body {
- color: #606266;
- background-color: #FFF;
- padding: 40px;
- }
- .el-descriptions__body .el-descriptions__table .el-descriptions-item__cell {
- line-height: 3;
- }
- .stat-item-label {
- font-size: 18px;
- line-height: 3;
- /* width: 38%; */
- }
- .stat-itme-content {
- font-size: 18px;
- line-height: 3;
- }
- .delele-img-btn {
- position: absolute;
- left: 64px;
- top: -13px;
- }
- .goods-box {
- position: relative;
- left: -104px;
- }
- .mode-switch-btn {
- position: relative;
- left: -106px;
- }
- .mode-switch-box {
- margin-bottom: 30px;
- }
- .form-body {
- padding: 10px 20px 20px;
- background-color: #fff;
- margin-bottom: 30px;
- }
- </style>
|