商户菜单、和商户信息

This commit is contained in:
shane 2021-05-27 13:25:51 +08:00
parent 90c9c9c7b2
commit b796935b8e
6 changed files with 49 additions and 25 deletions

View File

@ -50,13 +50,6 @@
errInfo:"商户名称太长"
},
],
'addStoreInfoInfo.icon':[
{
limit:"maxLength",
param:"100",
errInfo:"图片地址太长"
},
],
'addStoreInfoInfo.tel':[
{
limit:"maxLength",

View File

@ -52,13 +52,6 @@
errInfo:"菜单名称太长"
},
],
'editConvenienceMenusInfo.icon':[
{
limit:"maxLength",
param:"100",
errInfo:"图片地址太长"
},
],
'editConvenienceMenusInfo.url':[
{
limit:"maxLength",

View File

@ -56,13 +56,6 @@
errInfo:"商户名称太长"
},
],
'editStoreInfoInfo.icon':[
{
limit:"maxLength",
param:"100",
errInfo:"图片地址太长"
},
],
'editStoreInfoInfo.tel':[
{
limit:"maxLength",

View File

@ -51,11 +51,17 @@
this.uploadImageInfo.photos.push(_photo);
return;
}
if (_photo.indexOf("https") > -1 || _photo.indexOf("http") > -1) {
vc.urlToBase64(_photo, function (_base64Data) {
this.uploadImageInfo.photos.push(_base64Data);
});
return;
}
if (_photo.indexOf(photoUrl) > -1) {
vc.urlToBase64(_photo, function (_base64Data) {
this.uploadImageInfo.photos.push(_base64Data);
});
return ;
return;
}
vc.urlToBase64(photoUrl + "?fileId=" + _photo + "&communityId=" + vc.getCurrentCommunity().communityId + "&time=" + new Date(), function (_base64Data) {
this.uploadImageInfo.photos.push(_base64Data);

View File

@ -34,7 +34,10 @@
<tr v-for="convenienceMenus in convenienceMenusManageInfo.convenienceMenuss">
<td class="text-center">{{convenienceMenus.convenienceMenusId}}</td>
<td class="text-center">{{convenienceMenus.name}}</td>
<td class="text-center">{{convenienceMenus.icon}}</td>
<td class="text-center">
<img style="width: 60px; height: 60px; border-radius: 5px;"
v-bind:src="convenienceMenus.icon"></img>
</td>
<td class="text-center">{{convenienceMenus.url}}</td>
<td class="text-center">{{convenienceMenus.seq}}</td>
<td class="text-center">{{convenienceMenus.remark}}</td>

View File

@ -1,5 +1,32 @@
<div >
<div class="row" v-if="storeInfoManageInfo.componentShow == 'storeInfoManage'">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-4" >
<div class="form-group">
<input type="text" placeholder="请输入商户名称" v-model="storeInfoManageInfo.conditions.name" class=" form-control">
</div> </div>
<div class="col-sm-1">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryStoreInfoMethod()">
<i class="glyphicon glyphicon-search"></i> 查询
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" v-if="storeInfoManageInfo.componentShow == 'storeInfoManage'">
<div class="col-lg-12">
<div class="ibox">
@ -12,6 +39,11 @@
</button>
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny"
@ -22,6 +54,7 @@
<th class="text-center">商户信息ID</th>
<th class="text-center">商户名称</th>
<th class="text-center">图片地址</th>
<th class="text-center">商户电话</th>
<th class="text-center">商户位置</th>
<th class="text-center">显示序号</th>
@ -35,7 +68,10 @@
<tr v-for="storeInfo in storeInfoManageInfo.storeInfos">
<td class="text-center">{{storeInfo.storeInfoId}}</td>
<td class="text-center">{{storeInfo.name}}</td>
<td class="text-center">{{storeInfo.icon}}</td>
<td class="text-center">
<img style="width: 60px; height: 60px; border-radius: 5px;"
v-bind:src="storeInfo.icon"></img>
</td>
<td class="text-center">{{storeInfo.tel}}</td>
<td class="text-center">{{storeInfo.site}}</td>
<td class="text-center">{{storeInfo.seq}}</td>