Commit 9b6ffc81 by wsm

3/15

parent b992107c
...@@ -11,7 +11,17 @@ const addUserFeedback = (params) => { ...@@ -11,7 +11,17 @@ const addUserFeedback = (params) => {
const couponListGet = (params) =>{ const couponListGet = (params) =>{
return ApiHttp('/xinrenli/coupon/list',params,'GET') return ApiHttp('/xinrenli/coupon/list',params,'GET')
} }
// 查询邀请列表
const queryInviteListGet = (params) =>{
return ApiHttp('/xinrenli/Inviter/list',params,'GET')
}
// 查询邀请列表
const addInviterGet = (params) =>{
return ApiHttp('/xinrenli/Inviter',params,'POST')
}
export { export {
addUserFeedback, addUserFeedback,
couponListGet couponListGet,
queryInviteListGet,
addInviterGet
} }
\ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
</view> </view>
</view> </view>
<u-button text="继续邀请新用户" color="#2C66FF" :customStyle="{ <!-- <u-button text="继续邀请新用户" color="#2C66FF" :customStyle="{
width: '710rpx', width: '710rpx',
height: '80rpx', height: '80rpx',
borderRadius: '10rpx', borderRadius: '10rpx',
...@@ -31,16 +31,17 @@ ...@@ -31,16 +31,17 @@
left: '20rpx', left: '20rpx',
bottom: '142rpx' bottom: '142rpx'
}"></u-button> }"></u-button>
-->
</view> </view>
<!-- <view> <view>
<button class="invite-btn" data-name="shareBtn" open-type="share">继续邀请新用户</button> <button class="invite-btn" data-name="shareBtn" open-type="share">继续邀请新用户</button>
</view> --> </view>
</view> </view>
</template> </template>
<script> <script>
import apiBaseConfig from '@/config/index.js'; import apiBaseConfig from '@/config/index.js';
import { queryInviteListGet,addInviterGet } from '@/api/my/index.js'
export default { export default {
data() { data() {
return { return {
...@@ -52,11 +53,25 @@ ...@@ -52,11 +53,25 @@
//分享 //分享
onShareAppMessage() { onShareAppMessage() {
return { return {
title: '分享的标题' title: '分享的标题',
success() {
addInviterGet().then(res => {
})
}
} }
}, },
onLoad() {}, onLoad() {
methods: {} this.getList()
},
methods: {
// 获取邀请列表
getList(){
queryInviteListGet().then(res => {
})
}
}
}; };
</script> </script>
...@@ -114,20 +129,18 @@ ...@@ -114,20 +129,18 @@
} }
.invite-btn { .invite-btn {
position: fixed;
bottom: 142rpx;
left: 0;
right: 0;
width: 710rpx; width: 710rpx;
height: 80rpx; height: 80rpx;
border-radius: 10rpx; border-radius: 10rpx;
// padding: 0rpx;
// position: absolute;
// left: 20rpx;
bottom: 142rpx; bottom: 142rpx;
color: #FFFFFF; color: #FFFFFF;
font-size: 18px; font-size: 18px;
text-align: center; text-align: center;
line-height: 80rpx; line-height: 80rpx;
background: #3476ff; background: #3476ff;
// transform: translate(50%,0);
// left: 50%;
// margin-left: -350rpx;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment