'更新了'

This commit is contained in:
3321822538@qq.com 2024-01-27 17:03:34 +08:00
parent d5d780218e
commit 0c4f396599
16 changed files with 445 additions and 300 deletions

10
App.vue
View File

@ -24,7 +24,7 @@
export default {
globalData: {
spread: 0, //广id
channelId:0,
channelId:0, //id
code: 0,
isLogin: false,
userInfo: {},
@ -116,13 +116,15 @@
case 1001: //
let value = this.$util.getUrlParams(decodeURIComponent(option.query.scene));
that.globalData.spread = value.spread?value.spread:'';
// that.globalData.channelId = value.channelId?value.channelId:'';
// id
that.globalData.channelId = value.channelId?value.channelId:'';
that.globalData = this.$util.formatMpQrCodeData(value);
break;
}
}
if (option.spread) that.globalData.spread = option.spread;
// if (option.channelId) that.globalData.channelId = option.channelId;
// id
if (option.channelId) that.globalData.channelId = option.channelId;
// #endif
//
uni.getSystemInfo({
@ -157,6 +159,8 @@
// code
uni.setStorageSync('snsapiCode', code);
let spread = that.globalData.spread ? that.globalData.spread : 0;
// id
let channelId = that.globalData.channelId ? that.globalData.channelId : 0;
Auth.auth(code, that.$Cache.get('SPREAD'))
.then(res => {
uni.setStorageSync('snRouter', decodeURIComponent(decodeURIComponent(option.query

View File

@ -382,7 +382,7 @@ export function spread(puid)
return request.get("user/bindSpread?spreadPid="+ puid);
}
/**
// * 静默绑定推广人@description
// * 静默绑定推广人
// * @param {Object} channelId
// */
export function channel(channelId)

View File

@ -83,10 +83,10 @@
})
},
jumpCon: function(id) {
let type = this.productType==0?'normal':'video'
// let type = this.productType==0?'normal':'video'
if (this.jump) {
uni.navigateTo({
url: `/pages/goods_details/index?id=${id}&type=${type}`
url: `/pages/goods_details/index?id=${id}&type=${'normal'}`
})
}
}

View File

@ -2,13 +2,15 @@
// let domain = 'http://117.50.163.143:20410'
// let domain = 'http://117.50.215.20:20410'
let domain = 'http://192.168.2.14:8081'
// let domain = 'http://106.75.49.247:20410'
module.exports = {
// 请求域名 格式: https://您的域名
// #ifdef MP || APP-PLUS
// HTTP_REQUEST_URL:'',
HTTP_REQUEST_URL: domain,
// H5商城地址
// HTTP_H5_URL: 'http://117.50.215.20:20410',
// HTTP_H5_URL: 'http://106.75.49.247:20410',
HTTP_H5_URL: 'http://192.168.2.14:8081',
// #endif
// #ifdef H5

View File

@ -219,7 +219,8 @@
"async" : {
"timeout" : 200000
},
"title" : "先享后付"
"title" : "先享后付",
"template" : "template.html"
},
"plus" : {
"statusbar" : {

View File

@ -494,6 +494,8 @@
// id
if(options.spread) app.globalData.spread = options.spread;
// id
// if(options.channelId) app.globalData.channelId = options.channelId;
var pages = getCurrentPages();
if (pages.length <= 1) {
@ -509,7 +511,7 @@
this.id = app.globalData.id
}else{
this.id = options.id;
}
}
}
options.startBargainUid == 'undefined' ? that.startBargainUid = 0 : that.startBargainUid = Number(options
.startBargainUid);

View File

@ -272,13 +272,13 @@
} from '@/libs/login.js';
import { silenceBindingSpread } from "@/utils";
import { spread } from "@/api/user";
export default {
data() {
return {
showSkeleton: true, //
isNodes: 0, //,
bgColor: {
'bgColor': '#333333',
export default{
data() {
return{
showSkeleton: true, //
isNodes: 0, //,
bgColor:{
'bgColor': '#333333',
'Color': '#fff',
'isDay': true,
'width': '44rpx',

View File

@ -393,7 +393,7 @@
let that = this;
that.cartId = item.id;
that.product_id = item.productId;
getProductDetail(item.productId).then(res => {
getProductDetail(item.productId).then(res => {
uni.hideLoading();
that.attr.cartAttr = true;
let productInfo = res.data.productInfo;
@ -504,8 +504,7 @@
}
},
attrVal(val) {
this.$set(this.attr.productAttr[val.indexw], 'index', this.attr.productAttr[val.indexw].attrValues[val
.indexn]);
this.$set(this.attr.productAttr[val.indexw], 'index', this.attr.productAttr[val.indexw].attrValues[val.indexn]);
},
/**
* 购物车数量加和数量减
@ -966,8 +965,7 @@
link: location.href,
imgUrl: data.img
};
that.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],
configAppMessage);
that.$wechat.wechatEvevt(["updateAppMessageShareData", "updateTimelineShareData"],configAppMessage);
}
},
returns: function() {

View File

@ -3,10 +3,10 @@
<view class='order-details'>
<!-- 给header上与data上加on为退款订单-->
<view class='header bg_color' :class='isGoodsReturn ? "on":""'>
<view class='picTxt acea-row row-middle'>
<view class='pictrue' v-if="isGoodsReturn==false">
<view class='picTxt acea-row row-middle' id="boxss">
<!-- <view class='pictrue' v-if="isGoodsReturn==false">
<image :src="orderInfo.statusPic"></image>
</view>
</view> -->
<view class='data' :class='isGoodsReturn ? "on":""'>
<view class='state'>{{orderInfo.orderStatusMsg}}</view>
<view v-if="orderInfo.refundReasonTime !== null">{{orderInfo.refundReasonTime}}</view>
@ -107,8 +107,10 @@
<view>{{orderInfo.systemStore?orderInfo.systemStore.address + orderInfo.systemStore.detailedAddress:''}}</view>
</view>
<orderGoods :evaluate='evaluate' :productType="orderInfo.type" :orderId="order_id" :ids="id" :uniId="uniId" :cartInfo="cartInfo"
:jump="true"></orderGoods>
<!-- 商品信息 -->
<orderGoods :evaluate='evaluate' :productType="orderInfo.type" :orderId="order_id" :ids="id" :uniId="uniId" :cartInfo="cartInfo" :jump="true">
</orderGoods>
<!-- #ifndef MP -->
<div class="goodCall borRadius14" @click="onClickService">
<span class="iconfont icon-kefu"></span><span>联系客服</span>
@ -420,7 +422,8 @@
if(this.$wechat.isWeixin()) this.payMode.pop();
// #endif
},
methods: {
methods: {
//
lijiqys(id, ids) {
this.$Cache.set('qyids', id)
@ -553,8 +556,7 @@
if (res.data.refundStatus != 0) {
that.isGoodsReturn = true;
};
if (that.orderInfo.shippingType == 2 && that.orderInfo.paid) that.markCode(res.data
.verifyCode);
if (that.orderInfo.shippingType == 2 && that.orderInfo.paid) that.markCode(res.data.verifyCode);
if(that.orderInfo.refundStatus>0){
uni.setNavigationBarColor({
frontColor: '#fff',
@ -778,7 +780,12 @@
transform: translateX(-50%);
}
#boxss{
display: block;
text-align: center;
padding-top: 50rpx;
box-sizing: border-box;
}
.qs-btn {
width: auto;

View File

@ -29,7 +29,7 @@
<view class="icon">
<image src="/static/images/edit.png" mode=""></image>
</view>
<view class="real_name">
<view class="real_name" @click="btnreal">
{{realname}}
</view>
</view>
@ -247,7 +247,8 @@
telephone_service_switch: '0'
}, //
userInfo: {},
copyImage: '' //
copyImage: '', //
identification:{}
}
},
onLoad() {
@ -315,6 +316,7 @@
// #endif
},
methods: {
//
getidentityq:function(){
let data = {
@ -323,10 +325,16 @@
getidentity(data).then(res=>{
if (res.message == '操作成功') {
this.realname = '已实名'
this.identification = res.data
}
})
},
//
btnreal(){
uni.navigateTo({
url: '/pages/users/order_improves/index?identification=' + JSON.stringify(this.identification),
})
},
//token,truefalse
getTokenIsExist() {
tokenIsExistApi().then(res => {
@ -555,6 +563,9 @@
border-radius: 20rpx;
font-size: 12px;
color: #fff;
position: absolute;
top: -10rpx;
right: 0;
}
page,
body {
@ -672,7 +683,7 @@
align-items: center;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.6);
position: relative;
image {
width: 22rpx;
height: 23rpx;
@ -698,6 +709,7 @@
.num {
font-size: 42rpx;
font-weight: bold;
}
.txt {

View File

@ -29,16 +29,16 @@
首期租金
</view>
</view>
<view class="zongzu">
<!-- <view class="zongzu">
<text>{{sum}}</text>
<view class="wz">
总租金
</view>
</view>
</view> -->
<view class="edu">
<text>{{sum}}</text>
<view class="wz">
销售金额
金额
</view>
</view>
</view>
@ -48,10 +48,10 @@
<text class="title">分期方式</text> <text class="gapwz">间隔{{fenqiobj.cycle}}</text>
</view>
<view class="qishu">
<text>期数</text> <text></text> <text>每期租金</text>
<text>期数</text> <text>还款日</text> <text>还款金额</text>
</view>
<view class="date" style="margin-top: 40rpx;" v-for="(item,index) in installmentlist" :key="index">
<text>{{item.installmentNumber}}</text> <text>间隔{{fenqiobj.cycle}}</text> <text> {{item.repaymentAmount}}</text>
<text>{{item.installmentNumber}}/{{installmentlist.length}}</text> <text>日期{{item.repaymentDeadlineStr}}</text> <text>{{item.repaymentAmount}}</text>
</view>
</view>
@ -70,7 +70,7 @@
cart:[],
hireshou: '', //
sum:0,
num:0, //
num:0, //
fenqiobj:{}
}
},
@ -78,9 +78,9 @@
this.fenqiobj = JSON.parse((option.fenqiobj))
this.cart = JSON.parse(option.cart)
this.installmentlist = JSON.parse(option.list)
console.log(this.installmentlist)
this.hireshou = this.installmentlist[0].repaymentAmount
},
methods: {
//
@ -232,7 +232,9 @@
height: 140rpx;
padding-top: 36rpx;
box-sizing: border-box;
position: fixed;
bottom: 0;
left: 0;
a {
text-decoration: none;
color: #fff;

View File

@ -67,13 +67,13 @@
<text>填写资料 加速审核</text>
</view>
<view class="rt">
<uni-view data-v-064d693c="" class="iconfont icon-jiantou"></uni-view>
<uni-view data-v-064d693c="" style="font-size: 19px;" class="iconfont icon-jiantou"></uni-view>
</view>
</view>
<!-- 邮箱 -->
<view class="emils">
<!-- <view class="emils">
<text>邮箱</text> <input type="text" v-model="emitext" placeholder="请输入您的个人邮箱(必填)" />
</view>
</view> -->
<orderGoods :cartInfo="cartInfo" :orderProNum="orderProNum"></orderGoods>
@ -96,7 +96,7 @@
</view>
<checkbox-group @change="ChangeIntegral">
<checkbox :checked='useIntegral ? true : false'
:disabled="orderInfoVo.userIntegral==0 && !useIntegral" />
:disabled="orderInfoVo.userIntegral==0 && !useIntegral" @click="btnjf" />
</checkbox-group>
</view>
</view>
@ -144,7 +144,7 @@
value="" name="mark" placeholder='请添加备注150字以内'></textarea>
</view>
</view>
<view class='wrapper borRadius14'>
<view class='wrapper borRadius14' v-if="orderInfoVo.payFee != 0">
<view class='item'>
<a @click="btnment">
<view class="planjh">
@ -402,7 +402,9 @@
installmentobj: {},
downPaymentAmount: 0,
totalAmount: 0,
identification:{} //
identification:{}, //
zongmey:'',
};
},
@ -454,15 +456,14 @@
// this.installmentid = JSON.parse(localStorage.getItem('installments')).id
// this.fenqiname = JSON.parse(localStorage.getItem('installments')).name
this.installmentobj = JSON.parse(this.$Cache.get('installments'))
this.getinstallmentpost()
this.getidentityq()
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function() {
// console.log(this.$Cache.get('improvescode'))
this.getidentityq()
let _this = this
// wx.getLaunchOptionsSync
this.textareaStatus = true;
@ -479,12 +480,11 @@
},
methods: {
//
getinstallmentpost: function() {
let data = {
preOrderNo: this.preOrderNo,
uid: this.$store.getters.uid,
payFee: this.zongmey,
// uid: this.$store.getters.uid,
comboId: this.installmentobj.id
}
getinstallment(data).then(res => {
@ -496,6 +496,13 @@
this.totalAmount = parseFloat(this.totalAmount).toFixed(2)
})
},
//
btnjf(){
// this.zongmey = this.orderInfoVo.payFee
this.getinstallmentpost()
},
//
btnment() {
uni.navigateTo({
@ -517,6 +524,11 @@
getloadPreOrder: function() {
loadPreOrderApi(this.preOrderNo).then(res => {
let orderInfoVo = res.data.orderInfoVo;
this.zongmey = orderInfoVo.payFee
// console.log(this.zongmey,11)
this.getinstallmentpost()
this.orderInfoVo = orderInfoVo;
this.shopmey = this.orderInfoVo.proTotalFee //
if (orderInfoVo.addressId && this.addressChangeId === 0) {
@ -596,7 +608,10 @@
this.orderInfoVo.useIntegral = data.useIntegral;
this.orderInfoVo.usedIntegral = data.usedIntegral;
this.orderInfoVo.surplusIntegral = data.surplusIntegral;
//this.orderInfoVo.userIntegral = data.userIntegral;
// console.log(this.orderInfoVo.payFee,11)
this.zongmey = this.orderInfoVo.payFee
this.getinstallmentpost()
}).catch(err => {
return this.$util.Tips({
title: err
@ -712,6 +727,12 @@
that.car();
}, 500);
},
//
btnyhq(){
this.zongmey = this.orderInfoVo.payFee
console.log(111)
this.getinstallmentpost()
},
couponTap: function() {
this.coupon.coupon = true;
if (!this.coupon.list.length) this.getCouponList();
@ -1074,9 +1095,6 @@
//
btncheaced() {
// uni.navigateTo({
// url:'/pages/users/signin/index'
// })
if (this.checkeds) {
this.checkeds = false
} else {
@ -1102,15 +1120,7 @@
let that = this,
data = {};
var aqq = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
if (this.emitext == '') {
return this.$util.Tips({
title: '邮箱不能为空'
});
} else if (!aqq.test(this.emitext)) {
return this.$util.Tips({
title: '请填写正确的邮箱'
});
} else if (this.checkeds == false) {
if (this.checkeds == false) {
return this.$util.Tips({
title: '请勾选并同意政策'
});
@ -1118,7 +1128,11 @@
return this.$util.Tips({
title: '请填写身份信息'
});
} else {
} else if(!that.addressId && !that.shippingType){
return that.$util.Tips({
title: '请选择收货地址'
});
}else{
data = {
realName: that.contacts,
phone: that.contactsTel,
@ -1150,17 +1164,18 @@
// #ifndef MP
that.payment(data);
// #endif
//
let now = new Date();
let year = now.getFullYear(); //
let month = now.getMonth() + 1; // 01
let day = now.getDate(); //
let shi = now.toLocaleTimeString(); //
this.timeString = year + '-' + month + '-' + day + ' ' + shi
this.shopobj.shopmey = this.shopmey
this.shopobj.shopmey = this.orderInfoVo.payFee
this.shopobj.date = this.timeString
this.shopobj.orderNo = this.preOrderNo
console.log(this.shopobj)
uni.navigateTo({
url: '/pages/users/pay_success/index?shopobj=' + JSON.stringify(this.shopobj)
})
@ -1587,7 +1602,7 @@
.identity {
width: 100%;
display: flex;
padding: 0 13px;
padding: 0 26rpx;
border-bottom: 1px solid #F5F5F5;
height: 120rpx;
// line-height: 120rpx;

View File

@ -7,16 +7,16 @@
<text>真实姓名</text> <input type="text" v-model="realName" @blur="realNameinp" placeholder="请输入真实姓名" />
</view>
<view class="name">
<text>身份证号</text> <input type="text" v-model="idcard" @blur="idcardinp" placeholder="请输入身份证号" />
<text>身份证号</text> <input type="text" v-model="idcard" placeholder="请输入身份证号" />
</view>
<view class="name">
<text>手机号码</text> <input type="text" v-model="tel" @blur="telinp" placeholder="133****3635" />
<text>手机号码</text> <input type="text" v-model="tel" @blur="telinp" placeholder="请输入手机号" />
</view>
</view>
<!-- 文字提示 -->
<view class="modifytext">
<text>请上传本人真实有效的身份证原件</text> <text>未带身份证原件</text>
<text>请上传本人真实有效的身份证原件</text> <text>上传身份证原件</text>
</view>
<!-- 上传身份件 -->
<view class="identity">
@ -89,7 +89,7 @@
</a>
</view>
</view>
<!-- 4 -->
<view class="emergency_contact" v-if="flaglxrs">
<view class="name" @click="openPopupadd('bottomadd')">
@ -105,15 +105,15 @@
<text>联系人手机</text> <input type="text" v-model="teladds" @blur="telinpadds" placeholder="请输入联系人手机" />
</view>
<view class="addname" v-if="flaga">
<a href="javascript:;" @click="btnadds">
<view class="add">+</view>
<text>继续添加(有助于提高审核成功率)</text>
</a>
<a href="javascript:;" @click="btnadds">
<view class="add">+</view>
<text>继续添加(有助于提高审核成功率)</text>
</a>
</view>
</view>
</view>
<!-- 常用邮箱 -->
<view class="cye_mail">
<view class="email">
@ -122,12 +122,12 @@
<text class="bz">为保障您的权益,物流信息将发送至您的邮箱</text>
</view>
<!-- 常用手机号 -->
<view class="commontel">
<!-- <view class="commontel">
<view class="email">
<text>常用手机号</text> <input type="text" v-model="telthre" @blur="telinpthre" placeholder="请输入常用手机号(必填)" />
</view>
<text class="bz">为尽快完成申核发货请输入能联系到您的常用手机号</text>
</view>
</view> -->
<!-- 确定 -->
<a href="javascript:;" class="btntrue" @click="btnclick">确定</a>
@ -174,69 +174,69 @@
telone: '',
teltwo: '',
telthre: '',
lxrarr: ['父母', '子女', '兄弟', '姐妹','亲戚','朋友','配偶','同事'],
lxrarr: ['父母', '子女', '兄弟', '姐妹', '亲戚', '朋友', '配偶', '同事'],
lxrmoren: '请选择您与联系人的关系 ',
lxrmorens: '请选择您与联系人的关系 ',
emitext: '', //
shenfenpic: '', //base64
shenfenpics: '', //base64
flaglxr:false,
flaglxrs:false,
flags:true,
lxrmorenadd:'请选择您与联系人的关系 ',
lxrmorenadds:'请选择您与联系人的关系',
teladd:'',
teladds:'',
realNameadd:'',
realNameadds:'',
flaga:false,
personflag:false,
personflaga:false,
personflagb:false,
identification:{},
lxindex:'',//
lxindexs:'',
flaglxr: false,
flaglxrs: false,
flags: true,
lxrmorenadd: '请选择您与联系人的关系 ',
lxrmorenadds: '请选择您与联系人的关系',
teladd: '',
teladds: '',
realNameadd: '',
realNameadds: '',
flaga: false,
personflag: false,
personflaga: false,
personflagb: false,
identification: {},
lxindex: '', //
lxindexs: '',
}
},
onLoad(option) {
//
if(JSON.parse(option.identification)){
if (JSON.parse(option.identification)) {
this.identification = JSON.parse(option.identification)
this.realName = this.identification.realName
this.idcard = this.identification.idCardNumber
this.idcard = this.identification.idCardNumber
this.tel = this.identification.commonPhoneNumber
this.upLoadPositiveImg = this.identification.idCardBackPhoto.slice(21)
this.upLoadReverseImg = this.identification.idCardFrontPhoto
this.upLoadReverseImg = this.identification.idCardBackPhoto.slice(21)
this.upLoadPositiveImg = this.identification.idCardFrontPhoto.slice(21)
this.emitext = this.identification.email
this.telthre = this.identification.phoneNumber
// this.telthre = this.identification.phoneNumber
this.lxindex = this.identification.userEmergencyContactsList[0].relationship
this.realNameone = this.identification.userEmergencyContactsList[0].contactName
this.telone = this.identification.userEmergencyContactsList[0].phoneNumber
this.lxindexs = this.identification.userEmergencyContactsList[1].relationship
this.realNametwo = this.identification.userEmergencyContactsList[1].contactName
this.teltwo = this.identification.userEmergencyContactsList[1].phoneNumber
if(this.lxindex == 0 || this.lxindexs == 0){
if (this.lxindex == 0 || this.lxindexs == 0) {
this.lxrmoren = '父母'
this.lxrmorens = '父母'
}else if(this.lxindex == 1 || this.lxindexs == 1){
} else if (this.lxindex == 1 || this.lxindexs == 1) {
this.lxrmoren = '子女'
this.lxrmorens = '子女'
}else if(this.lxindex == 2 || this.lxindexs == 2){
} else if (this.lxindex == 2 || this.lxindexs == 2) {
this.lxrmoren = '兄弟'
this.lxrmorens = '兄弟'
}else if(this.lxindex == 3 || this.lxindexs == 3){
} else if (this.lxindex == 3 || this.lxindexs == 3) {
this.lxrmoren = '姐妹'
this.lxrmorens = '姐妹'
}else if(this.lxindex == 4 || this.lxindexs == 4){
} else if (this.lxindex == 4 || this.lxindexs == 4) {
this.lxrmoren = '亲戚'
this.lxrmorens = '亲戚'
}else if(this.lxindex == 5 || this.lxindexs == 5){
} else if (this.lxindex == 5 || this.lxindexs == 5) {
this.lxrmoren = '朋友'
this.lxrmorens = '朋友'
}else if(this.lxindex == 6 || this.lxindexs == 6){
} else if (this.lxindex == 6 || this.lxindexs == 6) {
this.lxrmoren = '配偶'
this.lxrmorens = '配偶'
}else if(this.lxindex == 7 || this.lxindexs == 7){
} else if (this.lxindex == 7 || this.lxindexs == 7) {
this.lxrmoren = '同事'
this.lxrmorens = '同事'
}
@ -291,21 +291,21 @@
});
}
},
telinpadd(){
telinpadd() {
let photopatten = /^1[3456789]\d{9}$/
if (this.teladd == '') {
return this.$util.Tips({
title: '手机号不能为空'
});
} else if (photopatten.test(this.teladd)) {
} else {
return this.$util.Tips({
title: '请填写正确的手机号'
});
}
},
realNameinpadd(){
realNameinpadd() {
let that = this
let namepatten = /^[\u4e00-\u9fa5a-zA-Z\s\-]+$/
if (this.realNameadd == '') {
@ -313,7 +313,7 @@
title: '姓名不能为空'
});
} else if (namepatten.test(this.realNameadd)) {
} else {
return that.$util.Tips({
title: '请填写正确的姓名'
@ -321,7 +321,7 @@
}
},
// 4
realNameinpadds(){
realNameinpadds() {
let that = this
let namepatten = /^[\u4e00-\u9fa5a-zA-Z\s\-]+$/
if (this.realNameadds == '') {
@ -329,21 +329,21 @@
title: '姓名不能为空'
});
} else if (namepatten.test(this.realNameadds)) {
} else {
return that.$util.Tips({
title: '请填写正确的姓名'
});
}
},
telinpadds(){
telinpadds() {
let photopatten = /^1[3456789]\d{9}$/
if (this.teladds == '') {
return this.$util.Tips({
title: '手机号不能为空'
});
} else if (photopatten.test(this.teladds)) {
} else {
return this.$util.Tips({
title: '请填写正确的手机号'
@ -351,20 +351,20 @@
}
},
//
idcardinp() {
let result = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|X)$/
if (this.idcard == '') {
return this.$util.Tips({
title: '身份证不能为空'
});
} else if (result.test(this.idcard)) {
// idcardinp() {
// let result = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|X)$/
// if (this.idcard == '') {
// return this.$util.Tips({
// title: ''
// });
// } else if (result.test(this.idcard)) {
} else {
return this.$util.Tips({
title: '请填写正确的身份证'
});
}
},
// } else {
// return this.$util.Tips({
// title: ''
// });
// }
// },
//
telinp() {
let photopatten = /^1[3456789]\d{9}$/
@ -408,20 +408,20 @@
});
}
},
telinpthre() {
let photopatten = /^1[3456789]\d{9}$/
if (this.telthre == '') {
return this.$util.Tips({
title: '常用手机号不能为空'
});
} else if (photopatten.test(this.telthre)) {
// telinpthre() {
// let photopatten = /^1[3456789]\d{9}$/
// if (this.telthre == '') {
// return this.$util.Tips({
// title: ''
// });
// } else if (photopatten.test(this.telthre)) {
} else {
return this.$util.Tips({
title: '请填写正确的手机号'
});
}
},
// } else {
// return this.$util.Tips({
// title: ''
// });
// }
// },
//
openPopup(e) {
this.$refs[e].open();
@ -431,50 +431,44 @@
this.$refs[e].open();
this.personflaga = true
},
openPopupadd(e){
openPopupadd(e) {
this.$refs[e].open();
this.personflagb = true
},
//
btnlxr(val,index) {
btnlxr(val, index) {
this.lxindex = index
this.lxrmoren = val
if(this.lxrmoren == this.lxrmorens ||this.lxrmoren == this.lxrmorenadd || this.lxrmorens == this.lxrmorenadd){
return this.$util.Tips({
title: '紧急联系人关系重复'
});
}else{
this.personflag = false
}
this.personflag = false
},
btnlxrs(val,index) {
btnlxrs(val, index) {
this.lxindexs = index
this.lxrmorens = val
this.personflaga = false
},
btnlxradd(val){
btnlxradd(val) {
this.lxrmorenadd = val
this.personflagb = false
},
//
emitextinp() {
let aqq = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
if (this.emitext == '') {
return this.$util.Tips({
title: '常用邮箱不能为空'
});
} else if (!aqq.test(this.emitext)) {
return this.$util.Tips({
title: '请填写正确的邮箱'
});
}
},
// emitextinp() {
// let aqq = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
// if (this.emitext == '') {
// return this.$util.Tips({
// title: ''
// });
// } else if (!aqq.test(this.emitext)) {
// return this.$util.Tips({
// title: ''
// });
// }
// },
//
btnclick() {
let namepatten = /^[\u4e00-\u9fa5a-zA-Z\s\-]+$/ //
let result = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])\d{3}([0-9]|X)$/ //
let result = /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dX]$/ //
let photopatten = /^1[3456789]\d{9}$/ //
let aqq = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/ //
if (this.realName == '') {
@ -489,10 +483,6 @@
return this.$util.Tips({
title: '身份证不能为空'
})
} else if (!result.test(this.idcard)) {
return this.$util.Tips({
title: '请填写正确的身份证'
});
} else if (this.tel == '') {
return this.$util.Tips({
title: '手机号不能为空'
@ -556,69 +546,109 @@
return this.$util.Tips({
title: '请填写正确的邮箱'
});
} else if (this.telthre == '') {
return this.$util.Tips({
title: '常用手机号不能为空'
});
} else if (!photopatten.test(this.telthre)) {
return this.$util.Tips({
title: '请填写正确的手机号'
});
}else if(this.lxrmoren == '' || this.lxrmorens == ''){
}else if (this.lxrmoren == '' || this.lxrmorens == '') {
return this.$util.Tips({
title: '紧急联系人关系不能为空'
})
}else{
this.getList()
} else if (this.idcard == '') {
return this.$util.Tips({
title: '申请成功',
title: '身份证不能为空'
});
} else if (!result.test(this.idcard)) {
return this.$util.Tips({
title: '请填写正确的身份证'
});
}else if(this.flaglxr == true){
if(this.realNameadd == ''){
return this.$util.Tips({
title: '紧急联系人姓名不能为空'
});
}else if(!namepatten.test(this.realNameadd)){
return this.$util.Tips({
title: '请输入紧急联系人正确姓名'
});
}else if(this.teladd == ''){
return this.$util.Tips({
title: '紧急联系人手机号不能为空'
});
}else if(!photopatten.test(this.teladd)){
return this.$util.Tips({
title: '请输入正确紧急联系人手机号'
});
}else if(this.lxrmorenadd == '请选择您与联系人的关系 '){
return this.$util.Tips({
title: '请选择紧急联系人与您的关系'
});
}else{
let data = {
realName: this.realName,
idCardNumber: this.idcard,
phoneNumber: this.tel,
idCardFrontPhoto: this.upLoadPositiveImg,
idCardBackPhoto: this.upLoadReverseImg,
email: this.emitext,
commonPhoneNumber: this.tel,
uid: this.$store.getters.uid,
userEmergencyContactsList: [{
relationship: this.lxindex, //
contactName: this.realNameone, //
phoneNumber: this.telone, //
},
{
relationship: this.lxindexs, //
contactName: this.realNametwo, //
phoneNumber: this.teltwo, //
}
]
}
getInformation(data).then(res => {
let data = res.data
uni.navigateBack()
})
}
}else{
//
let data = {
realName: this.realName,
idCardNumber: this.idcard,
phoneNumber: this.tel,
idCardFrontPhoto: this.upLoadPositiveImg,
idCardBackPhoto: this.upLoadReverseImg,
email: this.emitext,
commonPhoneNumber: this.tel,
uid: this.$store.getters.uid,
userEmergencyContactsList: [{
relationship: this.lxindex, //
contactName: this.realNameone, //
phoneNumber: this.telone, //
},
{
relationship: this.lxindexs, //
contactName: this.realNametwo, //
phoneNumber: this.teltwo, //
}
]
}
getInformation(data).then(res => {
let data = res.data
uni.navigateBack()
})
}
},
//
getList: function() {
let data = {
realName: this.realName,
idCardNumber: this.idcard,
phoneNumber: this.tel,
idCardFrontPhoto: this.upLoadPositiveImg,
idCardBackPhoto: this.upLoadReverseImg,
email: this.emitext,
commonPhoneNumber: this.telthre,
uid: this.$store.getters.uid,
userEmergencyContactsList:[
{
relationship:this.lxindex ,//
contactName: this.realNameone,//
phoneNumber: this.telone,//
},
{
relationship:this.lxindexs ,//
contactName: this.realNametwo,//
phoneNumber: this.teltwo,//
}
]
}
getInformation(data).then(res => {
let data = res.data;
//
// this.$Cache.set('improvescode', res.message);
uni.navigateBack()
})
},
//
btnadd() {
this.flaglxr = true
this.flags = false
this.flaga = true
this.flaglxr = true
this.flags = false
this.flaga = true
},
//
btnadds() {
this.flaga = false
this.flaglxrs = true
this.flaga = false
this.flaglxrs = true
},
@ -698,6 +728,7 @@
padding: 20rpx 30rpx !important;
box-sizing: border-box;
color: gray;
view:hover {
background-color: aqua;
color: #000;
@ -854,7 +885,7 @@
border-bottom: 1px solid #ccc;
.jinj {
width:320rpx;
width: 320rpx;
}
input {

View File

@ -35,7 +35,7 @@
</view>
<view class='item' :class='orderStatus==8 ? "on": ""' @click="statusClick(8)">
<view>使用中</view>
<view class='num'>{{orderData.evaluatedCount || 0}}</view>
<view class='num'>{{orderData.inUseCount || 0}}</view>
</view>
<view class='item' :class='orderStatus==4 ? "on": ""' @click="statusClick(4)">
<view>已完成</view>

View File

@ -3,7 +3,7 @@
<view class="successbox">
<image src="../../../static/images/success.png" mode=""></image>
<view class="title">
申请成功请等待审核
申请成功请等待审核
</view>
<view class="content">
<view class="bd">
@ -22,6 +22,12 @@
<navigator url="../../../pages/users/order_list/index" class="ckdj">查看订单</navigator>
<navigator url="../../../pages/index/index" open-type="switchTab" class="fhsy">返回首页</navigator>
</view>
<!-- 加载logo -->
<view class="logobox" v-show="logoflag">
<image class="logoicon" :src="logoicon"></image>
<text>正在生成订单中请稍等...</text>
</view>
</view>
</template>
@ -29,86 +35,149 @@
export default {
data() {
return {
shopobj:{},
ordermo:''
shopobj: {},
ordermo: '',
logoflag:true,
logoicon: 'https://www.bing.com/th/id/OGC.2a900b3c36d322151e95758438f7969c?pid=1.7&rurl=http%3a%2f%2fimg.zcool.cn%2fcommunity%2f014d8456df99c332f875520fefa07d.gif&ehk=UeVN2KesER9OKAkq%2fTigaUKsvSNK%2bndZDjePMEecfmQ%3d',
}
},
onLoad(option) {
this.shopobj = JSON.parse(option.shopobj)
this.timer = setInterval(() => {
this.ordermo = this.$Cache.get('ordernobh')
this.logoflag = false
console.log(this.ordermo)
}, 3000); // 1
},
onShow() {
this.ordermo = this.$Cache.get('ordernobh')
},
onUnload() {
//
clearTimeout(this.timer);
},
onBeforeUnload() {
//
clearInterval(this.timer);
},
created() {
},
methods: {
},
mounted() {
}
}
</script>
<style lang="less">
.Pay_success{
width: 100%;
margin-top: 200rpx;
background-color: #fff;
padding-bottom: 80rpx;
.successbox{
position: relative;
width: 100%;
box-sizing: border-box;
padding: 0 40rpx;
image{
position: absolute;
top: -65rpx;
left: 50%;
transform: translateX(-50%);
width: 138rpx;
height: 138rpx;
}
.title{
width: 100%;
text-align: center;
padding-top: 100rpx;
box-sizing: border-box;
font-weight: 700;
line-height: 120rpx;
border-bottom: 1px solid #ccc;
}
.content{
.bd{
display: flex;
width: 100%;
justify-content: space-between;
margin-top: 20rpx;
text{
color: #666;
}
}
}
.ckdj{
width: 100%;
height: 84rpx;
border: 1px solid #ccc;
border-radius: 50rpx;
line-height: 84rpx;
text-align: center;
margin-top: 50rpx;
background-color: #42ca4d;
color: #fff;
}
.fhsy{
width: 100%;
height: 84rpx;
border: 1px solid #ccc;
border-radius: 50rpx;
line-height: 84rpx;
text-align: center;
margin-top: 50rpx;
}
}
}
page {
position: relative;
}
.logobox {
width: 100%;
height: 100vh;
background-color: red;
position: fixed;
top: 0;
left: 0;
opacity: 1;
padding-top: 30%;
box-sizing: border-box;
background-color:#000;
text-align: center;
z-index: 1;
}
.logobox text{
display: block;
color: #fff;
font-size: 14px;
z-index: 999;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%);
}
.logoicon {
width: 100%;
height: 500rpx;
z-index: 99;
position: absolute;
top: 25%;
left: 50%;
transform: translateX(-50%);
}
.Pay_success {
width: 100%;
margin-top: 200rpx;
background-color: #fff;
padding-bottom: 80rpx;
.successbox {
position: relative;
width: 100%;
box-sizing: border-box;
padding: 0 40rpx;
image {
position: absolute;
top: -65rpx;
left: 50%;
transform: translateX(-50%);
width: 138rpx;
height: 138rpx;
}
.title {
width: 100%;
text-align: center;
padding-top: 100rpx;
box-sizing: border-box;
font-weight: 700;
line-height: 120rpx;
border-bottom: 1px solid #ccc;
}
.content {
.bd {
display: flex;
width: 100%;
justify-content: space-between;
margin-top: 20rpx;
text {
color: #666;
}
}
}
.ckdj {
width: 100%;
height: 84rpx;
border: 1px solid #ccc;
border-radius: 50rpx;
line-height: 84rpx;
text-align: center;
margin-top: 50rpx;
background-color: #42ca4d;
color: #fff;
}
.fhsy {
width: 100%;
height: 84rpx;
border: 1px solid #ccc;
border-radius: 50rpx;
line-height: 84rpx;
text-align: center;
margin-top: 50rpx;
}
}
}
</style>

View File

@ -4,9 +4,11 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<title>CRMEB</title>
<title>益瑞宝</title>
<meta name="Copyright" content="helang">
<!-- <link rel="shortcut icon" type="image/png" href="/uniapp-extend/static/logo.png"> -->
<link rel="shortcut icon" type="image/png" href="/static/images/yilogo.png">
<meta name="keywords" content="CRMEB">
<meta name="description" content="CRMEB">
<style type="text/css">