['对接现金红包接口及样式处理']

This commit is contained in:
2021-10-15 09:49:18 +08:00
parent 01a9d8eb40
commit 9a89f3dded
16 changed files with 419 additions and 786 deletions

View File

@@ -9,8 +9,8 @@ import store from '@/store'
// 基础配置
const config = {
// apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
apiUrl : 'http://api.ahxh.shangkelian.cn/api/', // 测试环境
apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
// apiUrl : 'http://api.ahxh.shangkelian.cn/api/', // 测试环境
apiUrls : 'https://storage.lianshang.vip/', // 图片路径(测试/正式)
timeout : 60000
}
@@ -144,7 +144,9 @@ const loginHint = () => {
showCancel:false,
success: res=> {
loginHintState = false
if (res.confirm) this.$Router.replace({name: 'Index'})
if (res.confirm) uni.navigateTo({
url:'/pages/index/index'
})
}
})
}

View File

@@ -138,6 +138,13 @@ const keyrules = () => {
})
}
// 能量球转红包前置,获取能量球的基本信息
const accountCashs = (data) => {
return request({
url: 'user/account/cashs',
data:data
})
}
export {
seed,
hash,
@@ -154,6 +161,7 @@ export {
securityCheck,
securityReset,
cmsWithdraw,
keyrules
keyrules,
accountCashs
}

View File

@@ -90,7 +90,23 @@ const withdrawsIndexLists = (data) => {
data: data
})
}
// 能量球转红包前置
const cashsCreate = () => {
return request({
url: 'user/account/cashs/create',
method: 'get'
})
}
// 能量球转红包
const accountCashs = (data) => {
return request({
url: 'user/account/cashs',
method: 'POST',
data: data
})
}
export {
accountsCreate,
withdrawsAccounts,
@@ -101,5 +117,7 @@ export {
withdrawsIndexCreate,
withdrawsIndex,
withdrawsIndexLists,
userAccoutScores
userAccoutScores,
accountCashs,
cashsCreate
}