init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,223 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title></title>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css" />
|
||||
<style>
|
||||
.layui-word-aux{
|
||||
margin-left: 110px;
|
||||
}
|
||||
.default_img{
|
||||
width:150px;
|
||||
border: 1px solid #ddd;
|
||||
min-height: 100px;
|
||||
}
|
||||
.default_img_box{
|
||||
padding: 10px 0px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="padding: 30px;">
|
||||
<form class="layui-form" action="">
|
||||
<input type="hidden" id="id" value="{$cache.id}" name="id">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">商户名称</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="name" value="{$cache.name}" id="merchant_name" required lay-verify="required" placeholder="请输入商户名称" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">登陆账号</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" value="{$cache.mobile}" name="mobile" id="mobile" required lay-verify="required" placeholder="请输入商家号码信息" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<empty name="cache">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">登陆密码</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="password" name="password" id="password" required lay-verify="required" placeholder="请输入商户密码" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">确认密码</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="password" name="conf_password" id="conf_password" required lay-verify="required" placeholder="确认密码" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</empty>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">启用时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" value="{$cache.begin_time}" name="begin_time" id="begin_time" required lay-verify="required" placeholder="请输入开始时间" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">过期时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" value="{$cache.end_time}" name="end_time" id="end_time" required lay-verify="required" placeholder="请输入结束时间" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">地址</label>
|
||||
<div class="layui-input-inline" style="max-width: 100px;">
|
||||
<select id="pro" lay-filter="pro" style="width:100px;height:38px;">
|
||||
<option value="" style="color: #d2d2d2;">请选择省</option>
|
||||
<volist name="prov" id="vo">
|
||||
<option <if condition="$vo['cityid'] eq $cache['province']">selected="selected"</if> value="{$vo.cityid}">{$vo.city_name}</option>
|
||||
</volist>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-input-inline" style="max-width: 100px;">
|
||||
<select id="city" lay-filter="city" style="width:100px;height:38px;">
|
||||
<option value="" style="color: #d2d2d2;">请选择市</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-input-inline" style="max-width: 100px;">
|
||||
<select id="area" lay-filter="area" style="width:100px;height:38px;">
|
||||
<option value="" style="color: #d2d2d2;">请选择县/区</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<form class="layui-form" action="">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">详细地址</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="address" value="{$cache['address']}" id="detail_address" required lay-verify="required" placeholder="请输入详细地址" autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"></label>
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" type="button" id="submit">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="__PUBLIC__/layui/layui.js"></script>
|
||||
<script type="text/javascript">
|
||||
layui.use(['form','upload','layer','laydate'], function() {
|
||||
var laydate = layui.laydate;
|
||||
laydate.render({
|
||||
elem: '#begin_time'
|
||||
});
|
||||
laydate.render({
|
||||
elem: '#end_time'
|
||||
});
|
||||
var form = layui.form;
|
||||
var upload = layui.upload;
|
||||
var layer = layui.layer;
|
||||
//执行实例
|
||||
var uploadInst = upload.render({
|
||||
elem: '#shopimg' //绑定元素
|
||||
,url: "{:U('upload')}" //上传接口
|
||||
,done: function(res){
|
||||
//上传完毕回调
|
||||
if(res.status==1){
|
||||
$('#shopimg_input').attr('src',res.path);
|
||||
$('#shopimg_img').val(res.path);
|
||||
}else{
|
||||
layer.msg(res.msg,{time:1500});
|
||||
}
|
||||
}
|
||||
,error: function(){
|
||||
//请求异常回调
|
||||
}
|
||||
});
|
||||
$('#submit').click(function () {
|
||||
var storetag = $('#merchant_name').val();
|
||||
var mobile = $('#mobile').val();
|
||||
var password = $('#password').val();
|
||||
var conf_password = $('#conf_password').val();
|
||||
var begin_time = $('#begin_time').val();
|
||||
var end_time = $('#end_time').val();
|
||||
var pro = $('#pro').val();
|
||||
var city = $('#city').val();
|
||||
var area = $('#area').val();
|
||||
var detail_address = $('#detail_address').val();
|
||||
<empty name="cache">
|
||||
if(password!=conf_password){
|
||||
layer.alert("两次密码输入不一致");
|
||||
return;
|
||||
}else if(!password){
|
||||
layer.alert("密码不能为空");
|
||||
return;
|
||||
}
|
||||
</empty>
|
||||
var id = $('#id').val();
|
||||
if(!begin_time || !end_time || !mobile || !storetag || !pro || !city ||!detail_address){
|
||||
layer.msg('请先完善您的商户信息',{time:2000})
|
||||
return false;
|
||||
}else{
|
||||
$.ajax({
|
||||
url:"{:U('addMerchant')}",
|
||||
type:'post',
|
||||
data:{
|
||||
name:storetag,
|
||||
pro:pro,
|
||||
city:city,
|
||||
area:area,
|
||||
begin_time:begin_time,
|
||||
password:password,
|
||||
end_time:end_time,
|
||||
mobile:mobile,
|
||||
address:detail_address,
|
||||
id:id
|
||||
},
|
||||
success:function (res) {
|
||||
if(res.status==1){
|
||||
top.layer.msg(res.msg,{icon:1,time:1200},function () {
|
||||
top.layer.closeAll();
|
||||
})
|
||||
}else{
|
||||
layer.msg(res.msg,{time:1200})
|
||||
}
|
||||
},
|
||||
error:function (error) {
|
||||
console.log(error);
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
$('#city').change(function(){
|
||||
$city = $('#city').val();//这变量是有数据的
|
||||
if(!$city){
|
||||
$city = "{$cache.city}";
|
||||
}
|
||||
var check = "{$cache.area}";
|
||||
$.ajax({
|
||||
type:"post",
|
||||
url:"{:U('Area')}",
|
||||
data:'city_id='+$city+"&check="+check,
|
||||
dataType:'json',
|
||||
success:function(data){
|
||||
$('#area').html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#pro').change(function(){
|
||||
$prov=$('#pro').val();//这变量是有数据的
|
||||
var check = "{$cache.city}";
|
||||
$.ajax({
|
||||
type:"post",
|
||||
url:"{:U('City')}",
|
||||
data:'pro_id='+$prov+"&check="+check,
|
||||
dataType:'json',
|
||||
success:function(data){
|
||||
$('#city').html(data);
|
||||
}
|
||||
});
|
||||
});
|
||||
$('#pro').change();
|
||||
$('#city').change();
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--[1.4.8]-->
|
||||
<include file="./Application/Retail/View/XcxConfig/authSuccess.html"/>
|
||||
@@ -0,0 +1,288 @@
|
||||
<!--[1.9.13]-->
|
||||
<style>
|
||||
.layout-head {
|
||||
text-align: center;
|
||||
flex: 1;
|
||||
}
|
||||
</style>
|
||||
<div id="selectAgent" v-cloak>
|
||||
<div style="width:100%;display: flex;flex-wrap: wrap;">
|
||||
<div class="layout-head">
|
||||
<el-card shadow="always" :body-style="{ padding: '0px' }">
|
||||
<div style="padding: 14px;">
|
||||
<span style="color: #999;">总商户</span>
|
||||
<div class="bottom clearfix">
|
||||
<span class="time">{$allMerchant}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="layout-head" style="margin: 0 10px">
|
||||
<el-card shadow="always" :body-style="{ padding: '0px' }">
|
||||
<div style="padding: 14px;">
|
||||
<span style="color: #999;">正常商户</span>
|
||||
<div class="bottom clearfix">
|
||||
<span class="time">{$normalMerchant}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
<div class="layout-head">
|
||||
<el-card shadow="always" :body-style="{ padding: '0px' }">
|
||||
<div style="padding: 14px;">
|
||||
<span style="color: #999;">过期商户</span>
|
||||
<div class="bottom clearfix">
|
||||
<span class="time">{$overdueMerchant}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</div>
|
||||
<el-form style="margin-top: 20px" size="small" inline>
|
||||
<el-form-item label="商户搜索">
|
||||
<el-input v-model="keyword" @keydown.enter.exact.native.prevent="search"
|
||||
placeholder="请输入商户手机号/名称" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="代理商查询">
|
||||
<el-select v-model="agent_id" placeholder="请选择" filterable>
|
||||
<el-option v-for="item in agentList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-button type="primary" @click="search">查询</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div v-loading="loading" element-loading-text="查询中,请等待"
|
||||
element-loading-spinner="el-icon-loading">
|
||||
<div style="max-width: calc(100vw - 208px);margin-top: 20px;">
|
||||
<el-table border :data="list" size="mini" max-height="500">
|
||||
<el-table-column type="index" label="序号" width="50" align="center"></el-table-column>
|
||||
<el-table-column prop="name" label="商户名称" show-overflow-tooltip min-width="150"></el-table-column>
|
||||
<el-table-column prop="mobile" label="手机号码" min-width="80" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="add_time" label="添加时间" min-width="100"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="begin_time" label="启用时间" min-width="100"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="end_time" label="过期时间" min-width="100"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="address" label="地址信息" min-width="100"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="meal_name" label="套餐" min-width="80" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="agent_name" label="所属代理商" min-width="80"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="status_name" label="状态" min-width="100"
|
||||
show-overflow-tooltip></el-table-column>
|
||||
|
||||
<el-table-column fixed="right" label="操作" width="280">
|
||||
<template slot-scope="scope">
|
||||
<if condition="$authArr['xcxConfig']">
|
||||
<el-button type="text" @click="xcxConfig(scope.row.id,scope.row.name)" size="mini">
|
||||
商城配置
|
||||
</el-button>
|
||||
</if>
|
||||
<if condition="$authArr['getMerchantSms'] eq true">
|
||||
<el-button type="text" @click="smsSet(scope.row.id,scope.row.name)" size="mini">短信功能
|
||||
</el-button>
|
||||
</if>
|
||||
<if condition="$authArr['paySet'] eq true">
|
||||
<el-button type="text" @click="paySet(scope.row)" size="mini">支付配置</el-button>
|
||||
</if>
|
||||
<!--<el-button type="text" @click="cleanUpData(scope.row)" size="mini">清空数据</el-button>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[10, 15, 20, 25, 30, 35, 40, 45, 50]"
|
||||
:page-size="100"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="currentLen">
|
||||
</el-pagination>
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog :title="'短信设置 -- '+sms.name" :append-to-body="true" :visible.sync="showSmsSetDialog" width="450px">
|
||||
<el-form label-width="120px">
|
||||
<el-form-item label="总条数">
|
||||
<el-input type="text" v-model="sms.allnum" disabled size="small"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="已用条数">
|
||||
<el-input type="text" v-model="sms.usenum" disabled size="small"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="权限">
|
||||
<el-switch @change="changeStatus"
|
||||
v-model="sms.status"
|
||||
inactive-value="0"
|
||||
active-value="1">
|
||||
</el-switch>
|
||||
</el-form-item>
|
||||
<el-form-item label="增加条数">
|
||||
<el-input type="text" v-model="addNum" oninput="value=this.value.replace(/^[0]|\D/,'')"
|
||||
placeholder="请输入整数" size="small"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div class="center">
|
||||
<el-button type="primary" :disabled="smsLoading" @click="sureSet" size="small">
|
||||
<span>确定</span>
|
||||
<i v-if="smsLoading" class="el-icon-loading"></i>
|
||||
</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
<script>
|
||||
var selectAgent = new Vue({
|
||||
el: '#selectAgent',
|
||||
data() {
|
||||
return {
|
||||
agentList: {$agentname},
|
||||
agent_id: '',
|
||||
showSmsSetDialog: false,
|
||||
currentLen: 0,
|
||||
currentLimit: 10,
|
||||
currentPage: 1,
|
||||
loading: false, // 加载
|
||||
list: [],
|
||||
sms: {},
|
||||
addNum: '',
|
||||
keyword: '',
|
||||
smsLoading: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSizeChange(val) {
|
||||
this.currentLimit = val;//切换每页数量
|
||||
this.currentPage = 1;
|
||||
this.getData();
|
||||
},
|
||||
|
||||
handleCurrentChange(val) {
|
||||
this.currentPage = val;
|
||||
this.getData();//切换页数
|
||||
},
|
||||
search() {
|
||||
this.currentPage = 1;
|
||||
this.getData();
|
||||
},
|
||||
smsSet(id, name) {
|
||||
$.ajax({
|
||||
url: "{:U('getMerchantSms')}",
|
||||
type: 'post',
|
||||
data: {
|
||||
id: id
|
||||
},
|
||||
success: (res) => {
|
||||
if (res.status == 1) {
|
||||
this.sms = JSON.parse(JSON.stringify(res.data));
|
||||
this.sms.name = name;
|
||||
this.showSmsSetDialog = true;
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
changeStatus() {
|
||||
$.ajax({
|
||||
url: "{:U('merchantSmsStatusSet')}",
|
||||
data: {
|
||||
id: this.sms.id,
|
||||
status: this.sms.status
|
||||
},
|
||||
type: 'post',
|
||||
success: (res) => {
|
||||
this.$message.success(res.msg);
|
||||
if (res.status != 1) {
|
||||
this.sms.status = this.sms.status == 1 ? 0 : 1;
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
sureSet() {
|
||||
if (!this.addNum || isNaN(Number(this.addNum)) || this.addNum != parseInt(this.addNum) || this.addNum <= 0) {
|
||||
return this.$message.error('请输入正确的短信条数');
|
||||
}
|
||||
this.$confirm("确定要给该商户增加短信" + this.addNum + '条?', "温馨提示", {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'info'
|
||||
}).then(() => {
|
||||
this.smsLoading = true;
|
||||
$.ajax({
|
||||
url: "{:U('doAddSmsAllNum')}",
|
||||
type: "POST",
|
||||
data: {
|
||||
id: this.sms.id,
|
||||
num: this.addNum
|
||||
},
|
||||
success: (res) => {
|
||||
this.smsLoading = false;
|
||||
if (res.status == 1) {
|
||||
this.$message.success(res.msg);
|
||||
this.addNum = '';
|
||||
this.showSmsSetDialog = false;
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
})
|
||||
},
|
||||
paySet(data) {
|
||||
layer.open({
|
||||
type: 2,
|
||||
content: "{:U('paySet')}?merchant_id=" + data.id,
|
||||
title: "支付设置--" + data.name,
|
||||
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
||||
offset: 'rb',
|
||||
shade: 0,
|
||||
move: false,
|
||||
resize: false,
|
||||
})
|
||||
},
|
||||
xcxConfig(id, name) {
|
||||
layer.open({
|
||||
type: 2,
|
||||
content: "{:U('xcxConfig')}?merchant_id=" + id,
|
||||
title: "商户小程序设置--" + name,
|
||||
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
||||
offset: 'rb',
|
||||
shade: 0,
|
||||
move: false,
|
||||
resize: false,
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
this.loading = true;
|
||||
$.ajax({
|
||||
url: "{:U('getMerchant')}",
|
||||
type: "POST",
|
||||
data: {
|
||||
keyword: this.keyword,
|
||||
page: this.currentPage,
|
||||
limit: this.currentLimit,
|
||||
agent_id: this.agent_id,
|
||||
},
|
||||
success: (res) => {
|
||||
this.loading = false;
|
||||
if (res.status == 1) {
|
||||
this.list = [];
|
||||
this.list = res.data;
|
||||
this.$nextTick(() => {
|
||||
this.currentLen = res.count;
|
||||
})
|
||||
} else {
|
||||
this.$message.error('数据获取失败');
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.getData();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,2 @@
|
||||
<!--[1.5.32]-->
|
||||
<include file="./Application/Api/View/Continent/merchantEntry.html"/>
|
||||
@@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<!--[1.5.32]-->
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css"/>
|
||||
<link rel="stylesheet" href="__PUBLIC__/vue/element-ui.css">
|
||||
<script src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
||||
<script src="__PUBLIC__/vue/js/vue2.5.16.js"></script>
|
||||
<script src="__PUBLIC__/vue/element-ui.js"></script>
|
||||
<title>支付设置</title>
|
||||
</head>
|
||||
<body style="padding: 20px">
|
||||
<include file="./Application/Api/View/Continent/paySet.html"/>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<!--[1.7.90]-->
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/vue/element-ui.2.8.2.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/vue/element-ui.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css"/>
|
||||
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/js/vue2.5.16.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/element-ui.2.8.2.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/element-ui.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/js/common.js"></script>
|
||||
<title>商户小程序配置</title>
|
||||
</head>
|
||||
<body>
|
||||
<include file="./Application/Retail/View/XcxConfig/wxconfig.html"/>
|
||||
</body>
|
||||
</html>
|
||||
在新工单中引用
屏蔽一个用户