You've already forked qlg.frontend
css
fonts
img
js
addessay.js
addgoods.1.js
addgoods.2.js
addgoods.js
addhhrrz.js
addmemorandum.js
addproperties.js
addqrbb.js
addqrrz.js
addshopping.js
addyhk.js
applicationopen.js
appraise.js
bill.js
cash-out.js
choiceness.js
commercial.js
common.js
compare.js
complain.js
confirmOrder.js
cooperative.js
details.js
discounts.js
distribution.js
editAddress.js
essay.js
essaylist.js
friends.js
friendsList.js
goodslist.js
guide.js
hhrrz.js
home.js
home_new.js
income-details.js
indent.js
indentcon.js
index.js
individual.js
invest.js
investdetail.js
jquery-3.2.1.min.js
jquery-ui.min.js
jquery.cookie.js
jquery.qtip.min.js
jquery.validate.min.js
login.js
logistics.js
logisticscon.js
lrz.bundle.js
main_guide.js
mapcommon.js
memorandumlist.js
mui.js
mui.min.js
my.js
myshop.js
myshops.js
order_con.js
order_out.js
paymentVoucher.js
perfect-scrollbar.min.js
photoswipe-ui-default.min.js
photoswipe.js
pj.js
plupload.full.min.js
properties.js
qrbb.js
qrcode.js
qrrz.js
recommend.js
reg.js
register.js
register1.js
reviewsmanage.js
saoyisao.js
self_shop.js
setting.js
setting_address.js
setting_fogetPayPwd.js
setting_fogetPwd.js
setting_loginInfo.js
setting_payPwd.js
setting_phone.js
setting_pwd.js
setting_recive.js
setting_user.js
shangdu.js
shop_decorate.js
shop_indent.js
shop_indentcon.js
shoperUploadVoucher.js
shopgoodlist.js
shoppingcart.js
shopsList.js
shopsetting.js
start.js
store_commodity.js
store_home.1.js
store_home.js
store_info.js
storeout.js
supermarket.js
swiper.min.js
test.js
upload.js
upload1.js
uploadVoucher.js
uploader.js
uploaderBatch.js
uploadqiniu.js
vouchers.js
yhk.js
zepto.min.js
zhugouba.js
zhuweiba.js
lib
templete
.project
api
getscript
index.html
manifest.json
90 lines
2.4 KiB
JavaScript
90 lines
2.4 KiB
JavaScript
mui.init({
|
|
beforeback: function() { //获得父页面的webview
|
|
var list = plus.webview.currentWebview().opener(); //触发父页面的自定义事件(refresh),从而进行刷新
|
|
mui.fire(list, 'reload');
|
|
//返回true,继续页面关闭逻辑
|
|
return true;
|
|
}
|
|
});
|
|
mui.plusReady(function() {
|
|
var self = plus.webview.currentWebview();
|
|
// //console.log(self);
|
|
var qrbbid = self.id ? self.id : 0;
|
|
//console.log(qrbbid);//
|
|
|
|
if (qrbbid >0) {
|
|
$('.header .title').html("编辑亲人报备信息")
|
|
JZL.ajax(qlgUrl('app/auth/getAuthFamilyReportInfo'), {id: qrbbid}, function(data) {
|
|
//console.log(data);
|
|
if (data.status == 1) {
|
|
var data = data.data
|
|
$('#familyName').val(data.familyName);
|
|
$('#familyIdCard').val(data.familyIdCard);
|
|
$('#familyRelations').val(data.familyRelations);
|
|
// var html='<img data-src="' +data.familyRelationsImg + '" src="' + hyhImgUrl(data.familyRelationsImg)+ '" />';
|
|
// $('#ossfile').html(html);
|
|
$('#familyRelationsImg').val(data.familyRelationsImg)
|
|
$('#familyRelations1').attr('src',hyhImgUrl(data.familyRelationsImg))
|
|
} else {
|
|
mui.alert(data.msg);
|
|
}
|
|
})
|
|
}else{
|
|
$('.header .title').html("添加亲人报备信息")
|
|
|
|
}
|
|
var click = false;
|
|
|
|
$(".bc_btn").on('tap', function() {
|
|
if(click ==true) return;
|
|
|
|
click=true;
|
|
|
|
var pargams = JZL.getParams('.inp');
|
|
if (pargams.familyName == '') {
|
|
mui.alert('姓名不能为空!');
|
|
return;
|
|
}
|
|
if (pargams.familyIdCard == '') {
|
|
mui.alert('身份证号不能为空!');
|
|
return;
|
|
}
|
|
if (pargams.familyRelations == '') {
|
|
mui.alert('与户主关系不能为空!');
|
|
return;
|
|
}
|
|
if (pargams.familyRelationsImg == '') {
|
|
mui.alert('请上传与户主关系照!');
|
|
return;
|
|
}
|
|
// $('.bc_btn').attr('disabled','disabled');
|
|
if (qrbbid >0) {
|
|
//console.log(qrbbid);
|
|
pargams.id=qrbbid
|
|
}
|
|
|
|
JZL.ajax(qlgUrl('app/auth/setAuthFamilyReport'),pargams,function(data){
|
|
|
|
//console.log(data);
|
|
var data = toJson(data);
|
|
if(data.status == 1) {
|
|
mui.back();
|
|
} else {
|
|
// mui.alert('发生错误请刷新后重试!');
|
|
// location.reload();
|
|
mui.alert(data.msg)
|
|
}
|
|
})
|
|
|
|
click = false
|
|
|
|
})
|
|
//上传图片
|
|
$('.renzhengphoto').on('tap','.familyRelations',function () {
|
|
UP.init("familyRelationsImg", "test", "familyRelations1")
|
|
openCamera()
|
|
})
|
|
|
|
})
|
|
|