更换版本

This commit is contained in:
2024-01-22 18:48:00 +08:00
parent 9f65ea8fd9
commit 00e6dcaec0
1158 changed files with 70609 additions and 51780 deletions

113
pages/loan/index.js Normal file
View File

@@ -0,0 +1,113 @@
var e;
(e = getApp()).util.url("entry/wxapp/Api", {
m: "monai_sharing",
uid: wx.getStorageSync("uid"),
r: "Upimg",
}),
Page({
data: { upcarindex: 0, userphone: "", isShow: !1, status: "" },
hideDialog: function () {
this.setData({ isShow: !this.data.isShow });
},
updateUserInfo: function (t) {
var a = this;
e.util.getUserInfo(function (e) {
wx.setStorageSync("uid", e.memberInfo.uid), a.hideDialog();
}, t.detail);
},
onShow: function () {},
firstin: function (t) {
wx.getSystemInfoSync(),
e.util.request({
url: "entry/wxapp/Api",
data: {
m: "monai_market",
uid: e.getuid(),
r: "sale.index.saleindex",
},
cachetime: "0",
success: function (e) {
var a = { userphone: "" };
e.data.data.user && (a.userphone = e.data.data.user.phone),
t.setData(a);
},
});
},
onLoad: function (t) {
var a = this;
e.util.getUserInfo(function (e) {
e.memberInfo || a.setData({ isShow: !0 });
}),
a.firstin(a);
},
getPhoneNumber: function (t) {
console.log(t);
var a = this;
e.util.request({
url: "entry/wxapp/Api",
data: {
r: "sale.index.userphone",
m: "monai_market",
iv: t.detail.iv,
encryptedData: t.detail.encryptedData,
},
cachetime: "0",
success: function (e) {
a.setData({ userphone: e.data.data });
},
});
},
release: function (t) {
var a = this,
n = wx.getStorageSync("uid");
if (n) {
if (!a.data.buttscan) {
a.setData({ buttscan: !0 });
var i = t.detail.value.phone;
if ("" == i || "undefined" == i)
return (
e.util.message({ title: "请点击电话授权", type: "error" }),
void a.setData({ buttscan: !1 })
);
var o = {
r: "sale.index.inloan",
m: "monai_market",
fomid: t.detail.formId,
uid: n,
phone: i,
};
e.util.request({
url: "entry/wxapp/Api",
data: o,
cachetime: "0",
success: function (e) {
console.log(e),
e &&
e.data &&
wx.showModal({
title: "成功提示",
content: "提交成功",
showCancel: !1,
success: function (e) {},
});
},
fail: function (e) {
console.log(e),
wx.showModal({
title: "错误提示",
content: e.data.message,
showCancel: !1,
success: function (e) {},
});
},
});
}
} else a.setData({ isShow: !0 });
},
onReady: function () {},
onHide: function () {},
onUnload: function () {},
onPullDownRefresh: function () {},
onReachBottom: function () {},
onShareAppMessage: function () {},
});

1
pages/loan/index.json Normal file
View File

@@ -0,0 +1 @@
{ "navigationBarTitleText": "咨询贷款", "usingComponents": {} }

10
pages/loan/index.wxml Normal file
View File

@@ -0,0 +1,10 @@
<form bindreset="formReset" bindsubmit="release" reportSubmit="true">
<view class="modle">
<input class="modle_right btm_input" name="phone" placeholder="" placeholderStyle="color: #9295A8;" type="number" value="{{userphone}}"></input> 联系电话 <text class="must_red">*</text>
<button bindgetphonenumber="getPhoneNumber" class="modle_btn" openType="getPhoneNumber">电话授权</button>
</view>
<button class="bufa_btn" formType="submit">提交</button>
<view class="jinggao">提交后销售顾问会与您联系</view>
</form>
<import src="/pages/alert/index.wxml"></import>
<template is="alert" data="{{isShow:isShow}}"></template>

219
pages/loan/index.wxss Normal file
View File

@@ -0,0 +1,219 @@
@import "/pages/alert/index.wxss";
.xiaoxi {
background: #3d61f0;
border-bottom: 20rpx solid #f9f9f9;
height: 88rpx;
padding-top: 1rpx;
width: 100%;
}
.text_area,
.xiaoxi {
display: block;
margin: 0 auto;
}
.text_area {
background: #f0f0f0;
border-radius: 10rpx;
color: #555;
font-size: 24rpx;
height: 288rpx;
padding: 20rpx;
width: 650rpx;
}
.xiaoxi_leftImg {
float: left;
height: 40rpx;
margin-top: 24rpx;
padding-left: 30rpx;
padding-right: 15rpx;
width: 40rpx;
}
.xiaoxi_right_btn {
border: 1px solid #fff;
border-radius: 5rpx;
color: #fff;
font-size: 24rpx;
height: 45rpx;
line-height: 45rpx;
margin-left: 30rpx;
margin-top: 21.5rpx;
position: absolute;
right: 20rpx;
text-align: center;
width: 100rpx;
}
.show_diandian,
.update_scroll_modle {
overflow: hidden;
white-space: nowrap;
word-break: keep-all;
}
.update_scroll_modle {
color: #fff;
float: left;
padding-right: 150rpx;
position: relative;
text-overflow: ellipsis;
width: 505rpx;
z-index: 15;
}
.modle,
.update_scroll_modle {
font-size: 28rpx;
height: 88rpx;
line-height: 88rpx;
}
.modle {
border-bottom: 1rpx solid #f0f0f0;
color: #333;
margin-left: 5%;
width: 90%;
}
.modle_right {
color: #9295a8;
display: block;
height: 88rpx;
margin: 0;
text-align: right;
}
.modle_btn,
.modle_right {
float: right;
font-size: 24rpx;
padding: 0;
}
.modle_btn {
background: #fff;
border: 1px solid #3d61f0;
border-radius: 8rpx;
color: #3d61f0;
height: 48rpx;
line-height: 46rpx;
margin: 21.5rpx 0 0 30rpx;
text-align: center;
width: 120rpx;
}
.shangchuan_view {
display: inline-block;
height: 165rpx;
margin-left: 19rpx;
margin-top: 20rpx;
width: 165rpx;
}
.shangchuan_Img {
height: 165rpx;
position: absolute;
width: 165rpx;
}
.shangchuan_Img_close {
float: right;
height: 38rpx;
position: relative;
width: 38rpx;
z-index: 5;
}
.bufa_btn {
background: #3d61f0;
border-radius: 15rpx;
color: #fff;
display: block;
font-size: 28rpx;
height: 72rpx;
line-height: 72rpx;
margin: 40rpx auto 0;
text-align: center;
width: 690rpx;
}
.jinggao {
color: #9295a8;
font-size: 24rpx;
line-height: 80rpx;
text-align: center;
width: 100%;
}
.must_red {
color: red;
}
.textarea_text {
color: #888;
font-size: 24rpx;
height: 310rpx;
margin: -310rpx auto 0;
padding-left: 20rpx;
padding-right: 20rpx;
position: relative;
width: 650rpx;
z-index: 1000;
}
.textarea_text_active {
color: #333;
}
.dizhi_area {
color: #9295a8;
display: inline-block;
font-size: 24rpx;
height: 110rpx;
line-height: 50rpx;
margin-left: 20rpx;
margin-top: 18rpx;
width: 385rpx;
}
.car_messageView {
border-bottom: 1rpx solid #f0f0f0;
height: 88rpx;
margin: 0 auto;
width: 690rpx;
}
.car_messageView_input {
color: #333;
float: left;
font-size: 24rpx;
height: 88rpx;
width: 600rpx;
}
.car_messageView_sc {
color: #f75f5f;
float: left;
font-size: 24rpx;
height: 88rpx;
line-height: 88rpx;
text-align: right;
width: 90rpx;
}
.shangchuan_view_border {
margin-top: -15rpx;
width: 100%;
}
.kefu_modle {
background: #fff;
margin: 0;
padding: 0;
position: fixed;
right: 10rpx;
top: 70rpx;
width: 150rpx;
z-index: 999;
}
.kefu_modle_img {
background: #fff;
border-radius: 100%;
display: block;
height: 100rpx;
margin: 0 auto;
width: 100rpx;
}
.kefu_modle_title {
color: #666;
font-size: 27rpx;
line-height: 80rpx;
text-align: center;
width: 100%;
}
button::after {
border: none;
}
.btm_input {
position: absolute;
right: 180rpx;
width: 340rpx;
}