日期:2014-05-16  浏览次数:20365 次

求助,实在不知道怎么弄了。
这是数据
JScript code

var jsonData = {
            shop: {
                title: '这是wddlzzxsdz的店铺',
                url: '',
                rawUrl: 'www.sina.com'
            },
            pages: [{
                title: '',
                items: [{
                    title: '2012新款韩版软底平跟单鞋 舒适可爱兔斯基全真皮休闲平底女鞋',
                    desp: '',
                    url: '',
                    rawUrl: 'http://item.taobao.com/item.htm?spm=545.66420.131756.13&id=15733848791&ali_trackid=4_10604_1-2',
                    imgs: [{
                        isDefault: true,
                        url: 'http://img02.taobaocdn.com/bao/uploaded/i2/T1ZMuTXi0uXXc_cS38_071637.jpg_310x310.jpg'
                    }]
                }, { title: '2012新款女鞋 潮日系 vivi 杂志款性感真皮凉拖 厚底蝴蝶结女凉鞋',
                    desp: '',
                    url: '',
                    rawUrl: 'http://item.taobao.com/item.htm?spm=545.66420.131756.28&id=13901113685&&ali_trackid=4_10602_1-5',
                    imgs: [{
                        isDefault: true,
                        url: 'http://img03.taobaocdn.com/bao/uploaded/i3/T1rfWTXnXoXXc56w38_070600.jpg_310x310.jpg'
                    }]
                }, { title: '欧黛尔 2012新款春季真皮女鞋 超高跟防水台烫钻花纹鱼嘴单鞋A643',
                    desp: '',
                    url: '',
                    rawUrl: 'http://item.taobao.com/item.htm?spm=545.66420.131756.29&id=15588132338&ali_trackid=4_10602_2-3',
                    imgs: [{
                        isDefault: true,
                        url: 'http://img03.taobaocdn.com/bao/uploaded/i3/T1ae5SXeppXXX2HtEU_014256.jpg_310x310.jpg'
                    }]
                }, { title: '洛芙丝2012春新女款彩虹真皮高跟鞋防水台坡跟平底低帮单鞋子D804',
                    desp: '',
                    url: '',
                    rawUrl: 'http://item.taobao.com/item.htm?spm=545.66420.131756.30&id=13903045768&ali_trackid=4_10602_1-3',
                    imgs: [{
                        isDefault: true,
                        url: 'http://img04.taobaocdn.com/bao/uploaded/i4/T1dEaTXkXeXXcwtMQ8_070550.jpg_310x310.jpg'
                    }]
                }]
            }]
        };
        var expired = false;
        var pluginString = $.toJSON(jsonData);
        var skinPath = 'http://localhost:1097/Template/11/skin_1/';
        var skinVersion = 1;
        var extraData = '';


这是代码
JScript code

/// <reference path="../../content/js/core/jquery-1.4.4.min.js" />

$(function () {
    var pluginData = {};

    var cssText = $.strFormat('',skinPath, skinVersion);
    var htmlText =
'<div class="skin_box">\
    <div class="skin_bq"></div>\
    <div class="img_box">\
    </div>\
    <div class="clear"></div>\
    <div class="btn_list">\
        <div class="up_btn up"><a href="javascript:;"></a></div>\
        <div class="dn_btn dn"><a href="javascript:;"></a></div>\
    </div>\
    <div class="img_box3"></div>\
    <div class="img_box3a">\
    </div>\
</div>';
    var page = {
        currentPage: 0,
        currentSize: 0,
        pageSize: 4,
        totalSize: 4,
        totalPage: 1
    };

    var imagesize = {
        smlImg: "_160x160.jpg",
        middleImg: "_170x170.jpg",
        biddleImg: "_310x310.jpg"
    };

    function init() {
        initData();
        initCss();
        initHtml();
        initControl();
    }

    function initData() {
        pluginData = $.parseJSON(pluginS