小程序签到处理

This commit is contained in:
wangh 2023-12-14 13:38:01 +08:00
parent 1956d1a25b
commit 0b4359a2e5
3 changed files with 23 additions and 15 deletions

View File

@ -190,7 +190,6 @@
tabbar
},
methods: {
// t
isExistStoreId() {
if (uni.getStorageSync("inviteStoreId") != "") {
this.getStore(uni.getStorageSync("inviteStoreId"));
@ -649,4 +648,4 @@
}
</style>
</style>

View File

@ -28,7 +28,7 @@
</view>
<view class="">
<uni-icons type="right" size="20"></uni-icons>
<!-- <uni-icons type="right" size="20"></uni-icons> -->
</view>
</view>
<view class="box-bai" v-if="qhindex == 1" @click="goAdd()">
@ -111,7 +111,7 @@
<script>
import config from '@/config'
import request from '../../utils/request'
/* import BigNumber from 'bignumber.js'; */
import BigNumber from 'bignumber.js';
export default {
@ -562,4 +562,4 @@
border-radius: 4px;
background: #1678ff;
}
</style>
</style>

View File

@ -91,9 +91,17 @@
})
},
//
comeOn() {},
comeOn() {
uni.navigateTo({
url: '/pages/refuel/refuel'
})
},
//
recharge() {},
recharge() {
uni.navigateTo({
url: '/pagesHome/oilRecharge/oilRecharge'
})
},
goback() {
uni.navigateBack()
@ -105,18 +113,18 @@
url: 'business/integral/integralSettings/todayIsSignIn',
method: 'get',
params: {
storeId: this.storeId
storeId: this.storeId,
chainStoreId: this.chainStoreId
}
}).then((res) => {
if (res.code == 200) {
if (res.data != 0) {
this.flag = false
} else if (
res.data == -2
) {
if (res.data == 0) {
this.flag = true
} else if (res.data == -2) {
this.flag = false
this.flag2 = true
} else {
this.flag = false
this.flag2 = false
}
@ -126,7 +134,8 @@
//
sign() {
let integralSettings = {
storeId: this.storeId
storeId: this.storeId,
chainStoreId: this.chainStoreId
}
request({
url: 'business/integral/integralSettings/signInFunction',
@ -136,7 +145,7 @@
if (res.code == 200) {
//
uni.showToast({
title: '标题',
title: '签到成功',
duration: 2000
});
this.getUserInfoList();