You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
mobile
oss
static
app
app2
css
img
js
1.js
ac1111next.js
ac1111next_.js
ac2.js
ac3.js
activity1.js
activity10.js
activity1111.js
activity2.js
activity3.js
activity4.js
activity5.js
activity6.js
activity7.js
activity8.js
activity9.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
binaryajax.js
cancellation.js
canvasResize.js
cash-out.js
choiceness.js
classify.js
collect.js
collect_commodity.js
collect_store.js
commercial.js
common.js
common_home.js
compare.js
complain.js
confirmOrder.js
cooperative.js
details.js
details_ac.js
discount.js
discounts.js
distribution.js
dynamic.js
ect_address.js
ect_area.js
ect_index.js
ect_list.js
ect_pre_.js
ect_recharge.js
ect_recharge_list.js
ect_transfer_accounts.html.js
ect_transfer_accounts.js
ect_withdraw.js
ect_withdraw_deposit.js
editAddress.js
essay.js
essaylist.js
exif.js
family.js
friends.js
friendsList.js
god_ect.js
goodslist.js
guide.js
helpGet.js
hhrrz.js
home.js
home_new.js
income-details.js
indent.js
indentcon.js
index.js
individual.js
invest.js
investdetail.js
journalism.js
journalism_con.js
jquery-3.2.1.min.js
jquery-ui.min.js
jquery.cookie.js
jquery.qtip.min.js
jquery.validate.min.js
juan_goods.js
juan_index.js
login.js
logistics.js
logisticscon.js
lrz.bundle.js
main_guide.js
mapcommon.js
memorandumlist.js
msg.js
msg_con.js
mui.js
mui.min.js
my.js
my_help_sale.js
myshop.js
myshops.js
new_product.js
newuser.js
notepad.js
order_con.js
order_out.js
orsupermarket.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
rul.js
saoyisao.js
scrollToTop.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
share.js
share_user_list.js
shopGoodsList.js
shop_decorate.js
shop_indent.js
shop_indentcon.js
shoperUploadVoucher.js
shopgoodlist.js
shoppingcart.js
shopsList.js
shopsetting.js
start.js
store_activity.js
store_class.js
store_commodity.js
store_home.1.js
store_home.js
store_info.js
store_new.js
storeout.js
supermarket.js
swiper.min.js
test.js
time.js
time_limit.js
trade_rule.js
upload.js
upload1.js
uploadVoucher.js
uploader.js
uploaderBatch.js
uploadqiniu.js
vouchers.js
yhk.js
zepto.min.js
zhugouba.js
zhuweiba.js
╕┤╓╞ activity7.js
╕┤╓╞ confirmOrder.js
╕┤╓╞ home.js
╕┤╓╞ indentcon.js
images
js
plugins
src
template
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
188 lines
4.2 KiB
JavaScript
Executable File
188 lines
4.2 KiB
JavaScript
Executable File
mui.init({
|
|
beforeback: function() { //获得父页面的webview
|
|
var list = plus.webview.currentWebview().opener(); //触发父页面的自定义事件(refresh),从而进行刷新
|
|
mui.fire(list, 'refresh');
|
|
//返回true,继续页面关闭逻辑
|
|
return true;
|
|
}
|
|
});
|
|
mui.plusReady(function() {
|
|
JZL.getItems('auth_company');
|
|
var id = '';
|
|
var count = 0;
|
|
$('.header_con_bc').on('tap', function() {
|
|
JZL.saveItems('.localinp', 'auth_company');
|
|
mui.toast('保存成功');
|
|
})
|
|
|
|
if ('' == $('#headImg').val()) {
|
|
$("#headImgTag").attr("src", "../img/touxiang.jpg")
|
|
|
|
}
|
|
JZL.ajax(qlgUrl('app/auth/getAuthInfo'), {
|
|
isCompany: 1
|
|
}, function(data) {
|
|
//console.log(data);
|
|
|
|
if ('undefined' != typeof(data.data) && 1 == data.status) { //编辑
|
|
count = 1;
|
|
$('.mobileCode').hide()
|
|
$('.userPhone').hide()
|
|
$('.payPwd').show()
|
|
id = data.data.id
|
|
|
|
//赋值
|
|
////console.log(data);
|
|
mui.each(data.data, function(index, element) {
|
|
if ($('#' + index).attr("type") == "hidden") {
|
|
// var imgindex = index.substring(0, index.length - 3);
|
|
var imgindex = index + 'Tag'
|
|
var obj = '#' + imgindex
|
|
// //console.log('#' + imgindex + '')
|
|
if (imgindex != "") {
|
|
if ($(obj).is('img')) {
|
|
$(obj).attr("src", hyhImgUrl(element))
|
|
$('#' + index + '').val(element)
|
|
}
|
|
}
|
|
|
|
} else {
|
|
$('#' + index).val(element)
|
|
}
|
|
|
|
|
|
})
|
|
|
|
} else { // 添加
|
|
count = 0
|
|
$('.userPhone').show()
|
|
$('.mobileCode').show()
|
|
$('.payPwd').hide()
|
|
JZL.getItems('auth_company');
|
|
|
|
}
|
|
|
|
})
|
|
mui('.mui-content').on('tap', '.yhk', function() {
|
|
JZL.openWindow('yhk.html', 'yhk.html');
|
|
|
|
})
|
|
mui('.mui-content').on('tap', '.hhrrz', function() {
|
|
JZL.openWindow('hhrrz.html', 'hhrrz.html');
|
|
|
|
})
|
|
|
|
var wait = 120;
|
|
|
|
function time() {
|
|
if (wait == 0) {
|
|
$('.HQYZM').removeAttr("disabled");
|
|
$('.HQYZM').val("重新发送");
|
|
wait = 120;
|
|
} else {
|
|
$('.HQYZM').attr("disabled", true);
|
|
$('.HQYZM').css("background", "#c0a0a0");
|
|
$('.HQYZM').val("重新发送(" + wait + ")");
|
|
wait--;
|
|
setTimeout(function() {
|
|
time()
|
|
},
|
|
1000)
|
|
}
|
|
}
|
|
//获取验证码
|
|
mui('.mui-table-view-cell').on('tap', '.HQYZM', function() {
|
|
var userPhone = $('.indiv-tel').val();
|
|
// if (userPhone == '') {
|
|
// mui.alert('手机号不能为空!');
|
|
// return;
|
|
// }
|
|
// 判断手机号码格式
|
|
// if (!(
|
|
// /^134[0-8]\d{7}$|^13[^4]\d{8}$|^14[5-9]\d{8}$|^15[^4]\d{8}$|^16[6]\d{8}$|^17[0-8]\d{8}$|^18[\d]{9}$|^19[8,9]\d{8}$/
|
|
// .test(userPhone))) {
|
|
// mui.alert("手机号码有误,请重填!");
|
|
// return;
|
|
// }
|
|
// $(".HQYZM").attr("disabled", true);
|
|
JZL.ajax(qlgUrl('app/auth/getPhoneCode'), {
|
|
userPhone: userPhone
|
|
}, function(data) {
|
|
//console.log(data);
|
|
if (1 == data.status) {
|
|
time();
|
|
}
|
|
mui.toast(data.msg);
|
|
})
|
|
|
|
|
|
})
|
|
|
|
// 上传头像
|
|
$("#headerimg").on("tap", '#headImgTag', function() {
|
|
UP.init("headImg", "test", "headImgTag")
|
|
openCamera();
|
|
})
|
|
|
|
$('.bc_btn').on('tap', function() {
|
|
|
|
|
|
var params = JZL.getParams(".inp");
|
|
if ('' == params.trueName) {
|
|
mui.alert("请输入直营人姓名");
|
|
return;
|
|
|
|
}
|
|
if ('' == params.idCard) {
|
|
mui.alert("请输入身份证号");
|
|
return;
|
|
|
|
}
|
|
if ('' == params.companyName) {
|
|
mui.alert("请输入合作名称");
|
|
return;
|
|
}
|
|
if ('' == params.companyAddress) {
|
|
mui.alert("请输入地址");
|
|
return;
|
|
}
|
|
|
|
|
|
if ('' == params.companyName) {
|
|
mui.alert("请输入合作名称");
|
|
return;
|
|
}
|
|
if (0 == count) { //添加
|
|
if ('' == $('#mobileCode').val()) {
|
|
mui.alert("请输入验证码");
|
|
return;
|
|
}
|
|
params.mobileCode = $('#mobileCode').val();
|
|
|
|
} else if (1 == count) { //编辑
|
|
if ('' == $('#payPwd').val()) {
|
|
mui.alert("请输入操作密码");
|
|
return;
|
|
}
|
|
params.authId = id;
|
|
params.payPwd = $('#payPwd').val();
|
|
}
|
|
params.isCompany = 1
|
|
JZL.ajax(qlgUrl('app/auth/setAuthInfo'), params, function(data) {
|
|
//console.log(data);
|
|
if (data.status == 1) {
|
|
JZL.saveItems('.localinp', 'auth_company');
|
|
localStorage.setItem("authType","2")
|
|
mui.toast("提交成功 请等待审核")
|
|
// $(".mui-table-view").attr("readonly", "readonly")
|
|
$(".mobileCode").hide()
|
|
$('.userPhone').hide()
|
|
mui.back();
|
|
} else {
|
|
mui.alert(data.msg);
|
|
}
|
|
|
|
})
|
|
})
|
|
})
|