123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>申请请款</title>
- <meta name="viewport"
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <link href="../../css/mui.min.css" rel="stylesheet" />
- <link href="../../css/animate.min.css" rel="stylesheet" />
- <style>
- .mui-bar-nav~.mui-content {
- padding-top: 55px;
- margin-bottom: 50px;
- }
- .ht {
- margin-top: 11px;
- padding: 5px;
- background-color: #fffbee;
- color: #ed9f2b;
- font-size: 11px;
- }
- .warn {
- display: block;
- padding-top: 11px;
- text-align: center;
- }
- .name {
- font-weight: bold;
- font-size: 17px;
- }
- .icon {
- font-size: 20px;
- }
- .right {
- float: right;
- color: #FF5722;
- }
- .yh {
- font-size: 11px;
- padding: 5px 0px 0px 0px;
- color: darkgray;
- }
- .yh .sp {
- padding-right: 15px;
- }
- .sps {
- background: #00B5AD;
- padding: 1px 6px;
- border-radius: 3px;
- color: white;
- text-align: center;
- }
- .s {
- color: darkgray;
- font-size: 12px;
- }
- .row {
- font-size: 14px;
- padding-top: 10px;
- }
- .sm2 {
- color: #4c4848;
- }
- .dc {
- padding-right: 10px;
- font-size: 12px;
- }
- .i {
- color: #00a0ea;
- }
- .item {
- border-top: 1px solid #ececec;
- margin-top: 10px;
- padding-top: 15px;
- font-size: 14px;
- }
- .dd {
- padding: 5px;
- margin: 0;
- border: 0;
- }
- .dz {
- font-size: 12px;
- color: darkgray;
- }
- .gs {
- padding-top: 11px;
- font-size: 48px;
- display: block;
- color: #00a0ea;
- }
- .nr {
- font-size: 13px;
- color: #4a4747;
- }
- .lyy {
- float: right;
- margin-top: 15px;
- font-size: 15px;
- color: orange;
- }
- .footer {
- color: white;
- position: fixed;
- background-color: #00a0ea;
- padding-top: 15px;
- width: 100%;
- bottom: 0;
- height: 52px;
- text-align: center;
- }
- [v-cloak] {
- display: none;
- }
- </style>
- </head>
- <body>
- <div id="app" v-cloak>
- <header class="mui-bar mui-bar-nav">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-title">申请请款</h1>
- </header>
- <div class="mui-content animated fadeInUp">
-
- <div class="model">
- <div class="content" style="margin-top: -5px;">
-
- <div class="yh">
- <label>收款方 <span>*</span></label>
- <input type="text" v-model="item.Payee" placeholder="输入收款方"
- oninput="if(value.length>30)value=value.substr(0,30)">
- </div>
- <div class="row">
- <label>收款日期 <span>*</span></label>
- <input type="date" v-model="item.pay_date" placeholder="输入收款日期">
- </div>
- <div class="row">
- <label>金额 <span>*</span></label>
- <input type="number" v-model="item.amount" placeholder="输入金额"
- oninput="if(value<0)value=1">
- </div>
- <div class="row">
- <label>支付方式 <span>*</span></label>
- <select class="mui-btn mui-btn-block" v-model="item.pay_mode">
- <option :value="x.name" v-for="(x,index) in pay_list">{{x.name}}</option>
- </select>
- </div>
- <div class="row">
- <label>备注 </label>
- <textarea rows="3" v-model="item.remark" placeholder="输入备注"></textarea>
- </div>
- </div>
- </div>
- </div>
- </div>
- <button @click="deliver()">确认发送</button>
- <!--<div class="footer" @click="deliver()"><i class="icon"></i> {{msg}}</div> -->
- </div>
- <script src="../../js/mui.min.js"></script>
- <script src="../../js/app.js"></script>
- <script src="../../js/vue.min.js"></script>
- <script type="text/javascript">
- var vm = new Vue({
- el: "#app",
- data: {
- pay_list: [{
- name: '支付宝',
- id: '1'
- }, {
- name: '银行卡',
- id: '2'
- }, {
- name: '微信',
- id: '3'
- },{
- name: '现金',
- id: '3'
- },{
- name: '其他',
- id: '3'
- }],
- item: {userId:getUser().id},
- resume: {},
- msg: '申请请款'
- },
- mounted: function() {
- mui.plusReady(function() {
- vm.item.parttime_id=plus.webview.currentWebview().param.id;
- vm.item.contract_id=plus.webview.currentWebview().param.aid;
- })
- },
- methods: {
- //投递简历
- deliver: function() {
- if(!hasLogin()) {
- mui.toast("请先登录")
- open('login', '/pages/user/login.html', null, 'slide-in-bottom');
- return;
- }
- if(getUser().mType==1){
- mui.alert("企业用户不允许投递简历");
- return;
- }
- vm.resume = getResume();
- vm.resume.parttime_id = vm.item.id;
- vm.resume.recruit_id=vm.item.publisher;
- deleteEmptyProperty(vm.resume);
- request(urls().parttime_delivery, vm.resume, function(res) {
- plus.nativeUI.closeWaiting();
- if(res.result == true) {
- vm.msg = '已报名'
- mui.toast('报名成功');
- } else {
- mui.alert(res.msg);
- }
- })
- }
- }
- })
- </script>
- </body>
- </html>
|