摘要: .loading{ background-color: #387ef5 !important; } 只需要在自定义css文件中设置即可 阅读全文
posted @ 2016-03-10 14:45 fanhq 阅读(519) 评论(0) 推荐(0) 编辑
摘要: <label class="item item-input item-stacked-label"> <span class="input-label">UPC</span> <input type="text" ng-model="vm.product.upc" readonly="readonl 阅读全文
posted @ 2016-03-10 14:39 fanhq 阅读(1735) 评论(0) 推荐(0) 编辑
摘要: <ion-view can-swipe-back="false" cache-view="false"> <div class="bar bar-header bar-positive"> <button ng-click="vm.goBack()" class="button button-cle 阅读全文
posted @ 2016-03-10 14:35 fanhq 阅读(327) 评论(0) 推荐(0) 编辑
摘要: <div ng-if="vm.errormsg1 != ''" style="padding: 0px;"> <a class="button button-block icon-right ion-ios-close-outline button-assertive" style="font-si 阅读全文
posted @ 2016-03-10 14:30 fanhq 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 vm.actionsheetShow = function() { 2 // Show the action sheet 3 var hideSheet = $ionicActionSheet.show({ 4 buttons: [ 5 { text: '<i class="icon ion-c 阅读全文
posted @ 2016-03-10 14:23 fanhq 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1 vm.QRcode = function () { 2 cordova.plugins.barcodeScanner.scan( 3 function (result) { 4 //alert("We got a barcode\n" + 5 // "Result: " + result.tex 阅读全文
posted @ 2016-03-10 14:11 fanhq 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 记得添加$ionicModal到ionicApp.controller ionicApp.controller('productCtrl',function($scope,$rootScope,$state,$http,$document,$ionicLoading,$ionicPopup,$tim 阅读全文
posted @ 2016-03-10 14:05 fanhq 阅读(633) 评论(0) 推荐(0) 编辑
摘要: //显示vm.selectWarehouse = function() { vm.popupForWarehouse = $ionicPopup.show({ template: '<div class="list"> '+ ' <ion-item ng-repeat="item in wareho 阅读全文
posted @ 2016-03-10 13:55 fanhq 阅读(2657) 评论(0) 推荐(0) 编辑
摘要: $ionicPopup.confirm({ title: $rootScope.app_name, template: 'Do you want to add this to database?', buttons: [ { text: '<b>Yes</b>', type: 'button-pos 阅读全文
posted @ 2016-03-10 13:52 fanhq 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 在很多时候,为了防止内容过长把表格或容器撑破, 我们都需要为容器加上自动换行的功能。 实现自动换行,用CSS来实现,通常有两种方式: word break: 取值为 normal, break all, keep all word wrap: 取值为 normal, break word word 阅读全文
posted @ 2016-03-02 12:12 fanhq 阅读(2090) 评论(0) 推荐(0) 编辑