mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 04:06:44 +08:00
[fix] 修改 商品商城->VIP专区, 分享会获取上一次的分享时保存的账号密码
This commit is contained in:
@@ -27,3 +27,12 @@ export function saveShareTrack(data) {
|
|||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取账号密码以用于回显
|
||||||
|
export function getPassword(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/customer/shop/getPassword', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export default [
|
|||||||
name: 'StoreList',
|
name: 'StoreList',
|
||||||
component: StoreList,
|
component: StoreList,
|
||||||
meta: {
|
meta: {
|
||||||
title: '商品商城',
|
title: 'VIP专区',
|
||||||
index: 1
|
index: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="login-msg-container">
|
<div class="login-msg-container">
|
||||||
<div class="p5 pb0">
|
<div class="p5 pb0">
|
||||||
<van-field v-model="loginInfo.aname" required label="登录账号:" v-validate="'required'" name="登录账号" placeholder="请输入" clearable />
|
<van-field v-model="loginInfo.aname" required label="双钱登陆账号:" v-validate="'required'" name="登录账号" placeholder="请输入" clearable />
|
||||||
<van-field v-model="loginInfo.password" required label="登录密码:" v-validate="'required'" name="登录密码" placeholder="请输入" clearable />
|
<van-field v-model="loginInfo.password" required label="双钱登陆密码:" v-validate="'required'" name="登录密码" placeholder="请输入" clearable />
|
||||||
</div>
|
</div>
|
||||||
<van-button type="danger" class="bottom-btn" @click="nextStep" v-no-more-click="1000">确认并转发</van-button>
|
<van-button type="danger" class="bottom-btn" @click="nextStep" v-no-more-click="1000">确认并转发</van-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { Field } from 'vant'
|
import { Field } from 'vant'
|
||||||
import { saveShareTrack } from '@/api/ebiz/product-store/product-store'
|
import { saveShareTrack, getPassword } from '@/api/ebiz/product-store/product-store'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'LoginMsg',
|
name: 'LoginMsg',
|
||||||
@@ -34,6 +34,14 @@ export default {
|
|||||||
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
document.getElementsByTagName('body')[0].classList.add('bg-white')
|
||||||
this.mallId = this.$route.query.mallId
|
this.mallId = this.$route.query.mallId
|
||||||
this.name = this.$route.query.name
|
this.name = this.$route.query.name
|
||||||
|
getPassword({
|
||||||
|
mallId: this.mallId
|
||||||
|
}).then(res => {
|
||||||
|
if(res.result == '0'){
|
||||||
|
this.loginInfo.aname = res.content.userName ? res.content.userName : ''
|
||||||
|
this.loginInfo.password = res.content.passWord ? res.content.passWord : ''
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
document.getElementsByTagName('body')[0].classList.remove('bg-white')
|
document.getElementsByTagName('body')[0].classList.remove('bg-white')
|
||||||
@@ -78,7 +86,9 @@ export default {
|
|||||||
//分享轨迹保存
|
//分享轨迹保存
|
||||||
saveShareTrack() {
|
saveShareTrack() {
|
||||||
let data = {
|
let data = {
|
||||||
mallId: this.mallId
|
mallId: this.mallId,
|
||||||
|
userName: this.loginInfo.aname,
|
||||||
|
passWord: this.loginInfo.password,
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
saveShareTrack(data).then(
|
saveShareTrack(data).then(
|
||||||
@@ -105,5 +115,8 @@ export default {
|
|||||||
div:last-child.van-cell {
|
div:last-child.van-cell {
|
||||||
border-bottom: 1px solid #ebedf0;
|
border-bottom: 1px solid #ebedf0;
|
||||||
}
|
}
|
||||||
|
/deep/ .van-field__label{
|
||||||
|
width: 110px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user