admin_customer_1102
This commit is contained in:
@@ -308,9 +308,17 @@ class Customer extends HD_Controller
|
||||
$rec_text = '未接通';
|
||||
}
|
||||
}
|
||||
$imgs = [];
|
||||
if ($value['imgs']) {
|
||||
$json_imgs = json_decode($value['imgs'], true);
|
||||
foreach ($json_imgs as $key1 => $value1) {
|
||||
$imgs[] = build_qiniu_image_url($value1);
|
||||
}
|
||||
}
|
||||
$logs[] = array(
|
||||
'uname' => $value['uname'],
|
||||
'log' => $value['log'],
|
||||
'imgs' => $imgs,
|
||||
'rec_url' => $rec_url,
|
||||
'rec_text' => $rec_text,
|
||||
'type_name' => $this->customer_oplogs_model->typeAry()[$value['type']],
|
||||
|
||||
@@ -107,7 +107,8 @@
|
||||
<table width="100%"
|
||||
style="margin:10px 10px 10px 20px;">
|
||||
<tr v-for="(tr, i) in toshop">
|
||||
<td class="table-td" v-for="(td, j) in tr"><span class="mr5">{{td.title}}:</span>{{td.value}}</td>
|
||||
<td class="table-td" v-for="(td, j) in tr"><span class="mr5">{{td.title}}:</span>{{td.value}}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -149,6 +150,19 @@
|
||||
<? } else { ?>
|
||||
<?= $val['log'] ?>
|
||||
<? } ?>
|
||||
<? if ($val['imgs']) { ?>
|
||||
<div class="photo-upload" style="padding-top: 10px;">
|
||||
<?php foreach ($val['imgs'] as $key1 => $val1) { ?>
|
||||
<div class="photo-upload-item">
|
||||
<a href="javascript:void (0);">
|
||||
<img src="<?= $val1 ?>"
|
||||
class="img-thumbnail" data-tips-image
|
||||
style="height:auto;max-height:100px;min-width:100px">
|
||||
</a>
|
||||
</div>
|
||||
<? } ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
</td>
|
||||
<td style="vertical-align:middle;word-wrap:break-word"><?= $val['type_name'] ?></td>
|
||||
<td style="vertical-align:middle;word-wrap:break-word;"><?= $val['c_time'] ?></td>
|
||||
@@ -179,11 +193,11 @@
|
||||
vue_obj = new Vue({
|
||||
el: '#vue-edit',
|
||||
data: {
|
||||
edit_index:0,
|
||||
edit_index: 0,
|
||||
info: {},
|
||||
statusAry:[],
|
||||
toshop:[],
|
||||
logs:[],
|
||||
statusAry: [],
|
||||
toshop: [],
|
||||
logs: [],
|
||||
goods: {"imgs_url": [], "imgs": [], "log": ''}
|
||||
},
|
||||
mounted: function () {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<style>
|
||||
.label-width{
|
||||
width:100px !important;
|
||||
.label-width {
|
||||
width: 100px !important;
|
||||
}
|
||||
</style>
|
||||
<div id="vue-edit" class="am-form am-form-horizontal" style="width: 98%;padding-top: 10px">
|
||||
@@ -254,14 +254,16 @@
|
||||
<template v-if="info.bill && info.bill.cardidA.src">
|
||||
<div class="am-form-group">
|
||||
<label class="input-group-btn" style="width: 50px;">
|
||||
<a href="javascript:;" :data-modal="'/receiver/orders/get_bill?oid='+info.id"
|
||||
<a href="javascript:;"
|
||||
:data-modal="'/receiver/orders/get_bill?oid='+info.id"
|
||||
data-title="编辑发票信息" class="am-btn am-btn-default am-btn-sm">
|
||||
上传文件
|
||||
</a>
|
||||
</label>
|
||||
</div>
|
||||
<div class="am-form-group" v-if="info.bill && info.bill.file">
|
||||
<a :href="info.bill.file" target="_blank" class="mt5" style="width:100px;line-height:20px;">查看发票</a>
|
||||
<a :href="info.bill.file" target="_blank" class="mt5"
|
||||
style="width:100px;line-height:20px;">查看发票</a>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -282,7 +284,8 @@
|
||||
</a>
|
||||
<span class='am-btn am-btn-default am-active am-btn-xs' v-else>已确认开票</span>
|
||||
</template>
|
||||
<a class='am-btn am-btn-default am-btn-xs' data-modal="/receiver/orders/get_paylog?id=<?=$info['id']?>" data-title="收款记录">
|
||||
<a class='am-btn am-btn-default am-btn-xs'
|
||||
data-modal="/receiver/orders/get_paylog?id=<?= $info['id'] ?>" data-title="收款记录">
|
||||
收款记录
|
||||
</a>
|
||||
</div>
|
||||
@@ -311,6 +314,7 @@
|
||||
});
|
||||
});
|
||||
var vue_obj;
|
||||
var xz_num = 0;
|
||||
$(document).ready(function () {
|
||||
vue_obj = new Vue({
|
||||
el: '#vue-edit',
|
||||
@@ -371,8 +375,8 @@
|
||||
},
|
||||
carModal: function () {
|
||||
var that = this
|
||||
if(!that.info.payway){
|
||||
if (!that.info.loan_info || that.info.loan_info.status<2) {
|
||||
if (!that.info.payway) {
|
||||
if (!that.info.loan_info || that.info.loan_info.status < 2) {
|
||||
layer.msg('按揭审核尚未通过~', {icon: 2});
|
||||
return;
|
||||
}
|
||||
@@ -464,9 +468,9 @@
|
||||
},
|
||||
finish_loan: function (status) {
|
||||
var that = this;
|
||||
if(status==3){
|
||||
if (status == 3) {
|
||||
var loan_time = $('#loan_time').val();
|
||||
if(!loan_time){
|
||||
if (!loan_time) {
|
||||
layer.msg("请填写放款时间");
|
||||
return;
|
||||
}
|
||||
@@ -475,10 +479,10 @@
|
||||
$.post("/receiver/orders/edit_loan", {'info': this.info, 'status': status}, function (data) {
|
||||
console.dir(data);
|
||||
if (data.code) {
|
||||
layer.msg(data.msg,function(){
|
||||
layer.msg(data.msg, function () {
|
||||
$.form.reload();
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
layer.msg(data.msg);
|
||||
}
|
||||
}, 'json');
|
||||
@@ -489,13 +493,13 @@
|
||||
formData.append("file", $(event.currentTarget).get(0).files[0]); //上传一个files对象
|
||||
formData.append('id', this.info.id);
|
||||
formData.append('type', type);
|
||||
if(type){
|
||||
if (type) {
|
||||
var loan_time = $('#loan_time').val();
|
||||
if(!loan_time){
|
||||
if (!loan_time) {
|
||||
layer.msg("请填写放款时间");
|
||||
return;
|
||||
}
|
||||
formData.append('loan_time',loan_time);
|
||||
formData.append('loan_time', loan_time);
|
||||
}
|
||||
$.ajax({//jQuery方法,此处可以换成其它请求方式
|
||||
url: '/receiver/orders/edit_loan',
|
||||
@@ -511,10 +515,10 @@
|
||||
success: function (res) {
|
||||
console.dir(res)
|
||||
if (res.code) {
|
||||
layer.msg(res.msg,function(){
|
||||
layer.msg(res.msg, function () {
|
||||
$.form.reload();
|
||||
});
|
||||
}else{
|
||||
} else {
|
||||
layer.msg(res.msg);
|
||||
}
|
||||
return;
|
||||
@@ -582,8 +586,14 @@
|
||||
},
|
||||
show_carimg: function () {
|
||||
layer.photos({
|
||||
photos: '#layer-photos-demo'
|
||||
, anim: 5 //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
|
||||
photos: '#layer-photos-demo',
|
||||
anim: 5, //0-6的选择,指定弹出图片动画类型,默认随机(请注意,3.0之前的版本用shift参数)
|
||||
tab: function () {
|
||||
xz_num = 0;
|
||||
$("#layui-layer-photos").parent().append('<div style="position:relative;width:100%;text-align:center;cursor:pointer;">\n' +
|
||||
'\t\t<img id="xuanzhuan" src="/img/xuanzhuan.png" style="width:30px;height:30px;">\n' +
|
||||
'\t</div>');
|
||||
}
|
||||
});
|
||||
},
|
||||
//保存身份证
|
||||
@@ -629,6 +639,12 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
//旋转图片
|
||||
$(document).on("click", "#xuanzhuan", function (e) {
|
||||
xz_num = (xz_num + 90) % 360;
|
||||
$(".layui-layer.layui-layer-page.layui-layer-photos").css('background', 'black');//旋转之后背景色设置为黑色,不然在旋转长方形图片时会留下白色空白
|
||||
$("#layui-layer-photos").css('transform', 'rotate(' + xz_num + 'deg)');
|
||||
});
|
||||
//图片放大缩小
|
||||
$(document).on("mousewheel DOMMouseScroll", ".layui-layer-phimg", function (e) {
|
||||
var delta = (e.originalEvent.wheelDelta && (e.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
Reference in New Issue
Block a user