Commit 4ab99df5 authored by 夏敏伟's avatar 夏敏伟

bug

parent e6647135
......@@ -351,7 +351,7 @@ var vue_left = new Vue({
},
showwmcs:function(){
var layui_open_option = {
title: '<span class="layer_span6">文明城市创建工作测评参考</span>',
title: '<span class="layer_span6" style="width:880px">文明城市创建工作测评参考</span>',
content: $("#wmcs"),
area: ['880px', '660px'], //宽高
type: 1
......@@ -2458,11 +2458,13 @@ var vue_flgw = new Vue({
methods: {
showphotos: function (item) {
var playsrc={data: []};
if(item){
array=item.split(",");
for(var j = 0; j <array.length ; j++ )
{
playsrc.data.push({ src: array[j]});
}
}
layer.photos({
photos: playsrc,
anim: 5,
......@@ -2486,10 +2488,18 @@ var vue_wmcs = new Vue({
methods: {
showphotos: function (item) {
var playsrc={data: []};
debugger
if(item){
array=item.split(",");
for(var j = 0; j <array.length ; j++ )
{
playsrc.data.push({ src: array[j]});
if(array[j].indexOf("$")>0){
picsrc= array[j].substring(0,array[j].indexOf("$"));
picname=array[j].substring(array[j].indexOf("$")+1,array[j].lastIndexOf("."));
playsrc.data.push({ src: picsrc , alt:picname});
}
}
}
layer.photos({
photos: playsrc,
......@@ -2502,7 +2512,7 @@ var vue_wmcs = new Vue({
mounted() {
debugger
that=this;
getByAjax("./rest/areaanddetailquery/21/local_wmcs",function(list){
getByAjax("./rest/areaanddetailqueryqithNam/21/local_wmcs",function(list){
debugger
that.arr_datawmcs=list;
});
......
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