feat:添加手机号登录功能
This commit is contained in:
parent
c112f88067
commit
b742121fc1
@ -1,3 +1,5 @@
|
|||||||
export default {
|
export default {
|
||||||
baseUrl: "https://stock.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn
|
// baseUrl: "https://stock.szjixun.cn", //"https://warehouse.szjixun.cn", // https://stock.szjixun.cn
|
||||||
|
// baseUrl: "http://192.168.88.58:9021",
|
||||||
|
baseUrl: "https://warehouse.szjixun.cn",
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
config: {
|
config: {
|
||||||
baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
|
// baseUrl: "http://192.168.88.58:9021",
|
||||||
|
baseUrl: "https://warehouse.szjixun.cn",
|
||||||
|
// baseUrl: "https://stock.szjixun.cn", //"http://172.16.100.93:8017", //"http://192.168.88.175:9021",//测试 'https://warehouse.szjixun.cn' 正式 https://stock.szjixun.cn
|
||||||
header: {
|
header: {
|
||||||
"Content-Type": "application/json;charset=UTF-8",
|
"Content-Type": "application/json;charset=UTF-8",
|
||||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||||
|
@ -54,6 +54,39 @@ export const checkFdd = () => {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 获取手机验证码
|
||||||
|
export const getTelCaptcha = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/v3/send/msg",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 校验手机验证码
|
||||||
|
export const checkTelCaptcha = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/v3/tel/login",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// 手机号实名注册
|
||||||
|
export const phoneRegister = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/v3/register",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
|
//法大大是否验证
|
||||||
|
export const checkPhoneFdd = () => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/v3/fdd/check",
|
||||||
|
method: "POST",
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
login,
|
login,
|
||||||
getTel,
|
getTel,
|
||||||
@ -61,4 +94,8 @@ export default {
|
|||||||
chenckId,
|
chenckId,
|
||||||
fddRealName,
|
fddRealName,
|
||||||
checkFdd,
|
checkFdd,
|
||||||
|
getTelCaptcha,
|
||||||
|
checkTelCaptcha,
|
||||||
|
phoneRegister,
|
||||||
|
checkPhoneFdd
|
||||||
};
|
};
|
@ -64,11 +64,7 @@
|
|||||||
{
|
{
|
||||||
"root" : "pagesFace",
|
"root" : "pagesFace",
|
||||||
"name" : "pagesFace",
|
"name" : "pagesFace",
|
||||||
"pages": [
|
"pages" : [ "pages/index/index", "pages/webview/webview", "pages/middle/middle" ]
|
||||||
"pages/index/index",
|
|
||||||
"pages/webview/webview",
|
|
||||||
"pages/middle/middle"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/login/login",
|
"path": "pages/login/login",
|
||||||
"style": {
|
"style": {
|
||||||
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"app-plus": {
|
"app-plus": {
|
||||||
|
@ -1,14 +1,116 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="bg">
|
||||||
<view class="ykfw" @click="goRouter">游客访问</view>
|
<!-- <image src="@/static/image/logo.png" mode="scaleToFill" class="logo" /> -->
|
||||||
<image src="@/static/image/logo.png" mode="scaleToFill" class="logo" />
|
|
||||||
<view class="btn">
|
|
||||||
<u-button v-if="isShow" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" color="transparent"
|
|
||||||
text="点击登录"></u-button>
|
|
||||||
</view>
|
|
||||||
<!-- <view class="btn">
|
<!-- <view class="btn">
|
||||||
<u-button v-if="isLogoutShow" @click="login" color="transparent">点击登录</u-button>
|
<u-button v-if="isLogoutShow" @click="login" color="transparent">点击登录</u-button>
|
||||||
</view>-->
|
</view>-->
|
||||||
|
|
||||||
|
<view class="main">
|
||||||
|
<view class="back-wrapper">
|
||||||
|
<view class="back" v-if="isShowCaptcha" @tap="back">
|
||||||
|
<u-icon name="arrow-left" color="white" size="16"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="title-wrapper">
|
||||||
|
<view class="title">
|
||||||
|
<view class="title-01">登录</view>
|
||||||
|
<view class="title-02">品之鉴</view>
|
||||||
|
</view>
|
||||||
|
<view class="title-wrapper__desc"
|
||||||
|
>若为未注册账号则将自动转入品之鉴注册页</view
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<transition-group name="fade">
|
||||||
|
<view class="phone-login-wrapper" v-show="!isShowCaptcha">
|
||||||
|
<view class="phone-wrapper">
|
||||||
|
<view class="name">手机号</view>
|
||||||
|
<u--input
|
||||||
|
placeholder="请输入手机号"
|
||||||
|
border="none"
|
||||||
|
:focus="true"
|
||||||
|
v-model="phone"
|
||||||
|
@change="handleChange"
|
||||||
|
></u--input>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="agreement-wrapper">
|
||||||
|
<u-checkbox-group
|
||||||
|
v-model="checked"
|
||||||
|
iconPlacement="left"
|
||||||
|
placement="row"
|
||||||
|
inactiveColor="#76C458"
|
||||||
|
@change="handleChange"
|
||||||
|
>
|
||||||
|
<u-checkbox
|
||||||
|
name="yes"
|
||||||
|
shape="circle"
|
||||||
|
activeColor="#76C458"
|
||||||
|
></u-checkbox>
|
||||||
|
<view class="know">
|
||||||
|
已阅读并同意
|
||||||
|
<text @click="agreementHandle('service')"
|
||||||
|
>《软件许可及服务协议》</text
|
||||||
|
>
|
||||||
|
<text @click="agreementHandle('privacy')"
|
||||||
|
>&《隐私保护政策》</text
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
</u-checkbox-group>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view
|
||||||
|
class="captcha-btn"
|
||||||
|
:style="{
|
||||||
|
background: disabled ? '#dadadc' : '#76c558'
|
||||||
|
}"
|
||||||
|
@tap="getCaptcha"
|
||||||
|
>获取验证码</view
|
||||||
|
>
|
||||||
|
|
||||||
|
<view class="btns-wrapper">
|
||||||
|
<view class="btns-wrapper__weixin">
|
||||||
|
<u-button
|
||||||
|
v-if="isShow"
|
||||||
|
open-type="getPhoneNumber"
|
||||||
|
@getphonenumber="getPhoneNumber"
|
||||||
|
color="transparent"
|
||||||
|
text="微信登录"
|
||||||
|
></u-button>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="btns-wrapper__youke" @click="goRouter"
|
||||||
|
>游客访问</view
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="fill-captcha-wrapper" v-show="isShowCaptcha">
|
||||||
|
<view class="fill-captcha-wrapper__tip">
|
||||||
|
<view class="tip-01">已发送验证码至</view>
|
||||||
|
<view class="tip-02">{{ phone }}</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<u-code-input
|
||||||
|
:maxlength="6"
|
||||||
|
:space="5"
|
||||||
|
:focus="true"
|
||||||
|
v-model="captcha"
|
||||||
|
@finish="handleFinish"
|
||||||
|
></u-code-input>
|
||||||
|
|
||||||
|
<view
|
||||||
|
class="resend-wrapper"
|
||||||
|
:style="{
|
||||||
|
color: timer === null ? '#76c558' : '#8d8d8d'
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<view @tap="resendCaptcha">重新发送</view>
|
||||||
|
<view v-if="timer !== null">({{ time }}s)</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</transition-group>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -16,64 +118,149 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
code: "",
|
code: '',
|
||||||
openId: "",
|
openId: '',
|
||||||
isShow: false,
|
isShow: false,
|
||||||
isNew: false
|
isNew: false,
|
||||||
};
|
isShowCaptcha: false,
|
||||||
|
phone: '',
|
||||||
|
checked: [],
|
||||||
|
disabled: true,
|
||||||
|
captcha: '',
|
||||||
|
time: 60,
|
||||||
|
timer: null,
|
||||||
|
isPhoneLogin: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goRouter() {
|
goRouter() {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: '/pages/home/index'
|
url: '/pages/home/index'
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
async getPhoneNumber(e) {
|
async getPhoneNumber(e) {
|
||||||
if (e.detail.errMsg == "getPhoneNumber:ok") {
|
if (e.detail.errMsg == 'getPhoneNumber:ok') {
|
||||||
// 用户允许或去手机号
|
// 用户允许或去手机号
|
||||||
let res = await this.$api.login.getTel({ code: e.detail.code });
|
let res = await this.$api.login.getTel({ code: e.detail.code })
|
||||||
if (res.status == 0) {
|
if (res.status == 0) {
|
||||||
uni.setStorageSync("telNum", res.data.telNum);
|
uni.setStorageSync('telNum', res.data.telNum)
|
||||||
|
this.isPhoneLogin = false
|
||||||
|
uni.setStorageSync('phoneLogin', this.isPhoneLogin)
|
||||||
if (this.isNew) {
|
if (this.isNew) {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: "/pages/realName/realName"
|
url: '/pages/realName/realName'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: "/pages/home/index"
|
url: '/pages/home/index'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res.msg);
|
this.$common.msgToast(res.msg)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast("请不要拒绝哟~重新点击登录");
|
this.$common.msgToast('请不要拒绝哟~重新点击登录')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//获取openId
|
//获取openId
|
||||||
async getOpenId() {
|
async getOpenId() {
|
||||||
uni.login({
|
uni.login({
|
||||||
provider: "weixin",
|
provider: 'weixin',
|
||||||
success: async res => {
|
success: async (res) => {
|
||||||
console.log("res.code", res.code);
|
console.log('res.code', res.code)
|
||||||
this.code = res.code;
|
this.code = res.code
|
||||||
let res1 = await this.$api.login.login({ code: res.code });
|
let res1 = await this.$api.login.login({ code: res.code })
|
||||||
if (res1.status == 0) {
|
if (res1.status == 0) {
|
||||||
if (res1.data.accountInfo.isNew || !uni.getStorageSync("telNum")) {
|
if (
|
||||||
this.isShow = true;
|
res1.data.accountInfo.isNew ||
|
||||||
this.isNew = res1.data.accountInfo.isNew;
|
!uni.getStorageSync('telNum')
|
||||||
|
) {
|
||||||
|
this.isShow = true
|
||||||
|
this.isNew = res1.data.accountInfo.isNew
|
||||||
} else {
|
} else {
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: "/pages/home/index"
|
url: '/pages/home/index'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
uni.setStorageSync("token", res1.data.token);
|
uni.setStorageSync('token', res1.data.token)
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res1.msg);
|
this.$common.msgToast(res1.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
|
handleChange() {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
if (this.phone.length === 11 && this.checked.length > 0) {
|
||||||
|
this.disabled = false
|
||||||
|
} else {
|
||||||
|
this.disabled = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
agreementHandle(type) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/realName/agreement?type=' + type
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getCaptcha() {
|
||||||
|
if (!this.disabled) {
|
||||||
|
const res = await this.$api.login.getTelCaptcha({
|
||||||
|
Telnum: this.phone
|
||||||
|
})
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.$common.msgToast('验证码已发送')
|
||||||
|
this.isShowCaptcha = true
|
||||||
|
this.timer = setInterval(() => {
|
||||||
|
if (this.time > 0) this.time--
|
||||||
|
else {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.time = 60
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
}, 1000)
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast('验证码发送失败,请稍后再试')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
resendCaptcha() {
|
||||||
|
if (this.timer === null) {
|
||||||
|
this.getCaptcha()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async handleFinish(e) {
|
||||||
|
const res = await this.$api.login.checkTelCaptcha({
|
||||||
|
telnum: this.phone,
|
||||||
|
code: e
|
||||||
|
})
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.$common.msgToast('请稍等')
|
||||||
|
uni.setStorageSync('token', res.data.token)
|
||||||
|
uni.setStorageSync('telNum', this.phone)
|
||||||
|
if (res.data.isRealName) {
|
||||||
|
uni.reLaunch({
|
||||||
|
url: `/pages/home/index`
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.isPhoneLogin = true
|
||||||
|
uni.setStorageSync('phoneLogin', this.isPhoneLogin)
|
||||||
|
uni.reLaunch({
|
||||||
|
url: `/pages/realName/realName?isPhoneLogin`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
back() {
|
||||||
|
this.isShowCaptcha = false
|
||||||
|
if (this.timer) {
|
||||||
|
clearInterval(this.timer)
|
||||||
|
this.time = 60
|
||||||
|
this.timer = null
|
||||||
|
}
|
||||||
|
}
|
||||||
// info判断用户是401就让他获取openId
|
// info判断用户是401就让他获取openId
|
||||||
// async info() {
|
// async info() {
|
||||||
// const res = await this.$api.mine.info();
|
// const res = await this.$api.mine.info();
|
||||||
@ -101,9 +288,9 @@ export default {
|
|||||||
// this.getOpenId();
|
// this.getOpenId();
|
||||||
// }
|
// }
|
||||||
// this.info();
|
// this.info();
|
||||||
this.getOpenId();
|
this.getOpenId()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -111,13 +298,17 @@ export default {
|
|||||||
background: red;
|
background: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.bg {
|
||||||
background: url("https://cdns.fontree.cn/fonchain-main/prod/image/1381bd18-2f0c-49f1-84f6-d3eceb94f7a7/artwork/6ef00a09-f663-451d-ae0c-0d00cf4068c5.png");
|
background: url('https://e-cdn.fontree.cn/fonchain-main/prod/image/6248/avatar/8178c309-54da-4e45-89d1-25c3f0cc80e9.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
// flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.ykfw {
|
.ykfw {
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -125,37 +316,176 @@ export default {
|
|||||||
right: 40rpx;
|
right: 40rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.logo {
|
// .logo {
|
||||||
margin-top: 250rpx;
|
// margin-top: 250rpx;
|
||||||
width: 398rpx;
|
// width: 398rpx;
|
||||||
height: 744rpx;
|
// height: 744rpx;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.main {
|
||||||
|
width: 80vw;
|
||||||
|
height: 670rpx;
|
||||||
|
|
||||||
|
.back-wrapper {
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
|
||||||
|
.back {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #76c558;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-wrapper {
|
||||||
|
margin-top: 40rpx;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.title-02 {
|
||||||
|
color: #76c558;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__desc {
|
||||||
|
color: #8d8d8d;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone-login-wrapper {
|
||||||
|
margin-top: 100rpx;
|
||||||
|
|
||||||
|
.phone-wrapper {
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
width: 100%;
|
||||||
|
height: 92rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-left: 24rpx;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
line-height: 72rpx;
|
||||||
|
border-right: 1rpx solid #d1d1d1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .u-input {
|
||||||
|
margin-left: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.agreement-wrapper {
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin: 46rpx 0 10rpx 0;
|
||||||
|
|
||||||
|
.know {
|
||||||
|
margin-top: 20upx;
|
||||||
|
font-size: 28upx;
|
||||||
|
color: #8d8d8d;
|
||||||
|
|
||||||
|
text {
|
||||||
|
color: #76c458;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.captcha-btn {
|
||||||
|
width: 100%;
|
||||||
|
height: 92rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #dadadc;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btns-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
|
||||||
|
&__weixin {
|
||||||
|
/deep/ .u-button {
|
||||||
|
padding-left: 0 !important;
|
||||||
|
padding-right: 0 !important;
|
||||||
|
font-size: 30rpx !important;
|
||||||
|
color: #76c558 !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&__youke {
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fill-captcha-wrapper {
|
||||||
|
margin-top: 50rpx;
|
||||||
|
|
||||||
|
&__tip {
|
||||||
|
height: 40rpx;
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
|
||||||
|
.tip-01 {
|
||||||
|
color: #8d8d8d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tip-02 {
|
||||||
|
margin-left: 16rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/deep/ .u-code-input {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
.u-code-input__item {
|
||||||
|
width: calc(80vw / 7) !important;
|
||||||
|
height: 92rpx !important;
|
||||||
|
background-color: #ffffff !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.resend-wrapper {
|
||||||
|
display: flex;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fade-enter,
|
||||||
|
.fade-leave-to {
|
||||||
|
transform: translateX(100%);
|
||||||
|
}
|
||||||
|
.fade-enter-active,
|
||||||
|
.fade-leave-active {
|
||||||
|
transition: 0.5 linear;
|
||||||
|
}
|
||||||
|
.fade-enter-to,
|
||||||
|
.fade-leave {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uni-button:after {
|
uni-button:after {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
|
||||||
background: transparent;
|
|
||||||
width: 200rpx;
|
|
||||||
position: fixed;
|
|
||||||
bottom: 15%;
|
|
||||||
color: #fff;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
font-size: 30rpx;
|
|
||||||
transition: all 1s;
|
|
||||||
animation: jump 1s ease-in-out infinite alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes jump {
|
|
||||||
from {
|
|
||||||
bottom: 16%;
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
bottom: 15%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main">
|
||||||
<view class="logo">
|
<view class="logo">
|
||||||
<image src="@/static/image/logo2.png" mode="scaleToFill" class="img" />
|
<image
|
||||||
|
src="@/static/image/logo2.png"
|
||||||
|
mode="scaleToFill"
|
||||||
|
class="img"
|
||||||
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="head">
|
<view class="head">
|
||||||
@ -10,7 +14,8 @@
|
|||||||
<!-- <view :style="{ fontSize: '18rpx' }">*实名认证失败</view> -->
|
<!-- <view :style="{ fontSize: '18rpx' }">*实名认证失败</view> -->
|
||||||
<!-- <view>*实名认证成功</view> -->
|
<!-- <view>*实名认证成功</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #7fa770; font-size: 24rpx; margin-left: 36rpx"
|
<view
|
||||||
|
style="color: #7fa770; font-size: 24rpx; margin-left: 36rpx"
|
||||||
>此实名仅用于注册该小程序</view
|
>此实名仅用于注册该小程序</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@ -38,7 +43,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="name">{{
|
<view class="name">{{
|
||||||
radiovalue === "0" ? "身份证号" : "护照号"
|
radiovalue === '0' ? '身份证号' : '护照号'
|
||||||
}}</view>
|
}}</view>
|
||||||
<u--input
|
<u--input
|
||||||
placeholder="请输入身份证号"
|
placeholder="请输入身份证号"
|
||||||
@ -88,7 +93,12 @@
|
|||||||
></image>
|
></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #4e964d; font-size: 20rpx; margin-top: 20rpx"
|
<view
|
||||||
|
style="
|
||||||
|
color: #4e964d;
|
||||||
|
font-size: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
"
|
||||||
>上传身份证人像面</view
|
>上传身份证人像面</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@ -111,7 +121,12 @@
|
|||||||
></image>
|
></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #4e964d; font-size: 20rpx; margin-top: 20rpx"
|
<view
|
||||||
|
style="
|
||||||
|
color: #4e964d;
|
||||||
|
font-size: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
"
|
||||||
>上传身份证国徽面</view
|
>上传身份证国徽面</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@ -146,7 +161,12 @@
|
|||||||
></image>
|
></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #4e964d; font-size: 20rpx; margin-top: 20rpx"
|
<view
|
||||||
|
style="
|
||||||
|
color: #4e964d;
|
||||||
|
font-size: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
"
|
||||||
>上传护照资料页</view
|
>上传护照资料页</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@ -169,7 +189,12 @@
|
|||||||
></image>
|
></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view>
|
</view>
|
||||||
<view style="color: #4e964d; font-size: 20rpx; margin-top: 20rpx"
|
<view
|
||||||
|
style="
|
||||||
|
color: #4e964d;
|
||||||
|
font-size: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
"
|
||||||
>上传护照封面</view
|
>上传护照封面</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
@ -178,22 +203,34 @@
|
|||||||
<view v-if="needPersonSecret" class="face">
|
<view v-if="needPersonSecret" class="face">
|
||||||
<view class="faceTitle">人脸识别</view>
|
<view class="faceTitle">人脸识别</view>
|
||||||
<view class="recognition" @click="camera" v-if="!video">
|
<view class="recognition" @click="camera" v-if="!video">
|
||||||
<view style="color: #fff; margin-right: 10rpx">前往认证</view>
|
<view style="color: #fff; margin-right: 10rpx"
|
||||||
|
>前往认证</view
|
||||||
|
>
|
||||||
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="recognition" @click="camera" v-else>
|
<view class="recognition" @click="camera" v-else>
|
||||||
<view style="color: #fff; margin-right: 10rpx">认证成功</view>
|
<view style="color: #fff; margin-right: 10rpx"
|
||||||
|
>认证成功</view
|
||||||
|
>
|
||||||
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="face">
|
<view class="face">
|
||||||
<view class="faceTitle">法大大认证</view>
|
<view class="faceTitle">法大大认证</view>
|
||||||
<view class="recognition" @click="fddRealName" v-if="!isFddSuccess">
|
<view
|
||||||
<view style="color: #fff; margin-right: 10rpx">前往认证</view>
|
class="recognition"
|
||||||
|
@click="fddRealName"
|
||||||
|
v-if="!isFddSuccess"
|
||||||
|
>
|
||||||
|
<view style="color: #fff; margin-right: 10rpx"
|
||||||
|
>前往认证</view
|
||||||
|
>
|
||||||
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
<u-icon name="arrow-right-double" color="#fff"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="recognition" @click="fddRealName" v-else>
|
<view class="recognition" @click="fddRealName" v-else>
|
||||||
<view style="color: #fff; margin-right: 10rpx">认证成功</view>
|
<view style="color: #fff; margin-right: 10rpx"
|
||||||
|
>认证成功</view
|
||||||
|
>
|
||||||
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
<u-icon name="checkmark-circle" color="#fff"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -214,7 +251,9 @@
|
|||||||
<text @click="agreementHandle('service')"
|
<text @click="agreementHandle('service')"
|
||||||
>《软件许可及服务协议》</text
|
>《软件许可及服务协议》</text
|
||||||
>
|
>
|
||||||
<text @click="agreementHandle('privacy')">&《隐私保护政策》</text>
|
<text @click="agreementHandle('privacy')"
|
||||||
|
>&《隐私保护政策》</text
|
||||||
|
>
|
||||||
</view>
|
</view>
|
||||||
</u-checkbox-group>
|
</u-checkbox-group>
|
||||||
</view>
|
</view>
|
||||||
@ -232,49 +271,51 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import http from "@/http/api";
|
import http from '@/http/api'
|
||||||
import { configFun } from "../../http/login";
|
import { configFun } from '../../http/login'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
needPersonSecret: false,
|
needPersonSecret: false,
|
||||||
name: "",
|
name: '',
|
||||||
num: "",
|
num: '',
|
||||||
passportId: "",
|
passportId: '',
|
||||||
checked: [],
|
checked: [],
|
||||||
fileList: [],
|
fileList: [],
|
||||||
fileList2: [],
|
fileList2: [],
|
||||||
passport: [],
|
passport: [],
|
||||||
passport2: [],
|
passport2: [],
|
||||||
video: "",
|
video: '',
|
||||||
isChecked: false,
|
isChecked: false,
|
||||||
isFddSuccess: false,
|
isFddSuccess: false,
|
||||||
radiovalue: "0",
|
radiovalue: '0',
|
||||||
typeId: "",
|
typeId: '',
|
||||||
};
|
isPhoneLogin: false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
const res = await configFun();
|
this.isPhoneLogin = uni.getStorageSync('phoneLogin') || false
|
||||||
|
const res = await configFun()
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.needPersonSecret = res.data.needPersonSecret;
|
this.needPersonSecret = res.data.needPersonSecret
|
||||||
}
|
}
|
||||||
const data = JSON.parse(decodeURIComponent(options.data));
|
const data = JSON.parse(decodeURIComponent(options.data))
|
||||||
this.name = data.name || "";
|
this.name = data.name || ''
|
||||||
this.num = data.num || "";
|
this.num = data.num || ''
|
||||||
this.fileList = data.fileList || [];
|
this.fileList = data.fileList || []
|
||||||
this.fileList2 = data.fileList2 || [];
|
this.fileList2 = data.fileList2 || []
|
||||||
this.radiovalue = data.radiovalue;
|
this.radiovalue = data.radiovalue
|
||||||
this.passport = data.passport || [];
|
this.passport = data.passport || []
|
||||||
this.passport2 = data.passport2 || [];
|
this.passport2 = data.passport2 || []
|
||||||
this.passportId = data.passportId || "";
|
this.passportId = data.passportId || ''
|
||||||
},
|
},
|
||||||
async onShow() {
|
async onShow() {
|
||||||
if (!uni.getStorageSync("telNum")) {
|
if (!uni.getStorageSync('telNum')) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/login/login",
|
url: '/pages/login/login'
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
this.checkFdd();
|
this.checkFdd()
|
||||||
// if (uni.getStorageSync("tempVideoPath")) {
|
// if (uni.getStorageSync("tempVideoPath")) {
|
||||||
// const tempVideoPath = uni.getStorageSync("tempVideoPath");
|
// const tempVideoPath = uni.getStorageSync("tempVideoPath");
|
||||||
// this.video = await this.uploadFilePromise(tempVideoPath);
|
// this.video = await this.uploadFilePromise(tempVideoPath);
|
||||||
@ -297,234 +338,265 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
isFddSuccess(newValue) {
|
isFddSuccess(newValue) {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
console.log(newValue);
|
console.log(newValue)
|
||||||
this.name = uni.getStorageSync("info").name || "";
|
this.name = uni.getStorageSync('info').name || ''
|
||||||
this.num = uni.getStorageSync("info").num || "";
|
this.num = uni.getStorageSync('info').num || ''
|
||||||
this.fileList = uni.getStorageSync("info").fileList || [];
|
this.fileList = uni.getStorageSync('info').fileList || []
|
||||||
this.fileList2 = uni.getStorageSync("info").fileList2 || [];
|
this.fileList2 = uni.getStorageSync('info').fileList2 || []
|
||||||
this.video = uni.getStorageSync("info").video || "";
|
this.video = uni.getStorageSync('info').video || ''
|
||||||
this.radiovalue = uni.getStorageSync("info").radiovalue ?? "0";
|
this.radiovalue = uni.getStorageSync('info').radiovalue ?? '0'
|
||||||
this.passport = uni.getStorageSync("info").passport || [];
|
this.passport = uni.getStorageSync('info').passport || []
|
||||||
this.passport2 = uni.getStorageSync("info").passport2 || [];
|
this.passport2 = uni.getStorageSync('info').passport2 || []
|
||||||
this.passportId = uni.getStorageSync("info").passportId || "";
|
this.passportId = uni.getStorageSync('info').passportId || ''
|
||||||
uni.removeStorageSync("info");
|
uni.removeStorageSync('info')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeName(value) {
|
changeName(value) {
|
||||||
this.name = value;
|
this.name = value
|
||||||
},
|
},
|
||||||
changeNum(value) {
|
changeNum(value) {
|
||||||
this.num = value;
|
this.num = value
|
||||||
},
|
},
|
||||||
changePassport(value) {
|
changePassport(value) {
|
||||||
this.passportId = value;
|
this.passportId = value
|
||||||
},
|
},
|
||||||
camera() {
|
camera() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/cameraContext/cameraContext",
|
url: '/pages/cameraContext/cameraContext'
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
async completeRegistration() {
|
async completeRegistration() {
|
||||||
const res1 = await this.checkFdd();
|
const res1 = await this.checkFdd()
|
||||||
if (!res1) return this.$common.msgToast("法大大验证未通过");
|
if (!res1) return this.$common.msgToast('法大大验证未通过')
|
||||||
if (res1 && this.typeId !== this.radiovalue)
|
if (res1 && this.typeId !== this.radiovalue)
|
||||||
return this.$common.msgToast("法大大验证失效请重新认证");
|
return this.$common.msgToast('法大大验证失效请重新认证')
|
||||||
if (!this.checked.length)
|
if (!this.checked.length)
|
||||||
return this.$common.msgToast("请阅读并勾选协议");
|
return this.$common.msgToast('请阅读并勾选协议')
|
||||||
if (!this.name) return this.$common.msgToast("请输入姓名");
|
if (!this.name) return this.$common.msgToast('请输入姓名')
|
||||||
if (this.radiovalue === "0") {
|
if (this.radiovalue === '0') {
|
||||||
if (!this.fileList.length)
|
if (!this.fileList.length)
|
||||||
return this.$common.msgToast("请上传身份证人面像");
|
return this.$common.msgToast('请上传身份证人面像')
|
||||||
if (!this.fileList2.length)
|
if (!this.fileList2.length)
|
||||||
return this.$common.msgToast("请上传身份国徽面");
|
return this.$common.msgToast('请上传身份国徽面')
|
||||||
if (!this.num) return this.$common.msgToast("请输入身份证号");
|
if (!this.num) return this.$common.msgToast('请输入身份证号')
|
||||||
} else {
|
} else {
|
||||||
if (!this.passport.length)
|
if (!this.passport.length)
|
||||||
return this.$common.msgToast("请上传护照正面");
|
return this.$common.msgToast('请上传护照正面')
|
||||||
if (!this.passport2.length)
|
if (!this.passport2.length)
|
||||||
return this.$common.msgToast("请上传护照背面");
|
return this.$common.msgToast('请上传护照背面')
|
||||||
if (!this.passportId) return this.$common.msgToast("请输入护照号");
|
if (!this.passportId)
|
||||||
|
return this.$common.msgToast('请输入护照号')
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (this.needPersonSecret && !this.video)
|
// if (this.needPersonSecret && !this.video)
|
||||||
// return this.$common.msgToast("请上传人脸识别视频");
|
// return this.$common.msgToast("请上传人脸识别视频");
|
||||||
|
if (!this.isPhoneLogin) {
|
||||||
const res = await this.$api.login.register({
|
const res = await this.$api.login.register({
|
||||||
user: {
|
user: {
|
||||||
telNum: uni.getStorageSync("telNum"),
|
telNum: uni.getStorageSync('telNum'),
|
||||||
realNameIDName: this.num,
|
realNameIDName: this.num,
|
||||||
realName: this.name,
|
realName: this.name,
|
||||||
realIDImgA: this.fileList[0]?.url || "",
|
realIDImgA: this.fileList[0]?.url || '',
|
||||||
realIDImgB: this.fileList2[0]?.url || "",
|
realIDImgB: this.fileList2[0]?.url || '',
|
||||||
idType: this.radiovalue,
|
idType: this.radiovalue,
|
||||||
passport: {
|
passport: {
|
||||||
idNum: this.passportId,
|
idNum: this.passportId,
|
||||||
name: this.name,
|
name: this.name,
|
||||||
RealIDImgA: this.passport[0]?.url || "",
|
RealIDImgA: this.passport[0]?.url || '',
|
||||||
RealIDImgB: this.passport2[0]?.url || "",
|
RealIDImgB: this.passport2[0]?.url || ''
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
});
|
})
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url: "/pages/home/index",
|
url: '/pages/home/index'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res.msg);
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
const res = await this.$api.login.phoneRegister({
|
||||||
|
telNum: uni.getStorageSync('telNum'),
|
||||||
|
realNameIDName: this.num,
|
||||||
|
realName: this.name,
|
||||||
|
realIDImgA: this.fileList[0]?.url || '',
|
||||||
|
realIDImgB: this.fileList2[0]?.url || '',
|
||||||
|
idType: this.radiovalue,
|
||||||
|
passport: {
|
||||||
|
idNum: this.passportId,
|
||||||
|
name: this.name,
|
||||||
|
RealIDImgA: this.passport[0]?.url || '',
|
||||||
|
RealIDImgB: this.passport2[0]?.url || ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (res.status === 0) {
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/home/index'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 删除图片
|
// 删除图片
|
||||||
deletePic(event) {
|
deletePic(event) {
|
||||||
this[`fileList`].splice(event.index, 1);
|
this[`fileList`].splice(event.index, 1)
|
||||||
},
|
},
|
||||||
deletePassport(event) {
|
deletePassport(event) {
|
||||||
this[`passport`].splice(event.index, 1);
|
this[`passport`].splice(event.index, 1)
|
||||||
},
|
},
|
||||||
deletePassport2(event) {
|
deletePassport2(event) {
|
||||||
this[`passport2`].splice(event.index, 1);
|
this[`passport2`].splice(event.index, 1)
|
||||||
},
|
},
|
||||||
// 删除图片
|
// 删除图片
|
||||||
deletePic2(event) {
|
deletePic2(event) {
|
||||||
this[`fileList2`].splice(event.index, 1);
|
this[`fileList2`].splice(event.index, 1)
|
||||||
},
|
},
|
||||||
// 新增图片
|
// 新增图片
|
||||||
async afterRead(event) {
|
async afterRead(event) {
|
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
||||||
let lists = [].concat(event.file);
|
let lists = [].concat(event.file)
|
||||||
let fileListLen = this[`fileList`].length;
|
let fileListLen = this[`fileList`].length
|
||||||
lists.map((item) => {
|
lists.map((item) => {
|
||||||
this[`fileList`].push({
|
this[`fileList`].push({
|
||||||
...item,
|
...item,
|
||||||
status: "uploading",
|
status: 'uploading',
|
||||||
message: "上传中",
|
message: '上传中'
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
for (let i = 0; i < lists.length; i++) {
|
for (let i = 0; i < lists.length; i++) {
|
||||||
const result = await this.uploadFilePromise(lists[i].url, "check");
|
const result = await this.uploadFilePromise(
|
||||||
let item = this[`fileList`][fileListLen];
|
lists[i].url,
|
||||||
|
'check'
|
||||||
|
)
|
||||||
|
let item = this[`fileList`][fileListLen]
|
||||||
this[`fileList`].splice(
|
this[`fileList`].splice(
|
||||||
fileListLen,
|
fileListLen,
|
||||||
1,
|
1,
|
||||||
Object.assign(item, {
|
Object.assign(item, {
|
||||||
status: "success",
|
status: 'success',
|
||||||
message: "",
|
message: '',
|
||||||
url: result,
|
url: result
|
||||||
})
|
})
|
||||||
);
|
)
|
||||||
fileListLen++;
|
fileListLen++
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async afterReadPassport(event) {
|
async afterReadPassport(event) {
|
||||||
let lists = [].concat(event.file);
|
let lists = [].concat(event.file)
|
||||||
let fileListLen = this[`passport`].length;
|
let fileListLen = this[`passport`].length
|
||||||
lists.map((item) => {
|
lists.map((item) => {
|
||||||
this[`passport`].push({
|
this[`passport`].push({
|
||||||
...item,
|
...item,
|
||||||
status: "uploading",
|
status: 'uploading',
|
||||||
message: "上传中",
|
message: '上传中'
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
for (let i = 0; i < lists.length; i++) {
|
for (let i = 0; i < lists.length; i++) {
|
||||||
const result = await this.uploadFilePromise(lists[i].url, "check");
|
const result = await this.uploadFilePromise(
|
||||||
let item = this[`passport`][fileListLen];
|
lists[i].url,
|
||||||
|
'check'
|
||||||
|
)
|
||||||
|
let item = this[`passport`][fileListLen]
|
||||||
this[`passport`].splice(
|
this[`passport`].splice(
|
||||||
fileListLen,
|
fileListLen,
|
||||||
1,
|
1,
|
||||||
Object.assign(item, {
|
Object.assign(item, {
|
||||||
status: "success",
|
status: 'success',
|
||||||
message: "",
|
message: '',
|
||||||
url: result,
|
url: result
|
||||||
})
|
})
|
||||||
);
|
)
|
||||||
fileListLen++;
|
fileListLen++
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async afterRead2(event) {
|
async afterRead2(event) {
|
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
||||||
let lists = [].concat(event.file);
|
let lists = [].concat(event.file)
|
||||||
let fileListLen = this[`fileList2`].length;
|
let fileListLen = this[`fileList2`].length
|
||||||
lists.map((item) => {
|
lists.map((item) => {
|
||||||
this[`fileList2`].push({
|
this[`fileList2`].push({
|
||||||
...item,
|
...item,
|
||||||
status: "uploading",
|
status: 'uploading',
|
||||||
message: "上传中",
|
message: '上传中'
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
for (let i = 0; i < lists.length; i++) {
|
for (let i = 0; i < lists.length; i++) {
|
||||||
const result = await this.uploadFilePromise(lists[i].url);
|
const result = await this.uploadFilePromise(lists[i].url)
|
||||||
let item = this[`fileList2`][fileListLen];
|
let item = this[`fileList2`][fileListLen]
|
||||||
this[`fileList2`].splice(
|
this[`fileList2`].splice(
|
||||||
fileListLen,
|
fileListLen,
|
||||||
1,
|
1,
|
||||||
Object.assign(item, {
|
Object.assign(item, {
|
||||||
status: "success",
|
status: 'success',
|
||||||
message: "",
|
message: '',
|
||||||
url: result,
|
url: result
|
||||||
})
|
})
|
||||||
);
|
)
|
||||||
fileListLen++;
|
fileListLen++
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async afterReadPassport2(event) {
|
async afterReadPassport2(event) {
|
||||||
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
// 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
|
||||||
let lists = [].concat(event.file);
|
let lists = [].concat(event.file)
|
||||||
let fileListLen = this[`passport2`].length;
|
let fileListLen = this[`passport2`].length
|
||||||
lists.map((item) => {
|
lists.map((item) => {
|
||||||
this[`passport2`].push({
|
this[`passport2`].push({
|
||||||
...item,
|
...item,
|
||||||
status: "uploading",
|
status: 'uploading',
|
||||||
message: "上传中",
|
message: '上传中'
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
for (let i = 0; i < lists.length; i++) {
|
for (let i = 0; i < lists.length; i++) {
|
||||||
const result = await this.uploadFilePromise(lists[i].url);
|
const result = await this.uploadFilePromise(lists[i].url)
|
||||||
let item = this[`passport2`][fileListLen];
|
let item = this[`passport2`][fileListLen]
|
||||||
this[`passport2`].splice(
|
this[`passport2`].splice(
|
||||||
fileListLen,
|
fileListLen,
|
||||||
1,
|
1,
|
||||||
Object.assign(item, {
|
Object.assign(item, {
|
||||||
status: "success",
|
status: 'success',
|
||||||
message: "",
|
message: '',
|
||||||
url: result,
|
url: result
|
||||||
})
|
})
|
||||||
);
|
)
|
||||||
fileListLen++;
|
fileListLen++
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uploadFilePromise(url, type = null) {
|
uploadFilePromise(url, type = null) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: http.baseUrl + "/api/wxuser/uploadpic",
|
url: http.baseUrl + '/api/wxuser/uploadpic',
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: "file",
|
name: 'file',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
const { path } = JSON.parse(res.data).data;
|
const { path } = JSON.parse(res.data).data
|
||||||
resolve(path);
|
resolve(path)
|
||||||
if (type === "check" && this.radiovalue === "0") {
|
if (type === 'check' && this.radiovalue === '0') {
|
||||||
this.chenckId(path);
|
this.chenckId(path)
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
async chenckId(realIDImgA) {
|
async chenckId(realIDImgA) {
|
||||||
const res = await this.$api.login.chenckId({ realIDImgA });
|
const res = await this.$api.login.chenckId({ realIDImgA })
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
this.num = res.data.iDNum;
|
this.num = res.data.iDNum
|
||||||
this.name = res.data.realName;
|
this.name = res.data.realName
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast("未识别身份信息");
|
this.$common.msgToast('未识别身份信息')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async fddRealName() {
|
async fddRealName() {
|
||||||
console.log(this.radiovalue);
|
console.log(this.radiovalue)
|
||||||
if (this.radiovalue === "0") {
|
if (this.radiovalue === '0') {
|
||||||
if (!this.num || !this.name)
|
if (!this.num || !this.name)
|
||||||
return this.$common.msgToast("姓名和身份证号不能为空");
|
return this.$common.msgToast('姓名和身份证号不能为空')
|
||||||
} else {
|
} else {
|
||||||
if (!this.passportId || !this.name)
|
if (!this.passportId || !this.name)
|
||||||
return this.$common.msgToast("姓名和护照号不能为空");
|
return this.$common.msgToast('姓名和护照号不能为空')
|
||||||
}
|
}
|
||||||
const data = {
|
const data = {
|
||||||
num: this.num,
|
num: this.num,
|
||||||
@ -534,36 +606,47 @@ export default {
|
|||||||
passport: this.passport,
|
passport: this.passport,
|
||||||
passport2: this.passport2,
|
passport2: this.passport2,
|
||||||
passportId: this.passportId,
|
passportId: this.passportId,
|
||||||
radiovalue: this.radiovalue,
|
radiovalue: this.radiovalue
|
||||||
};
|
}
|
||||||
console.log(data, "data");
|
console.log(data, 'data')
|
||||||
uni.setStorageSync("info", data);
|
uni.setStorageSync('info', data)
|
||||||
const mobile = uni.getStorageSync("telNum");
|
const mobile = uni.getStorageSync('telNum')
|
||||||
const res = await this.$api.login.fddRealName({
|
const res = await this.$api.login.fddRealName({
|
||||||
customerName: this.name,
|
customerName: this.name,
|
||||||
customerIdentNo: this.num || this.passportId,
|
customerIdentNo: this.num || this.passportId,
|
||||||
mobile,
|
mobile,
|
||||||
idType: this.radiovalue,
|
idType: this.radiovalue
|
||||||
});
|
})
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
uni.setStorageSync("fddUrl", res.data?.url);
|
uni.setStorageSync('fddUrl', res.data?.url)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: "/pages/realName/FDDRegister",
|
url: '/pages/realName/FDDRegister'
|
||||||
});
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res.msg);
|
this.$common.msgToast(res.msg)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
checkFdd() {
|
checkFdd() {
|
||||||
|
if (this.isPhoneLogin) {
|
||||||
|
return this.$api.login.checkPhoneFdd().then((res) => {
|
||||||
|
if (res.status === 0) {
|
||||||
|
this.isFddSuccess = res.data.isVerify
|
||||||
|
this.typeId = res.data.idType
|
||||||
|
return res.data.isVerify
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
return this.$api.login.checkFdd().then((res) => {
|
return this.$api.login.checkFdd().then((res) => {
|
||||||
if (res.status === 0) {
|
if (res.status === 0) {
|
||||||
this.isFddSuccess = res.data.isVerify;
|
this.isFddSuccess = res.data.isVerify
|
||||||
this.typeId = res.data.idType;
|
this.typeId = res.data.idType
|
||||||
return res.data.isVerify;
|
return res.data.isVerify
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res.msg);
|
this.$common.msgToast(res.msg)
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
agreementHandle(type) {
|
agreementHandle(type) {
|
||||||
const data = {
|
const data = {
|
||||||
@ -574,32 +657,32 @@ export default {
|
|||||||
radiovalue: this.radiovalue,
|
radiovalue: this.radiovalue,
|
||||||
passport: this.passport,
|
passport: this.passport,
|
||||||
passport2: this.passport2,
|
passport2: this.passport2,
|
||||||
passportId: this.passportId,
|
passportId: this.passportId
|
||||||
};
|
}
|
||||||
uni.setStorageSync("info", data);
|
uni.setStorageSync('info', data)
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:
|
url:
|
||||||
"/pages/realName/agreement?type=" +
|
'/pages/realName/agreement?type=' +
|
||||||
type +
|
type +
|
||||||
"&data=" +
|
'&data=' +
|
||||||
encodeURIComponent(JSON.stringify(data)),
|
encodeURIComponent(JSON.stringify(data))
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
groupChange(value) {
|
groupChange(value) {
|
||||||
console.log(value);
|
console.log(value)
|
||||||
if (value === "1") {
|
if (value === '1') {
|
||||||
this.fileList = [];
|
this.fileList = []
|
||||||
this.fileList2 = [];
|
this.fileList2 = []
|
||||||
this.name = "";
|
this.name = ''
|
||||||
this.num = "";
|
this.num = ''
|
||||||
} else {
|
} else {
|
||||||
this.passport = [];
|
this.passport = []
|
||||||
this.passport2 = [];
|
this.passport2 = []
|
||||||
this.passportId = "";
|
this.passportId = ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@ -616,7 +699,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
background: url("@/static/image/login-bg.png") no-repeat;
|
background: url('@/static/image/login-bg.png') no-repeat;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/uview-ui/components/u-code-input/u-code-input.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/uview-ui/components/u-code-input/u-code-input.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
9
unpackage/dist/dev/mp-weixin/app.json
vendored
9
unpackage/dist/dev/mp-weixin/app.json
vendored
@ -49,6 +49,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"subpackages": [
|
"subpackages": [
|
||||||
|
{
|
||||||
|
"root": "pagesFace",
|
||||||
|
"name": "pagesFace",
|
||||||
|
"pages": [
|
||||||
|
"pages/index/index",
|
||||||
|
"pages/webview/webview",
|
||||||
|
"pages/middle/middle"
|
||||||
|
]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"usingComponents": {}
|
"usingComponents": {}
|
||||||
}
|
}
|
File diff suppressed because one or more lines are too long
10
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
10
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
File diff suppressed because one or more lines are too long
@ -1,10 +1,10 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/title-block/title-block"],{414:function(n,t,e){"use strict";e.r(t);var r=e(415),u=e(417);for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);e(419);var i,o=e(33),a=Object(o["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"6a01af94",null,!1,r["components"],i);a.options.__file="components/title-block/title-block.vue",t["default"]=a.exports},415:function(n,t,e){"use strict";e.r(t);var r=e(416);e.d(t,"render",(function(){return r["render"]})),e.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(t,"components",(function(){return r["components"]}))},416:function(n,t,e){"use strict";var r;e.r(t),e.d(t,"render",(function(){return u})),e.d(t,"staticRenderFns",(function(){return i})),e.d(t,"recyclableRender",(function(){return c})),e.d(t,"components",(function(){return r}));var u=function(){var n=this,t=n.$createElement;n._self._c},c=!1,i=[];u._withStripped=!0},417:function(n,t,e){"use strict";e.r(t);var r=e(418),u=e.n(r);for(var c in r)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=u.a},418:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={name:"title-block",data:function(){return{statusBarHeight:n.getSystemInfoSync().statusBarHeight+5}},props:{title:String}};t.default=e}).call(this,e(2)["default"])},419:function(n,t,e){"use strict";e.r(t);var r=e(420),u=e.n(r);for(var c in r)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=u.a},420:function(n,t,e){}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/title-block/title-block"],{422:function(n,t,e){"use strict";e.r(t);var r=e(423),u=e(425);for(var c in u)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(c);e(427);var i,o=e(33),a=Object(o["default"])(u["default"],r["render"],r["staticRenderFns"],!1,null,"6a01af94",null,!1,r["components"],i);a.options.__file="components/title-block/title-block.vue",t["default"]=a.exports},423:function(n,t,e){"use strict";e.r(t);var r=e(424);e.d(t,"render",(function(){return r["render"]})),e.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(t,"components",(function(){return r["components"]}))},424:function(n,t,e){"use strict";var r;e.r(t),e.d(t,"render",(function(){return u})),e.d(t,"staticRenderFns",(function(){return i})),e.d(t,"recyclableRender",(function(){return c})),e.d(t,"components",(function(){return r}));var u=function(){var n=this,t=n.$createElement;n._self._c},c=!1,i=[];u._withStripped=!0},425:function(n,t,e){"use strict";e.r(t);var r=e(426),u=e.n(r);for(var c in r)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=u.a},426:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={name:"title-block",data:function(){return{statusBarHeight:n.getSystemInfoSync().statusBarHeight+5}},props:{title:String}};t.default=e}).call(this,e(2)["default"])},427:function(n,t,e){"use strict";e.r(t);var r=e(428),u=e.n(r);for(var c in r)["default"].indexOf(c)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(c);t["default"]=u.a},428:function(n,t,e){}}]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/title-block/title-block.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/title-block/title-block.js.map
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/title-block/title-block-create-component',
|
'components/title-block/title-block-create-component',
|
||||||
{
|
{
|
||||||
'components/title-block/title-block-create-component':(function(module, exports, __webpack_require__){
|
'components/title-block/title-block-create-component':(function(module, exports, __webpack_require__){
|
||||||
__webpack_require__('2')['createComponent'](__webpack_require__(414))
|
__webpack_require__('2')['createComponent'](__webpack_require__(422))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
[['components/title-block/title-block-create-component']]
|
[['components/title-block/title-block-create-component']]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"component": true,
|
"usingComponents": {},
|
||||||
"usingComponents": {}
|
"component": true
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uiq-tabbar/uiq-tabbar"],{447:function(n,e,t){"use strict";t.r(e);var r=t(448),o=t(450);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(452);var a,c=t(33),i=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);i.options.__file="components/uiq-tabbar/uiq-tabbar.vue",e["default"]=i.exports},448:function(n,e,t){"use strict";t.r(e);var r=t(449);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},449:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));try{r={uTabbar:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-tabbar/u-tabbar")]).then(t.bind(null,550))},uTabbarItem:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-tabbar-item/u-tabbar-item")]).then(t.bind(null,558))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,a=[];o._withStripped=!0},450:function(n,e,t){"use strict";t.r(e);var r=t(451),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},451:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;r(t(30));var o={props:{current:Number},data:function(){return{tabList:n.getStorageSync("tabBar")}},mounted:function(){},methods:{handleTabClick:function(e){n.switchTab({url:"/"+this.tabList[e].pagePath})}}};e.default=o}).call(this,t(2)["default"])},452:function(n,e,t){"use strict";t.r(e);var r=t(453),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},453:function(n,e,t){}}]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/uiq-tabbar/uiq-tabbar"],{455:function(n,e,t){"use strict";t.r(e);var r=t(456),o=t(458);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(460);var a,c=t(33),i=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);i.options.__file="components/uiq-tabbar/uiq-tabbar.vue",e["default"]=i.exports},456:function(n,e,t){"use strict";t.r(e);var r=t(457);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},457:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return a})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));try{r={uTabbar:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-tabbar/u-tabbar")]).then(t.bind(null,558))},uTabbarItem:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-tabbar-item/u-tabbar-item")]).then(t.bind(null,566))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,a=[];o._withStripped=!0},458:function(n,e,t){"use strict";t.r(e);var r=t(459),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},459:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;r(t(30));var o={props:{current:Number},data:function(){return{tabList:n.getStorageSync("tabBar")}},mounted:function(){},methods:{handleTabClick:function(e){n.switchTab({url:"/"+this.tabList[e].pagePath})}}};e.default=o}).call(this,t(2)["default"])},460:function(n,e,t){"use strict";t.r(e);var r=t(461),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},461:function(n,e,t){}}]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/uiq-tabbar/uiq-tabbar.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/uiq-tabbar/uiq-tabbar.js.map
|
||||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||||
'components/uiq-tabbar/uiq-tabbar-create-component',
|
'components/uiq-tabbar/uiq-tabbar-create-component',
|
||||||
{
|
{
|
||||||
'components/uiq-tabbar/uiq-tabbar-create-component':(function(module, exports, __webpack_require__){
|
'components/uiq-tabbar/uiq-tabbar-create-component':(function(module, exports, __webpack_require__){
|
||||||
__webpack_require__('2')['createComponent'](__webpack_require__(447))
|
__webpack_require__('2')['createComponent'](__webpack_require__(455))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
[['components/uiq-tabbar/uiq-tabbar-create-component']]
|
[['components/uiq-tabbar/uiq-tabbar-create-component']]
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cameraContext/cameraContext"],{240:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(241));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},241:function(e,n,t){"use strict";t.r(n);var o=t(242),r=t(244);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(246);var u,a=t(33),i=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"0c0dc048",null,!1,o["components"],u);i.options.__file="pages/cameraContext/cameraContext.vue",n["default"]=i.exports},242:function(e,n,t){"use strict";t.r(n);var o=t(243);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},243:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));try{o={uCountDown:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-count-down/u-count-down")]).then(t.bind(null,430))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},c=!1,u=[];r._withStripped=!0},244:function(e,n,t){"use strict";t.r(n);var o=t(245),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},245:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(63)),c=o(t(65)),u=t(35),a={data:function(){return{needPersonSecret:!1,isAnimate:!1,tempVideoPath:"",tips:"⚪录制",isEnd:!0}},onLoad:function(){var n=this;return(0,c.default)(r.default.mark((function t(){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,u.configFun)();case 2:o=t.sent,200===o.code&&(n.needPersonSecret=o.data.needPersonSecret),n.ctx=e.createCameraContext(),n.tips="⚪录制";case 6:case"end":return t.stop()}}),t)})))()},methods:{startRecord:function(){var n=this;this.ctx.startRecord({success:function(t){n.isAnimate=!0,n.tips="⚪录制中",setTimeout((function(){n.ctx.stopRecord({success:function(t){console.log("自动停止录像",t),n.isAnimate=!1,n.$common.msgToast("录制完成"),n.tempVideoPath=t.tempVideoPath,n.tips="⚪录制完成",n.isEnd=!1,e.setStorageSync("tempVideoPath",t.tempVideoPath)}})}),5e3)}})},back:function(){e.navigateBack({delta:2})}}};n.default=a}).call(this,t(2)["default"])},246:function(e,n,t){"use strict";t.r(n);var o=t(247),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},247:function(e,n,t){}},[[240,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cameraContext/cameraContext"],{240:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(241));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},241:function(e,n,t){"use strict";t.r(n);var o=t(242),r=t(244);for(var c in r)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(c);t(246);var u,a=t(33),i=Object(a["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"0c0dc048",null,!1,o["components"],u);i.options.__file="pages/cameraContext/cameraContext.vue",n["default"]=i.exports},242:function(e,n,t){"use strict";t.r(n);var o=t(243);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},243:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return c})),t.d(n,"components",(function(){return o}));try{o={uCountDown:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-count-down/u-count-down")]).then(t.bind(null,438))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},c=!1,u=[];r._withStripped=!0},244:function(e,n,t){"use strict";t.r(n);var o=t(245),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},245:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=o(t(63)),c=o(t(65)),u=t(35),a={data:function(){return{needPersonSecret:!1,isAnimate:!1,tempVideoPath:"",tips:"⚪录制",isEnd:!0}},onLoad:function(){var n=this;return(0,c.default)(r.default.mark((function t(){var o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,u.configFun)();case 2:o=t.sent,200===o.code&&(n.needPersonSecret=o.data.needPersonSecret),n.ctx=e.createCameraContext(),n.tips="⚪录制";case 6:case"end":return t.stop()}}),t)})))()},methods:{startRecord:function(){var n=this;this.ctx.startRecord({success:function(t){n.isAnimate=!0,n.tips="⚪录制中",setTimeout((function(){n.ctx.stopRecord({success:function(t){console.log("自动停止录像",t),n.isAnimate=!1,n.$common.msgToast("录制完成"),n.tempVideoPath=t.tempVideoPath,n.tips="⚪录制完成",n.isEnd=!1,e.setStorageSync("tempVideoPath",t.tempVideoPath)}})}),5e3)}})},back:function(){e.navigateBack({delta:2})}}};n.default=a}).call(this,t(2)["default"])},246:function(e,n,t){"use strict";t.r(n);var o=t(247),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=r.a},247:function(e,n,t){}},[[240,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/cameraContext/cameraContext.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/cameraContext/cameraContext.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/contract/index"],{256:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(257));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},257:function(e,t,n){"use strict";n.r(t);var r=n(258),o=n(260);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(263);var c,u=n(33),i=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"3ea6d064",null,!1,r["components"],c);i.options.__file="pages/contract/index.vue",t["default"]=i.exports},258:function(e,t,n){"use strict";n.r(t);var r=n(259);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},259:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return r}));try{r={titleBlock:function(){return n.e("components/title-block/title-block").then(n.bind(null,414))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement;e._self._c},a=!1,c=[];o._withStripped=!0},260:function(e,t,n){"use strict";n.r(t);var r=n(261),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},261:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(63)),a=r(n(5)),c=r(n(65)),u=n(262),i=function(){Promise.all([n.e("common/vendor"),n.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(n(447))}.bind(null,n)).catch(n.oe)},s={name:"index",components:{tabbar:i},data:function(){return{show:!1,page:1,pageSize:999,mainList:[],elementBottom:""}},onShow:function(){this.getData()},mounted:function(){this.getDistanceFromTopToPageBottom(".content3")},methods:{previewContract:function(t){return(0,c.default)(o.default.mark((function n(){var r,a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={ID:t.ID},n.next=3,(0,u.postDataByParams)("/api/warehouse/fdd/pdf/url",r);case 3:a=n.sent,200===a.code&&(e.setStorageSync("jumpUrl",a.data.jumpUrl),e.navigateTo({url:"/pages/signwebview/index"}));case 5:case"end":return n.stop()}}),n)})))()},getDistanceFromTopToPageBottom:function(t){var n=this;return(0,c.default)(o.default.mark((function r(){var c,u,i,s,d,l;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.getSystemInfo();case 2:return c=r.sent,u=c.windowHeight,i=c.windowWidth,r.next=7,new Promise((function(n){return e.createSelectorQuery().select(t).boundingClientRect().exec(n)}));case 7:s=r.sent,d=(0,a.default)(s,1),l=d[0].top,n.elementBottom=(u-l)/i*750-175;case 11:case"end":return r.stop()}}),r)})))()},loadMore:function(){},getData:function(){var t=this;return(0,c.default)(o.default.mark((function n(){var r,a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={page:t.page,pageSize:t.pageSize},n.next=3,(0,u.postDataByParams)("/api/warehouse/list",r);case 3:a=n.sent,200===a.code?t.mainList=a.data.data:e.showToast({title:a.msg,icon:"none"});case 5:case"end":return n.stop()}}),n)})))()}}};t.default=s}).call(this,n(2)["default"])},263:function(e,t,n){"use strict";n.r(t);var r=n(264),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},264:function(e,t,n){}},[[256,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/contract/index"],{256:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(257));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},257:function(e,t,n){"use strict";n.r(t);var r=n(258),o=n(260);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(263);var c,u=n(33),i=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"3ea6d064",null,!1,r["components"],c);i.options.__file="pages/contract/index.vue",t["default"]=i.exports},258:function(e,t,n){"use strict";n.r(t);var r=n(259);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},259:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return r}));try{r={titleBlock:function(){return n.e("components/title-block/title-block").then(n.bind(null,422))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement;e._self._c},a=!1,c=[];o._withStripped=!0},260:function(e,t,n){"use strict";n.r(t);var r=n(261),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},261:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(63)),a=r(n(5)),c=r(n(65)),u=n(262),i=function(){Promise.all([n.e("common/vendor"),n.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(n(455))}.bind(null,n)).catch(n.oe)},s={name:"index",components:{tabbar:i},data:function(){return{show:!1,page:1,pageSize:999,mainList:[],elementBottom:""}},onShow:function(){this.getData()},mounted:function(){this.getDistanceFromTopToPageBottom(".content3")},methods:{previewContract:function(t){return(0,c.default)(o.default.mark((function n(){var r,a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={ID:t.ID},n.next=3,(0,u.postDataByParams)("/api/warehouse/fdd/pdf/url",r);case 3:a=n.sent,200===a.code&&(e.setStorageSync("jumpUrl",a.data.jumpUrl),e.navigateTo({url:"/pages/signwebview/index"}));case 5:case"end":return n.stop()}}),n)})))()},getDistanceFromTopToPageBottom:function(t){var n=this;return(0,c.default)(o.default.mark((function r(){var c,u,i,s,d,l;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.getSystemInfo();case 2:return c=r.sent,u=c.windowHeight,i=c.windowWidth,r.next=7,new Promise((function(n){return e.createSelectorQuery().select(t).boundingClientRect().exec(n)}));case 7:s=r.sent,d=(0,a.default)(s,1),l=d[0].top,n.elementBottom=(u-l)/i*750-175;case 11:case"end":return r.stop()}}),r)})))()},loadMore:function(){},getData:function(){var t=this;return(0,c.default)(o.default.mark((function n(){var r,a;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={page:t.page,pageSize:t.pageSize},n.next=3,(0,u.postDataByParams)("/api/warehouse/list",r);case 3:a=n.sent,200===a.code?t.mainList=a.data.data:e.showToast({title:a.msg,icon:"none"});case 5:case"end":return n.stop()}}),n)})))()}}};t.default=s}).call(this,n(2)["default"])},263:function(e,t,n){"use strict";n.r(t);var r=n(264),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},264:function(e,t,n){}},[[256,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/contract/index.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/contract/index.js.map
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/index"],{248:function(e,n,t){"use strict";(function(e,n){var s=t(4);t(26);s(t(25));var o=s(t(249));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},249:function(e,n,t){"use strict";t.r(n);var s=t(250),o=t(252);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t(254);var a,i=t(33),c=Object(i["default"])(o["default"],s["render"],s["staticRenderFns"],!1,null,"71e217db",null,!1,s["components"],a);c.options.__file="pages/home/index.vue",n["default"]=c.exports},250:function(e,n,t){"use strict";t.r(n);var s=t(251);t.d(n,"render",(function(){return s["render"]})),t.d(n,"staticRenderFns",(function(){return s["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return s["recyclableRender"]})),t.d(n,"components",(function(){return s["components"]}))},251:function(e,n,t){"use strict";var s;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return s}));try{s={titleBlock:function(){return t.e("components/title-block/title-block").then(t.bind(null,414))},uDivider:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-divider/u-divider")]).then(t.bind(null,439))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.addressList.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},r=!1,a=[];o._withStripped=!0},252:function(e,n,t){"use strict";t.r(n);var s=t(253),o=t.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(r);n["default"]=o.a},253:function(e,n,t){"use strict";(function(e){var s=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=s(t(63)),r=s(t(65)),a=function(){Promise.all([t.e("common/vendor"),t.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(t(447))}.bind(null,t)).catch(t.oe)},i={name:"index",onLoad:function(){e.hideTabBar()},onShow:function(){this.getAddress(),this.pddIsPass()},components:{tabbar:a},data:function(){return{addressList:[],isPass:0}},methods:{scanOrder:function(){return 2!==this.isPass?this.$common.msgToast("护照资料还在审核中"):2!==this.isPass&&4===this.isPass?this.$common.msgToast("资料审核未通过请重新注册"):(e.removeStorageSync("scanlist"),void e.scanCode({onlyFromCamera:!1,success:function(n){console.log("条码类型:"+n.scanType),console.log("条码内容:"+n.result),e.navigateTo({url:"/pages/scanFeedback/index?url="+n.result})}}))},getAddress:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.deposit.address();case 2:t=n.sent,console.log(t),0===t.status?e.addressList=t.data.data:e.$common.msgToast(t.msg);case 5:case"end":return n.stop()}}),n)})))()},goConsignmen:function(){return 2!==this.isPass?this.$common.msgToast("护照资料还在审核中"):2!==this.isPass&&4===this.isPass?this.$common.msgToast("资料审核未通过请重新注册"):void e.navigateTo({url:"/pages/consignment-painting/index"})},pddIsPass:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.deposit.fddIsPass();case 2:t=n.sent,0===t.status?e.isPass=t.data.fdd.status:e.$common.msgToast(t.msg);case 4:case"end":return n.stop()}}),n)})))()}}};n.default=i}).call(this,t(2)["default"])},254:function(e,n,t){"use strict";t.r(n);var s=t(255),o=t.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(r);n["default"]=o.a},255:function(e,n,t){}},[[248,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/index"],{248:function(e,n,t){"use strict";(function(e,n){var s=t(4);t(26);s(t(25));var o=s(t(249));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},249:function(e,n,t){"use strict";t.r(n);var s=t(250),o=t(252);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t(254);var a,i=t(33),c=Object(i["default"])(o["default"],s["render"],s["staticRenderFns"],!1,null,"71e217db",null,!1,s["components"],a);c.options.__file="pages/home/index.vue",n["default"]=c.exports},250:function(e,n,t){"use strict";t.r(n);var s=t(251);t.d(n,"render",(function(){return s["render"]})),t.d(n,"staticRenderFns",(function(){return s["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return s["recyclableRender"]})),t.d(n,"components",(function(){return s["components"]}))},251:function(e,n,t){"use strict";var s;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return s}));try{s={titleBlock:function(){return t.e("components/title-block/title-block").then(t.bind(null,422))},uDivider:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-divider/u-divider")]).then(t.bind(null,447))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.addressList.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},r=!1,a=[];o._withStripped=!0},252:function(e,n,t){"use strict";t.r(n);var s=t(253),o=t.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(r);n["default"]=o.a},253:function(e,n,t){"use strict";(function(e){var s=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=s(t(63)),r=s(t(65)),a=function(){Promise.all([t.e("common/vendor"),t.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(t(455))}.bind(null,t)).catch(t.oe)},i={name:"index",onLoad:function(){e.hideTabBar()},onShow:function(){this.getAddress(),this.pddIsPass()},components:{tabbar:a},data:function(){return{addressList:[],isPass:0}},methods:{scanOrder:function(){return 2!==this.isPass?this.$common.msgToast("护照资料还在审核中"):2!==this.isPass&&4===this.isPass?this.$common.msgToast("资料审核未通过请重新注册"):(e.removeStorageSync("scanlist"),void e.scanCode({onlyFromCamera:!1,success:function(n){console.log("条码类型:"+n.scanType),console.log("条码内容:"+n.result),e.navigateTo({url:"/pages/scanFeedback/index?url="+n.result})}}))},getAddress:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.deposit.address();case 2:t=n.sent,console.log(t),0===t.status?e.addressList=t.data.data:e.$common.msgToast(t.msg);case 5:case"end":return n.stop()}}),n)})))()},goConsignmen:function(){return 2!==this.isPass?this.$common.msgToast("护照资料还在审核中"):2!==this.isPass&&4===this.isPass?this.$common.msgToast("资料审核未通过请重新注册"):void e.navigateTo({url:"/pages/consignment-painting/index"})},pddIsPass:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.deposit.fddIsPass();case 2:t=n.sent,0===t.status?e.isPass=t.data.fdd.status:e.$common.msgToast(t.msg);case 4:case"end":return n.stop()}}),n)})))()}}};n.default=i}).call(this,t(2)["default"])},254:function(e,n,t){"use strict";t.r(n);var s=t(255),o=t.n(s);for(var r in s)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return s[e]}))}(r);n["default"]=o.a},255:function(e,n,t){}},[[248,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/index.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/index.js.map
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,13 @@
|
|||||||
{
|
{
|
||||||
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"u-button": "/uview-ui/components/u-button/u-button"
|
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||||
|
"u--input": "/uview-ui/components/u--input/u--input",
|
||||||
|
"u-checkbox-group": "/uview-ui/components/u-checkbox-group/u-checkbox-group",
|
||||||
|
"u-checkbox": "/uview-ui/components/u-checkbox/u-checkbox",
|
||||||
|
"u-button": "/uview-ui/components/u-button/u-button",
|
||||||
|
"u-code-input": "/uview-ui/components/u-code-input/u-code-input"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1 +1 @@
|
|||||||
<view class="main data-v-b237504c"><view data-event-opts="{{[['tap',[['goRouter',['$event']]]]]}}" class="ykfw data-v-b237504c" bindtap="__e">游客访问</view><image class="logo data-v-b237504c" src="/static/image/logo.png" mode="scaleToFill"></image><view class="btn data-v-b237504c"><block wx:if="{{isShow}}"><u-button vue-id="35a7246c-1" open-type="getPhoneNumber" color="transparent" text="点击登录" data-event-opts="{{[['^getphonenumber',[['getPhoneNumber']]]]}}" bind:getphonenumber="__e" class="data-v-b237504c" bind:__l="__l"></u-button></block></view></view>
|
<view class="bg data-v-b237504c"><view class="main data-v-b237504c"><view class="back-wrapper data-v-b237504c"><block wx:if="{{isShowCaptcha}}"><view data-event-opts="{{[['tap',[['back',['$event']]]]]}}" class="back data-v-b237504c" bindtap="__e"><u-icon vue-id="35a7246c-1" name="arrow-left" color="white" size="16" class="data-v-b237504c" bind:__l="__l"></u-icon></view></block></view><view class="title-wrapper data-v-b237504c"><view class="title data-v-b237504c"><view class="title-01 data-v-b237504c">登录</view><view class="title-02 data-v-b237504c">品之鉴</view></view><view class="title-wrapper__desc data-v-b237504c">若为未注册账号则将自动转入品之鉴注册页</view></view><transition-group vue-id="35a7246c-2" name="fade" class="data-v-b237504c" bind:__l="__l" vue-slots="{{['default']}}"><view hidden="{{!(!isShowCaptcha)}}" class="phone-login-wrapper data-v-b237504c"><view class="phone-wrapper data-v-b237504c"><view class="name data-v-b237504c">手机号</view><u--input vue-id="{{('35a7246c-3')+','+('35a7246c-2')}}" placeholder="请输入手机号" border="none" focus="{{true}}" value="{{phone}}" data-event-opts="{{[['^change',[['handleChange']]],['^input',[['__set_model',['','phone','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-b237504c" bind:__l="__l"></u--input></view><view class="agreement-wrapper data-v-b237504c"><u-checkbox-group vue-id="{{('35a7246c-4')+','+('35a7246c-2')}}" iconPlacement="left" placement="row" inactiveColor="#76C458" value="{{checked}}" data-event-opts="{{[['^change',[['handleChange']]],['^input',[['__set_model',['','checked','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-b237504c" bind:__l="__l" vue-slots="{{['default']}}"><u-checkbox vue-id="{{('35a7246c-5')+','+('35a7246c-4')}}" name="yes" shape="circle" activeColor="#76C458" class="data-v-b237504c" bind:__l="__l"></u-checkbox><view class="know data-v-b237504c">已阅读并同意<text data-event-opts="{{[['tap',[['agreementHandle',['service']]]]]}}" bindtap="__e" class="data-v-b237504c">《软件许可及服务协议》</text><text data-event-opts="{{[['tap',[['agreementHandle',['privacy']]]]]}}" bindtap="__e" class="data-v-b237504c">&《隐私保护政策》</text></view></u-checkbox-group></view><view data-event-opts="{{[['tap',[['getCaptcha',['$event']]]]]}}" class="captcha-btn data-v-b237504c" style="{{'background:'+(disabled?'#dadadc':'#76c558')+';'}}" bindtap="__e">获取验证码</view><view class="btns-wrapper data-v-b237504c"><view class="btns-wrapper__weixin data-v-b237504c"><block wx:if="{{isShow}}"><u-button vue-id="{{('35a7246c-6')+','+('35a7246c-2')}}" open-type="getPhoneNumber" color="transparent" text="微信登录" data-event-opts="{{[['^getphonenumber',[['getPhoneNumber']]]]}}" bind:getphonenumber="__e" class="data-v-b237504c" bind:__l="__l"></u-button></block></view><view data-event-opts="{{[['tap',[['goRouter',['$event']]]]]}}" class="btns-wrapper__youke data-v-b237504c" bindtap="__e">游客访问</view></view></view><view hidden="{{!(isShowCaptcha)}}" class="fill-captcha-wrapper data-v-b237504c"><view class="fill-captcha-wrapper__tip data-v-b237504c"><view class="tip-01 data-v-b237504c">已发送验证码至</view><view class="tip-02 data-v-b237504c">{{phone}}</view></view><u-code-input vue-id="{{('35a7246c-7')+','+('35a7246c-2')}}" maxlength="{{6}}" space="{{5}}" focus="{{true}}" value="{{captcha}}" data-event-opts="{{[['^finish',[['handleFinish']]],['^input',[['__set_model',['','captcha','$event',[]]]]]]}}" bind:finish="__e" bind:input="__e" class="data-v-b237504c" bind:__l="__l"></u-code-input><view class="resend-wrapper data-v-b237504c" style="{{'color:'+(timer===null?'#76c558':'#8d8d8d')+';'}}"><view data-event-opts="{{[['tap',[['resendCaptcha',['$event']]]]]}}" bindtap="__e" class="data-v-b237504c">重新发送</view><block wx:if="{{timer!==null}}"><view class="data-v-b237504c">{{"("+time+"s)"}}</view></block></view></view></transition-group></view></view>
|
181
unpackage/dist/dev/mp-weixin/pages/login/login.wxss
vendored
181
unpackage/dist/dev/mp-weixin/pages/login/login.wxss
vendored
@ -27,57 +27,160 @@
|
|||||||
.data-v-b237504c .u-button {
|
.data-v-b237504c .u-button {
|
||||||
background: red;
|
background: red;
|
||||||
}
|
}
|
||||||
.main.data-v-b237504c {
|
.bg.data-v-b237504c {
|
||||||
background: url("https://cdns.fontree.cn/fonchain-main/prod/image/1381bd18-2f0c-49f1-84f6-d3eceb94f7a7/artwork/6ef00a09-f663-451d-ae0c-0d00cf4068c5.png");
|
background: url("https://e-cdn.fontree.cn/fonchain-main/prod/image/6248/avatar/8178c309-54da-4e45-89d1-25c3f0cc80e9.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.main .ykfw.data-v-b237504c {
|
.bg .ykfw.data-v-b237504c {
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 20rpx;
|
top: 20rpx;
|
||||||
right: 40rpx;
|
right: 40rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.main .logo.data-v-b237504c {
|
.bg .main.data-v-b237504c {
|
||||||
margin-top: 250rpx;
|
width: 80vw;
|
||||||
width: 398rpx;
|
height: 670rpx;
|
||||||
height: 744rpx;
|
|
||||||
}
|
}
|
||||||
.main uni-button.data-v-b237504c:after {
|
.bg .main .back-wrapper.data-v-b237504c {
|
||||||
|
width: 50rpx;
|
||||||
|
height: 50rpx;
|
||||||
|
}
|
||||||
|
.bg .main .back-wrapper .back.data-v-b237504c {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #76c558;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.bg .main .title-wrapper.data-v-b237504c {
|
||||||
|
margin-top: 40rpx;
|
||||||
|
}
|
||||||
|
.bg .main .title-wrapper .title.data-v-b237504c {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.bg .main .title-wrapper .title .title-02.data-v-b237504c {
|
||||||
|
color: #76c558;
|
||||||
|
}
|
||||||
|
.bg .main .title-wrapper__desc.data-v-b237504c {
|
||||||
|
color: #8d8d8d;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper.data-v-b237504c {
|
||||||
|
margin-top: 100rpx;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .phone-wrapper.data-v-b237504c {
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: #ffffff;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
width: 100%;
|
||||||
|
height: 92rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding-left: 24rpx;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .phone-wrapper .name.data-v-b237504c {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 72rpx;
|
||||||
|
line-height: 72rpx;
|
||||||
|
border-right: 1rpx solid #d1d1d1;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .phone-wrapper.data-v-b237504c .u-input {
|
||||||
|
margin-left: 40rpx;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .agreement-wrapper.data-v-b237504c {
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin: 46rpx 0 10rpx 0;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .agreement-wrapper .know.data-v-b237504c {
|
||||||
|
margin-top: 20rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #8d8d8d;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .agreement-wrapper .know text.data-v-b237504c {
|
||||||
|
color: #76c458;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .captcha-btn.data-v-b237504c {
|
||||||
|
width: 100%;
|
||||||
|
height: 92rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #dadadc;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .btns-wrapper.data-v-b237504c {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .btns-wrapper__weixin.data-v-b237504c .u-button {
|
||||||
|
padding-left: 0 !important;
|
||||||
|
padding-right: 0 !important;
|
||||||
|
font-size: 30rpx !important;
|
||||||
|
color: #76c558 !important;
|
||||||
|
}
|
||||||
|
.bg .main .phone-login-wrapper .btns-wrapper__youke.data-v-b237504c {
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper.data-v-b237504c {
|
||||||
|
margin-top: 50rpx;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper__tip.data-v-b237504c {
|
||||||
|
height: 40rpx;
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper__tip .tip-01.data-v-b237504c {
|
||||||
|
color: #8d8d8d;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper__tip .tip-02.data-v-b237504c {
|
||||||
|
margin-left: 16rpx;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper.data-v-b237504c .u-code-input {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper.data-v-b237504c .u-code-input .u-code-input__item {
|
||||||
|
width: calc(80vw / 7) !important;
|
||||||
|
height: 92rpx !important;
|
||||||
|
background-color: #ffffff !important;
|
||||||
|
border: none !important;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
.bg .main .fill-captcha-wrapper .resend-wrapper.data-v-b237504c {
|
||||||
|
display: flex;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
.bg .main .fade-enter.data-v-b237504c,
|
||||||
|
.bg .main .fade-leave-to.data-v-b237504c {
|
||||||
|
-webkit-transform: translateX(100%);
|
||||||
|
transform: translateX(100%);
|
||||||
|
}
|
||||||
|
.bg .main .fade-enter-active.data-v-b237504c,
|
||||||
|
.bg .main .fade-leave-active.data-v-b237504c {
|
||||||
|
transition: 0.5 linear;
|
||||||
|
}
|
||||||
|
.bg .main .fade-enter-to.data-v-b237504c,
|
||||||
|
.bg .main .fade-leave.data-v-b237504c {
|
||||||
|
-webkit-transform: translateX(0);
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
.bg uni-button.data-v-b237504c:after {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
.main .btn.data-v-b237504c {
|
|
||||||
background: transparent;
|
|
||||||
width: 200rpx;
|
|
||||||
position: fixed;
|
|
||||||
bottom: 15%;
|
|
||||||
color: #fff;
|
|
||||||
left: 50%;
|
|
||||||
-webkit-transform: translateX(-50%);
|
|
||||||
transform: translateX(-50%);
|
|
||||||
font-size: 30rpx;
|
|
||||||
transition: all 1s;
|
|
||||||
-webkit-animation: jump-data-v-b237504c 1s ease-in-out infinite alternate;
|
|
||||||
animation: jump-data-v-b237504c 1s ease-in-out infinite alternate;
|
|
||||||
}
|
|
||||||
@-webkit-keyframes jump-data-v-b237504c {
|
|
||||||
from {
|
|
||||||
bottom: 16%;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
bottom: 15%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@keyframes jump-data-v-b237504c {
|
|
||||||
from {
|
|
||||||
bottom: 16%;
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
bottom: 15%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/index"],{296:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var a=r(t(297));n.__webpack_require_UNI_MP_PLUGIN__=t,e(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},297:function(n,e,t){"use strict";t.r(e);var r=t(298),a=t(300);for(var u in a)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(u);t(302);var o,i=t(33),c=Object(i["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"4bd6864f",null,!1,r["components"],o);c.options.__file="pages/mine/index.vue",e["default"]=c.exports},298:function(n,e,t){"use strict";t.r(e);var r=t(299);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},299:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return a})),t.d(e,"staticRenderFns",(function(){return o})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var a=function(){var n=this,e=n.$createElement;n._self._c},u=!1,o=[];a._withStripped=!0},300:function(n,e,t){"use strict";t.r(e);var r=t(301),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},301:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,u=r(t(63)),o=r(t(11)),i=r(t(65)),c=function(){Promise.all([t.e("common/vendor"),t.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(t(447))}.bind(null,t)).catch(t.oe)},s=(a={name:"index",onLoad:function(){n.hideTabBar()},components:{tabbar:c},data:function(){return{orderTotal:0,validContractDays:0,nickName:"",telNum:"",avatar:""}}},(0,o.default)(a,"onLoad",(function(){this.infoOrders(),this.info()})),(0,o.default)(a,"onShow",(function(){this.infoOrders()})),(0,o.default)(a,"methods",{infoOrders:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.infoOrders();case 2:t=e.sent,0===t.status?(n.orderTotal=t.data.totalCount,n.validContractDays=t.data.nearCount):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},info:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.info();case 2:t=e.sent,0===t.status?(n.nickName=t.data.user.nickName,n.telNum=t.data.user.telNum,n.avatar=t.data.user.avatar):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},goSet:function(){n.navigateTo({url:"/pages/mine/set-up"})}}),a);e.default=s}).call(this,t(2)["default"])},302:function(n,e,t){"use strict";t.r(e);var r=t(303),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},303:function(n,e,t){}},[[296,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/index"],{296:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var a=r(t(297));n.__webpack_require_UNI_MP_PLUGIN__=t,e(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},297:function(n,e,t){"use strict";t.r(e);var r=t(298),a=t(300);for(var u in a)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(u);t(302);var o,i=t(33),c=Object(i["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"4bd6864f",null,!1,r["components"],o);c.options.__file="pages/mine/index.vue",e["default"]=c.exports},298:function(n,e,t){"use strict";t.r(e);var r=t(299);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},299:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return a})),t.d(e,"staticRenderFns",(function(){return o})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var a=function(){var n=this,e=n.$createElement;n._self._c},u=!1,o=[];a._withStripped=!0},300:function(n,e,t){"use strict";t.r(e);var r=t(301),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},301:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,u=r(t(63)),o=r(t(11)),i=r(t(65)),c=function(){Promise.all([t.e("common/vendor"),t.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(t(455))}.bind(null,t)).catch(t.oe)},s=(a={name:"index",onLoad:function(){n.hideTabBar()},components:{tabbar:c},data:function(){return{orderTotal:0,validContractDays:0,nickName:"",telNum:"",avatar:""}}},(0,o.default)(a,"onLoad",(function(){this.infoOrders(),this.info()})),(0,o.default)(a,"onShow",(function(){this.infoOrders()})),(0,o.default)(a,"methods",{infoOrders:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.infoOrders();case 2:t=e.sent,0===t.status?(n.orderTotal=t.data.totalCount,n.validContractDays=t.data.nearCount):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},info:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.info();case 2:t=e.sent,0===t.status?(n.nickName=t.data.user.nickName,n.telNum=t.data.user.telNum,n.avatar=t.data.user.avatar):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},goSet:function(){n.navigateTo({url:"/pages/mine/set-up"})}}),a);e.default=s}).call(this,t(2)["default"])},302:function(n,e,t){"use strict";t.r(e);var r=t(303),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},303:function(n,e,t){}},[[296,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/index.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/index.js.map
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/set-up"],{304:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26);a(t(25));var r=a(t(305));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},305:function(e,n,t){"use strict";t.r(n);var a=t(306),r=t(308);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(310);var u,c=t(33),i=Object(c["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,"6d897039",null,!1,a["components"],u);i.options.__file="pages/mine/set-up.vue",n["default"]=i.exports},306:function(e,n,t){"use strict";t.r(n);var a=t(307);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},307:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return a}));try{a={titleBlock:function(){return t.e("components/title-block/title-block").then(t.bind(null,414))},uUpload:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-upload/u-upload")]).then(t.bind(null,388))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},308:function(e,n,t){"use strict";t.r(n);var a=t(309),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},309:function(e,n,t){"use strict";(function(e){var a=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t(63)),o=a(t(65)),u=a(t(223)),c=a(t(30)),i={name:"set-up",data:function(){return{user:{}}},onLoad:function(){this.info()},methods:{info:function(){var e=this;return(0,o.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.mine.info();case 2:t=n.sent,0===t.status?e.user=t.data.user:e.$common.msgToast(t.msg);case 4:case"end":return n.stop()}}),n)})))()},changeAvatar:function(e){console.log(e),this.uploadFilePromise(e.file[0].url)},uploadFilePromise:function(n){var t=this;return new Promise((function(a){e.uploadFile({url:u.default.baseUrl+"/api/wxuser/uploadpic",filePath:n,name:"file",success:function(e){e.data=JSON.parse(e.data),a(e.data.data.path),t.updateInfo({avatar:e.data.data.path})}})}))},updateInfo:function(e){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.update(e);case 2:a=t.sent,0===a.status?(n.$common.msgToast("修改成功"),n.info()):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},backDafult:function(){this.updateInfo({avatar:"https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png"})},logout:function(){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.logout();case 2:a=t.sent,0===a.status?(n.$common.msgToast("注销成功"),e.clearStorageSync(),e.setStorageSync("tabBar",c.default),e.navigateTo({url:"/pages/login/login"})):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},back:function(){e.navigateBack({delta:2})}}};n.default=i}).call(this,t(2)["default"])},310:function(e,n,t){"use strict";t.r(n);var a=t(311),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},311:function(e,n,t){}},[[304,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/set-up"],{304:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26);a(t(25));var r=a(t(305));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},305:function(e,n,t){"use strict";t.r(n);var a=t(306),r=t(308);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(310);var u,c=t(33),i=Object(c["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,"6d897039",null,!1,a["components"],u);i.options.__file="pages/mine/set-up.vue",n["default"]=i.exports},306:function(e,n,t){"use strict";t.r(n);var a=t(307);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},307:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return a}));try{a={titleBlock:function(){return t.e("components/title-block/title-block").then(t.bind(null,422))},uUpload:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-upload/u-upload")]).then(t.bind(null,412))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},308:function(e,n,t){"use strict";t.r(n);var a=t(309),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},309:function(e,n,t){"use strict";(function(e){var a=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t(63)),o=a(t(65)),u=a(t(223)),c=a(t(30)),i={name:"set-up",data:function(){return{user:{}}},onLoad:function(){this.info()},methods:{info:function(){var e=this;return(0,o.default)(r.default.mark((function n(){var t;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$api.mine.info();case 2:t=n.sent,0===t.status?e.user=t.data.user:e.$common.msgToast(t.msg);case 4:case"end":return n.stop()}}),n)})))()},changeAvatar:function(e){console.log(e),this.uploadFilePromise(e.file[0].url)},uploadFilePromise:function(n){var t=this;return new Promise((function(a){e.uploadFile({url:u.default.baseUrl+"/api/wxuser/uploadpic",filePath:n,name:"file",success:function(e){e.data=JSON.parse(e.data),a(e.data.data.path),t.updateInfo({avatar:e.data.data.path})}})}))},updateInfo:function(e){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.update(e);case 2:a=t.sent,0===a.status?(n.$common.msgToast("修改成功"),n.info()):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},backDafult:function(){this.updateInfo({avatar:"https://cdns.fontree.cn/fonchain-main/prod/image/407e7c22-eb62-411e-957b-b6c296fde530/artwork/814ac246-e1eb-49fe-beee-dd53aaf5d309.png"})},logout:function(){var n=this;return(0,o.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.logout();case 2:a=t.sent,0===a.status?(n.$common.msgToast("注销成功"),e.clearStorageSync(),e.setStorageSync("tabBar",c.default),e.navigateTo({url:"/pages/login/login"})):n.$common.msgToast(a.msg);case 4:case"end":return t.stop()}}),t)})))()},back:function(){e.navigateBack({delta:2})}}};n.default=i}).call(this,t(2)["default"])},310:function(e,n,t){"use strict";t.r(n);var a=t(311),r=t.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);n["default"]=r.a},311:function(e,n,t){}},[[304,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/set-up.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/set-up.js.map
|
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order-goods/order-details"],{288:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(289));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},289:function(e,t,n){"use strict";n.r(t);var r=n(290),o=n(292);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(294);var c,u=n(33),i=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"725951bc",null,!1,r["components"],c);i.options.__file="pages/order-goods/order-details.vue",t["default"]=i.exports},290:function(e,t,n){"use strict";n.r(t);var r=n(291);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},291:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return r}));try{r={titleBlock:function(){return n.e("components/title-block/title-block").then(n.bind(null,414))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.statusValue.find((function(t){return t.value===e.info.artworkStatus}))),r=e.statusValue.find((function(t){return t.value===e.info.artworkStatus})),o=1!==e.info.artworkStatus?e.info.startAt.replaceAll("-",".")||"":null,a=1!==e.info.artworkStatus?e.info.endAt.replaceAll("-",".")||"":null;e.$mp.data=Object.assign({},{$root:{g0:n,g1:r,g2:o,g3:a}})},a=!1,c=[];o._withStripped=!0},292:function(e,t,n){"use strict";n.r(t);var r=n(293),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},293:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(63)),a=r(n(65)),c=n(262),u={name:"order-details",data:function(){return{distance:"",ID:"",info:{},statusValue:[{label:"全部状态",value:0},{label:"待入库",value:1,style:"color: #FFBA00;font-size: 24rpx"},{label:"已入库",value:2,style:"color: #76C458;font-size: 24rpx"},{label:"即将到期",value:3,style:"color: #FF4848;font-size: 24rpx"},{label:"延期未补款",value:4,style:"color: #FF4848;font-size: 24rpx"},{label:"已取出",value:5,style:"font-size: 24rpx"},{label:"延期已补款",value:7}]}},computed:{daysRemainingStyle:function(){switch(this.info.artworkStatus){case 1:case 2:case 3:case 5:return"color: #939393;font-size: 24rpx;";case 4:return"color: #FF4848;font-size: 24rpx;"}}},mounted:function(){var t=this;this.$mp.query.ID&&(this.ID=this.$mp.query.ID),this.getData(),e.createSelectorQuery().select(".title-block").boundingClientRect((function(n){var r=e.getSystemInfoSync(),o=r.windowHeight-n.bottom;t.distance=o})).exec()},methods:{back:function(){e.navigateBack()},getData:function(){var t=this;return(0,a.default)(o.default.mark((function n(){var r;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,c.postDataByParams)("/api/warehouse/detail",{ID:Number(t.ID)});case 2:r=n.sent,200===r.code?t.info=r.data:e.showToast({title:r.msg,icon:"none"}),console.log(r,"res");case 5:case"end":return n.stop()}}),n)})))()}}};t.default=u}).call(this,n(2)["default"])},294:function(e,t,n){"use strict";n.r(t);var r=n(295),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},295:function(e,t,n){}},[[288,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order-goods/order-details"],{288:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var o=r(n(289));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},289:function(e,t,n){"use strict";n.r(t);var r=n(290),o=n(292);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n(294);var c,u=n(33),i=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"725951bc",null,!1,r["components"],c);i.options.__file="pages/order-goods/order-details.vue",t["default"]=i.exports},290:function(e,t,n){"use strict";n.r(t);var r=n(291);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},291:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return r}));try{r={titleBlock:function(){return n.e("components/title-block/title-block").then(n.bind(null,422))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.statusValue.find((function(t){return t.value===e.info.artworkStatus}))),r=e.statusValue.find((function(t){return t.value===e.info.artworkStatus})),o=1!==e.info.artworkStatus?e.info.startAt.replaceAll("-",".")||"":null,a=1!==e.info.artworkStatus?e.info.endAt.replaceAll("-",".")||"":null;e.$mp.data=Object.assign({},{$root:{g0:n,g1:r,g2:o,g3:a}})},a=!1,c=[];o._withStripped=!0},292:function(e,t,n){"use strict";n.r(t);var r=n(293),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},293:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(63)),a=r(n(65)),c=n(262),u={name:"order-details",data:function(){return{distance:"",ID:"",info:{},statusValue:[{label:"全部状态",value:0},{label:"待入库",value:1,style:"color: #FFBA00;font-size: 24rpx"},{label:"已入库",value:2,style:"color: #76C458;font-size: 24rpx"},{label:"即将到期",value:3,style:"color: #FF4848;font-size: 24rpx"},{label:"延期未补款",value:4,style:"color: #FF4848;font-size: 24rpx"},{label:"已取出",value:5,style:"font-size: 24rpx"},{label:"延期已补款",value:7}]}},computed:{daysRemainingStyle:function(){switch(this.info.artworkStatus){case 1:case 2:case 3:case 5:return"color: #939393;font-size: 24rpx;";case 4:return"color: #FF4848;font-size: 24rpx;"}}},mounted:function(){var t=this;this.$mp.query.ID&&(this.ID=this.$mp.query.ID),this.getData(),e.createSelectorQuery().select(".title-block").boundingClientRect((function(n){var r=e.getSystemInfoSync(),o=r.windowHeight-n.bottom;t.distance=o})).exec()},methods:{back:function(){e.navigateBack()},getData:function(){var t=this;return(0,a.default)(o.default.mark((function n(){var r;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,c.postDataByParams)("/api/warehouse/detail",{ID:Number(t.ID)});case 2:r=n.sent,200===r.code?t.info=r.data:e.showToast({title:r.msg,icon:"none"}),console.log(r,"res");case 5:case"end":return n.stop()}}),n)})))()}}};t.default=u}).call(this,n(2)["default"])},294:function(e,t,n){"use strict";n.r(t);var r=n(295),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},295:function(e,t,n){}},[[288,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order-goods/order-details.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order-goods/order-details.js.map
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/payError/payError"],{339:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var o=r(t(340));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},340:function(n,e,t){"use strict";t.r(e);var r=t(341),o=t(343);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(345);var c,a=t(33),i=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"73eb5e86",null,!1,r["components"],c);i.options.__file="pages/payError/payError.vue",e["default"]=i.exports},341:function(n,e,t){"use strict";t.r(e);var r=t(342);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},342:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));try{r={uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,c=[];o._withStripped=!0},343:function(n,e,t){"use strict";t.r(e);var r=t(344),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},344:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={methods:{backPay:function(){n.navigateBack({delta:2})}}};e.default=t}).call(this,t(2)["default"])},345:function(n,e,t){"use strict";t.r(e);var r=t(346),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},346:function(n,e,t){}},[[339,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/payError/payError"],{339:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var o=r(t(340));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},340:function(n,e,t){"use strict";t.r(e);var r=t(341),o=t(343);for(var u in o)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(u);t(345);var c,a=t(33),i=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"73eb5e86",null,!1,r["components"],c);i.options.__file="pages/payError/payError.vue",e["default"]=i.exports},341:function(n,e,t){"use strict";t.r(e);var r=t(342);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},342:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));try{r={uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement;n._self._c},u=!1,c=[];o._withStripped=!0},343:function(n,e,t){"use strict";t.r(e);var r=t(344),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},344:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={methods:{backPay:function(){n.navigateBack({delta:2})}}};e.default=t}).call(this,t(2)["default"])},345:function(n,e,t){"use strict";t.r(e);var r=t(346),o=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=o.a},346:function(n,e,t){}},[[339,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/payError/payError.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/payError/payError.js.map
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{331:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var a=r(t(332));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},332:function(e,n,t){"use strict";t.r(n);var r=t(333),a=t(335);for(var u in a)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(u);t(337);var o,c=t(33),i=Object(c["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"305f8734",null,!1,r["components"],o);i.options.__file="pages/paySuccess/paySuccess.vue",n["default"]=i.exports},333:function(e,n,t){"use strict";t.r(n);var r=t(334);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},334:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return a})),t.d(n,"staticRenderFns",(function(){return o})),t.d(n,"recyclableRender",(function(){return u})),t.d(n,"components",(function(){return r}));try{r={uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var a=function(){var e=this,n=e.$createElement;e._self._c},u=!1,o=[];a._withStripped=!0},335:function(e,n,t){"use strict";t.r(n);var r=t(336),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=a.a},336:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(63)),u=r(t(65)),o=t(262),c={name:"paySuccess",data:function(){return{listPaintings:[],info:[]}},mounted:function(){this.getData()},methods:{goDetails:function(){e.navigateTo({url:"/pages/confirm-order/index?type=detail&ID=".concat(this.$mp.query.ID)})},goHome:function(){e.switchTab({url:"/pages/home/index"})},getData:function(){var e=this;return(0,u.default)(a.default.mark((function n(){var t,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={ID:Number(e.$mp.query.ID)},n.next=3,(0,o.postDataByParams)("/api/v2/warehouse/detail",t);case 3:r=n.sent,200===r.code&&(e.info=r.data);case 5:case"end":return n.stop()}}),n)})))()},getData1:function(){var e=this;return(0,u.default)(a.default.mark((function n(){var t,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={ID:Number(e.$mp.query.ID)},n.next=3,(0,o.postDataByParams)("/api/v2/warehouse/detail",t);case 3:r=n.sent,200===r.code&&(e.info=r.data);case 5:case"end":return n.stop()}}),n)})))()},getData2:function(){var e=this;return(0,u.default)(a.default.mark((function n(){var t,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={ID:Number(e.$mp.query.ID)},n.next=3,(0,o.postDataByParams)("/api/v2/warehouse/detail",t);case 3:r=n.sent,200===r.code&&(e.info=r.data);case 5:case"end":return n.stop()}}),n)})))()}}};n.default=c}).call(this,t(2)["default"])},337:function(e,n,t){"use strict";t.r(n);var r=t(338),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=a.a},338:function(e,n,t){}},[[331,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/paySuccess/paySuccess"],{331:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var a=r(t(332));e.__webpack_require_UNI_MP_PLUGIN__=t,n(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},332:function(e,n,t){"use strict";t.r(n);var r=t(333),a=t(335);for(var u in a)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(u);t(337);var o,c=t(33),i=Object(c["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"305f8734",null,!1,r["components"],o);i.options.__file="pages/paySuccess/paySuccess.vue",n["default"]=i.exports},333:function(e,n,t){"use strict";t.r(n);var r=t(334);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},334:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return a})),t.d(n,"staticRenderFns",(function(){return o})),t.d(n,"recyclableRender",(function(){return u})),t.d(n,"components",(function(){return r}));try{r={uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var a=function(){var e=this,n=e.$createElement;e._self._c},u=!1,o=[];a._withStripped=!0},335:function(e,n,t){"use strict";t.r(n);var r=t(336),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=a.a},336:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=r(t(63)),u=r(t(65)),o=t(262),c={name:"paySuccess",data:function(){return{listPaintings:[],info:[]}},mounted:function(){this.getData()},methods:{goDetails:function(){e.navigateTo({url:"/pages/confirm-order/index?type=detail&ID=".concat(this.$mp.query.ID)})},goHome:function(){e.switchTab({url:"/pages/home/index"})},getData:function(){var e=this;return(0,u.default)(a.default.mark((function n(){var t,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={ID:Number(e.$mp.query.ID)},n.next=3,(0,o.postDataByParams)("/api/v2/warehouse/detail",t);case 3:r=n.sent,200===r.code&&(e.info=r.data);case 5:case"end":return n.stop()}}),n)})))()},getData1:function(){var e=this;return(0,u.default)(a.default.mark((function n(){var t,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={ID:Number(e.$mp.query.ID)},n.next=3,(0,o.postDataByParams)("/api/v2/warehouse/detail",t);case 3:r=n.sent,200===r.code&&(e.info=r.data);case 5:case"end":return n.stop()}}),n)})))()},getData2:function(){var e=this;return(0,u.default)(a.default.mark((function n(){var t,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t={ID:Number(e.$mp.query.ID)},n.next=3,(0,o.postDataByParams)("/api/v2/warehouse/detail",t);case 3:r=n.sent,200===r.code&&(e.info=r.data);case 5:case"end":return n.stop()}}),n)})))()}}};n.default=c}).call(this,t(2)["default"])},337:function(e,n,t){"use strict";t.r(n);var r=t(338),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=a.a},338:function(e,n,t){}},[[331,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/paySuccess/paySuccess.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/paySuccess/paySuccess.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{209:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(210));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},210:function(e,n,t){"use strict";t.r(n);var o=t(211),r=t(213);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(215);var u,c=t(33),s=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"891c2434",null,!1,o["components"],u);s.options.__file="pages/register/register.vue",n["default"]=s.exports},211:function(e,n,t){"use strict";t.r(n);var o=t(212);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},212:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={"u-Input":function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u--input/u--input")]).then(t.bind(null,357))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-icon/u-icon")]).then(t.bind(null,363))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,347))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},i=!1,u=[];r._withStripped=!0},213:function(e,n,t){"use strict";t.r(n);var o=t(214),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},214:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{phone:"",determinePhone:"",isTrue:!1,isRight:!1}},watch:{phone:function(e){this.determinePhone!==e?this.isTrue=!0:this.isTrue=!1}},methods:{changePhone:function(e){this.phone=e},changeDeterminePhone:function(e){this.isRight=!0,this.determinePhone=e,this.phone!==e?this.isTrue=!0:this.isTrue=!1},checkPhone:function(e){e&&this.$common.vefTel(e)},next:function(){if(this.phone!==this.determinePhone)return this.$common.msgToast("两次输入不一致");console.log(this.$common.vefTel(this.phone)),this.$common.vefTel(this.phone)&&e.navigateTo({url:"/pages/realName/realName"})}}};n.default=t}).call(this,t(2)["default"])},215:function(e,n,t){"use strict";t.r(n);var o=t(216),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},216:function(e,n,t){}},[[209,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{209:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(210));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},210:function(e,n,t){"use strict";t.r(n);var o=t(211),r=t(213);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t(215);var u,c=t(33),s=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"891c2434",null,!1,o["components"],u);s.options.__file="pages/register/register.vue",n["default"]=s.exports},211:function(e,n,t){"use strict";t.r(n);var o=t(212);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},212:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return o}));try{o={"u-Input":function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u--input/u--input")]).then(t.bind(null,356))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-icon/u-icon")]).then(t.bind(null,347))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,378))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},i=!1,u=[];r._withStripped=!0},213:function(e,n,t){"use strict";t.r(n);var o=t(214),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},214:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{phone:"",determinePhone:"",isTrue:!1,isRight:!1}},watch:{phone:function(e){this.determinePhone!==e?this.isTrue=!0:this.isTrue=!1}},methods:{changePhone:function(e){this.phone=e},changeDeterminePhone:function(e){this.isRight=!0,this.determinePhone=e,this.phone!==e?this.isTrue=!0:this.isTrue=!1},checkPhone:function(e){e&&this.$common.vefTel(e)},next:function(){if(this.phone!==this.determinePhone)return this.$common.msgToast("两次输入不一致");console.log(this.$common.vefTel(this.phone)),this.$common.vefTel(this.phone)&&e.navigateTo({url:"/pages/realName/realName"})}}};n.default=t}).call(this,t(2)["default"])},215:function(e,n,t){"use strict";t.r(n);var o=t(216),r=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=r.a},216:function(e,n,t){}},[[209,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/register/register.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/register/register.js.map
|
66
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.js
vendored
Normal file
66
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.js
vendored
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
// pagesFace/pages/index/index.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad(options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
2
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.wxml
vendored
Normal file
2
unpackage/dist/dev/mp-weixin/pagesFace/pages/index/index.wxml
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<!--pagesFace/pages/index/index.wxml-->
|
||||||
|
<text>pagesFace/pages/index/index.wxml</text>
|
@ -1,86 +1,66 @@
|
|||||||
|
// pagesFace/pages/middle/middle.js
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
data: {
|
data: {
|
||||||
/** 刷脸token */
|
|
||||||
bizToken: "",
|
|
||||||
/** 认证小程序appId */
|
|
||||||
miniProgramAppId: "",
|
|
||||||
/** 认证小程序跳转页地址 */
|
|
||||||
miniProgramPath: "",
|
|
||||||
/** 刷脸结束回调地址 */
|
|
||||||
miniProgramCallBackUrl: "",
|
|
||||||
/** 是否已跳转认证小程序 */
|
|
||||||
goFaceDone: false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 点击前往认证 */
|
/**
|
||||||
onJump() {
|
* 生命周期函数--监听页面加载
|
||||||
const { bizToken, miniProgramAppId, miniProgramPath } = this.data;
|
*/
|
||||||
wx.navigateToMiniProgram({
|
onLoad(options) {
|
||||||
appId: miniProgramAppId,
|
|
||||||
path: miniProgramPath + "?bizToken=" + bizToken,
|
|
||||||
success: (res) => {
|
|
||||||
this.setData({
|
|
||||||
goFaceDone: true,
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 生命周期函数--监听页面加载 */
|
/**
|
||||||
onLoad: function ({
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
bizToken = "",
|
*/
|
||||||
miniProgramAppId = "",
|
onReady() {
|
||||||
miniProgramPath = "",
|
|
||||||
miniProgramCallBackUrl = "",
|
|
||||||
}) {
|
|
||||||
console.log("---middle onLoad");
|
|
||||||
this.setData({
|
|
||||||
bizToken: decodeURIComponent(bizToken),
|
|
||||||
miniProgramAppId: decodeURIComponent(miniProgramAppId),
|
|
||||||
miniProgramPath: decodeURIComponent(miniProgramPath),
|
|
||||||
miniProgramCallBackUrl: decodeURIComponent(miniProgramCallBackUrl),
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 生命周期函数--监听页面显示 */
|
/**
|
||||||
onShow: function () {
|
* 生命周期函数--监听页面显示
|
||||||
console.log("---middle onShow");
|
*/
|
||||||
const { goFaceDone, miniProgramCallBackUrl } = this.data;
|
onShow() {
|
||||||
/** 防止从认证进入后直接返回 */
|
|
||||||
if (!goFaceDone) return;
|
|
||||||
|
|
||||||
/** 已跳转认证小程序,重置 */
|
},
|
||||||
this.setData({
|
|
||||||
goFaceDone: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
/** getEnterOptionsSync 基础库 2.9.4 开始支持,低版本需做兼容处理 */
|
/**
|
||||||
const options = wx.getEnterOptionsSync();
|
* 生命周期函数--监听页面隐藏
|
||||||
console.log("---app onShow options", options);
|
*/
|
||||||
|
onHide() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage() {
|
||||||
|
|
||||||
/** 从认证小程序返回 */
|
|
||||||
if (
|
|
||||||
options.scene === 1038 &&
|
|
||||||
options.referrerInfo.extraData &&
|
|
||||||
options.referrerInfo.extraData.faceResult
|
|
||||||
) {
|
|
||||||
const pages = getCurrentPages();
|
|
||||||
const previous = pages[pages.length - 2];
|
|
||||||
/** 重新加载认证页面 */
|
|
||||||
previous.$vm.reloadPage(
|
|
||||||
miniProgramCallBackUrl
|
|
||||||
.replace(
|
|
||||||
"https://realnameverify-test.fadada.com",
|
|
||||||
"https://realnameverify-test07.fadada.com"
|
|
||||||
)
|
|
||||||
.replace(
|
|
||||||
"https://realnameverify.fadada.com",
|
|
||||||
"https://realnameverify06.fadada.com"
|
|
||||||
)
|
|
||||||
);
|
|
||||||
wx.navigateBack({
|
|
||||||
delta: 1,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
},
|
})
|
||||||
});
|
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"usingComponents": {},
|
|
||||||
"navigationBarTitleText": "人脸识别认证"
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
@ -1,30 +0,0 @@
|
|||||||
.middle-page {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
padding-top: 250rpx;
|
|
||||||
}
|
|
||||||
.middle-page-icon {
|
|
||||||
width: 200rpx;
|
|
||||||
height: 160rpx;
|
|
||||||
}
|
|
||||||
.middle-page-text {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
padding: 48rpx 0;
|
|
||||||
line-height: 42rpx;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #595959;
|
|
||||||
}
|
|
||||||
.middle-page-button {
|
|
||||||
width: 332rpx !important;
|
|
||||||
height: 88rpx;
|
|
||||||
padding: 0;
|
|
||||||
line-height: 88rpx;
|
|
||||||
font-size: 34rpx;
|
|
||||||
font-weight: initial;
|
|
||||||
color: #fff;
|
|
||||||
border-radius: 16rpx;
|
|
||||||
background: #276ef9;
|
|
||||||
}
|
|
@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
"appid": "wx1e155fd041eda3be",
|
|
||||||
"compileType": "miniprogram",
|
|
||||||
"libVersion": "3.1.2",
|
|
||||||
"packOptions": {
|
|
||||||
"ignore": [],
|
|
||||||
"include": []
|
|
||||||
},
|
|
||||||
"setting": {
|
|
||||||
"coverView": true,
|
|
||||||
"es6": true,
|
|
||||||
"postcss": true,
|
|
||||||
"minified": true,
|
|
||||||
"enhance": true,
|
|
||||||
"showShadowRootInWxmlPanel": true,
|
|
||||||
"packNpmRelationList": [],
|
|
||||||
"babelSetting": {
|
|
||||||
"ignore": [],
|
|
||||||
"disablePlugins": [],
|
|
||||||
"outputPath": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"condition": {},
|
|
||||||
"editorSetting": {
|
|
||||||
"tabIndent": "insertSpaces",
|
|
||||||
"tabSize": 4
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
|
||||||
"projectname": "pages",
|
|
||||||
"setting": {
|
|
||||||
"compileHotReLoad": true
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user