san框架官方文档:https://baidu.github.io/san/tutorial/start/
动态样式添加
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 
 | <div class="c-form-item mgb-xl"><p class="c-form-names">
 <span class="c-form-nonull">*</span>单选
 </p>
 <div class="c-form-info">
 <label class="c-radio {{loopType == '0' ? 'choice' : ''}} mgr-l" on-click="selectCircle('0')">
 <i></i>
 <span>是</span>
 </label>
 <label class="c-radio {{loopType == '1' ? 'choice' : ''}} mgr-l" on-click="selectCircle('1')">
 <i></i>
 <span>否</span>
 </label>
 </div>
 </div>
 
 | 
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 
 |  initData: function () {return {
 updatePicId: '',
 }
 }
 
 selectCircle: function(loopType) {
 let self = this;       			this.data.set('malltRightsLoopInfoList[0].loopType',loopType);
 
 },
 
 |