web項目-demo

來源:互聯網
上載者:User

標籤:ams   ons   邊框   module   alt   enter   services   function   normal   

1.定義結構

2.指定樣式

3.填充資料

4.跑通商務程序

<!--      -->    <div class="bg_fff row border_bottom" id="acc_list">         <div class="headimg col-30" ng-click="changeState(‘setHeader‘)"><img src="{{user.imagesrc}}" alt=""></div>         <div class="account col-40" ng-click="changeState(‘myInfo‘)">             <li class="item font_l_3">{{user.name}}</li>             <li class="item font_n_2">{{user.phoneTel}}</li>         </div>         <div class="realname col-30" ng-click="changeState(‘accountsInfo‘)">錢包賬戶、實名</div>     </div>

 

/*--預定義--*//*    normal 1    大多數文字 小標題 模組描述*/.font_n_1 {    font-size: 0.14rem !important;}/*    normal 2    大多數文字 表單*/.font_n_2 {    font-size: 0.13rem !important;}/*    large 1    突出情境,例如金額*/.font_l_1 {    font-size: 0.24rem !important;}.font_l_1_5 {    font-size: 0.20rem !important;}/*    large 2    重要文字或操作按鈕*/.font_l_2 {    font-size: 0.17rem !important;}/*    large 3    賬戶名*/.font_l_3 {    font-size: .17rem !important;}/*--文本色--*/.font_norm {    color: #0076c1 !important;}.font_dark {    color: #a2a2a2 !important;}.font_fff {    color: #fff !important;}.font_red {    color: red;}.font_black {    color: black;}/*--背景色--*/.bg_norm {    background: #0076c1 !important;}.bg_fff {    background: #fff !important;}.bg_ccc {    background: #ccc !important;}.bg_tp{    background: transparent !important;}/*上邊框*/.border_top{    border-top-style: solid;    border-top-width:1px;    border-top-color:#E4E4E4;}.border_bottom{    border-bottom-style: solid;    border-bottom-width:1px;    border-bottom-color:#E4E4E4;}/*--main--*//* 左圖右文 */#acc_list div.headimg,#acc_list div.account,#acc_list  div.realname{    text-align:center !important;    padding:5px;}#acc_list div.headimg{    margin-left:-10px;}#acc_list div.realname{    margin-right:10px;}#acc_list div.headimg img{    width:75px;    height:75px;    border-radius: 38px !important;    }#acc_list div.realname{     background: url(../img/menu_item_arrow.png) no-repeat right center;     background-size: auto 18px;     display:inline;     line-height:80px;     color: #999999 !important;}#acc_list li.item{    border:none;    text-align:left;}#acc_list li:nth-of-type(1) {    padding-bottom:8px;}#acc_list li:nth-of-type(2) {    padding:8px;}/*    賬戶名*/#acc_list .font_l_3 {    font-size: .17rem !important;    font-weight:bold !important;}

 

公用方法

angular.module(‘com.app.mobile.services‘, [])//.factory(‘sms‘,function(){return{init: function(){},}}).factory(‘commonfn‘,function(){    return{        init: function($scope,$state){            //            去往某個頁面            $scope.changeState = function(name, params){$state.go(name, params);}            $scope.goBack = function() {history.back();}            $scope.goStateWithNoAnim = function(stateName, params) {                $ionicHistory.nextViewOptions({                    disableAnimate : true                });                $state.go(stateName, params);                            }                    },                    }})

 

web項目-demo

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.