bug
This commit is contained in:
parent
1fe8922e14
commit
c79e5b3e9a
@ -91,7 +91,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card style="margin-top: 20px">
|
<el-card style="margin-top: 20px">
|
||||||
<div>
|
<div v-if="activeName=='goods'">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="batchGrounding('qy')"
|
@click="batchGrounding('qy')"
|
||||||
|
@ -254,7 +254,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<!-- 添加会员信息,选择是否批量录入-->
|
<!-- 添加会员信息,选择是否批量录入-->
|
||||||
<el-dialog :title="title" width="55%" :visible.sync="openUser" append-to-body>
|
<el-dialog :title="title" width="40%" :visible.sync="openUser" append-to-body>
|
||||||
<el-alert
|
<el-alert
|
||||||
type="info"
|
type="info"
|
||||||
:closable="false">
|
:closable="false">
|
||||||
@ -268,31 +268,31 @@
|
|||||||
<el-button type="primary"
|
<el-button type="primary"
|
||||||
icon="el-icon-connection" @click="addMult" round>批量导入会员</el-button>
|
icon="el-icon-connection" @click="addMult" round>批量导入会员</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<!-- <div>-->
|
||||||
<el-table ref="tables" v-loading="loading" :data="userList">
|
<!-- <el-table ref="tables" v-loading="loading" :data="userList">-->
|
||||||
<el-table-column prop="batchNumber" align="center" label="批次号" width="200"/>
|
<!-- <el-table-column prop="batchNumber" align="center" label="批次号" width="200"/>-->
|
||||||
<el-table-column prop="type" align="center" label="类型"/>
|
<!-- <el-table-column prop="type" align="center" label="类型"/>-->
|
||||||
<el-table-column prop="memberNumber" align="center" label="会员数"/>
|
<!-- <el-table-column prop="memberNumber" align="center" label="会员数"/>-->
|
||||||
<el-table-column label="执行结果" align="center" >
|
<!-- <el-table-column label="执行结果" align="center" >-->
|
||||||
<el-table-column prop="successNumber" align="center" label="成功人数"/>
|
<!-- <el-table-column prop="successNumber" align="center" label="成功人数"/>-->
|
||||||
<el-table-column prop="errorNumber" align="center" label="失败人数"/>
|
<!-- <el-table-column prop="errorNumber" align="center" label="失败人数"/>-->
|
||||||
<el-table-column prop="repeatNumber" align="center" label="重复人数"/>
|
<!-- <el-table-column prop="repeatNumber" align="center" label="重复人数"/>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<el-table-column prop="createTime" align="center" label="处理时间" width="160">
|
<!-- <el-table-column prop="createTime" align="center" label="处理时间" width="160">-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<!-- <span>{{ parseTime(scope.row.createTime) }}</span>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<!-- <el-table-column prop="date" align="center" label="处理结果详情"/>-->
|
<!--<!– <el-table-column prop="date" align="center" label="处理结果详情"/>–>-->
|
||||||
</el-table>
|
<!-- </el-table>-->
|
||||||
|
|
||||||
<pagination
|
<!-- <pagination-->
|
||||||
:total="total1"
|
<!-- :total="total1"-->
|
||||||
:page.sync="queryParams.page"
|
<!-- :page.sync="queryParams.page"-->
|
||||||
:limit.sync="queryParams.pageSize"
|
<!-- :limit.sync="queryParams.pageSize"-->
|
||||||
@pagination="getList"
|
<!-- @pagination="getList"-->
|
||||||
/>
|
<!-- />-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 添加或修改对话框 -->
|
<!-- 添加或修改对话框 -->
|
||||||
|
@ -12,6 +12,7 @@ import com.fuint.business.storeInformation.service.ILJStoreService;
|
|||||||
import com.fuint.business.userManager.entity.*;
|
import com.fuint.business.userManager.entity.*;
|
||||||
import com.fuint.business.userManager.mapper.LJUserMapper;
|
import com.fuint.business.userManager.mapper.LJUserMapper;
|
||||||
import com.fuint.business.userManager.mapper.MtInvitationMapper;
|
import com.fuint.business.userManager.mapper.MtInvitationMapper;
|
||||||
|
import com.fuint.business.userManager.mapper.UserBalanceMapper;
|
||||||
import com.fuint.business.userManager.service.*;
|
import com.fuint.business.userManager.service.*;
|
||||||
import com.fuint.business.userManager.vo.LJUserVo;
|
import com.fuint.business.userManager.vo.LJUserVo;
|
||||||
import com.fuint.common.dto.AccountInfo;
|
import com.fuint.common.dto.AccountInfo;
|
||||||
@ -34,6 +35,8 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
|
|||||||
@Autowired
|
@Autowired
|
||||||
private UserBalanceService balanceService;
|
private UserBalanceService balanceService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
private UserBalanceMapper userBalanceMapper;
|
||||||
|
@Autowired
|
||||||
private ILJStoreService storeService;
|
private ILJStoreService storeService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -134,12 +137,14 @@ public class LJUserServiceImpl extends ServiceImpl<LJUserMapper, LJUser> impleme
|
|||||||
|
|
||||||
QueryWrapper queryWrapper = new QueryWrapper<>();
|
QueryWrapper queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 0");
|
queryWrapper.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 0");
|
||||||
Integer addNum = baseMapper.selectCount(queryWrapper);
|
// Integer addNum = baseMapper.selectCount(queryWrapper);
|
||||||
|
Integer addNum = userBalanceMapper.selectCount(queryWrapper);
|
||||||
|
|
||||||
QueryWrapper queryWrapper1 = new QueryWrapper<>();
|
QueryWrapper queryWrapper1 = new QueryWrapper<>();
|
||||||
queryWrapper1.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 1");
|
queryWrapper1.apply(true, "TO_DAYS(NOW())-TO_DAYS(create_time) = 1");
|
||||||
|
|
||||||
Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1);
|
// Integer yesterdayAddNum = baseMapper.selectCount(queryWrapper1);
|
||||||
|
Integer yesterdayAddNum = userBalanceMapper.selectCount(queryWrapper1);
|
||||||
|
|
||||||
map.put("balance",balance);
|
map.put("balance",balance);
|
||||||
map.put("point",point);
|
map.put("point",point);
|
||||||
|
@ -19,10 +19,11 @@ export function listCardOilRecord(query) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 查询优惠券信息列表
|
// 查询优惠券信息列表
|
||||||
export function cardBalanceCount() {
|
export function cardBalanceCount(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/business/CardBalanceChange/getBalanceStoreCount',
|
url: '/business/CardBalanceChange/getBalanceStoreCount',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@
|
|||||||
<div v-if="isMember">{{ item.memberPrice }}</div>
|
<div v-if="isMember">{{ item.memberPrice }}</div>
|
||||||
<div>
|
<div>
|
||||||
<el-input-number v-model="item.num" size="small" controls-position="right"
|
<el-input-number v-model="item.num" size="small" controls-position="right"
|
||||||
@change="handleChange" :min="1" :max="10000"></el-input-number>
|
@change="handleChange" :min="1" :max="item.stock"></el-input-number>
|
||||||
</div>
|
</div>
|
||||||
<div @click="delGoods(index)"><i class="el-icon-circle-close" style="font-size: 22px"></i></div>
|
<div @click="delGoods(index)"><i class="el-icon-circle-close" style="font-size: 22px"></i></div>
|
||||||
</div>
|
</div>
|
||||||
@ -3475,6 +3475,7 @@
|
|||||||
if (goods[i].id == val.id) {
|
if (goods[i].id == val.id) {
|
||||||
if (val.stock<goods[i].num + 1){
|
if (val.stock<goods[i].num + 1){
|
||||||
this.$modal.msgError("商品库存不足,请重新选择商品")
|
this.$modal.msgError("商品库存不足,请重新选择商品")
|
||||||
|
result = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
goods[i].num = goods[i].num + 1;
|
goods[i].num = goods[i].num + 1;
|
||||||
@ -3488,6 +3489,7 @@
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
result = true;
|
result = true;
|
||||||
|
console.log(265)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// this.goodsAmount = amount;
|
// this.goodsAmount = amount;
|
||||||
@ -3504,7 +3506,7 @@
|
|||||||
if (_this.isMember) {
|
if (_this.isMember) {
|
||||||
this.goodsDiscount += (val.retailPrice - val.memberPrice)
|
this.goodsDiscount += (val.retailPrice - val.memberPrice)
|
||||||
}
|
}
|
||||||
console.log(this.goodsAmount)
|
console.log(this.goodsAmount,847)
|
||||||
this.goodsAmount += +val.retailPrice
|
this.goodsAmount += +val.retailPrice
|
||||||
this.goodsActualPay = this.goodsAmount - this.goodsDiscount;
|
this.goodsActualPay = this.goodsAmount - this.goodsDiscount;
|
||||||
this.goodsOrder.push(val);
|
this.goodsOrder.push(val);
|
||||||
@ -4040,8 +4042,9 @@
|
|||||||
_this.isQuery = false;
|
_this.isQuery = false;
|
||||||
_this.amount = 0
|
_this.amount = 0
|
||||||
|
|
||||||
_this.printLocally()
|
|
||||||
_this.loading = false;
|
_this.loading = false;
|
||||||
|
_this.printLocally()
|
||||||
|
_this.resetting1();
|
||||||
|
|
||||||
if (response.data.oilOrderAmount>0){
|
if (response.data.oilOrderAmount>0){
|
||||||
// for (let i =0;i<_this.oilPreferentialData.length;i++){
|
// for (let i =0;i<_this.oilPreferentialData.length;i++){
|
||||||
|
@ -651,6 +651,7 @@ import {oilNumbers} from "@/api/cashier/oilnumber";
|
|||||||
if (val!=undefined){
|
if (val!=undefined){
|
||||||
this.queryParams.page = val
|
this.queryParams.page = val
|
||||||
}
|
}
|
||||||
|
this.dateRange = []
|
||||||
if (this.beginTime && this.endTime) {
|
if (this.beginTime && this.endTime) {
|
||||||
this.dateRange.push(this.beginTime.toLocaleDateString())
|
this.dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
this.dateRange.push(this.endTime.toLocaleDateString())
|
this.dateRange.push(this.endTime.toLocaleDateString())
|
||||||
@ -665,10 +666,12 @@ import {oilNumbers} from "@/api/cashier/oilnumber";
|
|||||||
if (val!=undefined){
|
if (val!=undefined){
|
||||||
this.queryParams.page = val
|
this.queryParams.page = val
|
||||||
}
|
}
|
||||||
|
this.dateRange = []
|
||||||
if (this.beginTime && this.endTime) {
|
if (this.beginTime && this.endTime) {
|
||||||
this.dateRange.push(this.beginTime.toLocaleDateString())
|
this.dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
this.dateRange.push(this.endTime.toLocaleDateString())
|
this.dateRange.push(this.endTime.toLocaleDateString())
|
||||||
}
|
}
|
||||||
|
console.log(this.dateRange)
|
||||||
cardBalanceCount(this.addDateRange(this.queryParams, this.dateRange)).then(res => {
|
cardBalanceCount(this.addDateRange(this.queryParams, this.dateRange)).then(res => {
|
||||||
this.inCount = res.data.inCount
|
this.inCount = res.data.inCount
|
||||||
this.outCount = res.data.outCount
|
this.outCount = res.data.outCount
|
||||||
@ -681,6 +684,7 @@ import {oilNumbers} from "@/api/cashier/oilnumber";
|
|||||||
if (val!=undefined){
|
if (val!=undefined){
|
||||||
this.queryParams.page = val
|
this.queryParams.page = val
|
||||||
}
|
}
|
||||||
|
this.dateRange = []
|
||||||
if (this.beginTime && this.endTime) {
|
if (this.beginTime && this.endTime) {
|
||||||
this.dateRange.push(this.beginTime.toLocaleDateString())
|
this.dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
this.dateRange.push(this.endTime.toLocaleDateString())
|
this.dateRange.push(this.endTime.toLocaleDateString())
|
||||||
@ -695,6 +699,7 @@ import {oilNumbers} from "@/api/cashier/oilnumber";
|
|||||||
if (val!=undefined){
|
if (val!=undefined){
|
||||||
this.queryParams.page = val
|
this.queryParams.page = val
|
||||||
}
|
}
|
||||||
|
this.dateRange = []
|
||||||
if (this.beginTime && this.endTime) {
|
if (this.beginTime && this.endTime) {
|
||||||
this.dateRange.push(this.beginTime.toLocaleDateString())
|
this.dateRange.push(this.beginTime.toLocaleDateString())
|
||||||
this.dateRange.push(this.endTime.toLocaleDateString())
|
this.dateRange.push(this.endTime.toLocaleDateString())
|
||||||
|
@ -223,12 +223,12 @@
|
|||||||
<el-tag v-else type="danger">禁用</el-tag>
|
<el-tag v-else type="danger">禁用</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="公众号" align="center" prop="official">
|
<!-- <el-table-column label="公众号" align="center" prop="official">-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<span v-if="scope.row.official == 'ygz'">已关注</span>
|
<!-- <span v-if="scope.row.official == 'ygz'">已关注</span>-->
|
||||||
<span v-else>未关注</span>
|
<!-- <span v-else>未关注</span>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<el-table-column label="操作" align="center" width="120" fixed='right'>
|
<el-table-column label="操作" align="center" width="120" fixed='right'>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -258,7 +258,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<!-- 添加会员信息,选择是否批量录入-->
|
<!-- 添加会员信息,选择是否批量录入-->
|
||||||
<el-dialog :close-on-click-modal="false" :title="title" width="55%" :visible.sync="openUser" append-to-body>
|
<el-dialog :close-on-click-modal="false" :title="title" width="40%" :visible.sync="openUser" append-to-body>
|
||||||
<el-alert
|
<el-alert
|
||||||
type="info"
|
type="info"
|
||||||
:closable="false">
|
:closable="false">
|
||||||
@ -272,31 +272,31 @@
|
|||||||
<el-button type="primary"
|
<el-button type="primary"
|
||||||
icon="el-icon-connection" @click="addMult" round>批量导入会员</el-button>
|
icon="el-icon-connection" @click="addMult" round>批量导入会员</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<!-- <div>-->
|
||||||
<el-table ref="tables" v-loading="loading" :data="userList">
|
<!-- <el-table ref="tables" v-loading="loading" :data="userList">-->
|
||||||
<el-table-column prop="batchNumber" align="center" label="批次号" width="200"/>
|
<!-- <el-table-column prop="batchNumber" align="center" label="批次号" width="200"/>-->
|
||||||
<el-table-column prop="type" align="center" label="类型"/>
|
<!-- <el-table-column prop="type" align="center" label="类型"/>-->
|
||||||
<el-table-column prop="memberNumber" align="center" label="会员数"/>
|
<!-- <el-table-column prop="memberNumber" align="center" label="会员数"/>-->
|
||||||
<el-table-column label="执行结果" align="center" >
|
<!-- <el-table-column label="执行结果" align="center" >-->
|
||||||
<el-table-column prop="successNumber" align="center" label="成功人数"/>
|
<!-- <el-table-column prop="successNumber" align="center" label="成功人数"/>-->
|
||||||
<el-table-column prop="errorNumber" align="center" label="失败人数"/>
|
<!-- <el-table-column prop="errorNumber" align="center" label="失败人数"/>-->
|
||||||
<el-table-column prop="repeatNumber" align="center" label="重复人数"/>
|
<!-- <el-table-column prop="repeatNumber" align="center" label="重复人数"/>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<el-table-column prop="createTime" align="center" label="处理时间" width="160">
|
<!-- <el-table-column prop="createTime" align="center" label="处理时间" width="160">-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<span>{{ parseTime(scope.row.createTime) }}</span>
|
<!-- <span>{{ parseTime(scope.row.createTime) }}</span>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<!-- <el-table-column prop="date" align="center" label="处理结果详情"/>-->
|
<!-- <!– <el-table-column prop="date" align="center" label="处理结果详情"/>–>-->
|
||||||
</el-table>
|
<!-- </el-table>-->
|
||||||
|
|
||||||
<pagination
|
<!-- <pagination-->
|
||||||
:total="total1"
|
<!-- :total="total1"-->
|
||||||
:page.sync="queryParams.page"
|
<!-- :page.sync="queryParams.page"-->
|
||||||
:limit.sync="queryParams.pageSize"
|
<!-- :limit.sync="queryParams.pageSize"-->
|
||||||
@pagination="getList"
|
<!-- @pagination="getList"-->
|
||||||
/>
|
<!-- />-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 添加或修改对话框 -->
|
<!-- 添加或修改对话框 -->
|
||||||
@ -347,7 +347,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="会员初始积分" prop="points">
|
<el-form-item label="会员初始积分" prop="points">
|
||||||
<el-input v-model="form.points" placeholder="0" maxlength="30"/>
|
<el-input :disabled="title == '编辑会员'" v-model="form.points" placeholder="0" maxlength="30"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -361,7 +361,7 @@
|
|||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="储值通用余额" prop="cardBalance">
|
<el-form-item label="储值通用余额" prop="cardBalance">
|
||||||
<el-input v-model="form.cardBalance" placeholder="0" maxlength="30"/>
|
<el-input :disabled="title == '编辑会员'" v-model="form.cardBalance" placeholder="0" maxlength="30"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -372,19 +372,19 @@
|
|||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
<!-- </el-row>-->
|
<!-- </el-row>-->
|
||||||
|
<!-- <el-row>-->
|
||||||
|
<!-- <el-col :span="24">-->
|
||||||
|
<!-- <el-form-item label="是否关注公众号">-->
|
||||||
|
<!-- <el-radio-group v-model="form.official">-->
|
||||||
|
<!-- <el-radio label="ygz" value="ygz">已关注</el-radio>-->
|
||||||
|
<!-- <el-radio label="wgz" value="wgz">未关注</el-radio>-->
|
||||||
|
<!-- </el-radio-group>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- </el-row>-->
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="是否关注公众号">
|
<el-form-item label="会员状态" prop="status">
|
||||||
<el-radio-group v-model="form.official">
|
|
||||||
<el-radio label="ygz" value="ygz">已关注</el-radio>
|
|
||||||
<el-radio label="wgz" value="wgz">未关注</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="24">
|
|
||||||
<el-form-item label="会员状态">
|
|
||||||
<el-radio-group v-model="form.status">
|
<el-radio-group v-model="form.status">
|
||||||
<el-radio label="qy" value="qy">启用</el-radio>
|
<el-radio label="qy" value="qy">启用</el-radio>
|
||||||
<el-radio label="jy" value="jy">禁用</el-radio>
|
<el-radio label="jy" value="jy">禁用</el-radio>
|
||||||
@ -562,6 +562,7 @@
|
|||||||
mobile: [
|
mobile: [
|
||||||
{ required: true, message: "请输入手机号", trigger: "blur" },
|
{ required: true, message: "请输入手机号", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
status: [{ required: true, message: "请选择会员状态", trigger: "blur" }],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -205,6 +205,7 @@
|
|||||||
let storeId = "19";
|
let storeId = "19";
|
||||||
|
|
||||||
let staffId = "";
|
let staffId = "";
|
||||||
|
console.log(111);
|
||||||
if (str.includes("&")) {
|
if (str.includes("&")) {
|
||||||
let arr = str.split("&");
|
let arr = str.split("&");
|
||||||
arr.forEach(item => {
|
arr.forEach(item => {
|
||||||
@ -234,9 +235,9 @@
|
|||||||
|
|
||||||
uni.setStorageSync("storeId", storeId)
|
uni.setStorageSync("storeId", storeId)
|
||||||
}
|
}
|
||||||
|
await this.getUserAuthority();
|
||||||
|
// await this.getOilType();
|
||||||
}
|
}
|
||||||
await this.getUserAuthority();
|
|
||||||
// await this.getOilType();
|
|
||||||
await this.getTheJudgmentIsTheSame();
|
await this.getTheJudgmentIsTheSame();
|
||||||
}else{
|
}else{
|
||||||
await this.getUserAuthority();
|
await this.getUserAuthority();
|
||||||
@ -246,7 +247,7 @@
|
|||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.isJoined()
|
this.isJoined()
|
||||||
this.getIndexBanner()
|
// this.getIndexBanner()
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
tabbar
|
tabbar
|
||||||
@ -277,14 +278,16 @@
|
|||||||
method: 'get',
|
method: 'get',
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
_this.list1 = res.data
|
_this.list1 = res.data
|
||||||
for (let i = 0; i < res.data.length; i++) {
|
if (res.data.length>0){
|
||||||
if (res.data[i].bannerUrl.includes("http")) {
|
for (let i = 0; i < res.data.length; i++) {
|
||||||
_this.list1[i].bannerUrl = res.data[i].bannerUrl
|
if (res.data[i].bannerUrl.includes("http")) {
|
||||||
} else {
|
_this.list1[i].bannerUrl = res.data[i].bannerUrl
|
||||||
_this.list1[i].bannerUrl = _this.baseUrl + res.data[i].bannerUrl
|
} else {
|
||||||
|
_this.list1[i].bannerUrl = _this.baseUrl + res.data[i].bannerUrl
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
console.log(_this.list1);
|
||||||
}
|
}
|
||||||
console.log(_this.list1);
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -388,6 +391,7 @@
|
|||||||
},
|
},
|
||||||
// 判断token是否与当前连锁店id相同
|
// 判断token是否与当前连锁店id相同
|
||||||
async getTheJudgmentIsTheSame() {
|
async getTheJudgmentIsTheSame() {
|
||||||
|
console.log(this.AppToken,547);
|
||||||
// 判断是否登录
|
// 判断是否登录
|
||||||
if (!this.AppToken) {
|
if (!this.AppToken) {
|
||||||
return;
|
return;
|
||||||
@ -417,8 +421,8 @@
|
|||||||
data: {
|
data: {
|
||||||
code: res.code
|
code: res.code
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(resp => {
|
||||||
if (!res.data) {
|
if (!resp.data) {
|
||||||
uni.removeStorageSync("App-Token");
|
uni.removeStorageSync("App-Token");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -443,7 +447,8 @@
|
|||||||
storeId: uni.getStorageSync("storeId"),
|
storeId: uni.getStorageSync("storeId"),
|
||||||
},
|
},
|
||||||
}).then((resp) => {
|
}).then((resp) => {
|
||||||
if (!res.data) {
|
console.log(resp,85412);
|
||||||
|
if (!resp.data) {
|
||||||
uni.removeStorageSync("App-Token");
|
uni.removeStorageSync("App-Token");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -490,10 +495,6 @@
|
|||||||
},
|
},
|
||||||
// 获取当前位置
|
// 获取当前位置
|
||||||
getAddress(storeId) {
|
getAddress(storeId) {
|
||||||
// uni.showToast({
|
|
||||||
// title:"店铺id"+storeId,
|
|
||||||
// icon:"none"
|
|
||||||
// })
|
|
||||||
let _this = this;
|
let _this = this;
|
||||||
uni.getLocation({
|
uni.getLocation({
|
||||||
// 谷歌使用wgs84 其他使用gcj02
|
// 谷歌使用wgs84 其他使用gcj02
|
||||||
@ -517,17 +518,19 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
|
console.log(response,"2154");
|
||||||
|
// uni.showToast({
|
||||||
|
// title:"121984:"+storeId
|
||||||
|
// })
|
||||||
if (response.data.store){
|
if (response.data.store){
|
||||||
_this.distance = (Math.ceil(response.data.distance))
|
_this.distance = (Math.ceil(response.data.distance))
|
||||||
.toFixed(1)
|
.toFixed(1)
|
||||||
_this.store = response.data.store
|
_this.store = response.data.store
|
||||||
console.log(response,"storeId");
|
|
||||||
uni.setStorageSync("storeId", response.data.store.id)
|
uni.setStorageSync("storeId", response.data.store.id)
|
||||||
uni.setStorageSync("chainStoreId", response.data.store.chainStoreId)
|
uni.setStorageSync("chainStoreId", response.data.store.chainStoreId)
|
||||||
// console.log(uni.getStorageSync("chainStoreId"));
|
console.log(uni.getStorageSync("chainStoreId"));
|
||||||
let welfare = response.data.store.welfare
|
if (response.data.store.welfare) {
|
||||||
if (welfare) {
|
if (response.data.store.welfare.includes(",")) {
|
||||||
if (welfare.includes(",")) {
|
|
||||||
_this.welfare = response.data.store.welfare
|
_this.welfare = response.data.store.welfare
|
||||||
.split(",")
|
.split(",")
|
||||||
} else {
|
} else {
|
||||||
@ -554,7 +557,7 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
}).catch(err => {})
|
||||||
|
|
||||||
// uni.showToast({
|
// uni.showToast({
|
||||||
// title: "获取位置信息成功",
|
// title: "获取位置信息成功",
|
||||||
|
@ -216,6 +216,7 @@
|
|||||||
},
|
},
|
||||||
// 查询当前登录用户信息
|
// 查询当前登录用户信息
|
||||||
getUser() {
|
getUser() {
|
||||||
|
console.log(this.AppToken,2343);
|
||||||
if (!this.AppToken) {
|
if (!this.AppToken) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -223,7 +224,8 @@
|
|||||||
url: 'business/userManager/user/getUser',
|
url: 'business/userManager/user/getUser',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.data != null && res.data != "" && res.data != undefined) {
|
console.log(res,1541);
|
||||||
|
if (res.data) {
|
||||||
this.user = res.data
|
this.user = res.data
|
||||||
uni.setStorageSync('userId', res.data.id)
|
uni.setStorageSync('userId', res.data.id)
|
||||||
this.user.mobile = res.data.mobile.slice(0, 3) + "****" + res.data.mobile.slice(res.data
|
this.user.mobile = res.data.mobile.slice(0, 3) + "****" + res.data.mobile.slice(res.data
|
||||||
|
@ -301,14 +301,14 @@
|
|||||||
_this.storeId = res.data.id;
|
_this.storeId = res.data.id;
|
||||||
uni.setStorageSync("storeId", _this.store.id)
|
uni.setStorageSync("storeId", _this.store.id)
|
||||||
uni.setStorageSync("chainStoreId", _this.store.chainStoreId)
|
uni.setStorageSync("chainStoreId", _this.store.chainStoreId)
|
||||||
let welfare = res.data.welfare
|
// let welfare = res.data.welfare
|
||||||
if (welfare) {
|
// if (welfare) {
|
||||||
if (welfare.includes(",")) {
|
// if (welfare.includes(",")) {
|
||||||
_this.welfare = res.data.welfare.split(",")
|
// _this.welfare = res.data.welfare.split(",")
|
||||||
} else {
|
// } else {
|
||||||
_this.welfare.push(res.data.welfare)
|
// _this.welfare.push(res.data.welfare)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
// uni.showLoading({
|
// uni.showLoading({
|
||||||
// title: JSON.stringify(err) + 222
|
// title: JSON.stringify(err) + 222
|
||||||
@ -337,9 +337,8 @@
|
|||||||
_this.storeId = response.data.store.id;
|
_this.storeId = response.data.store.id;
|
||||||
_this.getOilNumber(_this.storeId);
|
_this.getOilNumber(_this.storeId);
|
||||||
// _this.getStaffList(_this.storeId)
|
// _this.getStaffList(_this.storeId)
|
||||||
let welfare = response.data.store.welfare;
|
if (response.data.store.welfare) {
|
||||||
if (welfare != undefined && welfare != null && welfare != "") {
|
if (response.data.store.welfare.includes(",")) {
|
||||||
if (welfare.includes(",")) {
|
|
||||||
_this.welfare = response.data.store.welfare.split(",");
|
_this.welfare = response.data.store.welfare.split(",");
|
||||||
} else {
|
} else {
|
||||||
_this.welfare.push(response.data.store.welfare);
|
_this.welfare.push(response.data.store.welfare);
|
||||||
|
@ -91,7 +91,11 @@
|
|||||||
encryptedData: encryptedData,
|
encryptedData: encryptedData,
|
||||||
},
|
},
|
||||||
}).then((resp) => {
|
}).then((resp) => {
|
||||||
// console.log(resp)
|
if (uni.getStorageSync("y_type") ==
|
||||||
|
'yaoqingyouli') {
|
||||||
|
this.activeRecommendRecords()
|
||||||
|
|
||||||
|
}
|
||||||
if (resp.code == 200) {
|
if (resp.code == 200) {
|
||||||
|
|
||||||
uni.setStorageSync('App-Token', resp.data.token);
|
uni.setStorageSync('App-Token', resp.data.token);
|
||||||
@ -102,8 +106,7 @@
|
|||||||
url: '/pages/index/index'
|
url: '/pages/index/index'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log("swq", uni.getStorageSync(
|
console.log("swq", uni.getStorageSync('App-Token'));
|
||||||
'App-Token'));
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fail: err => {
|
fail: err => {
|
||||||
|
@ -476,6 +476,8 @@
|
|||||||
if (this.refuelMoney[i].refuelMoney >= this.oilOrder.oilNum){
|
if (this.refuelMoney[i].refuelMoney >= this.oilOrder.oilNum){
|
||||||
this.oilCardRedece = this.oilOrder.oilNum
|
this.oilCardRedece = this.oilOrder.oilNum
|
||||||
this.refuelMoneyAfter[i].refuelMoney = this.refuelMoney[i].refuelMoney - this.oilOrder.oilNum
|
this.refuelMoneyAfter[i].refuelMoney = this.refuelMoney[i].refuelMoney - this.oilOrder.oilNum
|
||||||
|
this.payAmount = 0
|
||||||
|
this.checkOilCard = true
|
||||||
}else{
|
}else{
|
||||||
this.oilCardRedece = this.refuelMoney[i].refuelMoney
|
this.oilCardRedece = this.refuelMoney[i].refuelMoney
|
||||||
this.refuelMoneyAfter[i].refuelMoney = 0
|
this.refuelMoneyAfter[i].refuelMoney = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user