Commit 1cadbc10 by 李伟康

提交代码

1 parent ee4cf1e2
......@@ -20,4 +20,21 @@ export default {
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
......@@ -15,6 +15,15 @@ const pages = {
noAuth: true,
title: '参团成功'
},
},
{
name:'agreement',
meta:{
keepAlive: true,
backgroundColor: '#FFF',
noAuth: true,
title: '隐私协议'
}
}
]
}
......
......@@ -226,6 +226,11 @@ const isMobileDevice = () => {//判断当前设备是否为移动端
const t2 = !ua.match("iphone") && navigator.maxTouchPoints > 1
return t1 || t2
}
/**页面跳转 */
const jump = name =>{
console.log(this)
}
const utils = {
removeLocalStorage,
setClipboardData,
......@@ -260,7 +265,8 @@ const utils = {
throttle,
decimal,
dialog,
toTop
toTop,
jump
}
Object.keys(utils).map(key => {
......
......@@ -25,6 +25,9 @@
</div>
</template>
</template>
<!-- <div class="tips">
本人已阅读且同意<span @click="jump('agreement')">《隐私协议》</span>
</div> -->
<template v-if="ISWXWORK">
<van-button
color="#b1b1b1"
......@@ -45,6 +48,9 @@
</template>
<script type='text/ecmascript-6'>
import { ssoApi } from '@/api'
import { Notify } from 'vant'
import store from '@/store'
export default {
name: 'PayModal',
props: {
......@@ -95,7 +101,8 @@ export default {
pay () {
let { params, items } = this,
obj = {},
phoneRex = /^[1]([3-9])[0-9]{9}$/
phoneRex = /^[1]([3-9])[0-9]{9}$/,
userInfo = this.getUserInfo()
try {
items.map(e => {
Object.keys(params).map(key => {
......@@ -115,6 +122,7 @@ export default {
})
this.payLoading = true
this.$emit('pay', { obj, that: this.$parent })
}
}
}
......
......@@ -295,7 +295,8 @@ export default {
})
}
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.merchantId) link = `${link}&merchantId=${params.merchantId}`
this.shareInfo = {
......@@ -376,18 +377,6 @@ export default {
}, 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 () {
let { sponsorName, activityAddressDetailName, activityAddressLat, activityAddressLng } = this.detail
wxConfig.openLocation({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!