调整分享,创建资料等bug
This commit is contained in:
@@ -134,6 +134,14 @@ const getSchemes = id => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 退款单列表
|
||||||
|
const refunds = data => {
|
||||||
|
return request({
|
||||||
|
url: 'app/refunds',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 支付订单
|
// 支付订单
|
||||||
export {
|
export {
|
||||||
lists,
|
lists,
|
||||||
@@ -151,5 +159,6 @@ export {
|
|||||||
ordersEditorders,
|
ordersEditorders,
|
||||||
orderSign,
|
orderSign,
|
||||||
getOrderSignStatus,
|
getOrderSignStatus,
|
||||||
getSchemes
|
getSchemes,
|
||||||
|
refunds
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,16 @@ const userInfoBank = id => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取省市区
|
||||||
|
const getRegion = id => {
|
||||||
|
return request({
|
||||||
|
url : 'region',
|
||||||
|
data : {
|
||||||
|
parent_id: id || ''
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
relations,
|
relations,
|
||||||
code,
|
code,
|
||||||
@@ -112,5 +122,6 @@ export {
|
|||||||
eSigns,
|
eSigns,
|
||||||
userInfoBase,
|
userInfoBase,
|
||||||
userInfoBanks,
|
userInfoBanks,
|
||||||
userInfoBank
|
userInfoBank,
|
||||||
|
getRegion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name" : "抖火",
|
"name" : "抖火",
|
||||||
"appid" : "__UNI__C305C03",
|
"appid" : "__UNI__C305C03",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.5",
|
"versionName" : "1.0.6",
|
||||||
"versionCode" : "100",
|
"versionCode" : "100",
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
@@ -24,7 +24,8 @@
|
|||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules" : {
|
"modules" : {
|
||||||
"Barcode" : {},
|
"Barcode" : {},
|
||||||
"Camera" : {}
|
"Camera" : {},
|
||||||
|
"Share" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute" : {
|
"distribute" : {
|
||||||
@@ -56,7 +57,13 @@
|
|||||||
},
|
},
|
||||||
/* SDK配置 */
|
/* SDK配置 */
|
||||||
"sdkConfigs" : {
|
"sdkConfigs" : {
|
||||||
"ad" : {}
|
"ad" : {},
|
||||||
|
"share" : {
|
||||||
|
"weixin" : {
|
||||||
|
"appid" : "wx9ca2a763085ab4b6",
|
||||||
|
"UniversalLinks" : ""
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"icons" : {
|
"icons" : {
|
||||||
"android" : {
|
"android" : {
|
||||||
|
|||||||
@@ -88,13 +88,14 @@
|
|||||||
// 获取列表
|
// 获取列表
|
||||||
getLog(){
|
getLog(){
|
||||||
cash({
|
cash({
|
||||||
day : this.type,
|
day : this.dayType,
|
||||||
type: this.dayType,
|
type: this.type,
|
||||||
page: this.page.current
|
page: this.page.current
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let { total, lists } = res;
|
let { total, lists } = res;
|
||||||
let atList = lists.page.current == 1 ? [] : this.list
|
let atList = lists.page.current == 1 ? [] : this.list
|
||||||
this.list = atList.concat(lists.data)
|
this.list = atList.concat(lists.data)
|
||||||
|
this.total = total
|
||||||
this.page = lists.page
|
this.page = lists.page
|
||||||
this.pagesShow = false
|
this.pagesShow = false
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
<u-icon class="footer-icon" name="order" size="48rpx" color="#111"></u-icon>
|
<u-icon class="footer-icon" name="order" size="48rpx" color="#111"></u-icon>
|
||||||
<view>答题卡</view>
|
<view>答题卡</view>
|
||||||
</view>
|
</view>
|
||||||
<button class="footer-next" :disabled="answerArr[questionsIndex].option_ids == ''" @click="answerNext">{{(this.questionsIndex + 1) == this.questions.length ? '提交': '下一题'}}</button>
|
<button class="footer-next" :disabled="answerArr[questionsIndex].option_ids == '' || !isShowAnswer" @click="answerNext">{{(this.questionsIndex + 1) == this.questions.length ? '提交': '下一题'}}</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view class="content">
|
||||||
<block v-if="!eSign">
|
<block v-if="!eSign">
|
||||||
<!-- 上传身份证 -->
|
<!-- 上传身份证 -->
|
||||||
|
<view class="identity-from">
|
||||||
<view class="identity-title">请拍摄并上传你的身份证照片</view>
|
<view class="identity-title">请拍摄并上传你的身份证照片</view>
|
||||||
<view class="identity-flex">
|
<view class="identity-flex">
|
||||||
<view class="identity-item" @click="updImg('frontCard')">
|
<view class="identity-item" @click="updImg('frontCard')">
|
||||||
@@ -17,6 +18,22 @@
|
|||||||
<view class="text">拍摄反面</view>
|
<view class="text">拍摄反面</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="identity-from">
|
||||||
|
<!-- 经营省份 -->
|
||||||
|
<view class="identity-inpus" v-if="provinces.length > 0">
|
||||||
|
<label>经营省份</label>
|
||||||
|
<picker class="city-picker" :value="provincesVal" :range="provinces" range-key="name" @change="onPickerChange($event, 'provincesVal')">
|
||||||
|
<view class="city-picker-text">{{provinces[provincesVal].name}}<uni-icons class="city-icon" type="bottom" color="gray"></uni-icons></view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
<view class="identity-inpus" v-if="citys.length > 0">
|
||||||
|
<label>经营城市</label>
|
||||||
|
<picker class="city-picker" :value="citysVal" :range="citys" range-key="name" @change="onPickerChange($event, 'citysVal')">
|
||||||
|
<view class="city-picker-text">{{citys[citysVal].name}}<uni-icons class="city-icon" type="bottom" color="gray"></uni-icons></view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<!-- 身份证信息 -->
|
<!-- 身份证信息 -->
|
||||||
<view class="identity-from" v-if="realData.name != ''">
|
<view class="identity-from" v-if="realData.name != ''">
|
||||||
@@ -33,6 +50,14 @@
|
|||||||
<input type="idcard" placeholder="-" v-model="realData.organ" disabled>
|
<input type="idcard" placeholder="-" v-model="realData.organ" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 经营地址 -->
|
||||||
|
<view class="identity-from" v-if="eSign">
|
||||||
|
<view class="identity-inpus">
|
||||||
|
<label>经营城市</label>
|
||||||
|
<view class="identity-inpus-text">{{province}} {{city}}</view>
|
||||||
|
<!-- <input type="text" placeholder="-" v-model="city" disabled> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- 按钮 -->
|
<!-- 按钮 -->
|
||||||
<view class="btn" v-if="!eSign">
|
<view class="btn" v-if="!eSign">
|
||||||
<button size="default" @click="idCard && !isPathChange ? getSignUrl(): realInfo()">{{idCard && !isPathChange ? '人脸认证': '提交身份信息'}}</button>
|
<button size="default" @click="idCard && !isPathChange ? getSignUrl(): realInfo()">{{idCard && !isPathChange ? '人脸认证': '提交身份信息'}}</button>
|
||||||
@@ -41,7 +66,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { certification, identityOcr, certified, eSigns } from '@/apis/interfaces/user'
|
import { certification, identityOcr, certified, eSigns, getRegion } from '@/apis/interfaces/user'
|
||||||
import { uploads } from '@/apis/interfaces/uploading'
|
import { uploads } from '@/apis/interfaces/uploading'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -57,7 +82,14 @@
|
|||||||
organ : ''
|
organ : ''
|
||||||
}, // 个人信息
|
}, // 个人信息
|
||||||
signUrl : '',
|
signUrl : '',
|
||||||
isRefresh : false
|
isRefresh : false,
|
||||||
|
province : '',
|
||||||
|
city : '',
|
||||||
|
// 省市区选择
|
||||||
|
provinces : [],
|
||||||
|
provincesVal: 0,
|
||||||
|
citys : [],
|
||||||
|
citysVal : 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
@@ -67,7 +99,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
getRegion().then(res => {
|
||||||
|
this.provinces = res
|
||||||
|
this.getCity()
|
||||||
this.getCertified()
|
this.getCertified()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 检查实名结果
|
// 检查实名结果
|
||||||
@@ -92,6 +133,36 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 选择省市
|
||||||
|
onPickerChange(e, key){
|
||||||
|
let index = e.detail.value
|
||||||
|
this[key] = index
|
||||||
|
this.isPathChange = true
|
||||||
|
if(key === 'provincesVal'){
|
||||||
|
this.getCity()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 获取城市
|
||||||
|
getCity(id){
|
||||||
|
uni.showLoading({
|
||||||
|
title: '获取城市',
|
||||||
|
mask : true
|
||||||
|
})
|
||||||
|
getRegion(this.provinces[this.provincesVal].id).then(res => {
|
||||||
|
this.citys = res
|
||||||
|
if(id){
|
||||||
|
this.citysVal = this.citys.findIndex(val => val.id === id)
|
||||||
|
}else{
|
||||||
|
this.citysVal = 0
|
||||||
|
}
|
||||||
|
uni.hideLoading()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
// 提交真实信息
|
// 提交真实信息
|
||||||
getInfo(){
|
getInfo(){
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
@@ -107,6 +178,14 @@
|
|||||||
showpath: res.back_card,
|
showpath: res.back_card,
|
||||||
path : res.back_card_path
|
path : res.back_card_path
|
||||||
}
|
}
|
||||||
|
if(res.province.id != 0){
|
||||||
|
this.province = res.province.name
|
||||||
|
this.provincesVal = this.provinces.findIndex(val => val.id === res.province.id)
|
||||||
|
}
|
||||||
|
if(res.city.id != 0){
|
||||||
|
this.getCity(res.city.id)
|
||||||
|
this.city = res.city.name
|
||||||
|
}
|
||||||
this.realData = res;
|
this.realData = res;
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
@@ -124,12 +203,15 @@
|
|||||||
mask : true
|
mask : true
|
||||||
})
|
})
|
||||||
certification({
|
certification({
|
||||||
|
province_id: this.provinces[this.provincesVal].id,
|
||||||
|
city_id: this.citys[this.citysVal].id,
|
||||||
front_card: this.frontCard.path,
|
front_card: this.frontCard.path,
|
||||||
back_card : this.backCard.path,
|
back_card : this.backCard.path,
|
||||||
redirect_url: 'http://web.douhuofalv.com/app/e-sign?sign_type=personal',
|
redirect_url: 'http://web.douhuofalv.com/app/e-sign?sign_type=personal',
|
||||||
app_scheme: 'doufire://'
|
app_scheme: 'doufire://'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let certificationData = res;
|
let certificationData = res;
|
||||||
|
this.idCard = true
|
||||||
this.isPathChange = false
|
this.isPathChange = false
|
||||||
this.realData = certificationData.certification
|
this.realData = certificationData.certification
|
||||||
this.signUrl = certificationData.sign.authShortUrl
|
this.signUrl = certificationData.sign.authShortUrl
|
||||||
@@ -180,7 +262,6 @@
|
|||||||
url: res.authShortUrl
|
url: res.authShortUrl
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// plus.runtime.openURL(res.authShortUrl)
|
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -219,7 +300,8 @@
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 身份信息
|
// 身份信息
|
||||||
.identity-from{
|
.identity-from{
|
||||||
border-bottom: 30rpx solid #f8f8f8;
|
border-top: 30rpx solid #f8f8f8;
|
||||||
|
background-color: white;
|
||||||
.identity-inpus{
|
.identity-inpus{
|
||||||
display: flex;
|
display: flex;
|
||||||
border-bottom: solid 1rpx #F6F6F6;
|
border-bottom: solid 1rpx #F6F6F6;
|
||||||
@@ -240,6 +322,23 @@
|
|||||||
width: calc(100% - 180rpx);
|
width: calc(100% - 180rpx);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
.identity-inpus-text{
|
||||||
|
font-size: 32rpx;
|
||||||
|
width: calc(100% - 180rpx);
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.city-picker{
|
||||||
|
width: calc(100% - 180rpx);
|
||||||
|
.city-picker-text{
|
||||||
|
padding-right: 50rpx;
|
||||||
|
position: relative;
|
||||||
|
text-align: right;
|
||||||
|
.city-icon{
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 身份证上传
|
// 身份证上传
|
||||||
@@ -247,11 +346,10 @@
|
|||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
color: #111111;
|
|
||||||
border-top: 30rpx solid #f8f8f8;
|
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
.identity-flex{
|
.identity-flex{
|
||||||
|
background: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 0 20rpx 30rpx;
|
padding: 0 20rpx 30rpx;
|
||||||
.identity-item{
|
.identity-item{
|
||||||
@@ -282,7 +380,6 @@
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
border-bottom: 30rpx solid #f8f8f8;
|
|
||||||
}
|
}
|
||||||
// 身份认证按钮
|
// 身份认证按钮
|
||||||
.btn{
|
.btn{
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
<l-painter class="qrcode-src">
|
<l-painter class="qrcode-src">
|
||||||
<l-painter-qrcode
|
<l-painter-qrcode
|
||||||
:text="'http://web.douhuofalv.com/login/register?invite_code=' + invite"
|
:text="'http://web.douhuofalv.com/login/register?invite_code=' + invite"
|
||||||
css="width: 260rpx; height: 260rpx; background-color:white; padding: 20rpx; border-radius: 10rpx;"
|
css="width: 130px; height: 130px; background-color:white; padding: 10px; border-radius: 10rpx;"
|
||||||
/>
|
/>
|
||||||
</l-painter>
|
</l-painter>
|
||||||
<view class="qrcode-text">邀请码{{invite}}</view>
|
<view class="qrcode-text" @click="copyInvite">邀请码{{invite}}</view>
|
||||||
</view>
|
</view>
|
||||||
<image class="btn" src="@/static/code/code_btn.png" mode="widthFix"></image>
|
<image class="btn" src="@/static/code/code_btn.png" mode="widthFix" @click="onWx"></image>
|
||||||
</view>
|
</view>
|
||||||
<image class="footer" src="@/static/code/code_footer.png" mode="widthFix"></image>
|
<image class="footer" src="@/static/code/code_footer.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -43,6 +43,36 @@
|
|||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
copyInvite(){
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: this.invite,
|
||||||
|
success() {
|
||||||
|
uni.showToast({
|
||||||
|
title: '邀请码已复制',
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onWx(){
|
||||||
|
uni.share({
|
||||||
|
title : "抖火法律",
|
||||||
|
provider: "weixin",
|
||||||
|
scene : "WXSceneSession",
|
||||||
|
imageUrl: require('@/static/logo.png'),
|
||||||
|
href : "http://web.douhuofalv.com/login/register?invite_code=" + this.invite,
|
||||||
|
type : 0,
|
||||||
|
summary: "法律问题我们'抖'懂",
|
||||||
|
fail: err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -103,22 +133,23 @@
|
|||||||
.block {
|
.block {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
|
width: 100%;
|
||||||
.qrcode {
|
.qrcode {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border: solid 2rpx #ECC997;
|
border: solid 2rpx #ECC997;
|
||||||
background: #0E2660;
|
background: #0E2660;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
.qrcode-src {
|
.qrcode-src{
|
||||||
width: 300rpx;
|
width: 150px;
|
||||||
height: 300rpx;
|
height: 150px;
|
||||||
}
|
}
|
||||||
.qrcode-text {
|
.qrcode-text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #FFF5C6;
|
color: #FFF5C6;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
padding-top: 30rpx;
|
padding-top: 30rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
let { data } = e.detail
|
let { data } = e.detail
|
||||||
data.map(val => {
|
data.map(val => {
|
||||||
if(val.type === 'back'){
|
if(val.type === 'back'){
|
||||||
uni.navigateBack()
|
this.$Route.back()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
客户列表
|
客户列表
|
||||||
<text>共{{count.all}}客户</text>
|
<text>共{{count.one}}人</text>
|
||||||
</view>
|
</view>
|
||||||
<block v-if="users.length > 0">
|
<block v-if="users.length > 0">
|
||||||
<view class="team-item" v-for="(item, index) in users" :key="index">
|
<view class="team-item" v-for="(item, index) in users" :key="index">
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
relations({
|
relations({
|
||||||
larer: 1
|
larer: 1
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log(res)
|
||||||
let { users, count } = res;
|
let { users, count } = res;
|
||||||
this.users = users.data
|
this.users = users.data
|
||||||
this.count = count
|
this.count = count
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { lists } from '@/apis/interfaces/order.js'
|
import { refunds } from '@/apis/interfaces/order.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -65,8 +65,8 @@
|
|||||||
methods:{
|
methods:{
|
||||||
// 获取列表
|
// 获取列表
|
||||||
getList(){
|
getList(){
|
||||||
lists({
|
refunds({
|
||||||
status: 11
|
status: ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let { data } = res;
|
let { data } = res;
|
||||||
this.orders = data
|
this.orders = data
|
||||||
|
|||||||
BIN
static/logo.png
Normal file
BIN
static/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 188 KiB |
Reference in New Issue
Block a user