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

bug

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