|
本帖最后由 kevin0753 于 2016-9-9 09:55 编辑
json文件 数据是:
{"fID":"004","fOneID":"002","fTitle":"1","fImg":"./img/a4.jpg","fPrice":"1000","fSatisfaction":"线上预约"},
{"fID":"003","fOneID":"001","fTitle":"2","fImg":"./img/a3.jpg","fPrice":"1000","fSatisfaction":"预约有优惠"},
{"fID":"002","fOneID":"001","fTitle":"3","fImg":"./img/a9.jpg","fPrice":"1000","fSatisfaction":""},
.w文件 里面是:
list显示是这样的。(仿途牛的)
<div component="$UI/system/components/justep/list/list" class="x-list" xid="list1" data="productData">
我想改成。
<div component="$UI/system/components/justep/list/list" class="x-list" xid="list1" data="productData" filter="$row.val(“fOneID”)= 【这里是1个动态数值,比如 dqID】”>
通过 点击菜单 变化数值。实现列表的筛选变化
<a component="$UI/system/components/justep/button/button" class="btn btn-link" label="安阳" xid="button4" bind-click="MenuClick">
js里面是:
//点击 安阳
Model.prototype.MenuClick = function(event){
dqID = 001 (这里赋值数值)
};
红色的代码具体应该怎么写。。。写了好多,总是出错。提问就放了思路,求助。。感谢
|
|