更新代码
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
</view>
|
||||
|
||||
</uni-forms>
|
||||
|
||||
|
||||
<view class="agreement-policy">
|
||||
<JeepayCheckbox v-model:checked="vdata.isSelectedAgreement" />
|
||||
同意
|
||||
@@ -117,8 +117,8 @@
|
||||
<text>与</text>
|
||||
<text class="policy" @click="toPrivacy">《隐私政策》</text>
|
||||
</view>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- <view class="agreement-policy">
|
||||
<JeepayCheckbox v-model:checked="vdata.isSelectedAgreement" />
|
||||
同意
|
||||
@@ -173,6 +173,7 @@
|
||||
import timer from '@/commons/utils/timer.js'
|
||||
import formUtil from '@/commons/utils/formUtil.js'
|
||||
import EnvChangeTips from './components/EnvChangeTips.vue'
|
||||
import dayjs from 'dayjs' //时间格式库
|
||||
import {
|
||||
getExtStoreId
|
||||
} from "@/commons/utils/versionManage.js"
|
||||
@@ -249,7 +250,7 @@
|
||||
})
|
||||
// #ifdef H5
|
||||
vdata.formData.username = '17792050546'
|
||||
vdata.formData.pwd = 'sy666888'
|
||||
vdata.formData.pwd = 'qwer1234'
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
// vdata.formData.username = '15699991111'
|
||||
@@ -258,11 +259,11 @@
|
||||
|
||||
function accountTypeChange(e) {
|
||||
// #ifdef H5
|
||||
if(e==1){
|
||||
if (e == 1) {
|
||||
vdata.formData.merchantName = '18049104914'
|
||||
vdata.formData.username = '13666666666'
|
||||
vdata.formData.pwd = '123456'
|
||||
}else{
|
||||
} else {
|
||||
vdata.formData.pwd = 'qwer1234'
|
||||
}
|
||||
// #endif
|
||||
@@ -301,6 +302,7 @@
|
||||
}
|
||||
|
||||
function loginFunc() {
|
||||
|
||||
// 表单验证
|
||||
formUtil.validate(loginFormRef.value).then(() => {
|
||||
if (!vdata.isSelectedAgreement) {
|
||||
@@ -375,11 +377,21 @@
|
||||
storageManage.shopId(loginBizData.shopId)
|
||||
storageManage.shopUserId(loginBizData.user.user.id)
|
||||
storageManage.userInfo(loginBizData)
|
||||
var time1 = new Date();
|
||||
var time2 = new Date(loginBizData.expireDate);
|
||||
let les = (time1.getTime() - time2.getTime()) / 86400000;
|
||||
uni.showToast({
|
||||
title: '店铺账号有限期至' + loginBizData.expireDate + ',店铺账号到期剩余' + Math.abs(les.toFixed(0)) + '天!',
|
||||
icon: 'none'
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
// 跳转到首页
|
||||
go.to("PAGES_INDEX", {
|
||||
isGetCid: true
|
||||
}, go.GO_TYPE_RELAUNCH)
|
||||
}, 1000)
|
||||
|
||||
// 跳转到首页
|
||||
go.to("PAGES_INDEX", {
|
||||
isGetCid: true
|
||||
}, go.GO_TYPE_RELAUNCH)
|
||||
}
|
||||
|
||||
// 点击发送验证码的函数
|
||||
|
||||
Reference in New Issue
Block a user