请问下这种t怎么触发里层的ng-repeat出来的元素绑定http请求?

发布于 2022-09-07 15:24:12 字数 1528 浏览 14 评论 0

图片描述

页面效果如图:目前后台返回的数据格式如下:

{"singleBean":{"novice":[{"reward":"200","done":"0","investMoney":"0.00","taskContent":"关注微信公众号","productId":"0"},{"reward":"300","done":"0","investMoney":"100.00","taskContent":"首次投资灵活猫100元","productId":"2"},{"reward":"500","done":"0","investMoney":"1000.00","taskContent":"首次投资灵活猫1000元","productId":"2"}],"month":[{"investMoney":[{"investMoney":50000},{"investMoney":100000}],"productName":"年丰收","productId":12}],"firs":[{"investMoney":[{"investMoney":5000}],"productName":"月月涨","productId":1},{"investMoney":[{"investMoney":5000}],"productName":"季度喵","productId":3},{"investMoney":[{"investMoney":5000}],"productName":"半年喵","productId":6},{"investMoney":[{"investMoney":10000}],"productName":"年丰收","productId":12},{"investMoney":[{"investMoney":10000}],"productName":"克隆喵","productId":24}],"daily":[{"investMoney":[{"investMoney":10000},{"investMoney":20000},{"investMoney":30000}],"productName":"季度喵","productId":3},{"investMoney":[{"investMoney":10000},{"investMoney":20000},{"investMoney":30000}],"productName":"半年喵","productId":6},{"investMoney":[{"investMoney":10000},{"investMoney":20000},{"investMoney":30000}],"productName":"年丰收","productId":12},{"investMoney":[{"investMoney":10000},{"investMoney":20000},{"investMoney":30000}],"productName":"克隆喵","productId":24}]},"error":"0","msg":"success"}

现在的问题是:
1。例如每日任务中的列表是循环出来,每一项里面的radio选项框也是ng-repeat出来的,需要选中不同按钮触发http请求,请求到右上角的体验金的值

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梅窗月明清似水 2022-09-14 15:24:12

radiobutton绑定ng-change指令

梦境 2022-09-14 15:24:12

clipboard.png

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文