5798c684 by lttnew

图片

1 parent 7f5a246b
Showing 99 changed files with 765 additions and 750 deletions
......@@ -49,7 +49,7 @@
</uni-swipe-action>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>请选择团队</text>
<!-- <button class="btn-red" @click="gochose">+ 在线选择</button> -->
</view>
......
......@@ -64,10 +64,10 @@
</view>
<view v-if="deptType == 1" @click.stop="viewSettleFile(item.doc)">
缴费状态
<view>
<text v-if="item.doc?.settleFlag==0" class="text-warning">已结算</text>
<text v-if="item.doc?.settleFlag==1&&item.doc.payFlag==0" class="text-success">已上传</text>
<text v-if="item.doc?.settleFlag==1&&item.doc.payFlag==1" class="text-danger">未上传</text>
<view>
<text v-if="item.doc?.settleFlag==0" class="text-warning">已结算</text>
<text v-if="item.doc?.settleFlag==1&&item.doc.payFlag==0" class="text-success">已上传</text>
<text v-if="item.doc?.settleFlag==1&&item.doc.payFlag==1" class="text-danger">未上传</text>
</view>
</view>
</view>
......@@ -99,7 +99,7 @@
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
<!-- <view v-if="userType=='2'" class="block-btn-box">
......@@ -157,7 +157,7 @@
function getList() {
uni.showLoading({
title: '加载中',
title: '加载中',
mask: true
})
if (deptType.value == 2 || deptType.value == 3) {
......@@ -173,9 +173,9 @@
uni.hideLoading()
list.value = res.rows
list.value.forEach(item => {
item.content = JSON.parse(item.content)
if(item.doc){
item.doc = JSON.parse(item.doc)
item.content = JSON.parse(item.content)
if(item.doc){
item.doc = JSON.parse(item.doc)
}
totalCost.value = totalCost.value + (item.content.allFee * 1)
})
......@@ -224,12 +224,12 @@
recordIds: []
}
obj.recordIds.push(recordId)
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
api.groupAudit(obj).then((res) => {
api.groupAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
......@@ -298,80 +298,80 @@
uni.navigateTo({
url: `/group/groupInfo?memId=${row.content?.memId}`
})
}
function viewSettleFile(doc){
let url
if(doc.payEvidence){
url = JSON.parse(doc.payEvidence)[0].url || null
console.log(url)
if(url){showImg(url)}
}
}
function showImg(n) {
var str = ''
if(n.indexOf('http')==-1){
str = config.baseUrl_api + n
} else {
str = n
}
if (n.indexOf('png') > -1 || n.indexOf('jpg') > -1 || n.indexOf(
'jpeg') > -1) {
uni.previewImage({
urls: [str],
success: function(res) {
console.log('success', res)
},
fail: function(res) {
console.log('fail', res)
},
complete: function(res) {
console.log('complete', res)
}
})
} else {
goWebView(str)
}
}
function goWebView(url) {
url = url.replace("http://", "https://")
uni.showLoading({
title: '下载中'
});
uni.downloadFile({
url: url,
success: function(res) {
uni.hideLoading();
var filePath = res.tempFilePath;
uni.showLoading({
title: '正在打开'
});
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
uni.hideLoading();
},
fail: function(err) {
uni.hideLoading();
uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}
});
},
fail: function(error) {
uni.hideLoading();
uni.showToast({
title: `下载失败`,
icon: 'none',
duration: 2000
});
}
});
}
function viewSettleFile(doc){
let url
if(doc.payEvidence){
url = JSON.parse(doc.payEvidence)[0].url || null
console.log(url)
if(url){showImg(url)}
}
}
function showImg(n) {
var str = ''
if(n.indexOf('http')==-1){
str = config.baseUrl_api + n
} else {
str = n
}
if (n.indexOf('png') > -1 || n.indexOf('jpg') > -1 || n.indexOf(
'jpeg') > -1) {
uni.previewImage({
urls: [str],
success: function(res) {
console.log('success', res)
},
fail: function(res) {
console.log('fail', res)
},
complete: function(res) {
console.log('complete', res)
}
})
} else {
goWebView(str)
}
}
function goWebView(url) {
url = url.replace("http://", "https://")
uni.showLoading({
title: '下载中'
});
uni.downloadFile({
url: url,
success: function(res) {
uni.hideLoading();
var filePath = res.tempFilePath;
uni.showLoading({
title: '正在打开'
});
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
uni.hideLoading();
},
fail: function(err) {
uni.hideLoading();
uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}
});
},
fail: function(error) {
uni.hideLoading();
uni.showToast({
title: `下载失败`,
icon: 'none',
duration: 2000
});
}
});
}
</script>
......
<template>
<view class="hasfixedbottom">
<view class="text-center whitebg">
<view class="cardNav">
<view @click="goApply">审核</view>
<view class="active">合并</view>
<view @click="goMergeUp">提交</view>
</view>
</view>
<view class="hasfixedbottom">
<view class="text-center whitebg">
<view class="cardNav">
<view @click="goApply">审核</view>
<view class="active">合并</view>
<view @click="goMergeUp">提交</view>
</view>
</view>
<!-- 审批合并 -->
<view class="appList">
<view class="appItem" v-for="(item,index) in infoList" :key="index">
......@@ -15,14 +15,14 @@
<image class="icon" v-else :src="config.baseUrl_api+'/fs/static/member/dx.png'" />
</view>
<view class="status" @click="goDetail(item)">
<text v-if="item.auditStatus == 0" class="text-primary">审核中</text>
<text v-if="item.auditStatus == 1" class="text-success">审核通过</text>
<text v-if="item.auditStatus == 2" class="text-danger">审核拒绝</text>
<text v-if="item.auditStatus == 0" class="text-primary">审核中</text>
<text v-if="item.auditStatus == 1" class="text-success">审核通过</text>
<text v-if="item.auditStatus == 2" class="text-danger">审核拒绝</text>
<text v-if="item.auditStatus == 3" class="text-warning">已撤回</text>
</view>
<view class="date" v-if="item.content.commitTime">提交日期:{{item.content.commitTime}}</view>
<view class="text-primary" v-if="item.content?.wfCode">{{item.content?.wfCode}}</view>
<view class="text-primary" v-if="item.content?.wfCode">{{item.content?.wfCode}}</view>
<view class="name mt0" @click="goDetail(item)">{{item.content.certName}}</view>
<view class="flexbox" @click="goDetail(item)">
<view>
......@@ -42,12 +42,12 @@
</view>
<view class="fixedBottom" v-if="infoList.length>0">
<button @click="handleMerge" style="width: 40%;" class="btn-red">合并</button>
<button @click="handleMerge" style="width: 40%;" class="btn-red">合并</button>
<!-- <button @click="goMergeUp" class="btn-red-kx" style="width: 40%;">合并提交 > </button> -->
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -70,10 +70,10 @@
// pageNum: 1,
// pageSize: 10
auditStatus: '',
mergeFlag: '0'
mergeFlag: '0'
})
const statusArr = ['审批中', '审批通过', '审批拒绝', '审批撤回']
const infoList = ref([])
const infoList = ref([])
const batchList = ref([])
const total = ref(0)
const totalCost = ref(0)
......@@ -99,50 +99,50 @@
}
function getList() {
uni.showLoading({
title: '加载中',
mask: true
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
api.getGroupList(queryParams.value).then(response => {
infoList.value = response.rows
infoList.value.forEach(item => {
item.con = item.content
item.content = JSON.parse(item.content)
item.checked = false
})
infoList.value = response.rows
infoList.value.forEach(item => {
item.con = item.content
item.content = JSON.parse(item.content)
item.checked = false
})
total.value = response.total
uni.hideLoading()
})
}
function goDetail(item) {
let path = `/group/apply/record?certId=${item.content.certId}`
uni.navigateTo({
url: path
let path = `/group/apply/record?certId=${item.content.certId}`
uni.navigateTo({
url: path
});
}
function goMergeUp(){
// 合并提交
let path = `/group/apply/mergeUp`
uni.redirectTo({
url: path
});
function goMergeUp(){
// 合并提交
let path = `/group/apply/mergeUp`
uni.redirectTo({
url: path
});
}
function goApply(){
let path = `/group/apply/applyList`
uni.redirectTo({
url: path
});
function goApply(){
let path = `/group/apply/applyList`
uni.redirectTo({
url: path
});
}
function checkThis(item) {
if(item.auditStatus != 1){
uni.showToast({
title:'审核未通过,无法合并',
icon:'error'
})
return
function checkThis(item) {
if(item.auditStatus != 1){
uni.showToast({
title:'审核未通过,无法合并',
icon:'error'
})
return
}
if (item.checked) {
item.checked = false
......@@ -157,14 +157,14 @@
ids = []
for (var n of infoList.value) {
if (n.checked) {
batchList.value.push(n)
batchList.value.push(n)
ids.push(n.recordId)
}
}
if (batchList.value.length == 0) {
uni.showToast({
title: `请选择至少一条数据`,
icon: 'none'
if (batchList.value.length == 0) {
uni.showToast({
title: `请选择至少一条数据`,
icon: 'none'
})
return
}
......@@ -193,7 +193,7 @@
}
})
}
}
</script>
......
......@@ -50,7 +50,7 @@
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -31,7 +31,7 @@
<!-- 卡片头部:日期 + 状态 -->
<view class="card-header">
<view class="date">
<image src="/static/calendar@2x.png" v-if="item.commitTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<image :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" v-if="item.commitTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<text class="date-text" v-if="item.commitTime">{{ item.commitTime }}</text>
</view>
<view class="status-tags">
......@@ -114,6 +114,7 @@
<script setup>
import { ref, onMounted } from 'vue';
import config from '@/config.js'
import { onLoad } from '@dcloudio/uni-app';
import * as api from '@/common/api.js';
......
......@@ -46,7 +46,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -31,7 +31,7 @@
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>无可变更会员</text>
</view>
</view>
......
......@@ -48,22 +48,22 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
code:''
......@@ -141,29 +141,29 @@
</script>
<style lang='scss' scoped>
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
</style>
......
......@@ -61,7 +61,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
......
......@@ -36,7 +36,7 @@
</view>
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -46,6 +46,7 @@
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref,
getCurrentInstance
......
......@@ -48,7 +48,7 @@
</uni-swipe-action-item>
</uni-swipe-action>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>请选择变更会员</text>
</view>
......@@ -111,7 +111,7 @@
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>无可变更会员</text>
</view>
</view>
......
......@@ -41,7 +41,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -94,7 +94,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>待添加考生</text>
</view>
</view>
......@@ -140,7 +140,7 @@
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>无可参加考试会员</text>
</view>
</view>
......
......@@ -33,7 +33,7 @@
<!-- 空状态 -->
<view class="empty" v-else>
<image src="/static/nodata.png" mode="aspectFit" class="empty-icon" />
<image :src="config.baseUrl_api + '/fs/static/nodata.png'" mode="aspectFit" class="empty-icon" />
<text class="empty-text">暂无收货地址</text>
</view>
......@@ -88,6 +88,7 @@
<script setup>
import { ref, onMounted } from 'vue';
import * as api from '@/common/api.js';
import config from '@/config.js'
const list = ref([]);
const addressPopup = ref(null);
......
......@@ -46,7 +46,7 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -51,7 +51,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -31,7 +31,7 @@
<!-- 卡片头部:日期 + 状态 -->
<view class="card-header">
<view class="date">
<image src="/static/calendar@2x.png" v-if="item.commitTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<image :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" v-if="item.commitTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<text class="date-text" v-if="item.commitTime">{{ item.commitTime }}</text>
</view>
<view class="status-tags">
......@@ -103,6 +103,7 @@
<script setup>
import { ref, onMounted } from 'vue';
import * as api from '@/common/api.js';
import config from '@/config.js'
// 状态Tab配置
const statusTabs = [
......
......@@ -41,7 +41,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>请输入考官姓名和编号精确查找</text>
</view>
</view>
......@@ -51,6 +51,7 @@
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref,
getCurrentInstance
......
......@@ -48,7 +48,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -55,7 +55,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -38,7 +38,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
......
......@@ -76,7 +76,7 @@
<view class="section-title">支付方式</view>
<view class="payment-methods">
<view class="payment-item selected">
<image class="icon" src="/static/min.png" mode="widthFix"></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/min.png'" mode="widthFix"></image>
<text class="payment-name">民生付</text>
<view class="check-icon"></view>
</view>
......@@ -107,6 +107,7 @@
import { ref, computed, onMounted } from 'vue';
import { onLoad ,onShow} from '@dcloudio/uni-app';
import * as api from '@/common/api.js';
import config from '@/config.js'
const examId = ref('');
const loading = ref(true);
......
......@@ -55,7 +55,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -40,7 +40,7 @@
</view>
</z-paging>
<!-- <view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view> -->
</view>
......
......@@ -61,7 +61,7 @@
</view>
<view class="no-logistics" v-else>
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无物流信息</text>
</view>
</view>
......@@ -71,6 +71,7 @@
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
......
......@@ -34,7 +34,7 @@
<view class="empty-wrap" v-else-if="!loading && list.length === 0">
<view class="nodata">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -82,7 +82,7 @@
import * as api from '@/common/api_exam.js'
import { ref } from 'vue'
import { onLoad, onShow } from '@dcloudio/uni-app'
import config from '@/config.js'
const app = getApp()
const tabs = [
......
......@@ -12,7 +12,7 @@
<view class="empty-wrap" v-else-if="!loading && list.length === 0">
<view class="nodata">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无可结算的缴费单</text>
</view>
</view>
......@@ -82,6 +82,7 @@
<script setup>
import * as api from '@/common/api_exam.js'
import config from '@/config.js'
import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
......
......@@ -36,7 +36,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -141,7 +141,7 @@
<!-- 空数据(保留原逻辑+适配截图样式) -->
<view class="nodata" v-if="infoList.length == 0 && !loading">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -150,6 +150,7 @@
<script setup>
// 完全保留你原代码的所有JS逻辑、方法、字段,未做任何修改
import * as api from '@/common/api_exam.js'
import config from '@/config.js'
import { ref } from 'vue'
import { onLoad, onShow } from '@dcloudio/uni-app'
......
......@@ -46,7 +46,7 @@
<!-- 空数据 -->
<view class="nodata" v-if="infoList.length == 0 && !loading">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
......@@ -59,6 +59,7 @@
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import { ref, computed } from 'vue'
import { onLoad, onShow, onReachBottom } from '@dcloudio/uni-app'
......
......@@ -3,25 +3,25 @@
<template>
<view class="role-entry-page">
<!-- 全屏背景图 -->
<image class="page-bg" src="@/static/bg.png" mode="aspectFill"></image>
<image class="page-bg" :src="config.baseUrl_api + '/fs/static/bg.png'" mode="aspectFill"></image>
<!-- 顶部 Logo 区域 -->
<view class="header-wrapper">
<view class="logo-box">
<image class="logo" src="@/static/wx_logo.png" mode="aspectFit"></image>
<image class="logo" :src="config.baseUrl_api + '/fs/static/wx_logo.png'" mode="aspectFit"></image>
</view>
</view>
<!-- 功能按钮区域 -->
<view class="btn-container">
<view @click="goToPage('/personal/addVip_per')">
<image src="@/static/btn01.png" class="btn-item"></image>
<image :src="config.baseUrl_api + '/fs/static/btn01.png'" class="btn-item"></image>
</view>
<view @click="goToPage('/personal/home')">
<image src="@/static/btn02.png" class="btn-item"></image>
<image :src="config.baseUrl_api + '/fs/static/btn02.png'" class="btn-item"></image>
</view>
<view @click="goToPage('/login/loginC')">
<image src="@/static/btn03.png" class="btn-item"></image>
<image :src="config.baseUrl_api + '/fs/static/btn03.png'" class="btn-item"></image>
</view>
</view>
......@@ -31,6 +31,7 @@
<script setup>
import { ref } from 'vue'
import {onShow} from '@dcloudio/uni-app'
import config from '@/config.js'
onShow(() => {
uni.hideLoading();
})
......
......@@ -5,13 +5,13 @@
<view class="yearRow">
<view class="label">缴费年限</view>
<view class="control">
<image class="icon" @click="minusYear" src="/static/dd_02.png" mode="widthFix"
<image class="icon" @click="minusYear" :src="config.baseUrl_api + '/fs/static/dd_02.png'" mode="widthFix"
v-if="form.renewYear > 1"></image>
<image class="icon" src="/static/dd_02_g.png" mode="widthFix" v-else></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/dd_02_g.png'" mode="widthFix" v-else></image>
<text class="num">{{ form.renewYear }}</text>
<image class="icon" src="/static/btn_03.png" mode="widthFix" @click="plusYear"
<image class="icon" :src="config.baseUrl_api + '/fs/static/btn_03.png'" mode="widthFix" @click="plusYear"
v-if="form.renewYear < 5"></image>
<image class="icon" src="/static/btn_03_g.png" mode="widthFix" v-else></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/btn_03_g.png'" mode="widthFix" v-else></image>
</view>
</view>
</view>
......@@ -34,7 +34,7 @@
<label class="radioItem">
<radio value="1" :checked="payType === '1'" class="custom-radio" />
<view class="payInfo">
<image class="icon" src="/static/min.png" mode="widthFix"></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/min.png'" mode="widthFix"></image>
<text>民生付</text>
</view>
</label>
......@@ -69,7 +69,7 @@
} from '@dcloudio/uni-app';
import to from 'await-to-js'
import * as api from '@/common/api.js'
import config from '@/config.js'
const form = ref({
renewYear: 1
})
......
......@@ -4,7 +4,7 @@
<view class="flex">
<view class="imgbox">
<image v-if="state.user.avatar" :src="state.user.avatar"/>
<image v-else src="@/static/nodata.png"/>
<image v-else :src="config.baseUrl_api + '/fs/static/nodata.png'"/>
</view>
<text class="name">{{ state.user.userName }}</text>
</view>
......
......@@ -33,7 +33,7 @@
<!-- 订单头部:日期 + 状态 -->
<view class="card-header">
<view class="date">
<image src="/static/calendar@2x.png" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<image :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<text class="date-text" v-if="item.payTime">{{ item.payTime }}</text>
</view>
<view class="status-tags">
......@@ -165,7 +165,7 @@ import { ref, reactive, onMounted, computed } from 'vue';
onLoad
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
// 获取deptType值(初始值为0,在onMounted中设置实际值)
const deptType = ref(0);
......
......@@ -34,7 +34,7 @@
<!-- checked属性实现默认勾选 -->
<radio value="0" color="#E60012" :checked="payType === '0'" />
<view class="pay-method">
<image class="icon" src="/static/min.png" mode="widthFix"></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/min.png'" mode="widthFix"></image>
<text class="pay-name">民生付</text>
</view>
</label>
......@@ -56,7 +56,7 @@
onLoad
} from '@dcloudio/uni-app';
import * as api from '@/common/api.js'
import config from '@/config.js'
// 核心数据
const formData = ref({}) // 订单统计数据
const rangeId = ref('') // 核心业务ID
......
......@@ -46,7 +46,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
......
......@@ -41,7 +41,7 @@
</view>
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -50,6 +50,7 @@
<script setup>
import * as examApi from '@/common/api_exam.js'
import _ from 'underscore'
import config from '@/config.js'
import {
ref
} from 'vue'
......
......@@ -2,7 +2,7 @@
<view class="page" v-if="isInit">
<view class="bgbg">
<view class="loginOutIcon" @click="loginOut">
<image src="@/static/switch.png"></image>
<image :src="config.baseUrl_api + '/fs/static/switch.png'"></image>
</view>
<view class="welcome" @click="goPath('/myCenter/index')">
<text>您好!{{memberInfo.name}}</text>
......@@ -301,7 +301,7 @@
<view class="date">{{n.belongTime}}</view>
</view>
<view class="nodata" v-if="newsList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -44,7 +44,7 @@
<!-- 卡片头部:日期 + 状态 -->
<view class="card-header">
<view class="date">
<image src="/static/calendar@2x.png" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<image :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<text class="date-text" v-if="item.payTime">{{ item.payTime }}</text>
</view>
<view class="status-tags">
......@@ -150,7 +150,7 @@
import { ref, computed, onMounted } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import * as api from '@/common/api.js';
import config from '@/config.js'
// 角色Tab配置
const roleTabs = [
{ name: '个人会员', type: '0' },
......
......@@ -97,7 +97,7 @@
<uni-forms-item label="营业执照" required>
<view class="upload-box">
<view v-if="!form.businessLicense" class="upload-placeholder" @click="onBusinessLicenseSelect">
<image src="/static/yyzz@2x.png" class="placeholder-img"/>
<image :src="config.baseUrl_api + '/fs/static/yyzz@2x.png'" class="placeholder-img"/>
</view>
<view v-else class="license-preview">
<image v-if="typeof form.businessLicense === 'string'" :src="form.businessLicense" class="license-img" @click="previewImage(form.businessLicense)"></image>
......@@ -115,7 +115,7 @@
<view class="idcard-box">
<view class="idcard-item">
<view v-if="!form.legalIdcPhoto1" class="idcard-placeholder" @click="onIdCardFrontSelect">
<image src="/static/sfz_zm@2x.png" class="placeholder-img"/>
<image :src="config.baseUrl_api + '/fs/static/sfz_zm@2x.png'" class="placeholder-img"/>
</view>
<view v-else class="idcard-preview">
<image :src="form.legalIdcPhoto1" class="idcard-img" @click="previewImage(form.legalIdcPhoto1)"></image>
......@@ -126,7 +126,7 @@
<view class="idcard-box">
<view class="idcard-item">
<view v-if="!form.legalIdcPhoto2" class="idcard-placeholder" @click="onIdCardBackSelect">
<image src="/static/sfz_fm@2x.png" class="placeholder-img"/>
<image :src="config.baseUrl_api + '/fs/static/sfz_fm@2x.png'" class="placeholder-img"/>
</view>
<view v-else class="idcard-preview">
<image :src="form.legalIdcPhoto2" class="idcard-img" @click="previewImage(form.legalIdcPhoto2)"></image>
......@@ -144,7 +144,7 @@
<uni-forms-item label="上传机构照片" required>
<view class="pictures-box">
<view v-if="!form.pictures" class="picture-placeholder" @click="onPicturesSelect">
<image src="/static/jgzp@2x.png" class="placeholder-img"/>
<image :src="config.baseUrl_api + '/fs/static/jgzp@2x.png'" class="placeholder-img"/>
</view>
<view v-else class="pictures-preview">
<image :src="form.pictures.split(',')[0]" class="picture-img" @click="previewImage(form.pictures.split(','))"></image>
......
......@@ -45,7 +45,7 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -42,7 +42,7 @@
</view>
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -50,6 +50,7 @@
<script setup>
import * as examApi from '@/common/api_exam.js'
import config from '@/config.js'
import _ from 'underscore'
import { ref } from 'vue'
import { onLoad,onShow } from '@dcloudio/uni-app'
......
......@@ -42,7 +42,7 @@
</view>
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -50,6 +50,7 @@
<script setup>
import * as examApi from '@/common/api_exam.js'
import config from '@/config.js'
import _ from 'underscore'
import { ref } from 'vue'
import { onLoad,onShow } from '@dcloudio/uni-app'
......
......@@ -48,7 +48,7 @@
</view>
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -64,7 +64,7 @@
onLoad,
onShow
} from '@dcloudio/uni-app'
import config from '@/config.js'
const app = getApp();
const queryParams = ref({
status: '0',
......
......@@ -5,13 +5,13 @@
<view class="yearRow">
<view class="label">缴费年限</view>
<view class="control">
<image class="icon" @click="minusYear" src="/static/dd_02.png" mode="widthFix"
<image class="icon" @click="minusYear" :src="config.baseUrl_api + '/fs/static/dd_02.png'" mode="widthFix"
v-if="form.payYear > 1"></image>
<image class="icon" src="/static/dd_02_g.png" mode="widthFix" v-else></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/dd_02_g.png'" mode="widthFix" v-else></image>
<text class="num">{{ form.payYear }}</text>
<image class="icon" src="/static/btn_03.png" mode="widthFix" @click="plusYear"
<image class="icon" :src="config.baseUrl_api + '/fs/static/btn_03.png'" mode="widthFix" @click="plusYear"
v-if="form.payYear < 5"></image>
<image class="icon" src="/static/btn_03_g.png" mode="widthFix" v-else></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/btn_03_g.png'" mode="widthFix" v-else></image>
</view>
</view>
</view>
......@@ -29,7 +29,7 @@
<label class="radioItem">
<radio value="1" :checked="payType === '1'" class="custom-radio" />
<view class="payInfo">
<image class="icon" src="/static/min.png" mode="widthFix"></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/min.png'" mode="widthFix"></image>
<text>民生付</text>
</view>
</label>
......@@ -64,7 +64,7 @@
import {
minShengPay
} from '@/common/pay.js'
import config from '@/config.js'
const form = ref({
payYear: 1
})
......
......@@ -8,7 +8,7 @@
<!-- 绑定/解绑学员 -->
<view class="bind-student" @click="handleBindAction">
<text>{{ isBound ? '解绑学员' : '绑定学员' }}</text>
<image src="/static/bd@2x.png" class="bind-icon" mode="aspectFit"></image>
<image :src="config.baseUrl_api + '/fs/static/bd@2x.png'" class="bind-icon" mode="aspectFit"></image>
</view>
<!-- 用户信息 -->
......@@ -44,21 +44,21 @@
<view class="func-list">
<view class="func-item" @click="goToAuth">
<view class="func-icon">
<image src="/static/btn01@2x.png"></image>
<image :src="config.baseUrl_api + '/fs/static/btn01@2x.png'"></image>
<!-- <uni-icons type="contact" size="40" color="#1E88E5"></uni-icons> -->
</view>
<text class="func-text">人员信息</text>
</view>
<view class="func-item" @click="goToScore">
<view class="func-icon">
<image src="/static/btn02@2x.png"></image>
<image :src="config.baseUrl_api + '/fs/static/btn02@2x.png'"></image>
<!-- <uni-icons type="person" size="40" color="#1E88E5"></uni-icons> -->
</view>
<text class="func-text">个人会员</text>
</view>
<view class="func-item" @click="goToRecord">
<view class="func-icon">
<image src="/static/btn03@2x.png"></image>
<image :src="config.baseUrl_api + '/fs/static/btn03@2x.png'"></image>
<!-- <uni-icons type="list" size="40" color="#1E88E5"></uni-icons> -->
</view>
<text class="func-text">级位记录</text>
......@@ -70,91 +70,91 @@
<view class="query-section">
<view class="query-item" @click="goToOrder">
<view class="query-item-left">
<image src="/static/user_icon01@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon01@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">我的订单</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(1)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">单位会员查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(2)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">个人会员查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(3)">
<view class="query-item-left">
<image src="/static/user_icon02@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon02@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">旧版级位证书查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(4)">
<view class="query-item-left">
<image src="/static/user_icon02@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon02@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">新版级位证书查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(5)">
<view class="query-item-left">
<image src="/static/user_icon02@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon02@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">级位记录查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(6)">
<view class="query-item-left">
<image src="/static/user_icon02@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon02@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">国际段位证书查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(7)">
<view class="query-item-left">
<image src="/static/user_icon02@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon02@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">中国段位证书查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(8)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">级位考官查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(9)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">段位考官查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(10)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">大众教练员查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(11)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">大众裁判员查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
</view>
<view class="query-item" @click="goToWebView(12)">
<view class="query-item-left">
<image src="/static/user_icon03@2x.png" class="query-item-icon"></image>
<image :src="config.baseUrl_api + '/fs/static/user_icon03@2x.png'" class="query-item-icon"></image>
<text class="query-item-text">培训讲师查询</text>
</view>
<uni-icons type="arrowright" size="20" color="#999"></uni-icons>
......
......@@ -19,7 +19,7 @@
<!-- 订单头部:日期 + 状态 -->
<view class="card-header">
<view class="date">
<image src="/static/calendar@2x.png" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<image :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<text class="date-text" v-if="item.payTime">{{ item.payTime }}</text>
</view>
<view
......@@ -123,7 +123,7 @@ import { ref, reactive, onMounted,computed } from 'vue';
import { onReachBottom } from '@dcloudio/uni-app'
import { useUserStore } from "../store/modules/user";
import * as api from '@/common/api.js'
import config from '@/config.js'
const userStore = useUserStore()
// 数据与分页配置
const list = ref([]);
......
......@@ -16,7 +16,7 @@
<label class="radio-item">
<radio value="0" color="#E60012" :checked="payType === '0'" />
<view class="pay-method">
<image class="icon" src="/static/min.png" mode="widthFix"></image>
<image class="icon" :src="config.baseUrl_api + '/fs/static/min.png'" mode="widthFix"></image>
<text class="pay-name">民生付</text>
</view>
</label>
......@@ -38,7 +38,7 @@
onLoad
} from '@dcloudio/uni-app';
import * as api from '@/common/api.js'
import config from '@/config.js'
// 核心数据
const formData = ref({}) // 订单统计数据
const price = ref('') // 核心业务ID
......
......@@ -86,7 +86,7 @@
</uni-swipe-action-item>
</uni-swipe-action>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>请选择变更会员</text>
</view>
......@@ -151,7 +151,7 @@
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>无可变更会员</text>
</view>
</view>
......
......@@ -25,17 +25,17 @@
</view>
<view style="display: flex;">
<label>有效期:</label>
<view>
<view>
<view v-if="n.personInfo?.valiDateTime">
<text v-if="n.personInfo?.beginTime">{{n.personInfo?.beginTime?.slice(0,10)}}</text>
<text v-if="n.personInfo?.beginTime"></text>
<text>{{n.personInfo?.valiDateTime?.slice(0,10)}}</text>
</view>
<view class="text-danger" v-if="n.oldPersonInfo?.valiDateTime">
<text v-if="n.oldPersonInfo?.beginTime">{{ n.oldPersonInfo?.beginTime?.slice(0,10)}}</text>
<text v-if="n.oldPersonInfo?.beginTime"></text>
<text v-if="n.oldPersonInfo?.valiDateTime">{{n.oldPersonInfo?.valiDateTime?.slice(0,10)}}</text>
</view>
<text v-if="n.personInfo?.beginTime">{{n.personInfo?.beginTime?.slice(0,10)}}</text>
<text v-if="n.personInfo?.beginTime"></text>
<text>{{n.personInfo?.valiDateTime?.slice(0,10)}}</text>
</view>
<view class="text-danger" v-if="n.oldPersonInfo?.valiDateTime">
<text v-if="n.oldPersonInfo?.beginTime">{{ n.oldPersonInfo?.beginTime?.slice(0,10)}}</text>
<text v-if="n.oldPersonInfo?.beginTime"></text>
<text v-if="n.oldPersonInfo?.valiDateTime">{{n.oldPersonInfo?.valiDateTime?.slice(0,10)}}</text>
</view>
<text v-else>--</text>
</view>
</view>
......@@ -134,7 +134,7 @@
</uni-swipe-action-item>
</uni-swipe-action>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>请选择会员</text>
</view>
......@@ -164,9 +164,9 @@
</view>
</template>
<script setup>
import {
szToHz
<script setup>
import {
szToHz
} from '@/common/utils.js'
import {
ref
......
......@@ -59,7 +59,7 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
<!-- <view v-if="userType=='2'" class="block-btn-box">
......@@ -115,7 +115,7 @@
function getList() {
uni.showLoading({
title: `加载中`,
title: `加载中`,
mask: true
})
statistical.value = {
......@@ -204,9 +204,9 @@
}
obj.recordIds.push(recordId)
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
uni.showLoading({
title: '加载中',
mask: true
})
api.audit(obj).then((res) => {
uni.hideLoading()
......
......@@ -48,22 +48,22 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
code:''
......@@ -140,29 +140,29 @@
</script>
<style lang='scss' scoped>
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
</style>
......
......@@ -45,7 +45,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -155,11 +155,11 @@
reason: reason || '',
ids: [id]
}
console.log(obj)
uni.showLoading({
title: '加载中'
console.log(obj)
uni.showLoading({
title: '加载中'
})
api.changeLevelAudit(obj).then((res) => {
api.changeLevelAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
......
......@@ -48,22 +48,22 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
code:''
......@@ -140,29 +140,29 @@
</script>
<style lang='scss' scoped>
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
</style>
......
......@@ -45,22 +45,22 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
code:'',
......@@ -110,87 +110,87 @@
}
})
}
function audit(id, flag) {
if (flag == 0) {
// 拒绝
// 弹出框填写理由
uni.showModal({
title: '请输入拒绝理由',
editable: true,
success: function(res) {
if (res.confirm) {
if (!res.content) {
uni.showToast({
title: '请输入拒绝理由',
icon: 'none'
})
} else {
doApproval(id, flag, res.content)
}
}
}
})
} else if (flag == 1) {
// 二次确认
uni.showModal({
title: '提示',
content: `确定审批通过吗`,
success: function(res) {
if (res.confirm) {
doApproval(id, flag)
}
}
})
}
}
function doApproval(id, flag, reason) {
var obj = {
flag: flag,
reason: reason || '',
ids: [id]
}
function audit(id, flag) {
if (flag == 0) {
// 拒绝
// 弹出框填写理由
uni.showModal({
title: '请输入拒绝理由',
editable: true,
success: function(res) {
if (res.confirm) {
if (!res.content) {
uni.showToast({
title: '请输入拒绝理由',
icon: 'none'
})
} else {
doApproval(id, flag, res.content)
}
}
}
})
} else if (flag == 1) {
// 二次确认
uni.showModal({
title: '提示',
content: `确定审批通过吗`,
success: function(res) {
if (res.confirm) {
doApproval(id, flag)
}
}
})
}
}
function doApproval(id, flag, reason) {
var obj = {
flag: flag,
reason: reason || '',
ids: [id]
}
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
})
api.personChangeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
})
getList()
})
}
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
})
getList()
})
}
</script>
<style lang='scss' scoped>
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
</style>
......
......@@ -19,7 +19,7 @@
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>无可变更会员</text>
</view>
</view>
......
......@@ -52,7 +52,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
......
<template>
<view>
<view>
<z-paging ref="paging" v-show="total>0" v-model="list" @query="getQuery" emptyViewImg="/static/nodata.png">
<view class="searchbar" :slot="top">
<uni-easyinput placeholderStyle="font-size:30rpx" :input-border="false" prefixIcon="search"
v-model="query.name" @blur="getList" @clear="getList" placeholder="搜索姓名">
</uni-easyinput>
</view>
<view class="pdbox">
<view class="personitem" v-for="(n,index) in list" :key="index">
<uni-swipe-action>
<uni-swipe-action-item>
<view class="content-box" @click="handleInfo(n)">
<view class="flexbox" style="flex: 1 1 auto;">
<view class="photobox">
<image class="photo" v-if="n.photo" :src="n.photo" mode='aspectFill'></image>
<view class="colorful" v-else>{{n.name.slice(0,1)}}</view>
</view>
<view>
{{n.name}} <text class="date">({{n.perCode}})</text>
</view>
</view>
<view class="flexbox" style="flex:0 0 auto">
<text v-if="n.certStage==0" class="text-primary">
新会员
</text>
<text v-if="n.certStage==1" class="text-warning">
待提交
</text>
<text v-if="n.certStage==2" class="text-red">
缴费中
</text>
<text v-if="n.certStage==3" class="text-success">
正常
</text>
<text v-if="n.certStage==4" class="text-gray">
过期
</text>
</view>
</view>
<template v-slot:right>
<view class="slot-button">
<!-- <view class="edit-button" @click="handleUpdate(n)">
<uni-icons type="compose" color="#fff" size="20"></uni-icons>
<text class="slot-button-text">编辑</text>
</view> -->
<view class="danger-button" @click="handleDelete(n)">
<uni-icons type="trash" color="#fff" size="20"></uni-icons>
<text class="slot-button-text">删除</text>
</view>
</view>
</template>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
<view class="pdbox">
<view class="personitem" v-for="(n,index) in list" :key="index">
<uni-swipe-action>
<uni-swipe-action-item>
<view class="content-box" @click="handleInfo(n)">
<view class="flexbox" style="flex: 1 1 auto;">
<view class="photobox">
<image class="photo" v-if="n.photo" :src="n.photo" mode='aspectFill'></image>
<view class="colorful" v-else>{{n.name.slice(0,1)}}</view>
</view>
<view>
{{n.name}} <text class="date">({{n.perCode}})</text>
</view>
</view>
<view class="flexbox" style="flex:0 0 auto">
<text v-if="n.certStage==0" class="text-primary">
新会员
</text>
<text v-if="n.certStage==1" class="text-warning">
待提交
</text>
<text v-if="n.certStage==2" class="text-red">
缴费中
</text>
<text v-if="n.certStage==3" class="text-success">
正常
</text>
<text v-if="n.certStage==4" class="text-gray">
过期
</text>
</view>
</view>
<template v-slot:right>
<view class="slot-button">
<!-- <view class="edit-button" @click="handleUpdate(n)">
<uni-icons type="compose" color="#fff" size="20"></uni-icons>
<text class="slot-button-text">编辑</text>
</view> -->
<view class="danger-button" @click="handleDelete(n)">
<uni-icons type="trash" color="#fff" size="20"></uni-icons>
<text class="slot-button-text">删除</text>
</view>
</view>
</template>
</uni-swipe-action-item>
</uni-swipe-action>
</view>
</view>
</z-paging>
<view class="nodata" v-if="list.length==0">
<!-- <image mode="aspectFit" src="/static/nodata.png"></image> -->
<button class="btn-red" v-if="userType=='4'" @click="goVipList">+ 添加会员</button>
<!-- <text v-else>暂无数据</text> -->
</view>
</z-paging>
<view class="nodata" v-if="list.length==0">
<!-- <image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image> -->
<button class="btn-red" v-if="userType=='4'" @click="goVipList">+ 添加会员</button>
<!-- <text v-else>暂无数据</text> -->
</view>
</view>
</template>
......@@ -84,7 +84,7 @@
multiDeptFlag: 1,
perType: 1,
checkPaymentCommit: 1
})
})
const paging = ref(null)
const userType = ref('')
const list = ref([])
......@@ -96,24 +96,24 @@
onShow(() => {
getList()
})
function getQuery(pageNum,pageSize){
query.value.pageNum = pageNum
query.value.pageSize = pageSize
if (app.globalData.userType == '4') {
// 道馆
query.value.multiDeptFlag = null
query.value.showMyPersonFlag = 1
}
api.selectPageList(query.value).then(res => {
for (var l of res.rows) {
if (l.photo && l.photo.indexOf('http') == -1) {
l.photo = config.baseUrl_api + l.photo
}
}
list.value = res.rows
paging.value.complete(res.rows)
total.value = res.total
})
function getQuery(pageNum,pageSize){
query.value.pageNum = pageNum
query.value.pageSize = pageSize
if (app.globalData.userType == '4') {
// 道馆
query.value.multiDeptFlag = null
query.value.showMyPersonFlag = 1
}
api.selectPageList(query.value).then(res => {
for (var l of res.rows) {
if (l.photo && l.photo.indexOf('http') == -1) {
l.photo = config.baseUrl_api + l.photo
}
}
list.value = res.rows
paging.value.complete(res.rows)
total.value = res.total
})
}
function getList() {
uni.showLoading({
......@@ -129,8 +129,8 @@
if (l.photo && l.photo.indexOf('http') == -1) {
l.photo = config.baseUrl_api + l.photo
}
}
list.value = res.rows
}
list.value = res.rows
paging.value.complete(res.rows)
total.value = res.total
uni.hideLoading()
......@@ -174,7 +174,7 @@
}
</script>
<style scoped lang="scss">
<style scoped lang="scss">
.personitem{margin: 0 0 30rpx;}
.searchbar {
display: flex;
......@@ -203,9 +203,9 @@
}
.content-box {
background: #fff;
.photobox{margin-right: 20rpx;
background: #fff;
.photobox{margin-right: 20rpx;
}
}
}
.pdbox{padding: 0 20rpx;}
</style>
\ No newline at end of file
......
......@@ -48,22 +48,22 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
code:''
......@@ -141,29 +141,29 @@
</script>
<style lang='scss' scoped>
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
</style>
......
......@@ -45,22 +45,22 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
</template>
<script setup>
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
import {
ref
} from 'vue'
import {
onLoad,
onShow
} from '@dcloudio/uni-app'
const app = getApp();
const queryParams = ref({
code:'',
......@@ -109,87 +109,87 @@
}
})
}
function audit(id, flag) {
if (flag == 0) {
// 拒绝
// 弹出框填写理由
uni.showModal({
title: '请输入拒绝理由',
editable: true,
success: function(res) {
if (res.confirm) {
if (!res.content) {
uni.showToast({
title: '请输入拒绝理由',
icon: 'none'
})
} else {
doApproval(id, flag, res.content)
}
}
}
})
} else if (flag == 1) {
// 二次确认
uni.showModal({
title: '提示',
content: `确定审批通过吗`,
success: function(res) {
if (res.confirm) {
doApproval(id, flag)
}
}
})
}
}
function doApproval(id, flag, reason) {
var obj = {
flag: flag,
reason: reason || '',
ids: [id]
}
function audit(id, flag) {
if (flag == 0) {
// 拒绝
// 弹出框填写理由
uni.showModal({
title: '请输入拒绝理由',
editable: true,
success: function(res) {
if (res.confirm) {
if (!res.content) {
uni.showToast({
title: '请输入拒绝理由',
icon: 'none'
})
} else {
doApproval(id, flag, res.content)
}
}
}
})
} else if (flag == 1) {
// 二次确认
uni.showModal({
title: '提示',
content: `确定审批通过吗`,
success: function(res) {
if (res.confirm) {
doApproval(id, flag)
}
}
})
}
}
function doApproval(id, flag, reason) {
var obj = {
flag: flag,
reason: reason || '',
ids: [id]
}
console.log(obj)
uni.showLoading({
title: '加载中',
mask:true
})
})
api.mergerVipAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
})
getList()
})
}
uni.hideLoading()
uni.showToast({
title: '操作成功',
icon: 'none'
})
getList()
})
}
</script>
<style lang='scss' scoped>
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
.searchbar {
display: flex;
align-items: center;
padding: 25rpx;
box-sizing: border-box;
:deep(.uni-easyinput .uni-easyinput__content) {
border-radius: 35rpx;
border: none;
height: 70rpx;
}
:deep(.uni-easyinput__content-input) {
font-size: 26rpx;
}
.invertedbtn-red {
border-radius: 50px;
background-color: #fff;
font-size: 30rpx;
padding: 10rpx 20rpx;
}
}
</style>
......
......@@ -19,7 +19,7 @@
</view>
</view>
<view class="nodata" v-if="studentList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>无可变更会员</text>
</view>
</view>
......
......@@ -40,12 +40,12 @@
<view class="name mt0" @click="goDetail(item)">
{{item.name}}
</view>
<view class="flexbox" @click="goDetail(item)" v-if="deptType == 1 || deptType == 2 || deptType == 3">
<view class="w50">
申请调入单位
<view><text>{{item.targetDeptName}}</text></view>
<view class="flexbox" @click="goDetail(item)" v-if="deptType == 1 || deptType == 2 || deptType == 3">
<view class="w50">
申请调入单位
<view><text>{{item.targetDeptName}}</text></view>
</view>
<!--
<!--
<view>
调动类型
<view v-if="item.type == 1">
......@@ -61,17 +61,17 @@
<view>{{item.personCount}}</view>
</view>
</view>
<view v-else class="pp">
会员合计:
<text class="text-primary">{{item.personCount}}</text>
</view>
<view v-else class="pp">
会员合计:
<text class="text-primary">{{item.personCount}}</text>
</view>
<view class="func"
v-if="(deptType == 1&&item.ztxRes == 0)||((deptType == 2 || deptType == 3)&&item.shenRes == 0)">
<button @click="audit(item.id,'2')">拒绝</button>
<button @click="audit(item.id,'1')">同意</button>
</view>
<view class="func" v-if="(deptType == 6&&(item.status == 0 || item.status == 2))">
<button @click="del(item)">删除</button>
<button @click="del(item)">删除</button>
<button @click="editThis(item)">编辑</button>
<button v-if="item.status == 0 || item.status == 2" @click="handleSubmit(item)">提交审核</button>
</view>
......@@ -81,7 +81,7 @@
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......@@ -159,10 +159,10 @@
getList()
}
function getList() {
uni.showLoading({
title: '加载中',
mask: true
function getList() {
uni.showLoading({
title: '加载中',
mask: true
})
api.getMobilizelist(queryParams.value).then(res => {
uni.hideLoading()
......@@ -206,39 +206,39 @@
url: path
});
}
function handleSubmit(row){
uni.showModal({
title: '提示',
content: `确定提交吗`,
success: function(res) {
if (res.confirm) {
api.commit([row.id]).then(Response=>{
uni.showToast({
icon:"none",
title:'提交成功!'
})
getList()
})
}
}
})
function handleSubmit(row){
uni.showModal({
title: '提示',
content: `确定提交吗`,
success: function(res) {
if (res.confirm) {
api.commit([row.id]).then(Response=>{
uni.showToast({
icon:"none",
title:'提交成功!'
})
getList()
})
}
}
})
}
function del(row){
uni.showModal({
title: '提示',
content: `确定删除吗`,
success: function(res) {
if (res.confirm) {
api.delMobilize(row.id).then(Response=>{
uni.showToast({
icon:"none",
title:'删除成功!'
})
getList()
})
}
}
})
function del(row){
uni.showModal({
title: '提示',
content: `确定删除吗`,
success: function(res) {
if (res.confirm) {
api.delMobilize(row.id).then(Response=>{
uni.showToast({
icon:"none",
title:'删除成功!'
})
getList()
})
}
}
})
}
function audit(rangeId, flag) {
if (flag == '2') {
......@@ -280,12 +280,12 @@
reason: reason || '',
rangeIds: rangeId
}
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
console.log(obj)
uni.showLoading({
title: '加载中',
mask: true
})
api.mobilizeAudit(obj).then((res) => {
api.mobilizeAudit(obj).then((res) => {
uni.hideLoading()
uni.showToast({
title: '操作成功',
......
......@@ -51,7 +51,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
<view style="height:200rpx;"></view>
......@@ -199,44 +199,44 @@ function circulation(id) {
}
})
}
function goWebView(url) {
url = url.replace("http://", "https://")
uni.showLoading({
title: '下载中'
});
uni.downloadFile({
url: url,
success: function(res) {
uni.hideLoading();
var filePath = res.tempFilePath;
uni.showLoading({
title: '正在打开'
});
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
uni.hideLoading();
},
fail: function(err) {
uni.hideLoading();
uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}
});
},
fail: function(error) {
uni.hideLoading();
uni.showToast({
title: `下载失败`,
icon: 'none',
duration: 2000
});
}
});
function goWebView(url) {
url = url.replace("http://", "https://")
uni.showLoading({
title: '下载中'
});
uni.downloadFile({
url: url,
success: function(res) {
uni.hideLoading();
var filePath = res.tempFilePath;
uni.showLoading({
title: '正在打开'
});
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function(res) {
uni.hideLoading();
},
fail: function(err) {
uni.hideLoading();
uni.showToast({
title: err,
icon: 'none',
duration: 2000
});
}
});
},
fail: function(error) {
uni.hideLoading();
uni.showToast({
title: `下载失败`,
icon: 'none',
duration: 2000
});
}
});
}
function handleBack(row){
......
......@@ -35,7 +35,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
<view style="height:200rpx;"></view>
......@@ -53,17 +53,17 @@ const queryParams = ref({
yjId:''
})
const statistical = ref({})
onLoad((option) => {
onLoad((option) => {
if (app.globalData.isLogin) {
queryParams.value.yjId = option.id
init()
} else {
queryParams.value.yjId = option.id
init()
} else {
app.firstLoadCallback = () => {
queryParams.value.yjId = option.id
init()
};
}
queryParams.value.yjId = option.id
init()
};
}
})
function init(){
uni.showLoading({
......
......@@ -32,7 +32,7 @@
<!-- 订单头部:日期 + 状态 -->
<view class="card-header">
<view class="date">
<image src="/static/calendar@2x.png" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<image :src="config.baseUrl_api + '/fs/static/calendar@2x.png'" v-if="item.payTime" mode="widthFix" style="width:30rpx;height:30rpx;"/>
<text class="date-text" v-if="item.payTime">{{ item.payTime }}</text>
</view>
<view
......@@ -148,7 +148,7 @@
import { ref, reactive, onMounted, computed } from 'vue';
import { onReachBottom, onLoad } from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
// 标签栏配置
const tabs = ref([
{ name: '个人会员', type: '0' },
......
......@@ -100,7 +100,7 @@
<!-- 空数据状态 -->
<view class="empty-state" v-else>
<image mode="aspectFit" src="/static/nodata.png" class="empty-icon"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'" class="empty-icon"></image>
<text class="empty-text">暂无数据</text>
</view>
</view>
......
......@@ -42,7 +42,7 @@
</uni-swipe-action>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>请添加会员</text>
</view>
......@@ -65,6 +65,7 @@
import { ref } from 'vue'
import { onShow, onLoad } from '@dcloudio/uni-app'
import * as api from '@/common/api.js'
import config from '@/config.js'
const app = getApp()
const queryParams = ref({
rangeId: '',
......
......@@ -65,7 +65,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -62,7 +62,7 @@
</view>
<view class="nodata" v-if="infoList.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
......@@ -41,7 +41,7 @@
</view>
</view>
<view class="nodata" v-if="list.length==0">
<image mode="aspectFit" src="/static/nodata.png"></image>
<image mode="aspectFit" :src="config.baseUrl_api + '/fs/static/nodata.png'"></image>
<text>暂无数据</text>
</view>
</view>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!