fix
This commit is contained in:
commit
070b82fa4e
@ -4,7 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
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: "https://warehouse.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'
|
||||||
|
@ -8,6 +8,13 @@ export const login = (data) => {
|
|||||||
data,
|
data,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
export const configFun = (data) => {
|
||||||
|
return http.request({
|
||||||
|
url: "/api/config",
|
||||||
|
method: "POST",
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
};
|
||||||
// 获取手机号
|
// 获取手机号
|
||||||
export const getTel = (data) => {
|
export const getTel = (data) => {
|
||||||
return http.request({
|
return http.request({
|
||||||
|
@ -134,6 +134,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/consignment-painting/index",
|
"path": "pages/consignment-painting/index",
|
||||||
"style": {
|
"style": {
|
||||||
|
"disableScroll": true,
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="main">
|
<view class="main" v-if="needPersonSecret">
|
||||||
<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>
|
||||||
@ -15,7 +15,6 @@
|
|||||||
>
|
>
|
||||||
<cover-image src="@/static/image/camera.png" style="width: 600rpx; height: 600rpx"></cover-image>
|
<cover-image src="@/static/image/camera.png" style="width: 600rpx; height: 600rpx"></cover-image>
|
||||||
</camera>
|
</camera>
|
||||||
|
|
||||||
<view class="time">
|
<view class="time">
|
||||||
<view class="dot"></view>
|
<view class="dot"></view>
|
||||||
<u-count-down :time="5 * 1000" format="ss" ref="countDown" v-if="isAnimate"></u-count-down>
|
<u-count-down :time="5 * 1000" format="ss" ref="countDown" v-if="isAnimate"></u-count-down>
|
||||||
@ -43,16 +42,23 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {configFun} from "../../http/login";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
needPersonSecret:false,
|
||||||
isAnimate: false,
|
isAnimate: false,
|
||||||
tempVideoPath: "",
|
tempVideoPath: "",
|
||||||
tips: "⚪录制",
|
tips: "⚪录制",
|
||||||
isEnd: true
|
isEnd: true
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad() {
|
async onLoad() {
|
||||||
|
const res= await configFun()
|
||||||
|
if (res.code===200){
|
||||||
|
this.needPersonSecret=res.data.needPersonSecret
|
||||||
|
}
|
||||||
this.ctx = uni.createCameraContext();
|
this.ctx = uni.createCameraContext();
|
||||||
this.tips = "⚪录制";
|
this.tips = "⚪录制";
|
||||||
},
|
},
|
||||||
@ -158,4 +164,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="order-details">
|
<div class="order-details">
|
||||||
<title-block title="寄存画作">
|
<title-block class="titile-d" title="寄存画作">
|
||||||
<template #left>
|
<template #left>
|
||||||
<div>
|
<div>
|
||||||
<image style="width: 112rpx;height: 52rpx"
|
<image style="width: 112rpx;height: 52rpx"
|
||||||
@ -9,27 +9,159 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</title-block>
|
</title-block>
|
||||||
<div class="content2">
|
<div class="content-list" v-if="listPaintings.length>1">
|
||||||
<u-upload
|
<div class="wrap1">*请注意确认寄存结束时间</div>
|
||||||
:fileList="fileList1"
|
<div class="wrap2">
|
||||||
@afterRead="afterRead"
|
<div class="wrap2_1" :style="{height:`${listHeight}rpx`}">
|
||||||
@delete="deletePic"
|
<div :class="['item',index===currentIndex?'active':'']" @click="itemClick(index)" v-for="(item,index) of listPaintings">
|
||||||
name="6"
|
<div class="item_1">{{index+1}}</div>
|
||||||
multiple
|
<div class="item_2">
|
||||||
:maxCount="1"
|
<div class="item_2_1">
|
||||||
width="404rpx"
|
<img :src="listPaintings[index].fileList1[0].url" alt="">
|
||||||
height="306rpx"
|
</div>
|
||||||
>
|
<div class="item_2_2">{{listPaintings[index].artworkNum}}</div>
|
||||||
<div style="width: 404rpx;height: 306rpx;background: #000;border-radius: 20rpx;display: flex;flex-direction: column;align-items: center;justify-content: center">
|
</div>
|
||||||
<div style="margin-bottom: 14rpx">
|
<div class="item_3">{{listPaintings[index].artworkName}}</div>
|
||||||
<image style="width: 38.32rpx;height: 38.2rpx" src="../../static/zu142@3x.png"></image>
|
<div class="item_4">{{listPaintings[index].warehouseID?addressList.find(x=>x.ID===listPaintings[index].warehouseID).address:''}}</div>
|
||||||
|
<div class="item_5">{{listPaintings[index].endAt}}</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 32rpx;color: #fff">上传画作图片</div>
|
<div class="wrap2_2" @click="expand">
|
||||||
|
<div class="wrap2_2_1" v-if="listPaintings.length>2" :style="{transform:`${isExpand?'rotate(180deg)':''}`}">
|
||||||
|
<img src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/13639162-2871-4187-abc5-71c2d9f01ac2.png" alt="">
|
||||||
|
</div>
|
||||||
|
<div class="wrap2_2_2">共计7幅画作</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-center" :style="{marginTop:`${contentListHeight+10}px`}">
|
||||||
|
<div class="painting-name" v-if="listPaintings.length>1">
|
||||||
|
<div class="wrap1">画作{{currentIndex+1}}:</div>
|
||||||
|
<div class="wrap2" @click="itemDelete">删除</div>
|
||||||
|
</div>
|
||||||
|
<div class="content2">
|
||||||
|
<u-upload
|
||||||
|
:fileList="listPaintings[currentIndex].fileList1"
|
||||||
|
@afterRead="afterRead"
|
||||||
|
@delete="deletePic"
|
||||||
|
name="6"
|
||||||
|
multiple
|
||||||
|
:maxCount="1"
|
||||||
|
width="404rpx"
|
||||||
|
height="306rpx"
|
||||||
|
>
|
||||||
|
<div style="width: 404rpx;height: 306rpx;background: #000;border-radius: 20rpx;display: flex;flex-direction: column;align-items: center;justify-content: center">
|
||||||
|
<div style="margin-bottom: 14rpx">
|
||||||
|
<image style="width: 38.32rpx;height: 38.2rpx" src="../../static/zu142@3x.png"></image>
|
||||||
|
</div>
|
||||||
|
<div style="font-size: 32rpx;color: #fff">上传画作图片</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</u-upload>
|
||||||
|
</div>
|
||||||
|
<div class="content3">
|
||||||
|
<div class="prompt">*扫描自动填入</div>
|
||||||
|
<div class="wrap1">
|
||||||
|
<div class="wrap1_1">
|
||||||
|
<div class="wrap1_1_1">画作编号</div>
|
||||||
|
<div class="wrap1_1_2"></div>
|
||||||
|
<div class="wrap1_1_3">
|
||||||
|
<input style="color: #939393;font-size: 24rpx;" v-model="listPaintings[currentIndex].artworkNum" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作编号"/>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1_4"></div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1">
|
||||||
|
<div class="wrap1_1_1">画作名称</div>
|
||||||
|
<div class="wrap1_1_2"></div>
|
||||||
|
<div class="wrap1_1_3">
|
||||||
|
<input style="color: #939393;font-size: 24rpx;" v-model="listPaintings[currentIndex].artworkName" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作名称"/>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1_4"></div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1">
|
||||||
|
<div class="wrap1_1_1">画家名称</div>
|
||||||
|
<div class="wrap1_1_2"></div>
|
||||||
|
<div class="wrap1_1_3">
|
||||||
|
<input style="color: #939393;font-size: 24rpx;" v-model="listPaintings[currentIndex].artistName" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画家名称"/>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1_4">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1">
|
||||||
|
<div class="wrap1_1_1">画作平尺数</div>
|
||||||
|
<div class="wrap1_1_2"></div>
|
||||||
|
<div class="wrap1_1_3">
|
||||||
|
<input style="color: #939393;font-size: 24rpx;" v-model="listPaintings[currentIndex].artworkSquareSize" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作平尺数"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap2"></div>
|
||||||
|
</div>
|
||||||
|
<div class="content4">
|
||||||
|
<div class="wrap1">
|
||||||
|
<div class="wrap1_1" @click="show_2=true">
|
||||||
|
<div class="wrap1_1_1">寄存地址</div>
|
||||||
|
<div class="wrap1_1_2"></div>
|
||||||
|
<div class="wrap1_1_3">
|
||||||
|
<input style="color: #939393;font-size: 24rpx;" disabled :value="listPaintings[currentIndex].warehouseID?addressList.find(x=>x.ID===listPaintings[currentIndex].warehouseID).address:''" placeholder-style="color: #939393;font-size: 24rpx;"
|
||||||
|
placeholder="请选择寄存地址"/>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1_4"></div>
|
||||||
|
<div class="wrap1_1_5">
|
||||||
|
<image src="../../static/zu611@3x.png"></image>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1" @click="openShow1()">
|
||||||
|
<div class="wrap1_1_1">寄存时长</div>
|
||||||
|
<div class="wrap1_1_2"></div>
|
||||||
|
<div class="wrap1_1_3">
|
||||||
|
<input style="color: #939393;font-size: 24rpx;" :value="listPaintings[currentIndex].endAt" disabled placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请选择寄存时长"/>
|
||||||
|
</div>
|
||||||
|
<div class="wrap1_1_5">
|
||||||
|
<image src="../../static/zu612@3x.png"></image>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</u-upload>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="wrap2"></div>
|
||||||
|
</div>
|
||||||
|
<div class="content7" @click="addPainting">
|
||||||
|
<div class="wrap1">
|
||||||
|
<div class="horizontal"></div>
|
||||||
|
<div class="vertical"></div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap2">添加</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content5">
|
||||||
|
<div class="wrap4" v-show="isExpand1" :style="{top:`-${152*3}rpx`}">
|
||||||
|
<div class="item">
|
||||||
|
<div class="item_1">1</div>
|
||||||
|
<div class="item_2">FL0011</div>
|
||||||
|
<div class="item_3">长江万里</div>
|
||||||
|
<div class="item_4">¥ 160</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="item_1">1</div>
|
||||||
|
<div class="item_2">FL0011</div>
|
||||||
|
<div class="item_3">长江万里</div>
|
||||||
|
<div class="item_4">¥ 160</div>
|
||||||
|
</div>
|
||||||
|
<div class="item">
|
||||||
|
<div class="item_1">1</div>
|
||||||
|
<div class="item_2">FL0011</div>
|
||||||
|
<div class="item_3">长江万里</div>
|
||||||
|
<div class="item_4">¥ 160</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap3" @click="expand1" :style="{transform:`${isExpand1?'':'rotate(180deg)'}`}"> <img src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/13639162-2871-4187-abc5-71c2d9f01ac2.png" alt=""></div>
|
||||||
|
<div class="wrap1">
|
||||||
|
<div class="wrap1_1">*仅微信付款</div>
|
||||||
|
<div class="wrap1_2">预计 ¥{{expectedPayment}}</div>
|
||||||
|
</div>
|
||||||
|
<div class="wrap2" @click="signContract">确认金额并签署合同</div>
|
||||||
|
</div>
|
||||||
<u-popup :round="15" :show="show_2" mode="bottom" @open="()=>{show_2=true}">
|
<u-popup :round="15" :show="show_2" mode="bottom" @open="()=>{show_2=true}">
|
||||||
<div class="poup1" >
|
<div class="poup1" >
|
||||||
<div class="content1">
|
<div class="content1">
|
||||||
@ -42,7 +174,7 @@
|
|||||||
<div class="content2"></div>
|
<div class="content2"></div>
|
||||||
<div class="content3">
|
<div class="content3">
|
||||||
<div v-for="(item,index) in addressList" @click="selectAddress(item)"
|
<div v-for="(item,index) in addressList" @click="selectAddress(item)"
|
||||||
:class="[warehouseID===item.ID?'active':'']" :key="index" class="wrap1">
|
:class="[listPaintings[currentIndex].warehouseID===item.ID?'active':'']" :key="index" class="wrap1">
|
||||||
<div class="wrap1_1">{{ item.address }}</div>
|
<div class="wrap1_1">{{ item.address }}</div>
|
||||||
<div class="wrap1_2">*剩余{{ item.leftNum }}位置</div>
|
<div class="wrap1_2">*剩余{{ item.leftNum }}位置</div>
|
||||||
</div>
|
</div>
|
||||||
@ -65,7 +197,7 @@
|
|||||||
<u-popup :round="15" :show="show_1" mode="bottom" @open="()=>{show_1=true}">
|
<u-popup :round="15" :show="show_1" mode="bottom" @open="()=>{show_1=true}">
|
||||||
<div class="poup">
|
<div class="poup">
|
||||||
<div class="content1" style="margin-top: 20rpx">
|
<div class="content1" style="margin-top: 20rpx">
|
||||||
<div class="wrap1">寄存结束日期</div>
|
<div class="wrap1">寄存时长</div>
|
||||||
<div @click="show_1=false" class="wrap2">
|
<div @click="show_1=false" class="wrap2">
|
||||||
<image
|
<image
|
||||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/d84593b3-10a8-4d86-be8c-b048b03b22c7.png"></image>
|
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/d84593b3-10a8-4d86-be8c-b048b03b22c7.png"></image>
|
||||||
@ -85,7 +217,7 @@
|
|||||||
readonly
|
readonly
|
||||||
placeholder="点击选择"
|
placeholder="点击选择"
|
||||||
border="surround"
|
border="surround"
|
||||||
v-model="value1"
|
v-model="listPaintings[currentIndex].endAt"
|
||||||
></u--input>
|
></u--input>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -122,80 +254,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</u-popup>
|
</u-popup>
|
||||||
|
|
||||||
<div class="content3">
|
|
||||||
<div class="prompt">*扫描自动填入</div>
|
|
||||||
<div class="wrap1">
|
|
||||||
<div class="wrap1_1">
|
|
||||||
<div class="wrap1_1_1">画作编号</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input style="color: #939393;font-size: 24rpx;" v-model="info.artworkNum" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作编号"/>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1_4"></div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1">
|
|
||||||
<div class="wrap1_1_1">画作名称</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input style="color: #939393;font-size: 24rpx;" v-model="info.artworkName" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作名称"/>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1_4"></div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1">
|
|
||||||
<div class="wrap1_1_1">画家名称</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input style="color: #939393;font-size: 24rpx;" v-model="info.artistName" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画家名称"/>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1_4">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1">
|
|
||||||
<div class="wrap1_1_1">画作平尺数</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input style="color: #939393;font-size: 24rpx;" v-model="info.artworkSquareSize" placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请输入画作平尺数"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap2"></div>
|
|
||||||
</div>
|
|
||||||
<div class="content4">
|
|
||||||
<div class="wrap1">
|
|
||||||
<div class="wrap1_1" @click="show_2=true">
|
|
||||||
<div class="wrap1_1_1">寄存地址</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input style="color: #939393;font-size: 24rpx;" disabled :value="warehouseID?addressList.find(x=>x.ID===warehouseID).address:''" placeholder-style="color: #939393;font-size: 24rpx;"
|
|
||||||
placeholder="请选择寄存地址"/>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1_4"></div>
|
|
||||||
<div class="wrap1_1_5">
|
|
||||||
<image src="../../static/zu611@3x.png"></image>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1" @click="openShow1()">
|
|
||||||
<div class="wrap1_1_1">寄存结束日期</div>
|
|
||||||
<div class="wrap1_1_2"></div>
|
|
||||||
<div class="wrap1_1_3">
|
|
||||||
<input style="color: #939393;font-size: 24rpx;" :value="value1" disabled placeholder-style="color: #939393;font-size: 24rpx;" placeholder="请选择寄存结束日期"/>
|
|
||||||
</div>
|
|
||||||
<div class="wrap1_1_5">
|
|
||||||
<image src="../../static/zu612@3x.png"></image>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap2"></div>
|
|
||||||
</div>
|
|
||||||
<div class="content5">
|
|
||||||
<div class="wrap1">
|
|
||||||
<div class="wrap1_1">*仅微信付款</div>
|
|
||||||
<div class="wrap1_2">预计 ¥{{expectedPayment}}</div>
|
|
||||||
</div>
|
|
||||||
<div class="wrap2" @click="signContract">确认金额并签署合同</div>
|
|
||||||
</div>
|
|
||||||
<u-loading-page bgColor="rgba(0,0,0,0.5)" :loading="loading" loading-text="正在进入法大大签署..."></u-loading-page>
|
<u-loading-page bgColor="rgba(0,0,0,0.5)" :loading="loading" loading-text="正在进入法大大签署..."></u-loading-page>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -223,6 +281,20 @@ export default {
|
|||||||
days.push(i)
|
days.push(i)
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
currentIndex:0,
|
||||||
|
listPaintings:[{
|
||||||
|
fileList1:[],
|
||||||
|
artworkNum:'',
|
||||||
|
artworkName:'',
|
||||||
|
artistName:'',
|
||||||
|
artworkSquareSize:'',
|
||||||
|
warehouseID:'',
|
||||||
|
endAt:''
|
||||||
|
}],
|
||||||
|
contentListHeight: 0,
|
||||||
|
isExpand:false,
|
||||||
|
isExpand1:false,
|
||||||
|
listHeight:308,
|
||||||
minDate:'',
|
minDate:'',
|
||||||
show: false,
|
show: false,
|
||||||
value1: '',
|
value1: '',
|
||||||
@ -276,6 +348,60 @@ export default {
|
|||||||
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
this.data = [today.getFullYear(), today.getMonth() + 1, today.getDate()]
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
itemDelete(){
|
||||||
|
this.listPaintings.splice(this.currentIndex,1)
|
||||||
|
this.currentIndex=0
|
||||||
|
if (this.listPaintings.length===1){
|
||||||
|
this.contentListHeight=0
|
||||||
|
}
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.getheight()
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
itemClick(index){
|
||||||
|
this.currentIndex=index
|
||||||
|
},
|
||||||
|
addPainting(){
|
||||||
|
this.listPaintings.push({
|
||||||
|
fileList1:[],
|
||||||
|
artworkNum:'',
|
||||||
|
artworkName:'',
|
||||||
|
artistName:'',
|
||||||
|
artworkSquareSize:'',
|
||||||
|
warehouseID:'',
|
||||||
|
endAt:''
|
||||||
|
})
|
||||||
|
this.$nextTick(()=>{
|
||||||
|
this.getheight()
|
||||||
|
})
|
||||||
|
this.currentIndex=this.currentIndex+1
|
||||||
|
},
|
||||||
|
getheight(){
|
||||||
|
let query = uni.createSelectorQuery().in(this);
|
||||||
|
query.select('.content-list').boundingClientRect(data => {
|
||||||
|
if (data) {
|
||||||
|
let query = uni.createSelectorQuery().in(this);
|
||||||
|
query.select('.titile-d').boundingClientRect(data1 => {
|
||||||
|
if (data1) {
|
||||||
|
this.contentListHeight=data.bottom-data1.bottom
|
||||||
|
}
|
||||||
|
}).exec();
|
||||||
|
}
|
||||||
|
}).exec();
|
||||||
|
},
|
||||||
|
expand1(){
|
||||||
|
this.isExpand1=!this.isExpand1
|
||||||
|
},
|
||||||
|
expand(){
|
||||||
|
if (this.isExpand){
|
||||||
|
this.listHeight=154*2
|
||||||
|
}else {
|
||||||
|
this.listHeight=154*(this.listPaintings.length<=7?this.listPaintings.length:7)
|
||||||
|
}
|
||||||
|
this.isExpand=!this.isExpand
|
||||||
|
},
|
||||||
timestampToDateString(timestamp) {
|
timestampToDateString(timestamp) {
|
||||||
const date = new Date(timestamp ); // 把时间戳乘以1000转换为Date对象需要的毫秒数
|
const date = new Date(timestamp ); // 把时间戳乘以1000转换为Date对象需要的毫秒数
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
@ -284,11 +410,11 @@ export default {
|
|||||||
return year + "-" + month + "-" + day;
|
return year + "-" + month + "-" + day;
|
||||||
},
|
},
|
||||||
confirmDate(data){
|
confirmDate(data){
|
||||||
this.value1=this.timestampToDateString(data.value)
|
this.listPaintings[this.currentIndex].endAt=this.timestampToDateString(data.value)
|
||||||
this.show=false
|
this.show=false
|
||||||
},
|
},
|
||||||
openShow1(){
|
openShow1(){
|
||||||
if (!this.info.artworkSquareSize){
|
if (!this.listPaintings[this.currentIndex].artworkSquareSize){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "请先填写画作平尺数",
|
title: "请先填写画作平尺数",
|
||||||
duration: 2000,
|
duration: 2000,
|
||||||
@ -320,9 +446,9 @@ export default {
|
|||||||
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[`fileList1`].length
|
let fileListLen = this.listPaintings[this.currentIndex].fileList1.length
|
||||||
lists.map((item) => {
|
lists.map((item) => {
|
||||||
this[`fileList1`].push({
|
this.listPaintings[this.currentIndex].fileList1.push({
|
||||||
...item,
|
...item,
|
||||||
status: 'uploading',
|
status: 'uploading',
|
||||||
message: '上传中'
|
message: '上传中'
|
||||||
@ -330,9 +456,8 @@ export default {
|
|||||||
})
|
})
|
||||||
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(lists[i].url, 'check')
|
||||||
console.log(result)
|
let item = this.listPaintings[this.currentIndex].fileList1[fileListLen]
|
||||||
let item = this[`fileList1`][fileListLen]
|
this.listPaintings[this.currentIndex].fileList1.splice(fileListLen, 1, Object.assign(item, {
|
||||||
this[`fileList1`].splice(fileListLen, 1, Object.assign(item, {
|
|
||||||
status: 'success',
|
status: 'success',
|
||||||
message: '',
|
message: '',
|
||||||
url: result
|
url: result
|
||||||
@ -366,7 +491,7 @@ export default {
|
|||||||
message: '请选择寄存地址'
|
message: '请选择寄存地址'
|
||||||
}, {
|
}, {
|
||||||
value: this.value1,
|
value: this.value1,
|
||||||
message: '请选择寄存结束日期'
|
message: '请选择寄存时长'
|
||||||
}]
|
}]
|
||||||
for (const check of checks) {
|
for (const check of checks) {
|
||||||
if (!check.value) {
|
if (!check.value) {
|
||||||
@ -426,7 +551,7 @@ export default {
|
|||||||
this.show_2 = false
|
this.show_2 = false
|
||||||
},
|
},
|
||||||
selectAddress(item) {
|
selectAddress(item) {
|
||||||
this.warehouseID = item.ID
|
this.listPaintings[this.currentIndex].warehouseID = item.ID
|
||||||
},
|
},
|
||||||
selectionPeriod(item) {
|
selectionPeriod(item) {
|
||||||
this.cycleId = item.ID
|
this.cycleId = item.ID
|
||||||
@ -530,9 +655,119 @@ picker-view {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
.content-list{
|
||||||
|
top: 130rpx;
|
||||||
|
z-index: 999;
|
||||||
|
position: absolute;
|
||||||
|
width: 686rpx;
|
||||||
|
margin-top: 34rpx;
|
||||||
|
text-align: right;
|
||||||
|
.wrap1{
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: rgba(78, 150, 77, 1);
|
||||||
|
}
|
||||||
|
.wrap2{
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
padding-left: 18rpx;
|
||||||
|
padding-right: 32rpx;
|
||||||
|
.wrap2_2{
|
||||||
|
height: 60rpx;
|
||||||
|
position: relative;
|
||||||
|
.wrap2_2_2{
|
||||||
|
line-height: 60rpx;
|
||||||
|
color: rgba(118, 196, 88, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.wrap2_2_1{
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
img{
|
||||||
|
width: 30rpx;
|
||||||
|
height: 16rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.wrap2_1{
|
||||||
|
z-index: 999;
|
||||||
|
overflow-y: scroll;
|
||||||
|
.item{
|
||||||
|
height: 154rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-left: 10rpx;
|
||||||
|
padding-right: 10rpx;
|
||||||
|
&.active{
|
||||||
|
background-color:rgb(245, 251, 242);
|
||||||
|
}
|
||||||
|
.item_5{
|
||||||
|
width: 134rpx;
|
||||||
|
color: rgba(98, 98, 98, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.item_4{
|
||||||
|
margin-right: 28rpx;
|
||||||
|
width: 192rpx;
|
||||||
|
color: rgba(98, 98, 98, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.item_3{
|
||||||
|
margin-right: 48rpx;
|
||||||
|
width: 78rpx;
|
||||||
|
color: rgba(98, 98, 98, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.item_2{
|
||||||
|
margin-right: 24rpx;
|
||||||
|
width: 68rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
.item_2_2{
|
||||||
|
color: rgba(147, 147, 147, 1);
|
||||||
|
font-size: 20rpx;
|
||||||
|
}
|
||||||
|
.item_2_1{
|
||||||
|
background-color: #000;
|
||||||
|
width: 68rpx;
|
||||||
|
height: 68rpx;
|
||||||
|
img{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.item_1{
|
||||||
|
margin-right: 18rpx;
|
||||||
|
color: rgba(88, 166, 107, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
border: 5rpx solid rgba(118, 196, 88, 1);
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& > .content5 {
|
& > .content5 {
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
left: 0;
|
left: 0;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@ -541,7 +776,56 @@ picker-view {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: 172rpx;
|
height: 172rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
.wrap4{
|
||||||
|
z-index: 999;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
.item{
|
||||||
|
height: 152rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.item_4{
|
||||||
|
margin-right: 64rpx;
|
||||||
|
margin-left: auto;
|
||||||
|
color: rgba(118, 196, 88, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.item_3{
|
||||||
|
width: 100rpx;
|
||||||
|
margin-left: 48rpx;
|
||||||
|
color: rgba(98, 98, 98, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.item_2{
|
||||||
|
width: 100rpx;
|
||||||
|
margin-left: 34rpx;
|
||||||
|
color: rgba(98, 98, 98, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.item_1{
|
||||||
|
margin-left: 56rpx;
|
||||||
|
color: rgba(88, 166, 107, 1);
|
||||||
|
font-size: 24rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
border: 5rpx solid rgba(118, 196, 88, 1);
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.wrap3{
|
||||||
|
margin-left: 32rpx;
|
||||||
|
img{
|
||||||
|
width: 30rpx;
|
||||||
|
height: 16rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
.wrap2 {
|
.wrap2 {
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -555,7 +839,7 @@ picker-view {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.wrap1 {
|
.wrap1 {
|
||||||
margin-left: 58rpx;
|
margin-left: 18rpx;
|
||||||
margin-right: 70rpx;
|
margin-right: 70rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -821,7 +1105,80 @@ picker-view {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content-center{
|
||||||
|
overflow-y: scroll;
|
||||||
|
margin-bottom: 180rpx;
|
||||||
|
.painting-name{
|
||||||
|
margin-top: 48rpx;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.wrap1{
|
||||||
|
color: rgba(0, 0, 0, 1);
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.wrap2{
|
||||||
|
font-size: 28rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
color: rgba(118, 196, 88, 1);
|
||||||
|
border-radius: 40rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
width: 148rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
border: 1px solid rgba(118, 196, 88, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&>.content7{
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
width: 228rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
border: 3rpx solid rgba(118, 196, 88, 1);
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
.wrap2{
|
||||||
|
color: rgba(118, 196, 88, 1);
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.wrap1{
|
||||||
|
margin-right: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
border: 3rpx solid rgba(118, 196, 88, 1);
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
.horizontal {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%,-50%);
|
||||||
|
width: 18rpx;
|
||||||
|
height: 2rpx;
|
||||||
|
background-color: rgba(118, 196, 88, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.vertical {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(-50%,-50%);
|
||||||
|
width: 2rpx;
|
||||||
|
height: 18rpx;
|
||||||
|
background-color: rgba(118, 196, 88, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
& > .content4 {
|
& > .content4 {
|
||||||
|
margin-bottom: 24rpx;
|
||||||
margin-top: 60rpx;
|
margin-top: 60rpx;
|
||||||
|
|
||||||
.wrap1 {
|
.wrap1 {
|
||||||
@ -922,7 +1279,7 @@ picker-view {
|
|||||||
}
|
}
|
||||||
|
|
||||||
& > .content2 {
|
& > .content2 {
|
||||||
margin-top: 42rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
@ -932,4 +1289,5 @@ picker-view {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,13 +2,8 @@
|
|||||||
<view class="main">
|
<view class="main">
|
||||||
<image src="@/static/image/logo.png" mode="scaleToFill" class="logo" />
|
<image src="@/static/image/logo.png" mode="scaleToFill" class="logo" />
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<u-button
|
<u-button v-if="isShow" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" color="transparent"
|
||||||
v-if="isShow"
|
text="点击登录"></u-button>
|
||||||
open-type="getPhoneNumber"
|
|
||||||
@getphonenumber="getPhoneNumber"
|
|
||||||
color="transparent"
|
|
||||||
text="点击登录"
|
|
||||||
></u-button>
|
|
||||||
</view>
|
</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>
|
||||||
@ -76,24 +71,29 @@ export default {
|
|||||||
},
|
},
|
||||||
// info判断用户是401就让他获取openId
|
// info判断用户是401就让他获取openId
|
||||||
async info() {
|
async info() {
|
||||||
const res = await this.$api.mine.info();
|
if (!uni.getStorageSync("telNum")) {
|
||||||
if (res.status === 0) {
|
|
||||||
if (res.data.isNew) {
|
|
||||||
//登录未注册
|
|
||||||
uni.reLaunch({
|
|
||||||
url: "/pages/realName/realName"
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
//登录已注册
|
|
||||||
uni.reLaunch({
|
|
||||||
url: "/pages/home/index"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else if (res.status === 401) {
|
|
||||||
this.getOpenId();
|
this.getOpenId();
|
||||||
} else {
|
} else {
|
||||||
this.$common.msgToast(res.msg);
|
const res = await this.$api.mine.info();
|
||||||
|
if (res.status === 0) {
|
||||||
|
if (res.data.isNew) {
|
||||||
|
//登录未注册
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/realName/realName"
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
//登录已注册
|
||||||
|
uni.reLaunch({
|
||||||
|
url: "/pages/home/index"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else if (res.status === 401) {
|
||||||
|
this.getOpenId();
|
||||||
|
} else {
|
||||||
|
this.$common.msgToast(res.msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@ -106,20 +106,24 @@ export default {
|
|||||||
/deep/.u-button {
|
/deep/.u-button {
|
||||||
background: red;
|
background: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
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://cdns.fontree.cn/fonchain-main/prod/image/1381bd18-2f0c-49f1-84f6-d3eceb94f7a7/artwork/6ef00a09-f663-451d-ae0c-0d00cf4068c5.png");
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
margin-top: 250rpx;
|
margin-top: 250rpx;
|
||||||
width: 398rpx;
|
width: 398rpx;
|
||||||
height: 744rpx;
|
height: 744rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
uni-button:after {
|
uni-button:after {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
@ -132,10 +136,12 @@ export default {
|
|||||||
transition: all 1s;
|
transition: all 1s;
|
||||||
animation: jump 1s ease-in-out infinite alternate;
|
animation: jump 1s ease-in-out infinite alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes jump {
|
@keyframes jump {
|
||||||
from {
|
from {
|
||||||
bottom: 16%;
|
bottom: 16%;
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
bottom: 15%;
|
bottom: 15%;
|
||||||
}
|
}
|
||||||
|
@ -38,8 +38,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<view>
|
<view>
|
||||||
<u-upload :fileList="fileList2" @afterRead="afterRead2" @delete="deletePic2" name="1" multiple
|
<u-upload :fileList="fileList2" @afterRead="afterRead2" @delete="deletePic2" name="1"
|
||||||
:maxCount="1" :width="'270rpx'" :height="'158rpx'">
|
multiple :maxCount="1" :width="'270rpx'" :height="'158rpx'">
|
||||||
<image src="@/static/image/card2.png" mode="scaleToFill"
|
<image src="@/static/image/card2.png" mode="scaleToFill"
|
||||||
style="width: 270rpx;height: 158rpx;"></image>
|
style="width: 270rpx;height: 158rpx;"></image>
|
||||||
</u-upload>
|
</u-upload>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view 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>
|
||||||
@ -90,9 +90,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import http from "@/http/api";
|
import http from "@/http/api";
|
||||||
|
import { configFun } from "../../http/login";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
needPersonSecret: false,
|
||||||
name: "",
|
name: "",
|
||||||
num: "",
|
num: "",
|
||||||
checked: [],
|
checked: [],
|
||||||
@ -104,21 +106,24 @@ export default {
|
|||||||
// show:false
|
// show:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
// onLoad(options) {
|
async onLoad() {
|
||||||
// console.log(this.isFddSuccess)
|
const res = await configFun()
|
||||||
// if (this.isFddSuccess) {
|
if (res.code === 200) {
|
||||||
// this.nextTick(() => {
|
this.needPersonSecret = res.data.needPersonSecret
|
||||||
|
}
|
||||||
// })
|
},
|
||||||
// }
|
|
||||||
// },
|
|
||||||
async onShow() {
|
async onShow() {
|
||||||
|
if (!uni.getStorageSync("telNum")) {
|
||||||
|
uni.navigateTo({
|
||||||
|
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)
|
||||||
uni.removeStorageSync("tempVideoPath")
|
uni.removeStorageSync("tempVideoPath")
|
||||||
console.log('this.video', this.video,uni.getStorageSync('tempVideoPath'))
|
console.log('this.video', this.video, uni.getStorageSync('tempVideoPath'))
|
||||||
// const data = {
|
// const data = {
|
||||||
// num: uni.getStorageSync("info").num || '',
|
// num: uni.getStorageSync("info").num || '',
|
||||||
// name: uni.getStorageSync("info").name || '',
|
// name: uni.getStorageSync("info").name || '',
|
||||||
@ -129,10 +134,10 @@ export default {
|
|||||||
// uni.setStorageSync("info", data)
|
// uni.setStorageSync("info", data)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch: {
|
||||||
isFddSuccess(newValue){
|
isFddSuccess(newValue) {
|
||||||
if(newValue){
|
if (newValue) {
|
||||||
console.log(9999999,newValue)
|
console.log(9999999, 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 || []
|
||||||
@ -163,16 +168,14 @@ export default {
|
|||||||
realIDImgA: this.fileList[0]?.url,
|
realIDImgA: this.fileList[0]?.url,
|
||||||
realIDImgB: this.fileList2[0]?.url
|
realIDImgB: this.fileList2[0]?.url
|
||||||
})
|
})
|
||||||
this.checkFdd().then((res) => {
|
const res1 = await this.checkFdd()
|
||||||
if (!res) return this.$common.msgToast("法大大验证未通过")
|
if (!res1) return this.$common.msgToast("法大大验证未通过")
|
||||||
})
|
|
||||||
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
if (!this.checked.length) return this.$common.msgToast("请阅读并勾选协议");
|
||||||
if (!this.name) return this.$common.msgToast("请输入姓名");
|
if (!this.name) return this.$common.msgToast("请输入姓名");
|
||||||
if (!this.num) return this.$common.msgToast("请输入身份证号");
|
if (!this.num) return this.$common.msgToast("请输入身份证号");
|
||||||
if (!this.fileList.length) return this.$common.msgToast("请上传身份证人面像");
|
if (!this.fileList.length) return this.$common.msgToast("请上传身份证人面像");
|
||||||
if (!this.fileList2.length) return this.$common.msgToast("请上传身份国徽面");
|
if (!this.fileList2.length) return this.$common.msgToast("请上传身份国徽面");
|
||||||
if (!this.video) return this.$common.msgToast("请上传人脸识别视频");
|
if (this.needPersonSecret && !this.video) return this.$common.msgToast("请上传人脸识别视频");
|
||||||
|
|
||||||
const res = await this.$api.login.register({
|
const res = await this.$api.login.register({
|
||||||
user: {
|
user: {
|
||||||
telNum: uni.getStorageSync("telNum"),
|
telNum: uni.getStorageSync("telNum"),
|
||||||
@ -461,4 +464,4 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
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,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cameraContext/cameraContext"],{240:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(241));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},241:function(n,e,t){"use strict";t.r(e);var o=t(242),r=t(244);for(var c in r)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(c);t(246);var u,i=t(33),a=Object(i["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"0c0dc048",null,!1,o["components"],u);a.options.__file="pages/cameraContext/cameraContext.vue",e["default"]=a.exports},242:function(n,e,t){"use strict";t.r(e);var o=t(243);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},243:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return c})),t.d(e,"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,402))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,335))}}}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 r=function(){var n=this,e=n.$createElement;n._self._c},c=!1,u=[];r._withStripped=!0},244:function(n,e,t){"use strict";t.r(e);var o=t(245),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},245:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={data:function(){return{isAnimate:!1,tempVideoPath:"",tips:"⚪录制",isEnd:!0}},onLoad:function(){this.ctx=n.createCameraContext(),this.tips="⚪录制"},methods:{startRecord:function(){var e=this;this.ctx.startRecord({success:function(t){e.isAnimate=!0,e.tips="⚪录制中",setTimeout((function(){e.ctx.stopRecord({success:function(t){console.log("自动停止录像",t),e.isAnimate=!1,e.$common.msgToast("录制完成"),e.tempVideoPath=t.tempVideoPath,e.tips="⚪录制完成",e.isEnd=!1,n.setStorageSync("tempVideoPath",t.tempVideoPath)}})}),5e3)}})},back:function(){n.navigateBack({delta:2})}}};e.default=t}).call(this,t(2)["default"])},246:function(n,e,t){"use strict";t.r(e);var o=t(247),r=t.n(o);for(var c in o)["default"].indexOf(c)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(c);e["default"]=r.a},247:function(n,e,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,402))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-button/u-button")]).then(t.bind(null,335))}}}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
|
@ -1 +1 @@
|
|||||||
<view class="main data-v-0c0dc048"><view class="logo data-v-0c0dc048"><image class="img data-v-0c0dc048" src="/static/image/logo2.png" mode="scaleToFill"></image></view><view class="container data-v-0c0dc048"><view style="color:#626262;font-size:40rpx;" class="data-v-0c0dc048">人脸识别</view><camera style="width:600rpx;height:600rpx;" device-position="front" flash="off" binderror="error" mode="normal" data-ref="camera" class="data-v-0c0dc048 vue-ref"><cover-image style="width:600rpx;height:600rpx;" src="/static/image/camera.png" class="data-v-0c0dc048"></cover-image></camera><view class="time data-v-0c0dc048"><view class="dot data-v-0c0dc048"></view><block wx:if="{{isAnimate}}"><u-count-down vue-id="452b5caa-1" time="{{5*1000}}" format="ss" data-ref="countDown" class="data-v-0c0dc048 vue-ref" bind:__l="__l"></u-count-down></block></view><view style="width:400rpx;" class="data-v-0c0dc048"><u-button vue-id="452b5caa-2" text="{{tips}}" shape="circle" color="#76C458" disabled="{{isAnimate}}" data-event-opts="{{[['^click',[['startRecord']]]]}}" bind:click="__e" class="data-v-0c0dc048" bind:__l="__l"></u-button><view style="margin-top:20rpx;" class="data-v-0c0dc048"><u-button vue-id="452b5caa-3" text="确认" shape="circle" color="#76C458" disabled="{{isEnd||tips!=='⚪录制完成'}}" data-event-opts="{{[['^click',[['back']]]]}}" bind:click="__e" class="data-v-0c0dc048" bind:__l="__l"></u-button></view></view></view></view>
|
<block wx:if="{{needPersonSecret}}"><view class="main data-v-0c0dc048"><view class="logo data-v-0c0dc048"><image class="img data-v-0c0dc048" src="/static/image/logo2.png" mode="scaleToFill"></image></view><view class="container data-v-0c0dc048"><view style="color:#626262;font-size:40rpx;" class="data-v-0c0dc048">人脸识别</view><camera style="width:600rpx;height:600rpx;" device-position="front" flash="off" binderror="error" mode="normal" data-ref="camera" class="data-v-0c0dc048 vue-ref"><cover-image style="width:600rpx;height:600rpx;" src="/static/image/camera.png" class="data-v-0c0dc048"></cover-image></camera><view class="time data-v-0c0dc048"><view class="dot data-v-0c0dc048"></view><block wx:if="{{isAnimate}}"><u-count-down vue-id="452b5caa-1" time="{{5*1000}}" format="ss" data-ref="countDown" class="data-v-0c0dc048 vue-ref" bind:__l="__l"></u-count-down></block></view><view style="width:400rpx;" class="data-v-0c0dc048"><u-button vue-id="452b5caa-2" text="{{tips}}" shape="circle" color="#76C458" disabled="{{isAnimate}}" data-event-opts="{{[['^click',[['startRecord']]]]}}" bind:click="__e" class="data-v-0c0dc048" bind:__l="__l"></u-button><view style="margin-top:20rpx;" class="data-v-0c0dc048"><u-button vue-id="452b5caa-3" text="确认" shape="circle" color="#76C458" disabled="{{isEnd||tips!=='⚪录制完成'}}" data-event-opts="{{[['^click',[['back']]]]}}" bind:click="__e" class="data-v-0c0dc048" bind:__l="__l"></u-button></view></view></view></view></block>
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"disableScroll": true,
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
"enablePullDownRefresh": false,
|
"enablePullDownRefresh": false,
|
||||||
|
File diff suppressed because one or more lines are too long
@ -71,6 +71,116 @@ picker-view.data-v-06cb0d30 {
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.order-details .content-list.data-v-06cb0d30 {
|
||||||
|
top: 130rpx;
|
||||||
|
z-index: 999;
|
||||||
|
position: absolute;
|
||||||
|
width: 686rpx;
|
||||||
|
margin-top: 34rpx;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap1.data-v-06cb0d30 {
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #4e964d;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2.data-v-06cb0d30 {
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
padding-left: 18rpx;
|
||||||
|
padding-right: 32rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_2.data-v-06cb0d30 {
|
||||||
|
height: 60rpx;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_2 .wrap2_2_2.data-v-06cb0d30 {
|
||||||
|
line-height: 60rpx;
|
||||||
|
color: #76c458;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_2 .wrap2_2_1.data-v-06cb0d30 {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
-webkit-transform: translate(-50%, -50%);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_2 .wrap2_2_1 ._img.data-v-06cb0d30 {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 16rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1.data-v-06cb0d30 {
|
||||||
|
z-index: 999;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item.data-v-06cb0d30 {
|
||||||
|
height: 154rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-left: 10rpx;
|
||||||
|
padding-right: 10rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item.active.data-v-06cb0d30 {
|
||||||
|
background-color: #f5fbf2;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_5.data-v-06cb0d30 {
|
||||||
|
width: 134rpx;
|
||||||
|
color: #626262;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_4.data-v-06cb0d30 {
|
||||||
|
margin-right: 28rpx;
|
||||||
|
width: 192rpx;
|
||||||
|
color: #626262;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_3.data-v-06cb0d30 {
|
||||||
|
margin-right: 48rpx;
|
||||||
|
width: 78rpx;
|
||||||
|
color: #626262;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_2.data-v-06cb0d30 {
|
||||||
|
margin-right: 24rpx;
|
||||||
|
width: 68rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_2 .item_2_2.data-v-06cb0d30 {
|
||||||
|
color: #939393;
|
||||||
|
font-size: 20rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_2 .item_2_1.data-v-06cb0d30 {
|
||||||
|
background-color: #000;
|
||||||
|
width: 68rpx;
|
||||||
|
height: 68rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_2 .item_2_1 ._img.data-v-06cb0d30 {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.order-details .content-list .wrap2 .wrap2_1 .item .item_1.data-v-06cb0d30 {
|
||||||
|
margin-right: 18rpx;
|
||||||
|
color: #58a66b;
|
||||||
|
font-size: 24rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
border: 5rpx solid #76c458;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
.order-details > .content5.data-v-06cb0d30 {
|
.order-details > .content5.data-v-06cb0d30 {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -82,6 +192,56 @@ picker-view.data-v-06cb0d30 {
|
|||||||
height: 172rpx;
|
height: 172rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
.order-details > .content5 .wrap4.data-v-06cb0d30 {
|
||||||
|
z-index: 999;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap4 .item.data-v-06cb0d30 {
|
||||||
|
height: 152rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap4 .item .item_4.data-v-06cb0d30 {
|
||||||
|
margin-right: 64rpx;
|
||||||
|
margin-left: auto;
|
||||||
|
color: #76c458;
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap4 .item .item_3.data-v-06cb0d30 {
|
||||||
|
width: 100rpx;
|
||||||
|
margin-left: 48rpx;
|
||||||
|
color: #626262;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap4 .item .item_2.data-v-06cb0d30 {
|
||||||
|
width: 100rpx;
|
||||||
|
margin-left: 34rpx;
|
||||||
|
color: #626262;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap4 .item .item_1.data-v-06cb0d30 {
|
||||||
|
margin-left: 56rpx;
|
||||||
|
color: #58a66b;
|
||||||
|
font-size: 24rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
border: 5rpx solid #76c458;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap3.data-v-06cb0d30 {
|
||||||
|
margin-left: 32rpx;
|
||||||
|
}
|
||||||
|
.order-details > .content5 .wrap3 ._img.data-v-06cb0d30 {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 16rpx;
|
||||||
|
}
|
||||||
.order-details > .content5 .wrap2.data-v-06cb0d30 {
|
.order-details > .content5 .wrap2.data-v-06cb0d30 {
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -94,7 +254,7 @@ picker-view.data-v-06cb0d30 {
|
|||||||
background: #76C458;
|
background: #76C458;
|
||||||
}
|
}
|
||||||
.order-details > .content5 .wrap1.data-v-06cb0d30 {
|
.order-details > .content5 .wrap1.data-v-06cb0d30 {
|
||||||
margin-left: 58rpx;
|
margin-left: 18rpx;
|
||||||
margin-right: 70rpx;
|
margin-right: 70rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -314,20 +474,92 @@ picker-view.data-v-06cb0d30 {
|
|||||||
width: 48rpx;
|
width: 48rpx;
|
||||||
height: 48rpx;
|
height: 48rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content4.data-v-06cb0d30 {
|
.order-details .content-center.data-v-06cb0d30 {
|
||||||
|
overflow-y: scroll;
|
||||||
|
margin-bottom: 180rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-center .painting-name.data-v-06cb0d30 {
|
||||||
|
margin-top: 48rpx;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.order-details .content-center .painting-name .wrap1.data-v-06cb0d30 {
|
||||||
|
color: black;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-center .painting-name .wrap2.data-v-06cb0d30 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
color: #76c458;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
width: 148rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
border: 1px solid #76c458;
|
||||||
|
}
|
||||||
|
.order-details .content-center > .content7.data-v-06cb0d30 {
|
||||||
|
margin: 0 auto;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
width: 228rpx;
|
||||||
|
height: 56rpx;
|
||||||
|
border: 3rpx solid #76c458;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.order-details .content-center > .content7 .wrap2.data-v-06cb0d30 {
|
||||||
|
color: #76c458;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
.order-details .content-center > .content7 .wrap1.data-v-06cb0d30 {
|
||||||
|
margin-right: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
border: 3rpx solid #76c458;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.order-details .content-center > .content7 .wrap1 .horizontal.data-v-06cb0d30 {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translate(-50%, -50%);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
width: 18rpx;
|
||||||
|
height: 2rpx;
|
||||||
|
background-color: #76c458;
|
||||||
|
}
|
||||||
|
.order-details .content-center > .content7 .wrap1 .vertical.data-v-06cb0d30 {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
top: 50%;
|
||||||
|
-webkit-transform: translate(-50%, -50%);
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
width: 2rpx;
|
||||||
|
height: 18rpx;
|
||||||
|
background-color: #76c458;
|
||||||
|
}
|
||||||
|
.order-details .content-center > .content4.data-v-06cb0d30 {
|
||||||
|
margin-bottom: 24rpx;
|
||||||
margin-top: 60rpx;
|
margin-top: 60rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1.data-v-06cb0d30 {
|
||||||
border: 1rpx dashed #DFE9F0;
|
border: 1rpx dashed #DFE9F0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1 .wrap1_1.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1 .wrap1_1.data-v-06cb0d30 {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 114rpx;
|
height: 114rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1 .wrap1_1 .wrap1_1_4.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1 .wrap1_1 .wrap1_1_4.data-v-06cb0d30 {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
-webkit-transform: translateX(-50%);
|
-webkit-transform: translateX(-50%);
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
@ -337,45 +569,45 @@ picker-view.data-v-06cb0d30 {
|
|||||||
width: 636rpx;
|
width: 636rpx;
|
||||||
border-bottom: 0.5px solid #626262;
|
border-bottom: 0.5px solid #626262;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1 .wrap1_1 .wrap1_1_5.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1 .wrap1_1 .wrap1_1_5.data-v-06cb0d30 {
|
||||||
right: 42rpx;
|
right: 42rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1 .wrap1_1 .wrap1_1_5 image.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1 .wrap1_1 .wrap1_1_5 image.data-v-06cb0d30 {
|
||||||
width: 46.34rpx;
|
width: 46.34rpx;
|
||||||
height: 20rpx;
|
height: 20rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1 .wrap1_1 .wrap1_1_2.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1 .wrap1_1 .wrap1_1_2.data-v-06cb0d30 {
|
||||||
margin-right: 36rpx;
|
margin-right: 36rpx;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 66rpx;
|
height: 66rpx;
|
||||||
border-left: 0.5px solid #626262;
|
border-left: 0.5px solid #626262;
|
||||||
}
|
}
|
||||||
.order-details > .content4 .wrap1 .wrap1_1 .wrap1_1_1.data-v-06cb0d30 {
|
.order-details .content-center > .content4 .wrap1 .wrap1_1 .wrap1_1_1.data-v-06cb0d30 {
|
||||||
width: 210rpx;
|
width: 210rpx;
|
||||||
padding-left: 32rpx;
|
padding-left: 32rpx;
|
||||||
color: #626262;
|
color: #626262;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content3.data-v-06cb0d30 {
|
.order-details .content-center > .content3.data-v-06cb0d30 {
|
||||||
margin-top: 60rpx;
|
margin-top: 60rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content3 .prompt.data-v-06cb0d30 {
|
.order-details .content-center > .content3 .prompt.data-v-06cb0d30 {
|
||||||
color: #4E964D;
|
color: #4E964D;
|
||||||
font-size: 16rpx;
|
font-size: 16rpx;
|
||||||
margin-bottom: 4rpx;
|
margin-bottom: 4rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content3 .wrap1.data-v-06cb0d30 {
|
.order-details .content-center > .content3 .wrap1.data-v-06cb0d30 {
|
||||||
border: 1rpx dashed #DFE9F0;
|
border: 1rpx dashed #DFE9F0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
.order-details > .content3 .wrap1 .wrap1_1.data-v-06cb0d30 {
|
.order-details .content-center > .content3 .wrap1 .wrap1_1.data-v-06cb0d30 {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 114rpx;
|
height: 114rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.order-details > .content3 .wrap1 .wrap1_1 .wrap1_1_4.data-v-06cb0d30 {
|
.order-details .content-center > .content3 .wrap1 .wrap1_1 .wrap1_1_4.data-v-06cb0d30 {
|
||||||
left: 50%;
|
left: 50%;
|
||||||
-webkit-transform: translateX(-50%);
|
-webkit-transform: translateX(-50%);
|
||||||
transform: translateX(-50%);
|
transform: translateX(-50%);
|
||||||
@ -385,24 +617,23 @@ picker-view.data-v-06cb0d30 {
|
|||||||
width: 636rpx;
|
width: 636rpx;
|
||||||
border-bottom: 0.5px solid #626262;
|
border-bottom: 0.5px solid #626262;
|
||||||
}
|
}
|
||||||
.order-details > .content3 .wrap1 .wrap1_1 .wrap1_1_2.data-v-06cb0d30 {
|
.order-details .content-center > .content3 .wrap1 .wrap1_1 .wrap1_1_2.data-v-06cb0d30 {
|
||||||
margin-right: 36rpx;
|
margin-right: 36rpx;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 66rpx;
|
height: 66rpx;
|
||||||
border-left: 0.5px solid #626262;
|
border-left: 0.5px solid #626262;
|
||||||
}
|
}
|
||||||
.order-details > .content3 .wrap1 .wrap1_1 .wrap1_1_1.data-v-06cb0d30 {
|
.order-details .content-center > .content3 .wrap1 .wrap1_1 .wrap1_1_1.data-v-06cb0d30 {
|
||||||
width: 210rpx;
|
width: 210rpx;
|
||||||
padding-left: 32rpx;
|
padding-left: 32rpx;
|
||||||
color: #626262;
|
color: #626262;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
}
|
}
|
||||||
.order-details > .content2.data-v-06cb0d30 {
|
.order-details .content-center > .content2.data-v-06cb0d30 {
|
||||||
margin-top: 42rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.order-details > .content2 image.data-v-06cb0d30 {
|
.order-details .content-center > .content2 image.data-v-06cb0d30 {
|
||||||
width: 404rpx;
|
width: 404rpx;
|
||||||
height: 306rpx;
|
height: 306rpx;
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{201:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(202));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},202:function(e,n,t){"use strict";t.r(n);var r=t(203),o=t(205);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t(207);var u,c=t(33),s=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"b237504c",null,!1,r["components"],u);s.options.__file="pages/login/login.vue",n["default"]=s.exports},203:function(e,n,t){"use strict";t.r(n);var r=t(204);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"]}))},204:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return a})),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,335))}}}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 e=this,n=e.$createElement;e._self._c},a=!1,u=[];o._withStripped=!0},205:function(e,n,t){"use strict";t.r(n);var r=t(206),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},206:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(63)),a=r(t(65)),u={data:function(){return{code:"",openId:"",isShow:!1,isNew:!1}},methods:{getPhoneNumber:function(n){var t=this;return(0,a.default)(o.default.mark((function r(){var a;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("getPhoneNumber:ok"!=n.detail.errMsg){r.next=7;break}return r.next=3,t.$api.login.getTel({code:n.detail.code});case 3:a=r.sent,0==a.status?(e.setStorageSync("telNum",a.data.telNum),console.log(1231111111,t.isNew),t.isNew?e.reLaunch({url:"/pages/realName/realName"}):e.reLaunch({url:"/pages/home/index"})):t.$common.msgToast(a.msg),r.next=8;break;case 7:t.$common.msgToast("请不要拒绝哟~重新点击登录");case 8:case"end":return r.stop()}}),r)})))()},getOpenId:function(){var n=this;return(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.login({provider:"weixin",success:function(){var t=(0,a.default)(o.default.mark((function t(r){var a;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("res.code",r.code),n.code=r.code,t.next=4,n.$api.login.login({code:r.code});case 4:a=t.sent,0==a.status?(a.data.accountInfo.isNew?(n.isShow=!0,n.isNew=a.data.accountInfo.isNew):e.reLaunch({url:"/pages/home/index"}),e.setStorageSync("token",a.data.token)):n.$common.msgToast(a.msg);case 6:case"end":return t.stop()}}),t)})));function r(e){return t.apply(this,arguments)}return r}()});case 1:case"end":return t.stop()}}),t)})))()},info:function(){var n=this;return(0,a.default)(o.default.mark((function t(){var r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,n.$api.mine.info();case 2:r=t.sent,0===r.status?r.data.isNew?e.reLaunch({url:"/pages/realName/realName"}):e.reLaunch({url:"/pages/home/index"}):401===r.status?n.getOpenId():n.$common.msgToast(r.msg);case 4:case"end":return t.stop()}}),t)})))()}},onLoad:function(){this.info()}};n.default=u}).call(this,t(2)["default"])},207:function(e,n,t){"use strict";t.r(n);var r=t(208),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},208:function(e,n,t){}},[[201,"common/runtime","common/vendor"]]]);
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{201:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(202));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},202:function(e,n,t){"use strict";t.r(n);var r=t(203),o=t(205);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t(207);var u,c=t(33),s=Object(c["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,"b237504c",null,!1,r["components"],u);s.options.__file="pages/login/login.vue",n["default"]=s.exports},203:function(e,n,t){"use strict";t.r(n);var r=t(204);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"]}))},204:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return a})),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,335))}}}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 e=this,n=e.$createElement;e._self._c},a=!1,u=[];o._withStripped=!0},205:function(e,n,t){"use strict";t.r(n);var r=t(206),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},206:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(63)),a=r(t(65)),u={data:function(){return{code:"",openId:"",isShow:!1,isNew:!1}},methods:{getPhoneNumber:function(n){var t=this;return(0,a.default)(o.default.mark((function r(){var a;return o.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if("getPhoneNumber:ok"!=n.detail.errMsg){r.next=7;break}return r.next=3,t.$api.login.getTel({code:n.detail.code});case 3:a=r.sent,0==a.status?(e.setStorageSync("telNum",a.data.telNum),console.log(1231111111,t.isNew),t.isNew?e.reLaunch({url:"/pages/realName/realName"}):e.reLaunch({url:"/pages/home/index"})):t.$common.msgToast(a.msg),r.next=8;break;case 7:t.$common.msgToast("请不要拒绝哟~重新点击登录");case 8:case"end":return r.stop()}}),r)})))()},getOpenId:function(){var n=this;return(0,a.default)(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.login({provider:"weixin",success:function(){var t=(0,a.default)(o.default.mark((function t(r){var a;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("res.code",r.code),n.code=r.code,t.next=4,n.$api.login.login({code:r.code});case 4:a=t.sent,0==a.status?(a.data.accountInfo.isNew?(n.isShow=!0,n.isNew=a.data.accountInfo.isNew):e.reLaunch({url:"/pages/home/index"}),e.setStorageSync("token",a.data.token)):n.$common.msgToast(a.msg);case 6:case"end":return t.stop()}}),t)})));function r(e){return t.apply(this,arguments)}return r}()});case 1:case"end":return t.stop()}}),t)})))()},info:function(){var n=this;return(0,a.default)(o.default.mark((function t(){var r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.getStorageSync("telNum")){t.next=4;break}n.getOpenId(),t.next=8;break;case 4:return t.next=6,n.$api.mine.info();case 6:r=t.sent,0===r.status?r.data.isNew?e.reLaunch({url:"/pages/realName/realName"}):e.reLaunch({url:"/pages/home/index"}):401===r.status?n.getOpenId():n.$common.msgToast(r.msg);case 8:case"end":return t.stop()}}),t)})))()}},onLoad:function(){this.info()}};n.default=u}).call(this,t(2)["default"])},207:function(e,n,t){"use strict";t.r(n);var r=t(208),o=t.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);n["default"]=o.a},208:function(e,n,t){}},[[201,"common/runtime","common/vendor"]]]);
|
||||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/login/login.js.map
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user