| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891 |
- <?php
- use common\helpers\ComponentHelper;
- ComponentHelper::loadComponentView('com-image');
- ComponentHelper::loadComponentView('com-qq-map');
- ComponentHelper::loadComponentView('component/com-attachment', dirname(__DIR__));
- ComponentHelper::loadComponentView('component/com-attachment-edit', dirname(__DIR__));
- ComponentHelper::loadComponentView('component/com-upload', dirname(__DIR__));
- ?>
- <div id="app" v-cloak>
- <el-card shadow="never" style="border:0" body-style="background-color: #f3f3f3;padding: 10px 0 0;">
- <div class="fixed-header">
- <div class="flex flex-x-between flex-y-center">
- <span>店铺信息</span>
- <div class='head-btns'>
- <el-button type="primary" @click='save'>保存</el-button>
- <el-button type="info" @click='back'>返回</el-button>
- </div>
- </div>
- </div>
- <div class="table-body">
- <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="110px" size="medium"
- label-position='left' class="demo-dynamic">
- <div class="basic_set">
- <div class="common_head flex flex-y-center">
- <div class='line'></div>
- <div>基础信息</div>
- </div>
- <div class='basic_body'>
- <el-form-item label="绑定用户:" prop="store_name">
- <div class="flex flex-y-center">
- 用户ID:{{ruleForm.user_id}}
- </div>
- <div class="flex flex-y-center">
- 用户昵称:{{ruleForm.nickname}}
- </div>
- </el-form-item>
- <el-form-item label="店长姓名:" prop="shop_owner">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.shop_owner" placeholder="请输入店长姓名" size="small" style="width:300px;"></el-input>
- </div>
- </el-form-item>
- <el-form-item label="手机号:" prop="shop_mobile">
- <div class="flex flex-y-center">
- {{ruleForm.shop_mobile}}
- </div>
- </el-form-item>
- <el-form-item label="门店名称:" prop="store_name">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.store_name" placeholder="请输入门店名称" size="small" style="width:300px;"></el-input>
- </div>
- </el-form-item>
- <el-form-item label="门店简介:" prop="store_desc">
- <div class="flex flex-y-center">
- <el-input
- type="textarea"
- :autosize="{ minRows: 2, maxRows: 4}"
- placeholder="门店简介"
- v-model="ruleForm.store_desc"
- size="small" style="width:300px;">
- </el-input>
- </div>
- </el-form-item>
- <el-form-item prop="logo_img">
- <label slot="label">
- <span>商家logo:</span>
- </label>
- <com-attachment v-model="ruleForm.logo_img" :multiple="false" :max="1">
- <el-tooltip class="item" effect="dark" content="建议尺寸:120 * 120" placement="top">
- <el-button size="mini">选择图片</el-button>
- </el-tooltip>
- </com-attachment>
- <div class="customize-share-title">
- <com-image mode="aspectFill" width='100px' height='100px'
- :src="ruleForm.logo_img ? ruleForm.logo_img : ''"></com-image>
- <el-button v-if="ruleForm.logo_img" class="del-btn" size="mini"
- type="danger" icon="el-icon-close" circle
- @click="ruleForm.logo_img = ''"></el-button>
- </div>
- </el-form-item>
- <el-form-item prop="business_license">
- <label slot="label">
- <span>营业执照:</span>
- </label>
- <com-attachment v-model="ruleForm.license_img" :multiple="false" :max="1">
- <el-tooltip class="item" effect="dark" content="建议尺寸:686 * 485" placement="top">
- <el-button size="mini">选择图片</el-button>
- </el-tooltip>
- </com-attachment>
- <div class="customize-share-title">
- <com-image mode="aspectFill" width='100px' height='100px'
- :src="ruleForm.license_img ? ruleForm.license_img : ''"></com-image>
- <el-button v-if="ruleForm.license_img" class="del-btn" size="mini"
- type="danger" icon="el-icon-close" circle
- @click="ruleForm.license_img = ''"></el-button>
- </div>
- </el-form-item>
- <el-form-item label="创建时间:" prop="created_at">
- <div class="flex flex-y-center">
- {{ruleForm.created_at|dateTimeFormat('Y-m-d H:i:s')}}
- </div>
- </el-form-item>
- <el-form-item label="所在区域:" prop="mobile">
- <div class="flex flex-y-center">
- <el-select v-model="ruleForm.province" value-key='id' placeholder="请选择省"
- @change="provinceChange" size="small">
- <el-option v-for="item in province_arr" :key="item.id" :label="item.name"
- :value="item"></el-option>
- </el-select>
- <el-select v-model="ruleForm.city" value-key='id' placeholder="请选择市"
- @change="cityChange" size="small">
- <el-option v-for="item in city_arr" :key="item.id" :label="item.name"
- :value="item"></el-option>
- </el-select>
- <el-select v-model="ruleForm.district" value-key='id' placeholder="请选择区"
- @change='districtChange' size="small">
- <el-option v-for="item in district_arr" :key="item.id" :label="item.name"
- :value="item"></el-option>
- </el-select>
- </div>
- </el-form-item>
- <el-form-item label="详细地址:" prop="address">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.address" type='textarea'
- placeholder="详细地址" size="small" style="width:300px;"></el-input>
- </div>
- </el-form-item>
- <el-form-item label="经纬度:" prop="ll">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.ll" placeholder="请输入经纬度" size="small" style="width:300px;" disabled></el-input>
- </div>
- </el-form-item>
- <com-qq-map @map-submit="mapEvent" :address="ruleForm.address" :lat="ruleForm.latitude"
- :long="ruleForm.longitude">
- <el-button type="primary">展开地图</el-button>
- </com-qq-map>
- </div>
- <div class="common_head flex flex-y-center" style="margin-top: 30px">
- <div class='line'></div>
- <div>运营</div>
- </div>
- <div class='basic_body'>
- <el-form-item label="营业状态:" prop="status">
- <template>
- <el-radio v-model="ruleForm.shop_status" label="1">营业</el-radio>
- <el-radio v-model="ruleForm.shop_status" label="0">休息</el-radio>
- </template>
- </el-form-item>
- <el-form-item label="营业时间:" prop="manage">
- <div class="flex flex-y-center">
- <template>
- <el-time-select
- v-model="ruleForm.business_time_start"
- :picker-options="{
- start: '00:00',
- step: '00:10',
- end: '23:59'
- }"
- placeholder="选择时间" size="small">
- </el-time-select>
- -
- <el-time-select
- v-model="ruleForm.business_time_end"
- :picker-options="{
- start: '00:00',
- step: '00:10',
- end: '23:59'
- }"
- placeholder="选择时间" size="small">
- </el-time-select>
- </template>
- </div>
- </el-form-item>
- </div>
- <div class="common_head flex flex-y-center" style="margin-top: 30px">
- <div class='line'></div>
- <div>配送</div>
- </div>
- <div class='basic_body'>
- <el-form-item label="同城配送:" prop="merchant_distribution">
- <div class="flex flex-y-center">
- <template>
- <el-switch
- :active-value="1"
- :inactive-value="0"
- v-model="ruleForm.merchant_distribution">
- </el-switch>
- </template>
- </div>
- 启用同城配送后,在配送范围内的买家可以选择同城配送,商家自己配送
- </el-form-item>
- <!-- <el-form-item label="是否独立设置:" prop="status" v-if="ruleForm.merchant_distribution==1">-->
- <!-- <template>-->
- <!-- <el-radio-group v-model="ruleForm.intra_city_distribution.is_alone" @input="changeRadioValue">-->
- <!-- <el-radio :label="0">跟随系统</el-radio>-->
- <!-- <el-radio :label="1">独立设置</el-radio>-->
- <!-- </el-radio-group>-->
- <!-- </template>-->
- <!-- </el-form-item>-->
- <template v-if="ruleForm.merchant_distribution==1">
- <div v-if="ruleForm.intra_city_distribution.is_alone == 1">
- <el-form-item label="配送范围:" prop="intra_city_distribution">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.intra_city_distribution.distribution_scope" oninput="value=value.replace(/[^\d]/g,'')" type="number" placeholder="请输入配送范围" size="small" style="width:300px;">
- <template slot="append">KM</template>
- </el-input>
- </div>
- </el-form-item>
- <el-form-item label="起送金额:" prop="intra_city_distribution">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.intra_city_distribution.initial_delivery_amount" oninput="value=value.replace(/[^\d]/g,'')" type="number" placeholder="请输入起送金额" size="small" style="width:300px;">
- <template slot="append">元</template>
- </el-input>
- </div>
- </el-form-item>
- <el-form-item label="配送费设置" prop="delivery_fee">
- <template>
- <el-radio v-model="ruleForm.intra_city_distribution.delivery_fee" :label="0">免配送费</el-radio>
- <el-radio v-model="ruleForm.intra_city_distribution.delivery_fee" :label="1">统一配送费</el-radio><br />
- </template>
- </el-form-item>
- <el-form-item label="配送费:" prop="intra_city_distribution" v-if="ruleForm.intra_city_distribution.delivery_fee == 1">
- <div style="float: left;">
- <el-input style="width: 70px;" v-model="ruleForm.intra_city_distribution.distance"
- placeholder="" class="width-200"
- oninput="value=value.replace(/[^\d]/g,'')" size="small"></el-input>
- </div>
- <div style="float: left;margin-left: 20px;">公里内,收费
- <el-input style="width: 70px;"
- v-model="ruleForm.intra_city_distribution.distance_charge" placeholder=""
- class="width-200" oninput="value=value.replace(/[^\d]/g,'')" size="small"></el-input>
- </div>
- <div style="float: left;margin-left: 20px;">元,每增加
- <el-input style="width: 70px;"
- v-model="ruleForm.intra_city_distribution.every_distance" placeholder=""
- class="width-200" oninput="value=value.replace(/[^\d]/g,'')" size="small"></el-input>
- </div>
- <div style="float: left;margin-left: 20px;">公里,配送费增加
- <el-input style="width: 70px;"
- v-model="ruleForm.intra_city_distribution.every_distance_charge"
- placeholder="" class="width-200" size="small"
- oninput="value=value.replace(/[^\d]/g,'')"></el-input>
- 元
- </div>
- </el-form-item>
- </div>
- <div v-else>
- <el-form-item label="配送范围:" prop="intra_city_distribution">
- <div class="flex flex-y-center">
- <el-input disabled v-model="ruleForm.intra_city_distribution.distribution_scope" oninput="value=value.replace(/[^\d]/g,'')" type="number" placeholder="请输入配送范围" size="small" style="width:300px;">
- <template slot="append">KM</template>
- </el-input>
- </div>
- </el-form-item>
- <el-form-item label="起送金额:" prop="intra_city_distribution">
- <div class="flex flex-y-center">
- <el-input disabled v-model="ruleForm.intra_city_distribution.initial_delivery_amount" oninput="value=value.replace(/[^\d]/g,'')" type="number" placeholder="请输入起送金额" size="small" style="width:300px;">
- <template slot="append">元</template>
- </el-input>
- </div>
- </el-form-item>
- <el-form-item label="配送费设置" prop="delivery_fee">
- <template>
- <el-radio disabled v-model="ruleForm.intra_city_distribution.delivery_fee" :label="0">免配送费</el-radio>
- <el-radio disabled v-model="ruleForm.intra_city_distribution.delivery_fee" :label="1">统一配送费</el-radio><br />
- </template>
- </el-form-item>
- <el-form-item label="配送费:" prop="intra_city_distribution" v-if="ruleForm.intra_city_distribution.delivery_fee == 1">
- <div style="float: left;">
- <el-input disabled style="width: 70px;" v-model="ruleForm.intra_city_distribution.distance"
- placeholder="" class="width-200"
- oninput="value=value.replace(/[^\d]/g,'')" size="small"></el-input>
- </div>
- <div style="float: left;margin-left: 20px;">公里内,收费
- <el-input disabled style="width: 70px;"
- v-model="ruleForm.intra_city_distribution.distance_charge" placeholder=""
- class="width-200" oninput="value=value.replace(/[^\d]/g,'')" size="small"></el-input>
- </div>
- <div style="float: left;margin-left: 20px;">元,每增加
- <el-input disabled style="width: 70px;"
- v-model="ruleForm.intra_city_distribution.every_distance" placeholder=""
- class="width-200" oninput="value=value.replace(/[^\d]/g,'')" size="small"></el-input>
- </div>
- <div style="float: left;margin-left: 20px;">公里,配送费增加
- <el-input disabled style="width: 70px;"
- v-model="ruleForm.intra_city_distribution.every_distance_charge"
- placeholder="" class="width-200" size="small"
- oninput="value=value.replace(/[^\d]/g,'')"></el-input>
- 元
- </div>
- </el-form-item>
- </div>
- </template>
- <el-form-item label="上门自提:" prop="self_mention">
- <div class="flex flex-y-center">
- <template>
- <el-switch
- :active-value="1"
- :inactive-value="0"
- v-model="ruleForm.self_mention">
- </el-switch>
- </template>
- </div>
- 启用上门自提后,买家可以就近选择商品自提点,买家下单后,您需要确保买家指定的自提点商品库存充足
- </el-form-item>
- </div>
- <div class="common_head flex flex-y-center" style="margin-top: 30px">
- <div class='line'></div>
- <div>汇付设置</div>
- </div>
- <div class='basic_body'>
- <el-form-item label="客户编号:" prop="huifu_no">
- <div class="flex flex-y-center">
- <el-input v-model="ruleForm.huifu_no" placeholder="请输入汇付编号" size="small"
- style="width:300px;"></el-input>
- </div>
- </el-form-item>
- </div>
- </div>
- </el-form>
- </div>
- </el-card>
- </div>
- <script>
- const app = new Vue({
- el: '#app',
- data() {
- return {
- keyword: '',
- category: [],
- activeName: '1',
- imagesCount: 1,
- value1:"",
- value2:"",
- community_status:0,
- ruleForm: {
- huifu_no: '',
- user_id: '',
- province_id: '',
- province: '',
- city_id: '',
- city: '',
- district_id: '',
- district: '',
- address: '',
- longitude: '',
- latitude: '',
- ll: '',
- license_img: '',
- shop_owner: '',
- shop_mobile: '',
- store_desc: '',
- store_name: '',
- status:1,
- merchant_distribution:1,
- self_mention:1,
- intra_city_distribution:{
- is_alone: 1,
- delivery_fee: 0,
- distribution_scope: '',
- initial_delivery_amount: 0,
- distance: '',
- distance_charge: '',
- every_distance: '',
- every_distance_charge: '',
- },
- business_time_start:'00:00',
- business_time_end:"23:59",
- content: '',
- introduce: 1,
- },
- system_setting: [],
- alone_setting: {
- is_alone: 1,
- distribution_scope: '',
- delivery_fee: 0,
- initial_delivery_amount: 0,
- distance: 0,
- distance_charge: 0,
- every_distance: 0,
- every_distance_charge: 0,
- },
- store_images: [],
- user_nickname: '',
- user_mobile: '',
- submitLoading: true,
- dialogVisible: false,
- province_arr: [],
- city_arr: [],
- district_arr: [],
- rules: {
- shop_owner: [{
- required: true,
- message: '请输入店长姓名',
- trigger: 'blur'
- }],
- store_name:
- [{
- required: true,
- message: '请输入门店名称',
- trigger: 'blur'
- }]
- }
- };
- },
- methods: {
- //地图确定事件
- // mapEvent(e) {
- // this.ruleForm.longitude = e.long;
- // this.ruleForm.latitude = e.lat;
- // this.ruleForm.ll = e.lat + ',' + e.long;
- // this.ruleForm.address = e.address;
- // },
- mapEvent(e) {
- // console.log(e, '----')
- this.ruleForm.longitude = e.long;
- this.ruleForm.latitude = e.lat;
- this.ruleForm.ll = e.lat + ',' + e.long;
- this.ruleForm.address = e.address;
- let address = e.address;
- let reg = new RegExp(/(.*?(?:省|自治区|北京市|天津市|上海市|重庆市))+(.*?(?:市|自治州|地区|区划|县))+(.*?(?:市|区|县|镇|乡|街道))/);
- let rst = address.match(reg);
- let addr = '';
- if (rst) {
- addr += rst[1] + '/' + rst[2] + '/' + rst[3];
- }
- this.ruleForm.addr = addr;
- },
- getTime(e) {
- console.log(e, 'eeee');
- },
- back() {
- window.history.back();
- },
- save() {
- // 获取当前日期
- const today = new Date();
- const business_time_start = this.ruleForm.business_time_start;
- const [hours_start, minutes_start] = business_time_start.split(':').map(Number);
- const dateTime_start = new Date(today.getFullYear(), today.getMonth(), today.getDate(), hours_start, minutes_start);
- const timestamp_start = dateTime_start.getTime();
- const business_time_end = this.ruleForm.business_time_end;
- const [hours_end, minutes_end] = business_time_end.split(':').map(Number);
- const dateTime_end = new Date(today.getFullYear(), today.getMonth(), today.getDate(), hours_end, minutes_end);
- const timestamp_end = dateTime_end.getTime();
- if(timestamp_start >= timestamp_end){
- this.$message.error("营业时间中,结束时间不能小于开始时间");
- return false;
- }
- this.ruleForm.store_images = this.store_images
- console.log(this.ruleForm)
- this.$refs['ruleForm'].validate((valid) => {
- if (valid) {
- request({
- params: {
- r: 'happiness/client/setting/index',
- },
- method: 'post',
- data: {
- form: this.ruleForm
- }
- }).then(e => {
- this.submitLoading = false;
- if (e.data.code === 0) {
- this.$message.success(e.data.msg);
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- this.submitLoading = false;
- this.$message.error(e.data.msg);
- });
- } else {
- console.log('error submit!!');
- this.submitLoading = false;
- return false;
- }
- });
- },
- getCity(level, id = '') {
- this.loading = true;
- request({
- params: {
- r: 'happiness/client/setting/get-address-list',
- level,
- id
- },
- method: 'get',
- }).then(e => {
- this.loading = false;
- if (e.data.code == 0) {
- if (level == '1') {
- this.province_arr = e.data.data;
- } else if (level == '2') {
- this.city_arr = e.data.data;
- } else if(level == '3') {
- this.district_arr = e.data.data;
- }
- } else {
- this.$message.error(e.data.msg);
- }
- })
- },
- provinceChange(val) {
- this.ruleForm.province_id = val.id;
- this.ruleForm.province = val.name;
- //将其它赋值为空
- this.ruleForm.city = '';
- this.ruleForm.district = '';
- this.getCity('2', val.id);
- },
- cityChange(val) {
- this.ruleForm.city_id = val.id;
- this.ruleForm.district = '';
- this.getCity('3', val.id);
- },
- districtChange(val) {
- this.ruleForm.district_id = val.id;
- this.ruleForm.district = val.name;
- this.ruleForm.latitude = val.lat
- this.ruleForm.longitude = val.lng
- this.getCity('4', val.id);
- },
- load() {
- request({
- params: {
- r: 'happiness/client/setting/index',
- },
- method: 'get',
- }).then(e => {
- this.submitLoading = false;
- if (e.data.code === 0) {
- var intra_city_distribution = this.ruleForm.intra_city_distribution;
- this.ruleForm = {...this.ruleForm, ...e.data.data.detail}
- // this.system_setting = e.data.data.configs;
- this.community_status = e.data.data.detail.community_status
- if(e.data.data.detail.intra_city_distribution==''){
- this.ruleForm.intra_city_distribution = intra_city_distribution;
- }
- this.system_setting = e.data.data.configs;
- if (Object.keys(e.data.data.configs).length > 0 && this.ruleForm.intra_city_distribution.is_alone == 0) {
- this.ruleForm.intra_city_distribution.distribution_scope = e.data.data.configs.localtion_limit;
- this.ruleForm.intra_city_distribution.delivery_fee = e.data.data.configs.delivery_fee;
- this.ruleForm.intra_city_distribution.initial_delivery_amount = e.data.data.configs.delivery_amount;
- this.ruleForm.intra_city_distribution.distance = e.data.data.configs.start_limit;
- this.ruleForm.intra_city_distribution.distance_charge = e.data.data.configs.start_amount;
- this.ruleForm.intra_city_distribution.every_distance = e.data.data.configs.add_limit;
- this.ruleForm.intra_city_distribution.every_distance_charge = e.data.data.configs.add_amount;
- // console.log(self.storeForm);
- }
- // this.ruleForm.intra_city_distribution.is_alone = this.ruleForm.intra_city_distribution.is_alone.toString();
- this.ruleForm.status = this.ruleForm.status.toString();
- this.ruleForm.shop_status = this.ruleForm.shop_status.toString();
- this.store_images = e.data.data.detail.store_images
- } else {
- this.$message.error(e.data.msg);
- }
- }).catch(e => {
- this.submitLoading = false;
- this.$message.error(e.data.msg);
- });
- },
- jump_to_freight_rules(){
- param = {
- r: 'happiness/client/setting/freight-rules'
- };
- navigateTo(param);
- },
- querySearchAsync(queryString, cb) {
- this.keyword = queryString;
- this.getUser(cb);
- },
- getCategory() {
- request({
- params: {
- r: 'happiness/client/setting/store-cate-tree',
- }
- }).then(res => {
- if (res.data.code == 0) {
- this.category = res.data.data.list
- } else {
- this.$message.error(res.data.msg);
- }
- });
- },
- createStateFilter(queryString) {
- return (state) => {
- return (state.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
- };
- },
- handleSelect(item) {
- this.ruleForm.user_id = item.id;
- this.user_nickname = item.nickname;
- this.user_mobile = item.mobile;
- this.dialogVisible = false;
- },
- addImage(){
- this.store_images.push({
- src: '',
- })
- },
- delPic(type, index) { // 删除图片
- switch (type) {
- case 'introduce':
- this.ruleForm.introduce.splice(index, 1)
- break;
- default:
- break;
- }
- },
- changeRadioValue(e) {
- if (e == 1) {
- this.ruleForm.intra_city_distribution = {...this.ruleForm.intra_city_distribution, ...this.alone_setting};
- } else {
- this.alone_setting = {...this.alone_setting, ...this.ruleForm.intra_city_distribution};
- this.alone_setting.is_alone = 1;
- this.ruleForm.intra_city_distribution.distribution_scope = this.system_setting.localtion_limit;
- this.ruleForm.intra_city_distribution.delivery_fee = this.system_setting.delivery_fee;
- this.ruleForm.intra_city_distribution.initial_delivery_amount = this.system_setting.delivery_amount;
- this.ruleForm.intra_city_distribution.distance = this.system_setting.start_limit;
- this.ruleForm.intra_city_distribution.distance_charge = this.system_setting.start_amount;
- this.ruleForm.intra_city_distribution.every_distance = this.system_setting.add_limit;
- this.ruleForm.intra_city_distribution.every_distance_charge = this.system_setting.add_amount;
- // console.log(this.alone_setting);
- }
- },
- },
- mounted() {
- this.load();
- this.getCity('1')
- this.getCategory()
- }
- });
- </script>
- <style>
- .table-body {
- padding: 20px;
- background-color: #fff;
- height: calc(100vh - 100px);
- overflow-y: auto;
- position: relative;
- }
- .head-btns .el-button {
- padding: 10px 35px;
- }
- .form-body {
- padding: 10px 20px 20px;
- background-color: #fff;
- margin-bottom: 30px;
- }
- /* 基础设置 */
- .basic_set {
- /* border: 1px solid #CCCCCC; */
- padding: 20px;
- border-radius: 10px;
- overflow-y: auto;
- }
- .common_head {
- border-bottom: 1px solid #CCCCCC;
- padding-bottom: 10px;
- font-size: 15px;
- margin-bottom: 30px;
- }
- .common_head2 {
- padding-bottom: 10px;
- font-size: 15px;
- margin-bottom: 20px;
- }
- .basic_body {
- padding-left: 25px;
- /* width: 50%; */
- }
- .add_user {
- width: 350px;
- padding-left: 70px;
- }
- .line {
- margin-right: 10px;
- width: 5px;
- height: 23px;
- background: #03C5FF;
- }
- .stores {
- margin-bottom: 20px;
- }
- .customize-share-title {
- /* margin-top: 10px; */
- width: 100px;
- height: 100px;
- position: relative;
- cursor: move;
- }
- .del-btn {
- position: absolute;
- right: -8px;
- top: -8px;
- padding: 4px 4px;
- transform: scale(0.8);
- }
- .add-image-btn {
- width: 100px;
- height: 100px;
- color: #419EFB;
- border: 1px solid #e2e2e2;
- cursor: pointer;
- text-align: center;
- }
- .el-date-editor .el-range-separator {
- padding: 0;
- }
- .operate_state {
- padding-left: 15px;
- font-size: 15px;
- }
- .switchStyle {
- transform: scale(1.2);
- margin-left: 10px;
- }
- .switchStyle .el-switch__label {
- position: absolute;
- display: none;
- color: #fff;
- }
- .switchStyle .el-switch__label--left {
- z-index: 9;
- left: 20px;
- }
- .switchStyle .el-switch__label * {
- font-size: 12px !important;
- }
- .switchStyle .el-switch__label--right {
- z-index: 9;
- left: 0px;
- }
- .switchStyle .el-switch__label * {
- font-size: 12px !important;
- }
- .switchStyle .el-switch__label.is-active {
- display: block;
- }
- .switchStyle.el-switch .el-switch__core,
- .el-switch .el-switch__label {
- width: 70px !important;
- }
- .clear_style.el-form-item {
- margin-bottom: 0px;
- }
- .clear_style .el-input--medium .el-input__inner {
- width: 45%;
- }
- .add_radio .el-form-item__content {
- margin-top: 10px;
- }
- @media screen and (max-width: 1400px) {
- .basic_body {
- width: 70%;
- }
- .clear_style .el-input--medium .el-input__inner {
- width: 70%;
- }
- }
- /* 公共样式 */
- .flex {
- display: -webkit-box;
- display: -webkit-flex;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- }
- .flex-x-center {
- display: -webkit-box;
- display: -webkit-flex;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- -ms-flex-pack: center;
- justify-content: center;
- }
- .flex-x-between {
- display: -webkit-box;
- display: -webkit-flex;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- -webkit-box-pack: space-between;
- -webkit-justify-content: space-between;
- -ms-flex-pack: space-between;
- justify-content: space-between;
- }
- .flex-y-center {
- display: -webkit-box;
- display: -webkit-flex;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- -webkit-box-align: center;
- -webkit-align-items: center;
- -ms-flex-align: center;
- -ms-grid-row-align: center;
- align-items: center;
- }
- /* 溢出隐藏 */
- .over1 {
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- -webkit-box-orient: vertical;
- }
- .over2 {
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .fixed-header {
- background: #fff;
- padding: 15px 20px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
- margin-bottom: 10px;
- }
- /* 确保 el-card 不会产生滚动 */
- .el-card {
- overflow: hidden !important;
- }
- </style>
|