Commit 1cadbc10 by 李伟康

提交代码

1 parent ee4cf1e2
...@@ -20,4 +20,21 @@ export default { ...@@ -20,4 +20,21 @@ export default {
returnAll returnAll
}) })
}, },
/**获取验证码 */
getCaptcha (data) {
data.method = 'scrm.api.sso.sms.login.get.captcha'
return window.$HTTP({
url,
data
})
},
/**验证码登录 */
captchaLogin (data) {
data.method = 'scrm.api.sso.sms.login'
return window.$HTTP({
url,
data,
returnAll
})
},
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,6 +15,15 @@ const pages = { ...@@ -15,6 +15,15 @@ const pages = {
noAuth: true, noAuth: true,
title: '参团成功' title: '参团成功'
}, },
},
{
name:'agreement',
meta:{
keepAlive: true,
backgroundColor: '#FFF',
noAuth: true,
title: '隐私协议'
}
} }
] ]
} }
......
...@@ -226,6 +226,11 @@ const isMobileDevice = () => {//判断当前设备是否为移动端 ...@@ -226,6 +226,11 @@ const isMobileDevice = () => {//判断当前设备是否为移动端
const t2 = !ua.match("iphone") && navigator.maxTouchPoints > 1 const t2 = !ua.match("iphone") && navigator.maxTouchPoints > 1
return t1 || t2 return t1 || t2
} }
/**页面跳转 */
const jump = name =>{
console.log(this)
}
const utils = { const utils = {
removeLocalStorage, removeLocalStorage,
setClipboardData, setClipboardData,
...@@ -260,7 +265,8 @@ const utils = { ...@@ -260,7 +265,8 @@ const utils = {
throttle, throttle,
decimal, decimal,
dialog, dialog,
toTop toTop,
jump
} }
Object.keys(utils).map(key => { Object.keys(utils).map(key => {
......
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
</div> </div>
</template> </template>
</template> </template>
<!-- <div class="tips">
本人已阅读且同意<span @click="jump('agreement')">《隐私协议》</span>
</div> -->
<template v-if="ISWXWORK"> <template v-if="ISWXWORK">
<van-button <van-button
color="#b1b1b1" color="#b1b1b1"
...@@ -45,6 +48,9 @@ ...@@ -45,6 +48,9 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import { ssoApi } from '@/api'
import { Notify } from 'vant'
import store from '@/store'
export default { export default {
name: 'PayModal', name: 'PayModal',
props: { props: {
...@@ -95,7 +101,8 @@ export default { ...@@ -95,7 +101,8 @@ export default {
pay () { pay () {
let { params, items } = this, let { params, items } = this,
obj = {}, obj = {},
phoneRex = /^[1]([3-9])[0-9]{9}$/ phoneRex = /^[1]([3-9])[0-9]{9}$/,
userInfo = this.getUserInfo()
try { try {
items.map(e => { items.map(e => {
Object.keys(params).map(key => { Object.keys(params).map(key => {
...@@ -115,6 +122,7 @@ export default { ...@@ -115,6 +122,7 @@ export default {
}) })
this.payLoading = true this.payLoading = true
this.$emit('pay', { obj, that: this.$parent }) this.$emit('pay', { obj, that: this.$parent })
} }
} }
} }
......
...@@ -295,7 +295,8 @@ export default { ...@@ -295,7 +295,8 @@ export default {
}) })
} }
this.detail = data this.detail = data
let link = `${redirectUrl}?id=${id}&userPhone=${userInfo.phone}&shareStaffType=1&shareStaffName=${this.toUnicode(userInfo.nickName)}&shareStaffImageUrl=${encodeURIComponent(userInfo.logo)}&openId=${userInfo.openid}` let link = `${redirectUrl}?id=${id}&shareStaffType=1&shareStaffName=${this.toUnicode(userInfo.nickName)}&shareStaffImageUrl=${encodeURIComponent(userInfo.logo)}&openId=${userInfo.openid}`
if (userInfo.phone) link = `${link}&userPhone=${userInfo.phone}`
if (params && params.shareStaffUuid) link = `${link}&shareStaffUuid=${params.shareStaffUuid}` if (params && params.shareStaffUuid) link = `${link}&shareStaffUuid=${params.shareStaffUuid}`
if (params && params.merchantId) link = `${link}&merchantId=${params.merchantId}` if (params && params.merchantId) link = `${link}&merchantId=${params.merchantId}`
this.shareInfo = { this.shareInfo = {
...@@ -376,18 +377,6 @@ export default { ...@@ -376,18 +377,6 @@ export default {
}, 500) }, 500)
}, },
toTop () {
let scrollTop = this.scrollY
let topTimer = setInterval(() => {
if (scrollTop <= 0) {
document.body.scrollTop = 0
clearInterval(topTimer)
}
scrollTop -= 500
window.scrollTo(0, scrollTop)
}, 100)
},
openLocation () { openLocation () {
let { sponsorName, activityAddressDetailName, activityAddressLat, activityAddressLng } = this.detail let { sponsorName, activityAddressDetailName, activityAddressLat, activityAddressLng } = this.detail
wxConfig.openLocation({ wxConfig.openLocation({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!