finance.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>职位详情</title>
  6. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  7. <link href="../../css/mui.min.css" rel="stylesheet" />
  8. <link href="../../css/animate.min.css" rel="stylesheet" />
  9. <style>
  10. .mui-bar-nav~.mui-content{padding-top: 55px;margin-bottom: 50px;}
  11. .ht{margin-top: 11px;padding: 5px;background-color: #fffbee;color: #ed9f2b;font-size: 11px;}
  12. .warn{display: block;padding-top: 11px;text-align: center;}
  13. .name{font-weight: bold;font-size: 17px;}
  14. .icon{font-size:20px;}
  15. .right{float: right;color: #FF5722;}
  16. .yh{font-size: 11px;padding: 5px 0px 0px 0px;color: darkgray;}
  17. .yh .sp{padding-right: 15px;}
  18. .sps{background: #00B5AD;padding: 1px 6px;border-radius: 3px;color: white;text-align: center;}
  19. .s{color: darkgray;font-size: 12px;}
  20. .row{font-size: 14px;padding-top: 10px;}
  21. .sm2{color: #4c4848;}
  22. .dc{padding-right: 10px;font-size: 12px;}
  23. .i{color: #00a0ea;}
  24. .item{border-top: 1px solid #ececec;margin-top: 10px;padding-top: 15px;font-size: 14px;}
  25. .dd{padding:5px;margin:0;border: 0;}
  26. .dz{font-size: 12px;color: darkgray;}
  27. .gs{padding-top: 11px;font-size: 48px;display: block;color: #00a0ea;}
  28. .nr{font-size: 13px;color: #4a4747;}
  29. .lyy{float: right;margin-top: 15px;font-size: 15px;color: orange;}
  30. .footer{color: white;position: fixed;background-color: #00a0ea;padding-top: 15px;width: 100%;bottom: 0;height: 52px;text-align: center;}
  31. [v-cloak] {display: none;}
  32. </style>
  33. </head>
  34. <body>
  35. <div id="app" v-cloak>
  36. <header class="mui-bar mui-bar-nav">
  37. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
  38. <h1 class="mui-title">职位详情</h1>
  39. </header>
  40. <div class="mui-content animated fadeInUp">
  41. <div class="ht">凡是要求缴纳费用请提高警惕,谨防受骗!</div>
  42. <div class="model">
  43. <div class="content" style="margin-top: -5px;">
  44. <div class="yh">
  45. <label>收款方 <span>*</span></label>
  46. <input type="text" v-model="item.Payee" placeholder="输入收款方"
  47. oninput="if(value.length>30)value=value.substr(0,30)">
  48. </div>
  49. <div class="row">
  50. <label>收款日期 <span>*</span></label>
  51. <input type="date" v-model="item.pay_date" placeholder="输入收款日期">
  52. </div>
  53. <div class="row">
  54. <label>金额 <span>*</span></label>
  55. <input type="number" v-model="item.amount" placeholder="输入金额"
  56. oninput="if(value<0)value=1">
  57. </div>
  58. <div class="row">
  59. <label>支付方式 <span>*</span></label>
  60. <select class="mui-btn mui-btn-block" v-model="item.pay_mode">
  61. <option :value="x.name" v-for="(x,index) in pay_list">{{x.name}}</option>
  62. </select>
  63. </div>
  64. <div class="row">
  65. <label>备注 </label>
  66. <textarea rows="3" v-model="item.remark" placeholder="输入备注"></textarea>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <!--
  72. <div class="model" v-for="(item,index) in item.list">
  73. <div class="item dd">{{item.mz}} {{item.phone}}
  74. <div class="lyy" @click="contract(item)" v-if="item.state=='0' && item.contract=='0'">发送合同</div>
  75. <div class="lyy" style="color: #00B5AD;" v-else-if="item.state=='0' && item.contract=='1'">合同已发送</div>
  76. </div>
  77. </div>
  78. -->
  79. <div class="footer" @click="deliver()"><i class="icon">&#xe61a;</i> {{msg}}</div>
  80. </div>
  81. <script src="../../js/mui.min.js"></script>
  82. <script src="../../js/app.js"></script>
  83. <script src="../../js/vue.min.js"></script>
  84. <script type="text/javascript">
  85. var vm = new Vue({
  86. el: "#app",
  87. data: {
  88. item: {},
  89. resume: {},
  90. msg: '申请请款',
  91. pay_list: [{
  92. name: '支付宝',
  93. id: '1'
  94. }, {
  95. name: '银行卡',
  96. id: '2'
  97. }, {
  98. name: '微信',
  99. id: '3'
  100. },{
  101. name: '现金',
  102. id: '3'
  103. },{
  104. name: '其他',
  105. id: '3'
  106. }],
  107. },
  108. mounted: function() {
  109. mui.plusReady(function() {
  110. vm.item.parttime_id=plus.webview.currentWebview().param.id;
  111. vm.item.contract_id=plus.webview.currentWebview().param.aid;
  112. console.log("plus.webview.currentWebview().param==="+JSON.stringify(plus.webview.currentWebview().param));
  113. //request(urls().parttime_detail, {id: plus.webview.currentWebview().param.id}, function(res) {
  114. //vm.item = res;
  115. //vm.item.mTime = vm.item.mTime.substring(0, 11)
  116. //plus.nativeUI.closeWaiting();
  117. // })
  118. })
  119. },
  120. methods: {
  121. //详情
  122. contract: function(id) {
  123. open('detail', 'contract.html', id, 'slide-in-bottom');
  124. },
  125. //投递简历
  126. deliver: function() {
  127. if(!hasLogin()) {
  128. mui.toast("请先登录")
  129. open('login', '/pages/user/login.html', null, 'slide-in-bottom');
  130. return;
  131. }
  132. if(getUser().mType==1){
  133. mui.alert("企业用户不允许投递简历");
  134. return;
  135. }
  136. //vm.resume = getResume();
  137. //vm.resume.parttime_id = vm.item.id;
  138. vm.item.userId=getUser().id;
  139. //deleteEmptyProperty(vm.resume);
  140. request(urls().finance_app, vm.item, function(res) {
  141. plus.nativeUI.closeWaiting();
  142. if(res.result == true) {
  143. vm.msg = '已申请'
  144. mui.toast('申请成功');
  145. plus.webview.getWebviewById("my_parttimeapp").reload(true);
  146. } else {
  147. mui.alert(res.msg);
  148. }
  149. })
  150. }
  151. }
  152. })
  153. </script>
  154. </body>
  155. </html>