Commit 856f65cb by 李伟康

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents c098c3ab 265c15a3
......@@ -198,6 +198,9 @@
.py-16 {
padding: toRpx(16) 0;
}
.py-24 {
padding: toRpx(24) 0;
}
.pt-32 {
padding-top: toRpx(32) !important;
}
......

56.1 KB | W: | H:

30.4 KB | W: | H:

assets/images/studyCenter/Leaderboard-bg.png
assets/images/studyCenter/Leaderboard-bg.png
assets/images/studyCenter/Leaderboard-bg.png
assets/images/studyCenter/Leaderboard-bg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -18,9 +18,10 @@
<view class="cancel-button" @click="handleCancel">
未提交
</view>
<view class="confirm-button" @click="handleConfirm">
<view class="confirm-button" v-if="!isLoading" @click="handleConfirm">
{{ confirmText }}
</view>
<view class="confirm-button confirm-button-loading" v-else> {{ confirmText }}</view>
</view>
......@@ -145,6 +146,10 @@ export default {
text-align: center;
line-height: toRpx(80);
&-loading {
opacity: 0.5;
}
&:active {
opacity: 0.8;
}
......
......@@ -185,11 +185,12 @@ export default {
// index = tabs.findIndex(e => e.name == 'ActivityCenter')
// this.changeIndex(index, this.tabs[index])
// })
// uni.$on('studyCenter', () => {
// let { tabs } = this,
// index = tabs.findIndex(e => e.name == 'StudyCenter')
// this.changeIndex(index, this.tabs[index])
// });
// 监听学习任务弹窗提醒,长课程
uni.$on('studyCenter', () => {
let { tabs } = this,
index = tabs.findIndex(e => e.name == 'StudyCenter')
this.changeIndex(index, this.tabs[index])
});
console.log('this.tabIndex', this.tabIndex)
this.getUnreadCount()
this.getStudyCenterPermission()
......
......@@ -20,7 +20,7 @@
</view>
<image class="recommend-course-item-img"
src="../../../../assets/images/common/recommend-course-default.webp" mode="scaleToFill" />
:src="require(`@/assets/images/common/${COURSE_TYPE[item.courseFileType].image}.webp`)" mode="scaleToFill" />
<view class="recommend-course-content">
<view class="recommend-course-item-title">
{{ item.title }}
......@@ -51,7 +51,7 @@
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="../../../../assets/images/boutique/nothing.png" />
<image class="icon" src="../../../../assets/images/common/noData.png" />
暂无数据
</view>
</template>
......@@ -360,16 +360,17 @@ export default {
}
.nothing {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
margin-top: toRpx(280);
font-size: toRpx(28);
height: toRpx(1000);
color: #999999;
font-size: toRpx(24);
.icon {
width: toRpx(678);
height: toRpx(284);
margin-bottom: toRpx(24);
width: toRpx(344);
height: toRpx(208);
}
}
......
......@@ -41,7 +41,7 @@
</template>
<template v-else>
<view class="nothing flex">
<image class="icon" src="../../../../assets/images/boutique/nothing.png" />
<image class="icon" src="../../../../assets/images/common/noData.png" />
暂无数据
</view>
</template>
......
......@@ -229,6 +229,7 @@ export default {
created() {
// 监听课程数量更新事件
uni.$on('update:totalCourseCount', (count) => {
console.log(count, 'totalCourseCount')
this.totalCourseCount = count
})
},
......@@ -237,15 +238,15 @@ export default {
uni.$off('update:totalCourseCount')
},
async mounted() {
const beisenToken = uni.$storage.get('beisenToken')
console.log(beisenToken, 'beisenToken')
this.isBeisen = !!beisenToken
if (!beisenToken) {
// 没有北森权限则typeList没有推荐课程
this.typeList = [
{ tabName: '我的任务', num: () => '' }
]
}
// const beisenToken = uni.$storage.get('beisenToken')
// console.log(beisenToken, 'beisenToken')
// this.isBeisen = !!beisenToken
// if (!beisenToken) {
// // 没有北森权限则typeList没有推荐课程
// this.typeList = [
// { tabName: '我的任务', num: () => '' }
// ]
// }
// 检查是否显示我的任务
this.showMyTask = await this.checkStudyCenterPermission()
......@@ -270,7 +271,7 @@ export default {
if (res) {
const list = Array.isArray(res) ? res : []
const filtered = list
.filter(item => item && item.categoryName !== '未分组')
.filter(item => item && item.id !== 1)
.map(item => ({
...item,
children: [
......
......@@ -48,6 +48,9 @@ export default {
}
let apiTargetName = !params.defeat ? 'getQuotationCustomerList' : 'getWorkPackageGoodsList'
console.log(apiTargetName, 'apiTargetName')
if (params.defeat) {
apiParams.keyword=searchValue
}
const { list } = await uni.$api.popupApi[apiTargetName](apiParams)
let customerList = list
if (params.defeat) {
......
......@@ -19,7 +19,7 @@
</view>
<image class="completed-course-item-img"
src="../../../../assets/images/common/course-default-bg.webp" mode="scaleToFill" />
:src="require(`@/assets/images/common/${COURSE_TYPE[item.courseFileType].image}.webp`)" mode="scaleToFill" />
<view class="completed-course-content">
<view class="completed-course-item-title">
{{ item.title }}
......
......@@ -578,7 +578,7 @@ export default {
}
}
.task-item-progress {
width: toRpx(151);
width: toRpx(214);
height: toRpx(16);
background: linear-gradient(128.8deg, rgba(117, 188, 255, .35) 0%, rgba(44, 102, 247, .35) 100%);
border-radius: toRpx(8);
......
......@@ -21,7 +21,7 @@
</view>
<image class="recommend-course-item-img"
src="../../../../assets/images/common/course-default-bg.webp" mode="scaleToFill" />
:src="require(`@/assets/images/common/${COURSE_TYPE[item.courseFileType].image}.webp`)" mode="scaleToFill" />
<view class="recommend-course-content">
<view class="recommend-course-item-title">
{{ item.title }}
......
......@@ -105,6 +105,8 @@ export default {
// if(currentWebview){
// currentWebview.close()
// }
// 点击返回按钮,触发学习弹窗事件
uni.$emit('showStudyPopup', {name: 'courseDetail'})
uni.navigateBack()
},
async openCourse(index, item) {
......
......@@ -95,6 +95,8 @@ export default {
},
methods: {
back() {
// 点击返回按钮,触发学习弹窗事件
uni.$emit('showStudyPopup', {name: 'leaderboard'})
uni.navigateBack()
},
switchTab(index) {
......@@ -163,7 +165,7 @@ export default {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-weight: 500;
font-size: toRpx(32);
color: #1a1a1a;
}
......@@ -179,7 +181,7 @@ export default {
width: toRpx(1084);
height: toRpx(1312);
border-radius: toRpx(32);
background: #ffffffb3;
background: #ffffff;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
position: relative;
......@@ -194,7 +196,7 @@ export default {
width: 100%;
height: toRpx(128);
display: block;
// background-color: #ecf2ff;
background-color: #ecf2ff;
}
}
......@@ -347,7 +349,7 @@ export default {
}
.rank-scroll {
max-height: toRpx(960);
max-height: toRpx(944);
}
}
......
......@@ -72,6 +72,8 @@ export default {
},
methods: {
back() {
// 点击返回按钮,触发学习弹窗事件
uni.$emit('showStudyPopup', {name: 'myCourse'})
uni.navigateBack()
},
switchTab(index) {
......@@ -140,7 +142,7 @@ export default {
}
.title {
font-size: toRpx(36);
font-size: toRpx(32);
font-weight: 500;
color: #000000;
text-align: center;
......
......@@ -69,6 +69,8 @@ export default {
},
methods: {
back() {
// 点击返回按钮,触发学习弹窗事件
uni.$emit('showStudyPopup', {name: 'myExam'})
uni.navigateBack()
},
switchTab(index) {
......@@ -120,7 +122,7 @@ export default {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-weight: 700;
font-weight: 500;
font-size: toRpx(32);
color: #1a1a1a;
}
......
......@@ -118,10 +118,13 @@
}
this.isHmzx = studyCenterPermission.hmzxAuth
this.isYb = studyCenterPermission.authorizedBusinessList && studyCenterPermission.authorizedBusinessList.includes(1)
console.log(this.isBeisen,this.isHmzx, this.isYb, 'this.isYb')
this.getStudyBoard();
},
methods: {
back() {
// 点击返回按钮,触发学习弹窗事件
uni.$emit('showStudyPopup', {name: 'myTask'})
uni.navigateBack()
},
goToMyTask() {
......@@ -221,7 +224,7 @@
}
.title {
font-size: toRpx(36);
font-size: toRpx(32);
font-weight: 500;
color: #000000;
text-align: center;
......@@ -251,7 +254,6 @@
flex: 1;
padding: toRpx(56) toRpx(48) toRpx(80);
overflow: hidden;
padding-top: toRpx(44);
.study-left {
width: toRpx(656);
......
......@@ -29,7 +29,7 @@
</view>
<view class="file-info">
<text class="file-name">{{ getFileName(file) }}</text>
<text class="file-size">{{ formatFileSize(file.size) }}</text>
<!-- <text class="file-size">{{ formatFileSize(file.size) }}</text> -->
</view>
</view>
<!-- 图片文件显示 -->
......@@ -90,12 +90,12 @@ export default {
console.log('data', data)
if (data && data.zyPayUrl) {
const urls = data.zyPayUrl.split(',').filter(url => url.trim())
this.$set(this.contractData, this.uploadField.key, urls.map(url => ({
url: url.trim(),
type: this.getFileTypeFromUrl(url.trim()),
name: this.getFileNameFromUrl(url.trim()),
size: 0 // 从字符串无法获取文件大小
})))
this.$set(this.contractData, this.uploadField.key, urls.map(url => ({
url: url.trim(),
type: this.getFileTypeFromUrl(url.trim()),
name: this.getFileNameFromUrl(url.trim()),
size: 0 // 从字符串无法获取文件大小
})))
console.log('this.contractData', this.contractData)
}
......@@ -253,9 +253,10 @@ export default {
uni.showLoading({ title: '上传中...', mask: true })
// 使用tempFilePath进行上传
uploadFile(null, fileData.tempFilePath)
uploadFile(fileData.tempFile, fileData.tempFilePath)
.then(url => {
uni.hideLoading()
console.log('上传成功', url)
// 添加到合同文件列表
this.addContractFile({
url: url,
......@@ -280,12 +281,14 @@ export default {
// 获取合同文件数组
getContractFiles() {
console.log(this.contractData,'this.contractData')
const files = this.contractData[this.uploadField.key]
return Array.isArray(files) ? files : []
return Array.isArray(files) ? files : []
},
// 检查是否是PDF文件
isPdfFile(file) {
console.log(file,'file')
if (typeof file === 'object' && file.type) {
return file.type === 'pdf'
}
......
......@@ -683,7 +683,7 @@ export default {
padding-bottom: toRpx(24);
position: relative;
.scroll-view {
height: 100%;
height: calc(100% - #{toRpx(168)});
}
}
......
......@@ -121,7 +121,7 @@
<PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因">
<template #content>
<view class="defeat-order-box modatcontent">
<textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="15" v-model="textareaValue" />
<textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="30" v-model="textareaValue" />
</view>
</template>
<template #footer>
......@@ -559,47 +559,80 @@ export default {
urls = val.contractFiles.map(file => file.url).filter(url => url)
}
console.log(urls)
uni.$api.equityApi
.getQuotationInfoById({
id: this.orderCardDetail?.id
const that = this
if (this.orderCardDetail.zyPayStatus == 2 && this.orderCardDetail.canUpdateZyPayUrl == 1) {
uni.showModal({
title: '修改确认',
content: '本次操作将永久替换原图或协议(仅限1次修改权限),请确认是否更新?',
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {
if (res.confirm) {
uni.showLoading({
mask: true
})
console.log(that.orderCardDetail)
uni.$api.equityApi.updateZyInfo({ id: that.orderCardDetail?.id, zyPayUrl: urls.join(',') }).then(res => {
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
that.$emit('refresh')
// _this.getList();
}, 500)
})
}
}
})
.then(res => {
console.log(res, 'res')
let orderInfo = {}
let { default4SStoreInfo } = this.userInfo
orderInfo.check = true
orderInfo.id = res.id
orderInfo.orderId = res.orderId
orderInfo.merchantId4s = default4SStoreInfo?.merchantId
orderInfo.merchantName4s = default4SStoreInfo?.merchantName
orderInfo.referrer = res.referrer
orderInfo.referrerId = res.referrerId
console.log(orderInfo, 'orderInfo')
uni.showLoading({
mask: true
} else {
uni.$api.equityApi
.getQuotationInfoById({
id: this.orderCardDetail?.id
})
uni.$api.equityApi
.updateCustomerInfo({
...orderInfo,
zyPayUrl: urls.join(',')
})
.then(result => {
console.log(result, 'resultresult')
this.$refs.contractPopupRef.close()
uni.hideLoading()
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
})
.catch(err => {
console.log(err)
uni.hideLoading()
.then(res => {
console.log(res, 'res')
let orderInfo = {}
let { default4SStoreInfo } = this.userInfo
orderInfo.check = true
orderInfo.id = res.id
orderInfo.orderId = res.orderId
orderInfo.merchantId4s = default4SStoreInfo?.merchantId
orderInfo.merchantName4s = default4SStoreInfo?.merchantName
orderInfo.referrer = res.referrer
orderInfo.referrerId = res.referrerId
console.log(orderInfo, 'orderInfo')
uni.showLoading({
mask: true
})
})
.catch(err => {
uni.hideLoading()
})
uni.$api.equityApi
.updateCustomerInfo({
...orderInfo,
zyPayUrl: urls.join(',')
})
.then(result => {
console.log(result, 'resultresult')
this.$refs.contractPopupRef.close()
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
})
.catch(err => {
console.log(err)
uni.hideLoading()
})
})
.catch(err => {
uni.hideLoading()
})
}
}
},
get methods() {
......
<template>
<view class="order-management">
<view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名搜索" />
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons>
</view>
</view>
<view class="tab-container flex">
<view class="flex">
<view class="flex tab-flex-box">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text>
......@@ -333,7 +333,6 @@ export default {
.search-box {
padding: toRpx(40) toRpx(48) toRpx(0);
margin-bottom: toRpx(24);
position: relative;
&::after {
content: '';
......@@ -401,9 +400,11 @@ export default {
.tab-container {
display: flex;
// justify-content: start;
padding: toRpx(0) toRpx(48);
margin-bottom: toRpx(24);
position: relative;
padding-right: toRpx(48);
.tab-flex-box {
padding: toRpx(24) 0 toRpx(24) toRpx(48);
}
.flex:first-child {
display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!