Commit b1e2fd66 authored by 黄媛媛's avatar 黄媛媛
parents c61a8f5b 052ad79b
...@@ -13,6 +13,7 @@ export default { ...@@ -13,6 +13,7 @@ export default {
<style> <style>
@import "//at.alicdn.com/t/font_1769104_qg9btfnng5.css"; @import "//at.alicdn.com/t/font_1769104_qg9btfnng5.css";
@import "./assets/css/common.css"; @import "./assets/css/common.css";
@import "./assets/css/zkcss.css";
html, html,
body { body {
margin: 0; margin: 0;
......
.w120{
width:120px;
}
.w160{
width:160px;
}
\ No newline at end of file
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</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">{{scope.row.MallName}}</p> <p style="color:#409EFF;cursor:pointer;" @click="setMallBaseId(scope.row.MallBaseId),CommonJump('mall',{})">{{scope.row.MallName}}</p>
<p>账号:{{scope.row.Account}}</p> <p>账号:{{scope.row.Account}}</p>
<p> <p>
手机:<span style="color:rgb(144, 147, 153)">{{scope.row.MobilePhone}}</span> 手机:<span style="color:rgb(144, 147, 153)">{{scope.row.MobilePhone}}</span>
...@@ -120,10 +120,10 @@ ...@@ -120,10 +120,10 @@
</p> </p>
<div style="margin-bottom:20px;padding: 15px 20px;"> <div style="margin-bottom:20px;padding: 15px 20px;">
<div class="searchInput" style="width:250px;"> <div class="searchInput" style="width:250px;">
<el-input style="display:inline-block;width:225px;" placeholder="请输入商城名称或用户名搜索" v-model="val" <el-input style="display:inline-block;width:225px;" @keyup.enter.native="qMsg.pageIndex=1,getMiniPrograme()" placeholder="请输入商城名称或用户名搜索" v-model="val"
size="small" clearable> 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>
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</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">{{scope.row.MallName}}</p> <p style="color:#409EFF;">{{scope.row.MallName}}</p>
<p>账号:{{scope.row.Account}}</p> <p>账号:{{scope.row.Account}}</p>
<p> <p>
手机:<span style="color:rgb(144, 147, 153)">{{scope.row.MobilePhone}}</span> 手机:<span style="color:rgb(144, 147, 153)">{{scope.row.MobilePhone}}</span>
...@@ -474,6 +474,12 @@ ...@@ -474,6 +474,12 @@
this.Info(res.data.message); this.Info(res.data.message);
} }
}) })
},
//点击商品名称设置setMallBaseId
setMallBaseId(Id){
let userInfo = this.getLocalStorage();
userInfo.MallBaseId = Id;
localStorage.mall_userInfo = JSON.stringify(userInfo);
} }
}, },
mounted() { mounted() {
......
...@@ -274,10 +274,10 @@ ...@@ -274,10 +274,10 @@
<div style="width: 50%; padding-left: 100px; zoom: 0.5;"> <div style="width: 50%; padding-left: 100px; zoom: 0.5;">
<div style="width: 750px; border: 1px solid rgb(238, 238, 238);position: relative"> <div style="width: 750px; border: 1px solid rgb(238, 238, 238);position: relative">
<img src="../../assets/img/heads.png" alt="" style="width: 750px;"> <img src="../../assets/img/heads.png" alt="" :style="{width: '750px',background:msg.MinIcoColor==1? '#FFFFFF':'#000000'}">
<div class="Mintips" :style="{opacity: msg.MinBackClarity/100,borderRadius:msg.MinBackCircularBead+'px'}"> <div class="Mintips" :style="{opacity: msg.MinBackClarity/100,borderRadius:msg.MinBackCircularBead+'px'}">
<img src="../../assets/img/fork_white.png" alt="" style="width: 72px;height: 72px"> <img src="../../assets/img/fork_white.png" alt="" style="width: 72px;height: 72px">
<span style="padding: 0 10px" >{{msg.MinTips}}</span> <span :style="{padding: '0 10px',color:msg.MinTipsColor}" >{{msg.MinTips}}</span>
</div> </div>
<div class="triangle-up"> <div class="triangle-up">
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="显示设置" name="second">显示设置</el-tab-pane> <el-tab-pane label="显示设置" name="second">9999</el-tab-pane>
<el-tab-pane label="悬浮按钮设置" name="third">悬浮按钮设置</el-tab-pane> <el-tab-pane label="悬浮按钮设置" name="third">悬浮按钮设置</el-tab-pane>
</el-tabs> </el-tabs>
<el-button type="primary" style="margin: 12px 0 ">保存</el-button> <el-button type="primary" style="margin: 12px 0 ">保存</el-button>
......
...@@ -11,14 +11,142 @@ ...@@ -11,14 +11,142 @@
margin: 10px 0; margin: 10px 0;
border: 1px solid #EBEEF5; border: 1px solid #EBEEF5;
} }
.searchDiv{
display:flex;
flex-direction: row;
padding:15px;
}
.zanIndex .el-input__inner{
height:32px;
line-height: 32px;
padding:0 10px;
}
.zanIndex .el-input__icon {
line-height: 32px;
}
.searchDiv>div{
margin-right:5px;
}
.zanIndex .el-tabs__nav-scroll{
width:120px;
margin-left:30px;
}
.zanIndex .el-tabs__nav-wrap::after {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background-color: #E4E7ED;
z-index: 1;
height:1px;
}
.zanIndex .el-tabs__item{
height:32px;
line-height: 32px;
}
.zanIndex .clean{
color: #92959B;
margin-left: 30px;
cursor: pointer;
font-size: 15px;
}
.searchDiv>div:last-child{
height:32px;
line-height: 32px;
}
.number_info{
display: flex;
width: 100%;
height: 60px;
font-size: 28px;
color: #303133;
}
.num-info .num-info-item:first-of-type {
border-left: 0;
}
.num-info .num-info-item:first-of-type {
border-left: 0;
}
.info-item-name {
font-size: 16px;
color: #92959B;
}
</style> </style>
<template> <template>
<div class="zanIndex"> <div class="zanIndex">
<div class="zanTotalTop">数据概况</div> <div class="zanTotalTop">数据概况</div>
<div class="zanIndex_Second"> <div class="zanIndex_Second">
<div class="selectDiv"> <div class="searchDiv">
<div>
<el-select v-model="searchMsg.plat" class="w120">
<el-option label="全部平台" :value='0'></el-option>
<el-option label="微信" :value='1'></el-option>
<el-option label="支付宝" :value='2'></el-option>
<el-option label="抖音/头条" :value='3'></el-option>
<el-option label="百度" :value='4'></el-option>
</el-select>
</div>
<div>
<el-select v-model="searchMsg.plat2" filterable class="w160">
<el-option label="全部" :value='0'></el-option>
</el-select>
</div>
<div style="margin-right:50px;">
<el-date-picker
class="indataPicker"
v-model="dateArr"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</div>
<div>
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="7日" name="first"></el-tab-pane>
<el-tab-pane label="30日" name="second"></el-tab-pane>
</el-tabs>
</div>
<div>
<span class="clean">清空筛选</span>
</div>
</div>
<div class="num-info">
<div class="num-info-item">
<div>1094</div>
<div class="info-item-name">
<span>用户数</span>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
\ No newline at end of file <script>
export default {
data() {
return {
activeName:'first',
searchMsg: {
plat:0,
plat2:0,
dateArr:''
},
};
},
created() {
},
methods: {
handleClick(){
}
},
mounted() {
}
};
</script>
\ No newline at end of file
...@@ -137,11 +137,11 @@ export default { ...@@ -137,11 +137,11 @@ export default {
var index = filename.lastIndexOf("."); var index = filename.lastIndexOf(".");
var suffix = filename.substr(index); var suffix = filename.substr(index);
var timestamp1 = Date.parse(new Date()); var timestamp1 = Date.parse(new Date());
let str=''; let str = '';
if(this.isOnline()){ if (this.isOnline()) {
str="/Test" str = "/Test"
} }
var newFileName =str +'/Upload/' + path +"/"+ timestamp1 + "" + suffix; var newFileName = str + '/Upload/' + path + "/" + timestamp1 + "" + suffix;
var uploadMsg = { var uploadMsg = {
Bucket: "viitto-1301420277", Bucket: "viitto-1301420277",
Region: "ap-chengdu", Region: "ap-chengdu",
...@@ -164,9 +164,9 @@ export default { ...@@ -164,9 +164,9 @@ export default {
}, function (err, data) { }, function (err, data) {
if (data && data.statusCode == 200) { if (data && data.statusCode == 200) {
var uploadResult = { var uploadResult = {
resultCode:1, resultCode: 1,
FileName: fileObj.name, FileName: fileObj.name,
FileUrl: "http://"+data.Location FileUrl: "http://" + data.Location
} }
if (callback) { if (callback) {
callback(uploadResult); callback(uploadResult);
...@@ -178,115 +178,121 @@ export default { ...@@ -178,115 +178,121 @@ export default {
}); });
}, },
//公用跳转 //公用跳转
Vue.prototype.CommonJump = function(path,obj){ Vue.prototype.CommonJump = function (path, obj) {
this.$router.push({ this.$router.push({
name: path, name: path,
query: obj query: obj
}); });
} }
//HTTP提交数据 //HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) { Vue.prototype.apipost = function (cmd, msg, successCall, faildCall, isOnline) {
if (msg == null || msg == "") { if (msg == null || msg == "") {
msg = {} msg = {}
}
var apiurl = this.domainManager().DomainUrl + cmd;
var timestamp = (new Date()).valueOf();
this.apiurl = apiurl;
if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" && this.$route.path.toLowerCase() != "/login") {
this.$router.push({
path: '/login'
})
}
var token = "";
var key = "";
if (this.getLocalStorage() != null) {
token = this.getLocalStorage().Token;
key = this.getLocalStorage().SecretKey;
}
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,
}
this.$http.post(apiurl, postData, {
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path
}
})
.then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
this.$router.push({
path: '/login'
});
} else if (res.resultCode == 10005) {
this.$router.go(-1);
} else {
successCall(res);
}
}, faildCall)
} }
Vue.prototype.JavaGetLocalFile = function(cmd, msg, fileName, successCall) { var apiurl = this.domainManager().DomainUrl + cmd;
var apiurl = this.domainManager().JavaLocalFileStreamDownLoadUrl + cmd; var timestamp = (new Date()).valueOf();
var timestamp = (new Date()).valueOf(); this.apiurl = apiurl;
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.$router.push({ this.$router.push({
path: '/login' path: '/login'
}) })
} }
var token = ""; var token = "";
var key = ""; var key = "";
if (this.getLocalStorage() != null) { var MallBaseId = "0"; //小程序ID
token = this.getLocalStorage().Token; var TenantId = "0"; //商户Id
key = this.getLocalStorage().SecretKey; if (this.getLocalStorage() != null) {
} token = this.getLocalStorage().Token;
let mall_userInfo = localStorage.mall_userInfo ? JSON.parse(localStorage.mall_userInfo) : ''; key = this.getLocalStorage().SecretKey;
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase(); MallBaseId = this.getLocalStorage().MallBaseId;
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`); TenantId = this.getLocalStorage().TenantId;
let tempLanguage = 0; }
if (localStorage.language && localStorage.language != '') { var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
if (localStorage.language == "zh-TW") { 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; tempLanguage = 1;
} else if (localStorage.language == "Japanese") { } else if (localStorage.language == "Japanese") {
tempLanguage = 2; tempLanguage = 2;
}
}
var postData = {
"msg": msg,
"timestamp": timestamp,
"token": token,
"sign": md5Str,
"languageId": tempLanguage,
"cmd": cmd,
"MallBaseId": MallBaseId,
"TenantId": TenantId
}
this.$http.post(apiurl, postData, {
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path
} }
})
.then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {
this.$router.push({
path: '/login'
});
} else if (res.resultCode == 10005) {
this.$router.go(-1);
} else {
successCall(res);
} }
var postData = { }, faildCall)
"msg": msg, }
"timestamp": timestamp, Vue.prototype.JavaGetLocalFile = function (cmd, msg, fileName, successCall) {
"token": token, var apiurl = this.domainManager().JavaLocalFileStreamDownLoadUrl + cmd;
"sign": md5Str, var timestamp = (new Date()).valueOf();
"languageId": tempLanguage, if (!localStorage.mall_userInfo && localStorage.mall_userInfo != "" && this.$route.path.toLowerCase() != "/login") {
"cmd": cmd, this.$router.push({
} path: '/login'
this.$http.post(apiurl, postData, { })
responseType: 'arraybuffer' }
}).then((res) => { var token = "";
let blob = new Blob([res.data], { var key = "";
type: "application/vnd.ms-excel" if (this.getLocalStorage() != null) {
}) token = this.getLocalStorage().Token;
let url = URL.createObjectURL(blob); key = this.getLocalStorage().SecretKey;
let link = document.createElement('a'); }
link.href = url; let mall_userInfo = localStorage.mall_userInfo ? JSON.parse(localStorage.mall_userInfo) : '';
link.setAttribute("download", fileName); var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
document.body.appendChild(link); var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`);
link.click(); let tempLanguage = 0;
successCall(res); if (localStorage.language && localStorage.language != '') {
}).catch(function(res) {}); 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,
}
this.$http.post(apiurl, postData, {
responseType: 'arraybuffer'
}).then((res) => {
let blob = new Blob([res.data], {
type: "application/vnd.ms-excel"
})
let url = URL.createObjectURL(blob);
let link = document.createElement('a');
link.href = url;
link.setAttribute("download", fileName);
document.body.appendChild(link);
link.click();
successCall(res);
}).catch(function (res) {});
}
} }
} }
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