小程序签到处理
This commit is contained in:
parent
1956d1a25b
commit
0b4359a2e5
@ -190,7 +190,6 @@
|
||||
tabbar
|
||||
},
|
||||
methods: {
|
||||
// t
|
||||
isExistStoreId() {
|
||||
if (uni.getStorageSync("inviteStoreId") != "") {
|
||||
this.getStore(uni.getStorageSync("inviteStoreId"));
|
||||
@ -649,4 +648,4 @@
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
</style>
|
@ -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>
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user