Commit 6bd68cd4 authored by 黄媛媛's avatar 黄媛媛

解决冲突

parents 6b3db713 9f1c4aba
...@@ -467,7 +467,7 @@ export default { ...@@ -467,7 +467,7 @@ export default {
let msg = this.msg; let msg = this.msg;
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
msg.pageSize=999; msg.pageSize=999;
this.JavaGetLocalFile( this.GetLocalFile(
"/api/product/GetProductGoodsListToExcel", "/api/product/GetProductGoodsListToExcel",
msg, msg,
"商品列表.xls" "商品列表.xls"
......
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
<div class="mainLeftMenu"> <div class="mainLeftMenu">
<div class="leftMenu1"> <div class="leftMenu1">
<div class="F_Logo"> <div class="F_Logo">
<div class="asideInner" @click="CommonJump('zanIndex')">{{currentUser.MallName}} <div class="asideInner" @click="CommonJump('mallIndex')">{{currentUser.MallName}}
</div> </div>
</div> </div>
<ul class="FsettingUU"> <ul class="FsettingUU">
...@@ -186,8 +186,8 @@ ...@@ -186,8 +186,8 @@
<div class="mainRightLeft">微信小程序</div> <div class="mainRightLeft">微信小程序</div>
<div class="marinRightList"> <div class="marinRightList">
<ul> <ul>
<li>缓存</li> <li style="display:none">缓存</li>
<li title="教程管理"> <li style="display:none"> title="教程管理">
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
教程管理<i class="el-icon-arrow-down el-icon--right"></i> 教程管理<i class="el-icon-arrow-down el-icon--right"></i>
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<div class="mainLeftMenu"> <div class="mainLeftMenu">
<div class="leftMenu1"> <div class="leftMenu1">
<div class="F_Logo"> <div class="F_Logo">
<div class="asideInner" @click="CommonJump('zanIndex')">{{currentUser.MallName}} <div class="asideInner" @click="CommonJump('mallIndex')">{{currentUser.MallName}}
</div> </div>
</div> </div>
<ul class="FsettingUU"> <ul class="FsettingUU">
...@@ -198,8 +198,8 @@ ...@@ -198,8 +198,8 @@
<div class="mainRightLeft">微信小程序</div> <div class="mainRightLeft">微信小程序</div>
<div class="marinRightList"> <div class="marinRightList">
<ul> <ul>
<li>缓存</li> <li style="display:none">>缓存</li>
<li title="教程管理"> <li style="display:none"> title="教程管理">
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
教程管理<i class="el-icon-arrow-down el-icon--right"></i> 教程管理<i class="el-icon-arrow-down el-icon--right"></i>
......
...@@ -89,8 +89,8 @@ ...@@ -89,8 +89,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="name" label="商城名称" width="155"> <el-table-column prop="name" label="商城名称" width="155">
<template slot-scope="scope"> <template slot-scope="scope">
<p style="color:#409EFF;cursor:pointer;" <p style="color:#409EFF;cursor:pointer;text-decoration:underline;"
@click="setMallBaseId(scope.row.MallBaseId,scope.row.MallName),goHomePage()"> @click="setMallBaseId(scope.row.MallBaseId,scope.row.MallName),goHomePage()" title="点击进入商城">
{{scope.row.MallName}}</p> {{scope.row.MallName}}</p>
<p>账号:{{scope.row.Account}}</p> <p>账号:{{scope.row.Account}}</p>
<p> <p>
...@@ -98,14 +98,23 @@ ...@@ -98,14 +98,23 @@
</p> </p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" label="数据统计" show-overflow-tooltip :render-header="renderHeader" <el-table-column prop="address" label="数据统计" width="155">
width="155"> <template slot-scope="scope">
<p>用户数:<span style="color:blue">{{scope.row.UserNum}}</span></p>
<p>订单数:<span style="color:red">{{scope.row.OrderNum}}</span></p>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="EffectiveDateStr" label="有效期" width="170"> <el-table-column prop="EffectiveDateStr" label="有效期" width="170">
</el-table-column> </el-table-column>
<el-table-column prop="address" label="操作"> <el-table-column prop="address" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="info" plain @click="EditMall(scope.row)">编辑 </el-button> <el-button size="mini" type="info" plain @click="EditMall(scope.row)">编辑 </el-button>
<template v-if="scope.row.Is_Recycle==0">
<el-button size="mini" type="info" plain @click="UpdateRecycle(scope.row,1)">回收</el-button>
</template>
<template v-else>
<el-button size="mini" type="info" plain @click="UpdateRecycle(scope.row,0)">取消回收</el-button>
</template>
<el-button size="mini" type="info" plain @click="GetCopyRight(scope.row)">版权</el-button> <el-button size="mini" type="info" plain @click="GetCopyRight(scope.row)">版权</el-button>
<el-button size="mini" type="info" plain @click="RemmoveMall(scope.row)">禁用</el-button> <el-button size="mini" type="info" plain @click="RemmoveMall(scope.row)">禁用</el-button>
</template> </template>
...@@ -142,8 +151,11 @@ ...@@ -142,8 +151,11 @@
</p> </p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" label="数据统计" show-overflow-tooltip :render-header="renderHeader" <el-table-column prop="address" label="数据统计" width="155">
width="155"> <template slot-scope="scope">
<p>用户数:<span style="color:blue">{{scope.row.UserNum}}</span></p>
<p>订单数:<span style="color:red">{{scope.row.OrderNum}}</span></p>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="EffectiveDateStr" label="有效期" width="170"> <el-table-column prop="EffectiveDateStr" label="有效期" width="170">
</el-table-column> </el-table-column>
...@@ -484,8 +496,11 @@ ...@@ -484,8 +496,11 @@
methods: { methods: {
//退出登录 //退出登录
loginOut() { loginOut() {
let that = this;
that.Confirm("确认要退出系统吗?", function () {
localStorage.removeItem("mall_userInfo"); localStorage.removeItem("mall_userInfo");
location.href = '/'; location.href = '/';
});
}, },
init() { init() {
this.apipost("/api/Tenant/GetTenant", {}, res => { this.apipost("/api/Tenant/GetTenant", {}, res => {
...@@ -555,7 +570,6 @@ ...@@ -555,7 +570,6 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.tableData = res.data.data.pageData; this.tableData = res.data.data.pageData;
this.qMsg.total = res.data.data.count; this.qMsg.total = res.data.data.count;
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
...@@ -661,6 +675,19 @@ ...@@ -661,6 +675,19 @@
} }
}) })
}, },
//更新回收
UpdateRecycle(item, type) {
this.apipost("/api/Tenant/SetMiniProgramRecycle", {
MallBaseId: item.MallBaseId,
Is_Recycle: type
}, res => {
if (res.data.resultCode == 1) {
this.getMiniPrograme();
} else {
this.Info(res.data.message);
}
})
},
//选择图片 //选择图片
UploadImage(file) { UploadImage(file) {
this.UploadFileToTencent(this.FileType().UserImg, file.file, res => { this.UploadFileToTencent(this.FileType().UserImg, file.file, res => {
...@@ -695,30 +722,18 @@ ...@@ -695,30 +722,18 @@
this.Info(res.data.message); this.Info(res.data.message);
} }
}) })
},
//修改版权
TestMall() {
this.apipost("/api/Mall/GetHome",{MiniAppId:"wxacd9f8cc3480d29e"}, res => {
console.log("res",res);
if (res.data.resultCode == 1) {
} else {
this.Info(res.data.message);
}
})
}, },
//跳转至首页 //跳转至首页
goHomePage(){ goHomePage() {
this.$router.push({ this.$router.push({
name: 'mall', name: 'mall',
query: { query: {
FIndex:1 FIndex: 1
} }
}); });
} }
}, },
mounted() { mounted() {
this.TestMall();
this.init(); this.init();
this.getMiniPrograme(); this.getMiniPrograme();
this.getRemoveMiniPrograme(); this.getRemoveMiniPrograme();
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<!--<div>版本号:{{Version}}</div> <div>描述:</div>--> <!--<div>版本号:{{Version}}</div> <div>描述:</div>-->
</div> </div>
<div> <div>
<img src="http://wx.weibaoge.cn/plugins/wxapp/assets/upload-tip.png" style="max-width: 100%; height: auto; border: 1px dashed rgb(53, 182, 53);"> <img :src="getIconLink('/Static/icon-close.png')" style="max-width: 100%; height: auto; border: 1px dashed rgb(53, 182, 53);">
</div> </div>
</div> </div>
</div> </div>
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
Export(){ Export(){
this.msg.ExcelEnumIds=this.checkedCities; this.msg.ExcelEnumIds=this.checkedCities;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/order/GetMembersToBuyToExcel", "/api/order/GetMembersToBuyToExcel",
msg, msg,
"会员购买列表.xls" "会员购买列表.xls"
......
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
style="padding-bottom: 10px; border-bottom: 1px solid rgb(255, 255, 255);"> style="padding-bottom: 10px; border-bottom: 1px solid rgb(255, 255, 255);">
<div> <div>
<div class="app-image" <div class="app-image"
style="background: url(https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=480194109,2955193021) center center / cover rgb(227, 227, 227); width: 60px; height: 60px; border-radius: 999px; display: inline-block; border: 2px solid rgb(255, 255, 255);"> style="width: 60px; height: 60px; border-radius: 999px; display: inline-block; border: 2px solid rgb(255, 255, 255);">
</div> </div>
</div> </div>
<div style="margin-left: 20px; color: rgb(255, 255, 255);"> <div style="margin-left: 20px; color: rgb(255, 255, 255);">
...@@ -381,8 +381,8 @@ ...@@ -381,8 +381,8 @@
<div flex="dir:left cross:center" <div flex="dir:left cross:center"
style="margin: 10px 0px; padding: 0px 12px; height: 48px; background: rgb(255, 255, 255);"> style="margin: 10px 0px; padding: 0px 12px; height: 48px; background: rgb(255, 255, 255);">
<div>{{addMsg.UserNotesName}}</div> <div>{{addMsg.UserNotesName}}</div>
<div class="app-image" <div class="app-image" style="background-size: cover; background-position: center center; width: 8px; height: 13px; border-radius: 0%; margin-left: auto;"
style="background-image: url(http://wx.weibaoge.cn/web/statics/img/mall/customize_jp.png;); background-size: cover; background-position: center center; width: 8px; height: 13px; border-radius: 0%; margin-left: auto;"> :style="{backgroundImage: 'url('+getIconLink('/Static/customize_jp.png')+')'}" >
</div> </div>
</div> </div>
<div flex="main:center" style="margin: 20px auto; color: rgb(255, 255, 255);"> <div flex="main:center" style="margin: 20px auto; color: rgb(255, 255, 255);">
...@@ -548,7 +548,7 @@ ...@@ -548,7 +548,7 @@
<div flex="dir:left cross:center" <div flex="dir:left cross:center"
style="background: rgb(255, 255, 255); padding: 10px; height: 80px;"> style="background: rgb(255, 255, 255); padding: 10px; height: 80px;">
<div class="app-image" <div class="app-image"
style="background-image: url(https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3740798461,1728086832); background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%;"> style="background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%;">
</div> </div>
<div flex="dir:top main:center" style="width: 100%; margin-left: 12px;"> <div flex="dir:top main:center" style="width: 100%; margin-left: 12px;">
<div flex="dir:left cross:center"> <div flex="dir:left cross:center">
...@@ -568,7 +568,7 @@ ...@@ -568,7 +568,7 @@
<div flex="dir:left cross:center" <div flex="dir:left cross:center"
style="background: rgb(255, 255, 255); padding: 10px; height: 80px;"> style="background: rgb(255, 255, 255); padding: 10px; height: 80px;">
<div class="app-image" <div class="app-image"
style="background-image: url(https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3740798461); background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%;"> style="background-image: url(ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=3740798461); background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%;">
</div> </div>
<div flex="dir:top main:center" style="width: 100%; margin-left: 12px;"> <div flex="dir:top main:center" style="width: 100%; margin-left: 12px;">
<div flex="dir:left cross:center"> <div flex="dir:left cross:center">
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
Export(){ Export(){
this.msg.ExcelEnumIds=this.checkedCities; this.msg.ExcelEnumIds=this.checkedCities;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/user/GetDistributorRemitListToExcel", "/api/user/GetDistributorRemitListToExcel",
msg, msg,
"分销提现.xls" "分销提现.xls"
......
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
Export(){ Export(){
this.msg.ExcelEnumIds=this.checkedCities; this.msg.ExcelEnumIds=this.checkedCities;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/order/GetDistributionOrdersToExcel", "/api/order/GetDistributionOrdersToExcel",
msg, msg,
"分销订单列表.xls" "分销订单列表.xls"
......
...@@ -633,7 +633,7 @@ ...@@ -633,7 +633,7 @@
if(!msg.UserId && msg.UserId==''){ if(!msg.UserId && msg.UserId==''){
msg.UserId=0; msg.UserId=0;
} }
this.JavaGetLocalFile( this.GetLocalFile(
"/api/user/GetDistributorListToExcel", "/api/user/GetDistributorListToExcel",
msg, msg,
"分销商.xls" "分销商.xls"
......
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
if(!msg.Id ||msg.Id==''){ if(!msg.Id ||msg.Id==''){
msg.Id=0; msg.Id=0;
} }
this.JavaGetLocalFile( this.GetLocalFile(
"/api/user/GetMemberUserListToExcel", "/api/user/GetMemberUserListToExcel",
msg, msg,
"用户管理.xls" "用户管理.xls"
......
<template> <template>
<div class="verificationMember usersList"> <div class="verificationMember usersList">
<div class="head-title"> <div class="head-title">
核销员 核销员
<el-button @click="dialogVisible=true" style="float:right;margin-top: -5px;" size="small" type="primary">添加核销员</el-button> <el-button @click="dialogVisible=true" style="float:right;margin-top: -5px;" size="small" type="primary">添加核销员
</el-button>
</div> </div>
<div class="content"> <div class="content">
<div> <div>
<el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择"> <el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择">
<el-option <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择"> <el-select class="w100" style="margin-right: 10px;" v-model="value" size="small" placeholder="请选择">
...@@ -21,31 +17,21 @@ ...@@ -21,31 +17,21 @@
</el-option> </el-option>
</el-select> </el-select>
<div class="searchInput"> <div class="searchInput">
<el-input style="display:inline-block;width:225px;height:30px" <el-input style="display:inline-block;width:225px;height:30px" placeholder="请输入用户昵称搜索" v-model="value"
placeholder="请输入用户昵称搜索" size="small" clearable>
v-model="value"
size="small"
clearable>
</el-input> </el-input>
<span class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span> <span class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div> </div>
</div> </div>
<el-table <el-table :data="tableData" v-loading="loading" border style="width: 100%;margin:20px 0">
:data="tableData" <el-table-column prop="ID" label="用户ID">
v-loading="loading"
border
style="width: 100%;margin:20px 0">
<el-table-column
prop="ID"
label="用户ID">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="address" width="280" label="用户">
prop="address"
width="280"
label="用户">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="app-image" style="background-image: url('https://wx.qlogo.cn/mmopen/vi_32/HO8Q9ibH7UtSFzHs67f0MH6VWjftiboELYLBya5OxpZkHDlicLMq39gxRHS4NhOG1AUepQ13JdUyrT7eM52u6hAsg/132'); <div class="app-image"
background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%; float: left; margin-right: 8px;"></div> style="background-image: url('https://wx.qlogo.cn/mmopen/vi_32/HO8Q9ibH7UtSFzHs67f0MH6VWjftiboELYLBya5OxpZkHDlicLMq39gxRHS4NhOG1AUepQ13JdUyrT7eM52u6hAsg/132');
background-size: cover; background-position: center center; width: 50px; height: 50px; border-radius: 0%; float: left; margin-right: 8px;">
</div>
<div flex="dir:left cross:center">易飞易&港中旅小李15351281772</div> <div flex="dir:left cross:center">易飞易&港中旅小李15351281772</div>
<img style="width:24px;height:24px" src="../../assets/img/userman/wx.png" alt="" class="platform-img"> <img style="width:24px;height:24px" src="../../assets/img/userman/wx.png" alt="" class="platform-img">
<button type="button" class="el-button el-button--success" style="float: right; padding: 5px !important;"> <button type="button" class="el-button el-button--success" style="float: right; padding: 5px !important;">
...@@ -54,32 +40,21 @@ ...@@ -54,32 +40,21 @@
<div>ow_7I5dE_g9Fe1BuBPKdk8RNtEj0</div> <div>ow_7I5dE_g9Fe1BuBPKdk8RNtEj0</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="name" label="所属门店">
prop="name"
label="所属门店">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="name" label="核销订单数">
prop="name"
label="核销订单数">
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="name" label="核销总额">
prop="name"
label="核销总额">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="blue">0</span> <span class="blue">0</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="name" label="核销卡券数">
prop="name"
label="核销卡券数">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="blue">0</span> <span class="blue">0</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column prop="address" width="200" label="操作">
prop="address"
width="200"
label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<img style="width:32px;height:32px" src="../../assets/img/userman/edit.png" alt=""> <img style="width:32px;height:32px" src="../../assets/img/userman/edit.png" alt="">
<img style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/integral.png" alt=""> <img style="width:32px;height:32px;margin:0 10px" src="../../assets/img/userman/integral.png" alt="">
...@@ -87,19 +62,12 @@ ...@@ -87,19 +62,12 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination style="text-align:right" <el-pagination style="text-align:right" background @current-change="handleCurrentChange" :page-size="msg.pageSize"
background layout="prev, pager, next" :total="total">
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="total">
</el-pagination> </el-pagination>
</div> </div>
<!-- 选择导出信息 --> <!-- 选择导出信息 -->
<el-dialog <el-dialog title="设置核销员" :visible.sync="dialogVisible" width="600px">
title="设置核销员"
:visible.sync="dialogVisible"
width="600px">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<el-form-item label="门店选择" prop="name"> <el-form-item label="门店选择" prop="name">
<el-input style="width:230px" size="small" v-model="addMsg.name"></el-input> <el-input style="width:230px" size="small" v-model="addMsg.name"></el-input>
...@@ -119,25 +87,27 @@ ...@@ -119,25 +87,27 @@
export default { export default {
data() { data() {
return { return {
loading:false, loading: false,
addMsg:{}, addMsg: {},
dialogVisible:false, dialogVisible: false,
value:'', value: '',
options:[], options: [],
tableData:[ tableData: [{
{ID:'111'} ID: '111'
], }],
msg:{ msg: {
pageIndex:1, pageIndex: 1,
pageSize:15, pageSize: 15,
}, },
total:0, total: 0,
rules: { rules: {
name: [ name: [{
{ required: true, message: '新手机号', trigger: 'blur' } required: true,
], message: '新手机号',
trigger: 'blur'
}],
}, },
platList:[], platList: [],
}; };
}, },
...@@ -149,7 +119,7 @@ ...@@ -149,7 +119,7 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
getList(){ getList() {
}, },
getplat() { getplat() {
...@@ -166,33 +136,38 @@ ...@@ -166,33 +136,38 @@
</script> </script>
<style> <style>
.usersList .blue{ .usersList .blue {
color:#409EFF; color: #409EFF;
}
} .usersList .content .searchInput {
.usersList .content .searchInput{
border: 1px solid #DCDFE6; border: 1px solid #DCDFE6;
border-radius: 4px; border-radius: 4px;
} }
.usersList .content .searchInput .el-input__inner{
border:none;outline:none; .usersList .content .searchInput .el-input__inner {
border: none;
outline: none;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
.usersList .content .searchInput{
.usersList .content .searchInput {
line-height: normal; line-height: normal;
display: inline-table; display: inline-table;
width: 100%; width: 100%;
border-collapse: separate; border-collapse: separate;
border-spacing: 0; border-spacing: 0;
width:250px; width: 250px;
margin-right: 20px; margin-right: 20px;
} }
.usersList .content{
.usersList .content {
background: #fff; background: #fff;
margin-top:10px; margin-top: 10px;
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
</style> </style>
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
maxHeight:'calc('+height+' - '+item.top+'px)', backgroundColor: index == key ? 'rgba(92, 179, 253, 0.2)' : ''}" maxHeight:'calc('+height+' - '+item.top+'px)', backgroundColor: index == key ? 'rgba(92, 179, 253, 0.2)' : ''}"
@click="select(key)" v-for="(item, key) in hotspotList" :key="key" :data-index="key"> @click="select(key)" v-for="(item, key) in hotspotList" :key="key" :data-index="key">
<div class="close" @click.stop="del(key)" v-if="item.is_close"> <div class="close" @click.stop="del(key)" v-if="item.is_close">
<img style="width: 32px;height: 32px" src="http://wx.weibaoge.cn/web/statics/img/mall/icon-close.png"> <img style="width: 32px;height: 32px" :src="getIconLink('/Static/icon-close.png')">
</div> </div>
</div> </div>
<div class="pic-list" :style="style" v-if="picList && picList.length > 0"> <div class="pic-list" :style="style" v-if="picList && picList.length > 0">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<div :style="item" :key="index"> <div :style="item" :key="index">
<img :src="item.pic_url" style="width: 100%;visibility: hidden;display: block;"> <img :src="item.pic_url" style="width: 100%;visibility: hidden;display: block;">
</div> </div>
<img :src="item.pic_url" style="width: 100%;visibility: hidden;display: block;"> <img :src="item.pic_url" :key="index" style="width: 100%;visibility: hidden;display: block;">
</template> </template>
</div> </div>
<div :style="style" flex="dir:left main:center cross:center" v-else> <div :style="style" flex="dir:left main:center cross:center" v-else>
......
This diff is collapsed.
...@@ -227,7 +227,6 @@ ...@@ -227,7 +227,6 @@
width: 110px; width: 110px;
height: 60px; height: 60px;
line-height: 62px; line-height: 62px;
/* border-bottom:2px solid #409EFF; */
text-align: center; text-align: center;
margin-left: 30px; margin-left: 30px;
cursor: pointer; cursor: pointer;
...@@ -291,7 +290,7 @@ ...@@ -291,7 +290,7 @@
<div class="is-show-menu-2" v-if="isShowOne" @click="showTwo=true,isShowOne=false">>></div> <div class="is-show-menu-2" v-if="isShowOne" @click="showTwo=true,isShowOne=false">>></div>
<div class="leftMenu1"> <div class="leftMenu1">
<div class="aside-logo"> <div class="aside-logo">
<div class="asideInner" @click="CommonJump('zanIndex'),firstCked=0,showTwo=false">{{currentUser.MallName}} <div class="asideInner" @click="CommonJump('mallIndex'),firstCked=0,showTwo=false">{{currentUser.MallName}}
</div> </div>
</div> </div>
<ul> <ul>
...@@ -339,8 +338,8 @@ ...@@ -339,8 +338,8 @@
<div class="mainRightLeft" @click="goLittlePrograme">微信小程序</div> <div class="mainRightLeft" @click="goLittlePrograme">微信小程序</div>
<div class="marinRightList"> <div class="marinRightList">
<ul> <ul>
<li>缓存</li> <li style="display:none;">缓存</li>
<li title="教程管理"> <li style="display:none;" title="教程管理">
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<span class="el-dropdown-link"> <span class="el-dropdown-link">
教程管理<i class="el-icon-arrow-down el-icon--right"></i> 教程管理<i class="el-icon-arrow-down el-icon--right"></i>
...@@ -359,6 +358,7 @@ ...@@ -359,6 +358,7 @@
<el-dropdown-item disabled>{{currentUser.MallName}}</el-dropdown-item> <el-dropdown-item disabled>{{currentUser.MallName}}</el-dropdown-item>
<el-dropdown-item disabled>{{currentUser.Account}}({{currentUser.MobilePhone}})</el-dropdown-item> <el-dropdown-item disabled>{{currentUser.Account}}({{currentUser.MobilePhone}})</el-dropdown-item>
<el-dropdown-item @click.native="CommonJump('index')">返回系统</el-dropdown-item> <el-dropdown-item @click.native="CommonJump('index')">返回系统</el-dropdown-item>
<el-dropdown-item @click.native="loginOut">退出</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</li> </li>
...@@ -390,6 +390,14 @@ ...@@ -390,6 +390,14 @@
this.currentUser = this.getLocalStorage(); this.currentUser = this.getLocalStorage();
}, },
methods: { methods: {
//退出登录
loginOut() {
let that = this;
that.Confirm("确认要退出系统吗?", function () {
localStorage.removeItem("mall_userInfo");
location.href = '/';
});
},
//获取菜单列表 //获取菜单列表
getMenuList() { getMenuList() {
this.apipost("/api/Tenant/GetMenuList", {}, res => { this.apipost("/api/Tenant/GetMenuList", {}, res => {
...@@ -459,11 +467,11 @@ ...@@ -459,11 +467,11 @@
} }
}, },
//跳转微信小程序 //跳转微信小程序
goLittlePrograme(){ goLittlePrograme() {
let routeData = this.$router.resolve({ let routeData = this.$router.resolve({
name: 'Fsetting', name: 'Fsetting',
query: { query: {
FIndex:1 FIndex: 1
} }
}); });
window.open(routeData.href, "_blank"); window.open(routeData.href, "_blank");
...@@ -471,8 +479,8 @@ ...@@ -471,8 +479,8 @@
}, },
mounted() { mounted() {
this.getMenuList(); this.getMenuList();
if(this.$route.query.FIndex){ if (this.$route.query.FIndex) {
this.CommonJump('zanIndex'); this.CommonJump('mallIndex');
} }
this.Height = document.documentElement.clientHeight - 60; this.Height = document.documentElement.clientHeight - 60;
//监听浏览器窗口变化  //监听浏览器窗口变化 
......
...@@ -6,19 +6,11 @@ ...@@ -6,19 +6,11 @@
<el-card style="margin-top:10px" class="box-card" shadow="never"> <el-card style="margin-top:10px" class="box-card" shadow="never">
<el-form class="app-batch" :model="addMsg" :rules="rules" ref="addMsg" label-width="180px"> <el-form class="app-batch" :model="addMsg" :rules="rules" ref="addMsg" label-width="180px">
<el-form-item label="导入模板" prop="FilePath"> <el-form-item label="导入模板" prop="FilePath">
<el-input v-model="addMsg.FilePath" size="small" style="width:289px" <el-input v-model="addMsg.FilePath" size="small" style="width:289px" :disabled="true"
:disabled="true"
class="input-with-select"> class="input-with-select">
</el-input> </el-input>
<!-- :http-request="UploadImage" --> <el-upload class="upload-demo" ref="upload" :action="importFileUrl" :multiple="true"
<el-upload :on-success="successUpload" :show-file-list="false" accept=".csv, .xlsx">
class="upload-demo"
ref="upload"
:action="importFileUrl"
:multiple="true"
:on-success="successUpload"
:show-file-list="false"
accept=".csv, .xlsx">
<el-button size="small">选择文件</el-button> <el-button size="small">选择文件</el-button>
</el-upload> </el-upload>
<el-button size="small" style="margin-left:20px">默认模板下载</el-button> <el-button size="small" style="margin-left:20px">默认模板下载</el-button>
...@@ -31,46 +23,48 @@ ...@@ -31,46 +23,48 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
<div style="margin-top:10px" > <div style="margin-top:10px">
<el-button @click="Save('addMsg')" size="small" type="primary">提交</el-button> <el-button @click="Save('addMsg')" size="small" type="primary">提交</el-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
importFileUrl: this.domainManager().UploadFileUrl, importFileUrl: this.domainManager().UploadFileUrl,
addMsg:{ addMsg: {
FilePath:'', FilePath: '',
ExpressId:'', ExpressId: '',
}, },
rules:{ rules: {
ExpressId: [ ExpressId: [{
{ required: true, message: '请选择快递公司', trigger: 'change' } required: true,
], message: '请选择快递公司',
FilePath: [ trigger: 'change'
{ required: true, message: '请选择导入模板', trigger: 'blur' } }],
], FilePath: [{
required: true,
message: '请选择导入模板',
trigger: 'blur'
}],
}, },
ExpressList:[], ExpressList: [],
}; };
}, },
created() { created() {
this.getExpressInfo(); this.getExpressInfo();
}, },
methods: { methods: {
Save(formName){ Save(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.apipost("/api/order/SetOrderBatchSendGoods",this.addMsg, this.apipost("/api/order/SetOrderBatchSendGoods", this.addMsg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.addMsg={ this.addMsg = {
FilePath:'', FilePath: '',
ExpressId:'', ExpressId: '',
} }
this.Success(res.data.message); this.Success(res.data.message);
} else { } else {
...@@ -84,8 +78,8 @@ export default { ...@@ -84,8 +78,8 @@ export default {
} }
}); });
}, },
successUpload(file){ successUpload(file) {
this.addMsg.FilePath=file.data; this.addMsg.FilePath = file.data;
}, },
// 快递公司 // 快递公司
getExpressInfo() { getExpressInfo() {
...@@ -97,17 +91,17 @@ export default { ...@@ -97,17 +91,17 @@ export default {
} }
}) })
}, },
}, },
mounted() { mounted() {
} }
}; };
</script> </script>
<style> <style>
.BulkShipment .upload-demo{ .BulkShipment .upload-demo {
display: inline-block; display: inline-block;
position: relative; position: relative;
left:-5px; left: -5px;
} }
</style> </style>
...@@ -692,7 +692,7 @@ export default { ...@@ -692,7 +692,7 @@ export default {
Export(){ Export(){
this.msg.ExcelEnumIds=this.checkedCities; this.msg.ExcelEnumIds=this.checkedCities;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/order/GetDistributionOrdersToExcel", "/api/order/GetDistributionOrdersToExcel",
msg, msg,
"售后订单.xls" "售后订单.xls"
......
This diff is collapsed.
...@@ -1022,7 +1022,7 @@ ...@@ -1022,7 +1022,7 @@
Export() { Export() {
this.msg.ExcelEnumIds = this.checkedCities; this.msg.ExcelEnumIds = this.checkedCities;
let msg = JSON.parse(JSON.stringify(this.msg)); let msg = JSON.parse(JSON.stringify(this.msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/order/GetMemberUserListToExcel", "/api/order/GetMemberUserListToExcel",
msg, msg,
"订单列表.xls" "订单列表.xls"
......
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
ExcelEnumIds:this.checkedCities ExcelEnumIds:this.checkedCities
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/Integral/GetDistributorRemitListToExcel", "/api/Integral/GetDistributorRemitListToExcel",
msg, msg,
"积分记录.xls" "积分记录.xls"
......
...@@ -30,11 +30,11 @@ ...@@ -30,11 +30,11 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="热区"> <el-form-item label="热区">
<choiceArea ref="choiceArea" :multiple="true" :max="2" :pic-url="getIconLink(addMsg.AuthUrl)" <choiceAreaAuth ref="choiceAreaAuth" :multiple="true" :max="2" :pic-url="getIconLink(addMsg.AuthUrl)"
mode='auth' :hotspotArray="addMsg.AuthDataList" width="650px" height="700px" mode='auth' :hotspotArray="addMsg.AuthDataList" width="650px" height="700px"
@confirm="selectHotspot" :is-link="false"> @confirm="selectHotspot" >
<el-button size="mini">划分热区</el-button> <el-button size="mini">划分热区</el-button>
</choiceArea> </choiceAreaAuth>
<div>注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区</div> <div>注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</template> </template>
<script> <script>
import ChooseImg from "@/components/global/ChooseImg.vue"; import ChooseImg from "@/components/global/ChooseImg.vue";
import choiceArea from "../common/choiceArea.vue"; import choiceAreaAuth from "../common/choiceAreaAuth.vue";
export default { export default {
data() { data() {
return { return {
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
MallBaseId: 0, MallBaseId: 0,
IsOpenAuth: 0, //是否开启 IsOpenAuth: 0, //是否开启
AuthUrl: this.domainManager().ImageUrl + '/Static/auth-default.png', //图片 AuthUrl: this.domainManager().ImageUrl + '/Static/auth-default.png', //图片
AuthDataList: [] //热区 AuthDataList: [ ] //热区
}, },
}; };
}, },
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
}, },
components: { components: {
ChooseImg, ChooseImg,
choiceArea choiceAreaAuth
}, },
methods: { methods: {
GetData() { GetData() {
...@@ -90,15 +90,45 @@ ...@@ -90,15 +90,45 @@
if (res.data.data.AuthUrl) { if (res.data.data.AuthUrl) {
this.addMsg.AuthUrl = res.data.data.AuthUrl; this.addMsg.AuthUrl = res.data.data.AuthUrl;
} }
if (res.data.data.AuthDataList && res.data.data.AuthDataList.length > 0) { if (res.data.data.AuthDataList && res.data.data.AuthDataList.length > 0) {
this.addMsg.AuthDataList = res.data.data.AuthDataList; this.addMsg.AuthDataList = res.data.data.AuthDataList;
} else {
this.GetDefaultSpot();
} }
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
} }
}) })
}, },
//热区设置默认值
GetDefaultSpot() {
var objCancel = {
width: 224,
height: 80,
left: 84,
top: 566,
defaultX: 84,
defaultY: 566,
link: "",
open_type: "cancel",
IsChecked:false,
};
this.addMsg.AuthDataList.push(objCancel);
var objLogin = {
width: 224,
height: 80,
left: 340,
top: 566,
defaultX: 340,
defaultY: 566,
link: "",
open_type: "login",
IsChecked:false,
};
this.addMsg.AuthDataList.push(objLogin);
},
//保存 //保存
saveMsg() { saveMsg() {
this.apipost("/api/Tenant/SetMiniProgramMallAuth", this.addMsg, res => { this.apipost("/api/Tenant/SetMiniProgramMallAuth", this.addMsg, res => {
...@@ -118,7 +148,7 @@ ...@@ -118,7 +148,7 @@
// 热区选择(edit) // 热区选择(edit)
selectHotspot(list) { selectHotspot(list) {
this.addMsg.AuthDataList = list; this.addMsg.AuthDataList = list;
this.$refs.choiceArea.clearAll(); this.$refs.choiceAreaAuth.clearAll();
}, },
}, },
mounted() { mounted() {
......
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
ExcelEnumIds:this.checkedCities ExcelEnumIds:this.checkedCities
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/Recharge/GetDistributorRemitListToExcel", "/api/Recharge/GetDistributorRemitListToExcel",
msg, msg,
"余额收支.xls" "余额收支.xls"
......
...@@ -1237,7 +1237,6 @@ ...@@ -1237,7 +1237,6 @@
//点击保存 //点击保存
SaveData() { SaveData() {
this.addMsg.ComponentDataList = this.dataList; this.addMsg.ComponentDataList = this.dataList;
console.log("this.addMsg",this.addMsg);
this.apipost("/api/Template/SetMiniTemplate", this.addMsg, res => { this.apipost("/api/Template/SetMiniTemplate", this.addMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg.Id = res.data.data; this.addMsg.Id = res.data.data;
......
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
EndDate :this.msg.EndDate, EndDate :this.msg.EndDate,
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/Coupon/GetCouponListToExcel", "/api/Coupon/GetCouponListToExcel",
msg, msg,
"优惠券-发布统计.xls" "优惠券-发布统计.xls"
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
EndDate :this.msg.EndDate, EndDate :this.msg.EndDate,
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/Integral/GetIntegralListToExcel", "/api/Integral/GetIntegralListToExcel",
msg, msg,
"积分收支.xls" "积分收支.xls"
......
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
Source :this.msg.Source , Source :this.msg.Source ,
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/User/GetRankingListToExcel", "/api/User/GetRankingListToExcel",
msg, msg,
"分销排行.xls" "分销排行.xls"
......
...@@ -305,7 +305,7 @@ ...@@ -305,7 +305,7 @@
} }
msg = JSON.parse(JSON.stringify(msg)); msg = JSON.parse(JSON.stringify(msg));
this.JavaGetLocalFile( this.GetLocalFile(
"/api/Statistics/GetSellExcel", "/api/Statistics/GetSellExcel",
msg, msg,
"销售统计.xls" "销售统计.xls"
......
...@@ -54,11 +54,8 @@ export default { ...@@ -54,11 +54,8 @@ export default {
//域名管理对象 //域名管理对象
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = ''; let domainUrl = '';
//domainUrl = "http://192.168.2.214:8200" domainUrl = "http://192.168.2.214:8200";
// domainUrl = "http://192.168.2.65"; domainUrl = "https://localhost:5001";
// domainUrl = "https://localhost:5001";
domainUrl = "http://mallapi.oytour.com";
let locationName = window.location.hostname; let locationName = window.location.hostname;
if (locationName.indexOf('testmall.oytour') !== -1) { if (locationName.indexOf('testmall.oytour') !== -1) {
domainUrl = "http://mallapi.oytour.com"; domainUrl = "http://mallapi.oytour.com";
...@@ -71,9 +68,8 @@ export default { ...@@ -71,9 +68,8 @@ export default {
//常用提交数据URL //常用提交数据URL
PostUrl: domainUrl + "/api/common/post", PostUrl: domainUrl + "/api/common/post",
ImageUrl: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com', ImageUrl: 'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com',
UploadFileUrl:domainUrl + '/api/File/LocalFileUploadImport', UploadFileUrl: domainUrl + '/api/File/LocalFileUploadImport',
UploadBlob:domainUrl + '/api/File/UploadBlob', UploadBlob: domainUrl + '/api/File/UploadBlob',
}; };
return obj; return obj;
}, },
...@@ -115,7 +111,6 @@ export default { ...@@ -115,7 +111,6 @@ export default {
} }
item[filed] = value; item[filed] = value;
}, },
//是否是线上环境【发布时修改为true】 //是否是线上环境【发布时修改为true】
Vue.prototype.isOnline = function () { Vue.prototype.isOnline = function () {
return process.env.NODE_ENV !== 'development'; return process.env.NODE_ENV !== 'development';
...@@ -197,57 +192,10 @@ export default { ...@@ -197,57 +192,10 @@ export default {
return str; return str;
} }
} }
//HTTP提交数据 //HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) { Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) {
if (msg == null || msg == "") {
msg = {}
}
var apiurl = this.domainManager().DomainUrl + cmd; var apiurl = this.domainManager().DomainUrl + cmd;
var timestamp = (new Date()).valueOf(); var postData = this.GetPostData(cmd, msg, "");
this.apiurl = apiurl;
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" &&
this.$route.path.toLowerCase() != "/login" &&
this.$route.path.toLowerCase() != "/register" &&
this.$route.path.toLowerCase() != "/forgetpassword"
) {
this.$router.push({
path: '/login'
})
}
var token = "";
var key = "";
var MallBaseId = "0"; //小程序ID
var TenantId = "0"; //商户Id
var EmpId=0;//员工编号【员工登录时使用】
if (this.getLocalStorage() != null) {
token = this.getLocalStorage().Token;
key = this.getLocalStorage().SecretKey;
MallBaseId = this.getLocalStorage().MallBaseId;
TenantId = this.getLocalStorage().TenantId;
EmpId=this.getLocalStorage().EmpId;
}
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`);
let tempLanguage = 0;
if (localStorage.language && localStorage.language != '') {
if (localStorage.language == "zh-TW") {
tempLanguage = 1;
} else if (localStorage.language == "Japanese") {
tempLanguage = 2;
}
}
var postData = {
"msg": msg,
"timestamp": timestamp,
"token": token,
"sign": md5Str,
"languageId": tempLanguage,
"cmd": cmd,
"MallBaseId": MallBaseId,
"TenantId": TenantId,
"EmpId":EmpId
}
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
...@@ -266,10 +214,17 @@ export default { ...@@ -266,10 +214,17 @@ export default {
} }
}, faildCall) }, faildCall)
} }
Vue.prototype.JavaGetLocalFile = function (cmd, msg, fileName, successCall) { //获取请求参数
var apiurl = this.domainManager().DomainUrl + cmd; Vue.prototype.GetPostData = function (cmd, msg, newCmd) {
if (msg == null || msg == "") {
msg = {}
}
var timestamp = (new Date()).valueOf(); var timestamp = (new Date()).valueOf();
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" && this.$route.path.toLowerCase() != "/login") { if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" &&
this.$route.path.toLowerCase() != "/login" &&
this.$route.path.toLowerCase() != "/register" &&
this.$route.path.toLowerCase() != "/forgetpassword"
) {
this.$router.push({ this.$router.push({
path: '/login' path: '/login'
}) })
...@@ -277,13 +232,15 @@ export default { ...@@ -277,13 +232,15 @@ export default {
var token = ""; var token = "";
var key = ""; var key = "";
var MallBaseId = "0"; //小程序ID var MallBaseId = "0"; //小程序ID
var TenantId = "0"; //商户Id
var EmpId = 0; //员工编号【员工登录时使用】
if (this.getLocalStorage() != null) { if (this.getLocalStorage() != null) {
token = this.getLocalStorage().Token; token = this.getLocalStorage().Token;
key = this.getLocalStorage().SecretKey; key = this.getLocalStorage().SecretKey;
MallBaseId = this.getLocalStorage().MallBaseId; MallBaseId = this.getLocalStorage().MallBaseId;
TenantId = this.getLocalStorage().TenantId;
EmpId = this.getLocalStorage().EmpId;
} }
let mall_userInfo = localStorage.mall_userInfo ? JSON.parse(localStorage.mall_userInfo) : '';
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase(); var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`); var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`);
let tempLanguage = 0; let tempLanguage = 0;
...@@ -294,16 +251,27 @@ export default { ...@@ -294,16 +251,27 @@ export default {
tempLanguage = 2; tempLanguage = 2;
} }
} }
var cmdStr = "";
if (newCmd) {
cmdStr = newCmd;
}
var postData = { var postData = {
"msg": msg, msg: msg,
"timestamp": timestamp, timestamp: timestamp,
"token": token, token: token,
"sign": md5Str, sign: md5Str,
"languageId": tempLanguage, languageId: tempLanguage,
"cmd": cmd, cmd: cmdStr,
"MallBaseId": MallBaseId, MallBaseId: MallBaseId,
TenantId: TenantId,
EmpId: EmpId,
} }
return postData
},
//文件下载
Vue.prototype.GetLocalFile = function (cmd, msg, fileName, newCmd, successCall) {
var apiurl = this.domainManager().DomainUrl + cmd;
var postData = this.GetPostData(cmd, msg, newCmd);
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
responseType: 'arraybuffer' responseType: 'arraybuffer'
}).then((res) => { }).then((res) => {
......
...@@ -106,9 +106,9 @@ export default new Router({ ...@@ -106,9 +106,9 @@ export default new Router({
name: 'mall', name: 'mall',
component: resolve => require(['@/components/mall'], resolve), component: resolve => require(['@/components/mall'], resolve),
children: [{ children: [{
path: '/zanIndex', path: '/mallIndex',
name: 'zanIndex', name: 'mallIndex',
component: resolve => require(['@/components/zanIndex'], resolve), component: resolve => require(['@/components/mallIndex'], resolve),
}, },
// 用户管理 用户列表 // 用户管理 用户列表
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment