amszsthl 发表于 2015-8-21 13:58:00

ionic调SMS插件遇到的一些问题

html页面代码:
<ion-item ng-repeat="member in members|filter:search" class="item item-avatar">
                          <img ng-src="{{member.avatarUrl}}">
                          <h2>{{member.name}}</h2>
                                  <p>{{member.gender}}/{{member.age}}/{{member.mobile}}</p>
                                   <ion-option-button class="button-calm ion-ios-email-outline" ng-click="send(member.mobile)">
                          </ion-option-button>


controller部分代码:
document.addEventListener("deviceready",function(){
      var options = {
            replaceLineBreaks: false, // true to replace \n by a new line, false by default
            android: {
            intent: 'INTENT'// send SMS with the native android SMS messaging
                  //intent: '' // send SMS without open any other app
                }
            };
      $cordovaSms
          .send('member.mobile', 'content', options)
          .then(function() {
             alert("Success! SMS was sent")
          }, function(error) {
            // An error occurred
          });
      });


请问send()中怎么动态传递人员号码啊?member.mobile不管用

你懂的 发表于 2015-8-22 13:11:33

你插件helloword整明白了没有
页: [1]
查看完整版本: ionic调SMS插件遇到的一些问题