Commit 83582146 authored by 不吃草的咩's avatar 不吃草的咩

微信支付,订单查询,图片上传

parent 52a15d32
......@@ -5,7 +5,8 @@ App({
colorUI,//挂载到app上
colorUISdk,
information:{},
phone:'13520051245',
phone:'',
orderDetail:{},
onLaunch() {
//console.log(colorUISdk.isRandom.getRandom(6))
//console.log(colorUISdk.version)
......
{
"pages": [
"pages/order/order",
"pages/home/home",
"pages/my/home",
"pages/demo/background/background",
......@@ -63,7 +64,8 @@
"iconfont/iconfont",
"subsign/subsign",
"qyDetail/qyDetail",
"coursedetails/coursedetails"
"coursedetails/coursedetails",
"orderdetail/orderdetail"
]
},
{
......@@ -132,7 +134,9 @@
"van-nav-bar": "/vantPackage/nav-bar/index",
"van-toast": "/vantPackage/toast/index",
"van-notice-bar": "/vantPackage/notice-bar/index",
"van-card": "/vantPackage/card/index"
"van-card": "/vantPackage/card/index",
"van-sticky": "/vantPackage/sticky/index",
"van-search": "/vantPackage/search/index"
},
"tabBar": {
"color": "#aaaaaa",
......@@ -153,10 +157,10 @@
"pagePath": "pages/signup/signup"
},
{
"pagePath": "pages/my/home",
"iconPath": "/static/tab_icon/my.png",
"pagePath": "pages/order/order",
"iconPath": "/static/tab_icon/order.png",
"selectedIconPath": "/static/tab_icon/my_cur.png",
"text": "我的"
"text": "查询"
}
]
},
......
......@@ -45,12 +45,21 @@ export const colorUI = new ColorUI({
// url: '/pages/test/home',
// type: 'tab'
// },
// {
// title: '我的',
// icon: '/static/tab_icon/my.png',
// curIcon: '/static/tab_icon/my_cur.png',
// url: '/pages/my/home',
// type: 'tab'
// },
{
title: '我的',
icon: '/static/tab_icon/my.png',
title: '查询',
icon: '/static/tab_icon/order.png',
curIcon: '/static/tab_icon/my_cur.png',
url: '/pages/my/home',
url: '/pages/order/order',
type: 'tab'
}],
}
],
}
})
\ No newline at end of file
......@@ -13,7 +13,8 @@ export const colorUISdk = new ColorUISdk({
//开发环境
dev: {
// url: 'http://101.42.222.235:8050/'
url:'http://jbzhang.censoft.com.cn/'
// url:'http://jbzhang.censoft.com.cn/'
url: 'http://192.168.15.249:8010/'
},
//本地环境
host: {
......@@ -22,5 +23,7 @@ export const colorUISdk = new ColorUISdk({
header: {
"Content-Type": "application/json"
},
filePath:"C:/ftp_wl/uploadFile/"
},
})
......@@ -83,21 +83,22 @@ let baseMethod = {
})
},
$loading(title = '加载中' , duration = 1500){
store.setState({
'$toast.title' : title ,
'$toast.duration' : duration,
'$toast.icon' : '_icon-loading',
'$toast.isLoading':true
})
},
$hideLoading(){
store.setState({
'$toast.title' : '',
'$toast.icon' : '',
'$toast.isLoading':false
})
},
//延时????
// $loading(title = '加载中' , duration = 1500){
// store.setState({
// '$toast.title' : title ,
// '$toast.duration' : duration,
// '$toast.icon' : '_icon-loading',
// '$toast.isLoading':true
// })
// },
// $hideLoading(){
// store.setState({
// '$toast.title' : '',
// '$toast.icon' : '',
// '$toast.isLoading':false
// })
// },
closeModal(){
store.setState({
'$Modal.show': false,
......
import baseLib from './lib/index'
import {request} from './lib/request'
import {requestImg} from './lib/requestImg';
export default class ColorUISdk {
constructor({env, version, api}) {
//默认配置,防止没自定义配置时,出问题。
......@@ -44,4 +44,17 @@ export default class ColorUISdk {
});
});
}
//图片上传
requestImg(data, loading = false) {
return new Promise( (resolve, reject) => {
requestImg(data, loading, {
env: this.env,
api: this.api
}).then(res=> {
resolve(res);
}).catch(err=> {
reject(err)
});
});
}
}
//图片上传请求
const requestImg = (promise, loading = false, config) => {
return new Promise( (resolve, reject) => {
console.log( config.api[config.env].url + promise.url);
console.log(config.api.filePath);
console.log(promise.filePath);
if (['produce','dev','host'].includes(config.env)) {
if (loading) {
wx.showLoading({
title:'请求中',
mask: true
})
}
wx.uploadFile({
url: config.api[config.env].url + promise.url,
header: promise.header || config.api.header,
filePath: promise.filePath || config.api.filePath,
name: 'file',
timeout:30000,
formData:promise.formData,
success: res => {
if (res.statusCode === 200) {
resolve(res.data);
} else {
wx.showToast({
title: res.msg,
icon: 'none',
duration: 2000
});
reject(res.msg)
}
},
fail: err => {
wx.showToast({title: "上传失败",icon: 'none'});
reject(err)
},
complete() {
if (loading) {
wx.hideLoading()
}
}
});
} else {
wx.showToast({title: "环境异常",icon: 'none'});
reject({msg: "环境异常"})
}
});
};
module.exports = {
requestImg:requestImg
}
......@@ -20,8 +20,8 @@ Page({
})
},
toSign(){
let token = wx.getStorageSync('token');
if(token == ''){
let openid = wx.getStorageSync('openid');
if(openid == ''){
Toast('您还未登录,请先去登录');
setTimeout(()=>{
wx.switchTab({
......
import Toast from '../../../vantPackage/toast/toast';
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
course:{
id:'',
name:'',
note:'',
price:''
}
},
onClickLeft(){
wx.navigateBack({
delta: 1,
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function () {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
this.setData({
["course.name"]:app.orderDetail.name,
["course.note"]:app.orderDetail.mack,
["course.price"]:app.orderDetail.price
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!-- 课程详情 -->
<ui-sys>
<ui-navbar isSlot>
<view style="width: 100%;height: 100%;">
<van-nav-bar
title="课程介绍"
left-text="返回"
left-arrow
border="{{false}}"
bind:click-left="onClickLeft"
/>
</view>
</ui-navbar>
<view class="box">
<van-cell-group>
<van-cell title="课程名称" value="{{course.name}}" />
<van-cell title="课程简介" value="{{course.note}}" />
<van-cell title="课程价格">
<view><text>¥</text><text class="price">{{course.price}}</text></view>
</van-cell>
</van-cell-group>
</view>
<van-toast id="van-toast" />
</ui-sys>
/* pages/document/orderdetail/orderdetail.wxss */
.van-nav-bar{
padding-top: 0px !important;
}
\ No newline at end of file
......@@ -153,66 +153,47 @@ Page({
},
nextCard(){
//bug问题 重新赋值
this.setData({
["fromDate.username"]:this.data.username,
["fromDate.card"]:this.data.card,
["fromDate.phone"]:this.data.phone,
["fromDate.company"]:this.data.company,
["fromDate.beizhu"]:this.data.beizhu
});
let params = this.data.fromDate;
let gender = '';
if(params.gender !== ''){
gender = this.data.fromDate.gender == 0 ? '' :''
}
let reg = /^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/;
let phonereg = /^(?:(?:\+|00)86)?1\d{10}$/
if(params.username == ''){
Toast('姓名不能为空');
return;
}else if(gender == ''){
Toast('请选择您的性别');
return;
}else if(!(reg.test(params.card))){
Toast('身份证号不正确');
return;
}else if(!(phonereg.test(params.phone))){
Toast('手机号格式不正确');
return;
}else if(params.homework == ''){
Toast('请选择作业类别');
return;
}else if(params.zige == ''){
Toast('请选择资格类型');
return;
}else if(params.peixun == ''){
Toast('请选择培训类型');
return;
}
app.information = this.data.fromDate;
// this.setData({
// ["fromDate.username"]:this.data.username,
// ["fromDate.card"]:this.data.card,
// ["fromDate.phone"]:this.data.phone,
// ["fromDate.company"]:this.data.company,
// ["fromDate.beizhu"]:this.data.beizhu
// });
// let params = this.data.fromDate;
// let gender = '';
// if(params.gender !== ''){
// gender = this.data.fromDate.gender == 0 ? '男' :'女'
// }
// let reg = /^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\d|30|31)\d{3}[\dXx]$/;
// let phonereg = /^(?:(?:\+|00)86)?1\d{10}$/
// if(params.username == ''){
// Toast('姓名不能为空');
// return;
// }else if(gender == ''){
// Toast('请选择您的性别');
// return;
// }else if(!(reg.test(params.card))){
// Toast('身份证号不正确');
// return;
// }else if(!(phonereg.test(params.phone))){
// Toast('手机号格式不正确');
// return;
// }else if(params.homework == ''){
// Toast('请选择作业类别');
// return;
// }else if(params.zige == ''){
// Toast('请选择资格类型');
// return;
// }else if(params.peixun == ''){
// Toast('请选择培训类型');
// return;
// }
// app.information = this.data.fromDate;
wx.navigateTo({
url: '/pages/uploadcard/uploadcard',
})
},
// success(res){
// const {cancel} = res.detail;
// if(cancel){
// wx.navigateBack({
// delta: 1,
// })
// }else{
// //判断是否登录,登录继续填报,未登录去登录
// let token = wx.getStorageSync('token');
// if(token == ''){
// Toast('您还未登录,请先去登录');
// setTimeout(()=>{
// wx.switchTab({
// url: "/pages/my/home",
// })
// },2000)
// }
// }
// },
/**
* 生命周期函数--监听页面加载
*/
......
......@@ -22,9 +22,9 @@ Page({
});
},
Loading(){
this.$loading()
setTimeout(()=>{
this.$hideLoading()
},1500)
// this.$loading()
// setTimeout(()=>{
// this.$hideLoading()
// },1500)
}
})
\ No newline at end of file
const app = getApp();
import Toast from '../../vantPackage/toast/toast';
Page({
data: {
isLogin:false,
diyige:{icon: 'cicon-avatar', name: '通信企业协会', title: '机构介绍' },
jgDetail:[
{icon: 'cicon-avatar', remark: '机构的介绍', courseName: '机构介绍',params:{type:'1',name:'23'}},
......@@ -93,7 +95,94 @@ Page({
url: '/pages/signup/signup',
})
},
getPhoneNumber(e) {
if (e.detail.code !== undefined) {
wx.login({
success(res) {
if (res.code) {
app.colorUISdk.request({
url: `wx/getOpenId?code=${res.code}`,
method: 'POST'
}).then(({ data }) => {
try {
wx.setStorageSync('openid', data.openid);
} catch (e) {
wx.showToast({
title: 'OPENID储存失败!',
icon: 'none'
})
}
}).catch(err => {
console.log(err)
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
// console.log(e.detail);
app.colorUISdk.request({
url: `wx/gt?code=${e.detail.code}`,
method: 'POST'
}).then(({ data }) => {
// console.log(data);
if (data.errcode == 0) {
// let random = this.randomWord(false, 43);
// let random = Math.random().toString(36).substr(2);
app.phone = data.phone_info.phoneNumber;
Toast.success('登录成功');
this.setData({
isLogin:false,
})
}
this.setData({ courseData: res.data.records })
}).catch(err => {
console.log(err)
})
} else {
wx.showToast({
title: '授权失败,请您重新登录!',
icon: 'none'
})
}
},
onClose(){
this.setData({
isLogin: false
})
},
onReady: function () {
let openid = wx.getStorageSync('openid');
if(openid == ''){
this.setData({
isLogin:true
})
}
// app.colorUISdk.request({
// url:'infocourse/list',
// method: 'GET',
// data: {}
// }).then(({data})=> {
// if(data.records.length == 0){
// wx.showToast({
// title: '课程列表为空',
// icon:'none'
// })
// }else{
// this.setData({courseData: data.records})
// }
// }).catch(err=>{
// console.log(err);
// wx.showToast({
// title: '网络故障,请稍后再试',
// icon:'none'
// })
// })
},
onShow:function(){
app.colorUISdk.request({
url:'infocourse/list',
method: 'GET',
......
.logintit{
width: 100%;
height: 50rpx;
line-height: 50rpx;
text-align: center;
font-size: 26rpx;
font-weight: bold;
margin-top: 20rpx;
}
.del{
width: 100%;
margin-top: 30rpx;
font-size: 20rpx;
}
\ No newline at end of file
......@@ -57,7 +57,7 @@
</view>
</block>
<block wx:for="{{navData}}" wx:key="index">
<!-- <block wx:for="{{navData}}" wx:key="index">
<ui-title title="{{item.title}}" depth="2" isIcon ui="ml-3"/>
<view class="ui-grid ui-cols-2">
<block wx:for="{{item.sub}}" wx:for-index="sub_index" wx:key="sub_index">
......@@ -66,6 +66,18 @@
</view>
</block>
</view>
</block>
</block> -->
</view>
<van-popup show="{{ isLogin }}" bind:close="onClose" round close-on-click-overlay="{{false}}" custom-class="yang">
<view class="logintit"><text>登录或注册</text></view>
<view class="p-5">
<button class="ui-btn bg-green-gradient radius lg block shadow-green" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
<text class="cicon-weixin icon-xl mr-3"/>
<text>微信账号快速登录</text>
<text class="cicon-loading1 icon-spin ml-3" wx:if="{{wxisLoading}}"/>
</button>
<view class="del">登录代表您已同意用户协议</view>
</view>
</van-popup>
<van-toast id="van-toast" />
</ui-sys>
......@@ -4,6 +4,7 @@ Page({
data: {
scrollTop: 0,
show: false,
isLogin:false,
title: '登录,享受更多服务。'
},
tapToUrl() {
......@@ -77,6 +78,7 @@ Page({
Toast.success('登录成功');
this.setData({
show: false,
isLogin:true,
title: data.phone_info.phoneNumber,
})
......@@ -192,10 +194,16 @@ Page({
})
},
onShow: function () {
let token = wx.getStorageSync('token');
let token = wx.getStorageSync('openid');
if (token == '') {
this.setData({
show: true
show: true,
isLogin:false,
})
}else{
this.setData({
title:app.phone,
isLogin:true
})
}
}
......
......@@ -3,10 +3,11 @@
<view class="flex-center flex-sub" wx:if="{{scrollTop > sys_navBar}}">我的</view>
</ui-navbar>
<view class="ui-container">
<view class="flex-bar my-4" data-url="/pages/demo/login/login" bindtap="tapToUrl">
<view class="flex-bar my-4" >
<ui-avatar ui="xxl ellipse" src="/static/logo.png" />
<view class="flex-sub pl-3">
<view class="text-xl">{{title}}</view>
<view class="text-xl" bindtap="tapToUrl" wx:if="{{!isLogin}}">{{title}}</view>
<view class="text-xl" wx:else="">{{title}}</view>
</view>
</view>
<van-cell-group inset>
......
// pages/order/order.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
value:'',
list:[
{name:'5g小课堂',mack:'是的是的发的发生阿的说法',createTime:'2022-02-21'},
{name:'5g小课堂',mack:'是的是的发的发生阿的说法',createTime:'2022-02-21'},
{name:'5g小课堂',mack:'是的是的发的发生阿的说法',createTime:'2022-02-21'},
{name:'5g小课堂',mack:'是的是的发的发生阿的说法',createTime:'2022-02-21'},
{name:'5g小课堂',mack:'是的是的发的发生阿的说法',createTime:'2022-02-21'},
{name:'5g小课堂',mack:'是的是的发的发生阿的说法',createTime:'2022-02-21'},
]
},
onSearch(){},
onCancel(){},
orderDetail(e){
console.log(e);
app.orderDetail = e.target.dataset.item;
wx.navigateTo({
url: '/pages/document/orderdetail/orderdetail',
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
.list{
width: 98%;
margin: 6rpx auto 0;
background-color: #ffffff;
}
\ No newline at end of file
<ui-sys tabbar>
<ui-navbar isCenter>
<text slot="center">我的订单</text>
</ui-navbar>
<van-sticky offset-top="{{ 70 }}">
<van-search value="{{ value }}" custom-class="search" placeholder="请输入搜索关键词" show-action bind:search="onSearch" bind:cancel="onCancel" />
</van-sticky>
<view class="list">
<van-cell-group>
<van-cell title="{{item.name}}" label="订单日期:{{item.createTime}}" center wx:for="{{list}}" wx:key="index">
<van-button type="primary" size="small" bind:click="orderDetail" data-item="{{item}}">查看详情</van-button>
</van-cell>
</van-cell-group>
</view>
<van-toast id="van-toast" />
</ui-sys>
\ No newline at end of file
......@@ -11,8 +11,8 @@ Page({
courseData:[]
},
toSignup(e){
let token = wx.getStorageSync('token');
if(token == ''){
let openid = wx.getStorageSync('openid');
if(openid == ''){
wx.showToast({
title: '您还未登录,请先去登录',
icon: 'none'
......@@ -45,8 +45,8 @@ Page({
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
let token = wx.getStorageSync('token');
if(token == ''){
let openid = wx.getStorageSync('openid');
if(openid == ''){
wx.showToast({
title: '您还未登录,即将跳转登录',
icon: 'none'
......
......@@ -38,91 +38,118 @@ Page({
callback(true);
};
},
//身份证正面照
afterReadPositive(event){
const { file } = event.detail;
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
filePath: file.url,
name: 'file',
timeout:30000,
formData: { user: 'test' },
success(res) {
const { positive = [] } = this.data.fileList;
positive.push({ ...file, url: res.data });
this.setData({["fileList.positive"]:positive});
app.colorUISdk.requestImg({
url:'infostudent/common/upload',
method: 'POST',
filePath:file.url,
header:{
"Content-Type": "multipart/form-data",
},
fail(){
Toast.fail({
message: '上传失败,请重新上传',
forbidClick: true,
});
formData:{
file,
filePath:"D:/uploadFile/img"
}
});
}).then((res)=>{
let result = JSON.parse(res);
if(result.code == 0){
const { positive= [] } = this.data.fileList;
positive.push({ ...file, url: res.result });
this.setData({["fileList.positive"]:positive});
}else{
Toast.fail('上传失败');
}
})
},
deleteImgPositive(file) {
this.setData({["fileList.positive"]:[]});
},
//身份证反面照
afterReadEmblem(event){
const { file } = event.detail;
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
filePath: file.url,
name: 'file',
formData: { user: 'test' },
success(res) {
const { emblem = [] } = this.data.fileList;
emblem.push({ ...file, url: res.data });
this.setData({["fileList.emblem"]:emblem});
app.colorUISdk.requestImg({
url:'infostudent/common/upload',
method: 'POST',
filePath:file.url,
header:{
"Content-Type": "multipart/form-data",
},
fail(){
Toast.fail({
message: '上传失败,请重新上传',
forbidClick: true,
});
formData:{
file,
filePath:"D:/uploadFile/img"
}
});
}).then((res)=>{
let result = JSON.parse(res);
if(result.code == 0){
const { emblem= [] } = this.data.fileList;
emblem.push({ ...file, url: res.result });
this.setData({["fileList.emblem"]:emblem});
}else{
Toast.fail('上传失败');
}
})
},
deleteImgEmblem(file) {
this.setData({["fileList.emblem"]:[]});
},
//上半身照片
afterReadFace(event){
const { file } = event.detail;
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
filePath: file.url,
name: 'file',
formData: { user: 'test' },
success(res) {
app.colorUISdk.requestImg({
url:'infostudent/common/upload',
method: 'POST',
filePath:file.url,
header:{
"Content-Type": "multipart/form-data",
},
formData:{
file,
filePath:"D:/uploadFile/img"
}
}).then((res)=>{
let result = JSON.parse(res);
if(result.code == 0){
const { face = [] } = this.data.fileList;
face.push({ ...file, url: res.data });
face.push({ ...file, url: res.result });
this.setData({["fileList.face"]:face});
},
fail(){
Toast.fail({
message: '上传失败,请重新上传',
forbidClick: true,
});
}else{
Toast.fail('上传失败');
}
});
})
},
deleteImgReadFace(file) {
this.setData({["fileList.face"]:[]});
},
//毕业证书
afterRead(event) {
const { file } = event.detail;
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
url: 'https://example.weixin.qq.com/upload', // 仅为示例,非真实的接口地址
filePath: file.url,
name: 'file',
formData: { user: 'test' },
success(res) {
// 上传完成需要更新 fileList
const { diploma = [] } = this.data.fileList;
diploma.push({ ...file, url: res.data });
this.setData({ ["fileList.diploma"]:diploma});
app.colorUISdk.requestImg({
url:'infostudent/common/upload',
method: 'POST',
filePath:file.url,
header:{
"Content-Type": "multipart/form-data",
},
fail(){
Toast.fail({
message: '上传失败,请重新上传',
forbidClick: true,
});
formData:{
file,
filePath:"D:/uploadFile/img"
}
});
}).then((res)=>{
let result = JSON.parse(res);
if(result.code == 0){
const { diploma = [] } = this.data.fileList;
diploma.push({ ...file, url: res.result });
this.setData({["fileList.diploma"]:diploma});
}else{
Toast.fail('上传失败');
}
})
},
deleteImgRead(file) {
this.setData({["fileList.diploma"]:[]});
},
sendMeans(){
......@@ -156,22 +183,6 @@ Page({
})
if(data.errcode == 0){
let random = this.randomWord(false, 43);
// let random = Math.random().toString(36).substr(2);
try {
wx.setStorageSync('token', random+data.phone_info.phoneNumber);
app.phone = data.phone_info.phoneNumber;
Toast.success('登录成功');
this.setData({
show:false,
title:data.phone_info.phoneNumber,
})
} catch (e) {
wx.showToast({
title: '数据存储失败!',
icon: 'none'
})
}
}
this.setData({courseData: res.data.records})
}).catch(err=>{
......
......@@ -14,7 +14,7 @@
</ui-navbar>
<view class="box">
<view class="card-flex">
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.positive }}" bind:after-read="afterReadPositive" use-before-read bind:before-read="beforeRead"/></view>
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.positive }}" bind:after-read="afterReadPositive" use-before-read bind:before-read="beforeRead" bind:delete="deleteImgPositive" /></view>
<view class="txtdetail">
<view class="one"><text>身份证正面照,务必保持清晰</text></view>
<view class="two"><text>注意:拍完整不能斜着拍,和复印效果一样</text></view>
......@@ -22,7 +22,7 @@
</view>
</view>
<view class="card-flex">
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.emblem }}" bind:after-read="afterReadEmblem" use-before-read bind:before-read="beforeRead"/></view>
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.emblem }}" bind:after-read="afterReadEmblem" use-before-read bind:before-read="beforeRead" bind:delete="deleteImgEmblem" /></view>
<view class="txtdetail">
<view class="one"><text>身份证反面照,务必保持清晰</text></view>
<view class="two"><text>注意:拍完整不能斜着拍,和复印效果一样</text></view>
......@@ -30,7 +30,7 @@
</view>
</view>
<view class="card-flex">
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.face }}" bind:after-read="afterReadFace" use-before-read bind:before-read="beforeRead"/></view>
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.face }}" bind:after-read="afterReadFace" use-before-read bind:before-read="beforeRead" bind:delete="deleteImgReadFace" /></view>
<view class="txtdetail">
<view class="one"><text>上半身照,务必保持清晰</text></view>
<view class="two"><text>注意:需手持身份证件,保证证件清晰</text></view>
......@@ -38,7 +38,7 @@
</view>
</view>
<view class="card-flex">
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.diploma }}" bind:after-read="afterRead" use-before-read bind:before-read="beforeRead"/></view>
<view class="uploadimg"><van-uploader max-size="1000000" max-count="1" upload-text="上传图片" file-list="{{ fileList.diploma }}" bind:after-read="afterRead" use-before-read bind:before-read="beforeRead" bind:delete="deleteImgRead" /></view>
<view class="txtdetail">
<view class="one"><text>毕业证书照或户口本现实学历页,务必保持清晰</text></view>
<view class="two"><text>注意:拍完整不能斜着拍,和复印效果一样</text></view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment