var util = require("../../utils/util.js"); Page({ data : { art : {}, body : "", detaildata : {}, //详情页数据 productOverview : {}, //产品概述 productAppearance : {}, //产品外观 productCharacteristics : {}, //产品特点 productSpecification : {}, //产品规格 relatedProducts : {}, //4G无感知考勤系统相关产品 relatedApplications : {}, //ul li relatedBottomArray : {}, //底部图片加介绍 relatedBottomImageArray : {}, //底部纯图片 productBottom : {} }, onReady () { wx.setNavigationBarTitle({ title: '智能学生卡C21' }) }, onLoad (options) { var that = this, detailData = util.getproductC21();//产品概述 that.setData({ detaildata : detailData, productOverview : detailData.productOverview, productAppearance : detailData.productAppearance, productCharacteristics : detailData.productCharacteristics, productSpecification : detailData.productSpecification, relatedProducts : detailData.relatedProducts, relatedApplications : detailData.relatedApplications, relatedBottomArray : detailData.relatedBottomArray, relatedBottomImageArray : detailData.relatedBottomImageArray, productBottom : detailData.productBottom }); console.log(that.data.relatedBottomArray); } })