<div class="u-sd-btns"> <button>同意</button> <button class="popup-open" data-popup=".popup-about">拒绝</button> </div> <div class="popup popup-about u-sd-pop"> <textarea v-model="yuanyin"></textarea> <button class="u-sd-btn" @click="send">提交</button> </div>
send: function () { var that = this; if(that.yuanyin==''){ showAlert(myApp,'请填写拒绝原因'); }else{ myApp.popup.close($('.u-sd-pop')); } },