Commit 00dbb88a by 李伟康

Merge branch 'sass+v5.8.2' of http://192.168.3.233:8090/glsx/gl_tape into sass+v5.8.2

2 parents ef802de6 435bfcaf
Showing 46 changed files with 192 additions and 214 deletions
......@@ -4,6 +4,7 @@
import { mapState } from 'vuex'
import { Ws } from '@/ws/Ws.js'
import { RecordSaveService, UploadService } from '@/utils/recordManager/index.js'
import appCacheApi from '@/utils/clearAppCache.js'
export default {
computed: {
...mapState('audio', ['isEnd', 'isStart'])
......@@ -13,7 +14,7 @@
},
onLaunch: async function () {
this.onKeep()
this.setAPPVersion()
// this.setAPPVersion()
setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向
plus.screen.lockOrientation('landscape-primary')
......@@ -48,6 +49,7 @@
}
},
onShow: async function () {
appCacheApi.clearAppCache()
this.$store.dispatch('setBackgroundState', false)
this.$store.dispatch('setActivityWindowPopCount', 1) //冷启动重置活动弹框次数
// 触发轮询开始事件,通知上传管理重新开始轮询
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -227,7 +227,7 @@ export default {
border-radius: toRpx(48);
// padding: 0 toRpx(48);
box-sizing: border-box;
background-image: url(@/assets/images/point/attendance-bg.png);
background-image: url(@/assets/images/point/attendance-bg.webp);
background-repeat: no-repeat;
padding-bottom: toRpx(80);
......
......@@ -182,7 +182,7 @@
<view class="dailog-box">
<view class="dailog-close" @click="show = false"><uni-icons type="closeempty" size="20"></uni-icons></view>
<view class="dailog-logo">
<image src="../../../../assets/images/point/tips.png"></image>
<image src="../../../../assets/images/point/tips.webp"></image>
</view>
<view class="dailog-title">领取提醒</view>
<view class="dailog-content">
......@@ -626,11 +626,11 @@ export default {
}
.unclaimed-bg {
background: url('../../../../assets/images/point/unclaimed-bg.png') no-repeat;
background: url('../../../../assets/images/point/unclaimed-bg.webp') no-repeat;
}
.claimed-bg {
background: url('../../../../assets/images/point/claimed-bg.png') no-repeat;
background: url('../../../../assets/images/point/claimed-bg.webp') no-repeat;
}
.coupon-bg {
......
......@@ -282,7 +282,7 @@ export default {
}
&.rule-box {
background-image: url('../../../../assets//images/point/rule_bg.png');
background-image: url('../../../../assets//images/point/rule_bg.webp');
background-size: 100% 100%;
border: none;
height: toRpx(424);
......@@ -565,7 +565,7 @@ export default {
width: toRpx(618);
.month-box {
background: url(../../../../assets//images/point/point-bg.png);
background: url(../../../../assets//images/point/point-bg.webp);
background-size: 100% 100%;
border: toRpx(2) solid #ffffff;
height: 100%;
......
......@@ -285,7 +285,7 @@ import Ranking from './components/Point/Ranking.vue'
import Calendar from './components/Income/Calendar.vue'
import Promotion from './components/Income/Promotion.vue'
import History from './components/Income/History.vue'
import merge from '@/mixin/record/merge.js'
// import merge from '@/mixin/record/merge.js'
import MessageDetail from './components/Message/MessageDetail.vue'
import SwiperComponent from '../SwiperComponent.vue'
import StudyCenter from './components/StudyCenter.vue'
......@@ -304,7 +304,7 @@ import ErrorOrderPopup from '@/components/ErrorOrderPopup.vue'
import { FileUploadManager, UploadService } from '@/utils/recordManager/index.js'
export default {
// mixins: [recorder, uploader, timeout, versionCheck, merge, interceptionMixin],
mixins: [recorder, versionCheck, interceptionMixin, merge],
mixins: [recorder, versionCheck, interceptionMixin],
components: {
ReceptionCenter,
StudyCenter,
......
<template>
<view
class="noviceGuide-box"
v-if="showNoviceGuide"
>
<!-- <template v-if="step == 1">
<img
:src="step_1[1]"
class="step-1-1"
>
<img
:src="step_1[2]"
class="step-1-2"
@click="step = 2"
>
</template>
<template v-else-if="step = 2">
<img
:src="step_1[1]"
class="step-2-1"
>
<img
:src="step_1[2]"
class="step-2-2"
@click="step = 2"
>
</template> -->
<template v-for="(i,index) in stepList">
<view
:key="index"
v-if="index == step"
>
<image
:src="i[1]"
:class="['step',`step-${index + 1}-1`]"
/>
<image
:src="i[2]"
:class="['step',`step-${index + 1}-2`]"
@click="jump"
/>
</view>
</template>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'NoviceGuide',
computed: {
watchUpdateStatus () {
return this.$store.state.update.status
},
},
watch: {
watchUpdateStatus: {
immediate: true,
handler (newval) {
this.showNoviceGuide = !newval && !uni.$storage.get('noviceGuideStatus')
}
},
},
data () {
return {
showNoviceGuide: false,
step: 0,
stepList: [
{
'1': require('@/assets/images/noviceGuide/step1-1.webp'),
'2': require('@/assets/images/noviceGuide/step1-2.webp')
},
{
'1': require('@/assets/images/noviceGuide/step2-1.webp'),
'2': require('@/assets/images/noviceGuide/step2-2.webp')
},
{
'1': require('@/assets/images/noviceGuide/step3-1.webp'),
'2': require('@/assets/images/noviceGuide/step3-2.webp')
},
{
'1': require('@/assets/images/noviceGuide/step4-1.webp'),
'2': require('@/assets/images/noviceGuide/step4-2.webp')
},
{
'1': require('@/assets/images/noviceGuide/step5-1.webp'),
'2': require('@/assets/images/noviceGuide/step5-2.webp')
}
],
}
},
mounted () {
},
methods: {
jump () {
this.step += 1
if (this.step == 2) this.$emit('nextStep')
if(this.step == 5) {
this.showNoviceGuide = false
uni.$storage.set('noviceGuideStatus', Date.now())
this.$emit('back')
}
}
}
}
</script>
<style scoped lang='scss'>
.noviceGuide-box {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 10086;
background-color: #000000bf;
.step {
position: absolute;
}
.step-1-1 {
width: 2060rpx;
height: 244rpx;
top: 70rpx;
left: 256rpx;
}
.step-1-2 {
width: 662rpx;
height: 462rpx;
top: 424rpx;
left: 50%;
transform: translateX(-50%);
}
.step-2-1 {
left: 8rpx;
bottom: 152rpx;
width: 294rpx;
height: 120rpx;
}
.step-2-2 {
left: 326rpx;
bottom: 150rpx;
width: 1066rpx;
height: 350rpx;
}
.step-3-1 {
width: 2168rpx;
height: 340rpx;
top: 262rpx;
left: 50%;
transform: translateX(-50%);
}
.step-3-2 {
width: 662rpx;
height: 510rpx;
top: 602rpx;
left: 50%;
transform: translateX(-50%);
}
.step-4-1 {
width: 190rpx;
height: 1248rpx;
top: 96rpx;
right: 20rpx;
}
.step-4-2 {
width: 1074rpx;
height: 312rpx;
top: 50%;
right: 226rpx;
transform: translateY(-50%);
}
.step-5-1 {
width: 190rpx;
height: 192rpx;
bottom: 96rpx;
right: 20rpx;
}
.step-5-2 {
width: 1074rpx;
height: 312rpx;
right: 226rpx;
bottom: 144rpx;
}
}
</style>
\ No newline at end of file
......@@ -9,7 +9,7 @@
</view>
<template v-if="componentObject[popupType] && !componentObject[popupType].hideSearch">
<view class="popup-search">
<input class="input" type="text" :placeholder="(componentObject[popupType] && componentObject[popupType].placeholder) || '请输入'" placeholder-class="placeholder" v-model="componentObject[popupType].searchValue" confirm-type="search" @confirm="handleSearch" />
<input class="input" type="text" :placeholder="(componentObject[popupType] && componentObject[popupType].placeholder) || '请输入'" placeholder-class="placeholder" v-model="componentObject[popupType].searchValue" confirm-type="search" @input="onSearchValueInput" @confirm="handleSearch" />
<view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="componentObject[popupType] && componentObject[popupType].searchValue"></uni-icons>
</view>
......@@ -256,6 +256,15 @@ export default {
popupType: 12
}, true)
},
onSearchValueInput (e) {
const filtered = (e.detail.value || '').replace(
/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|(\ud83e[\udd00-\uddff])|[\u2600-\u26FF]|[\u2700-\u27BF]|[\uFE0F]/gi,
''
)
this.$nextTick(() => {
this.$set(this.componentObject[this.popupType], 'searchValue', filtered)
})
},
clear () {
this.componentObject[this.popupType].searchValue = ''
this.handleSearch()
......
......@@ -2,13 +2,18 @@
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "2.25.0",
"versionCode" : 2250,
"versionName" : "2.25.2",
"versionCode" : 2252,
"transformPx" : false,
"sassImplementationName" : "node-sass",
/* 5+App特有相关 */
"app-plus" : {
"cache" : false,
"cache" : {
"mode" : "noCache"
},
"webview" : {
"cacheMode" : "noCache"
},
"bounce" : "none",
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
......
<template>
<view class="order-management">
<view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="keyword" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<input class="search-input" placeholder-class="placeholder" v-model="keyword" confirm-type="search" @input="onKeywordInput" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="keyword"></uni-icons>
</view>
......@@ -237,6 +237,15 @@ export default {
this.clearWaitOrderPolling()
},
methods: {
onKeywordInput(e) {
const filtered = (e.detail.value || '').replace(
/(\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|(\ud83e[\udd00-\uddff])|[\u2600-\u26FF]|[\u2700-\u27BF]|[\uFE0F]/gi,
''
)
this.$nextTick(() => {
this.keyword = filtered
})
},
clear() {
this.keyword = ''
this.search()
......
......@@ -26,10 +26,6 @@
/>
</template>
<template slot="content">
<!-- <novice-guide
@nextStep="nextStep"
@back="back"
/> -->
</template>
</home-frame>
</view>
......@@ -37,12 +33,11 @@
<script>
import detail from './detail/detail'
import { mapMutations } from 'vuex'
import NoviceGuide from '@/components/NoviceGuide.vue'
import HomeFrame from '@/components/HomeFrame/index.vue'
// import storge from "@/mixin/storge";
export default {
// mixins: [storge],
components: { HomeFrame, detail, NoviceGuide },
components: { HomeFrame, detail },
data () {
return {
moduleList: [],
......
<template>
<view class="form-container formCell">
<view class="form-item flex align-center justify-between" :class="{ 'full-width': field.fullWidth, 'form-item-textarea': field.type === 'textarea' }" v-for="field in formFields" :key="field.key" @click.stop="handleCell(field)">
<view class="from-label" v-if="field.type !== 'pdf'">
<view
class="form-item flex align-center justify-between"
:class="{
'full-width': field.fullWidth,
'form-item-textarea': field.type === 'textarea',
'form-item-switchInput': field.type === 'switchInput'
}"
v-for="field in formFields"
:key="field.key"
@click.stop="handleCell(field)"
>
<view class="from-label" v-if="field.type !== 'pdf' && field.type !== 'switchInput'">
{{ field.label }}
<text class="requiredLabel" v-if="field.required">*</text>
<text class="requiredLabel" v-if="field.required || isSwitchInputRequired(field)">*</text>
</view>
<template v-if="field.type === 'input'" class="flex align-center">
<template v-if="field.type === 'input'">
<input class="formInput" :class="{ formInputDisabled: field.disabled, autolabel: field.placeholder == '自动计算' }" :min="field.min" :max="field.max" v-if="field.targetObj" :type="field.inputType || 'text'" :disabled="field.disabled" :placeholder="field.placeholder || '请输入'" :maxlength="field.maxlength || 100" v-model="formData[field.targetObj][field.targetKey]" :pattern="field.pattern || ''" @input="e => handleInput(e, field)" @blur="e => handleBlur(e, field)" />
<input class="formInput" :class="{ formInputDisabled: field.disabled, autolabel: field.placeholder == '自动计算' }" :min="field.min" :max="field.max" v-else type="text" :type="field.inputType || 'text'" :disabled="field.disabled" :placeholder="field.placeholder || '请输入'" v-model="formData[field.targetKey]" :maxlength="field.maxlength || 100" :pattern="field.pattern || ''" @input="e => handleInput(e, field)" @blur="e => handleBlur(e, field)" />
<input class="formInput" :class="{ formInputDisabled: field.disabled, autolabel: field.placeholder == '自动计算' }" :min="field.min" :max="field.max" v-else :type="field.inputType || 'text'" :disabled="field.disabled" :placeholder="field.placeholder || '请输入'" v-model="formData[field.targetKey]" :maxlength="field.maxlength || 100" :pattern="field.pattern || ''" @input="e => handleInput(e, field)" @blur="e => handleBlur(e, field)" />
<view v-if="field.isScan" class="flex align-center scanBtn justify-center" @click.stop="scan('vinOcr')">
<view class="sprite-icon icon-scanIconX"></view>
</view>
......@@ -55,7 +65,7 @@
</template>
<template v-if="field.type === 'radio'">
<radio-group class="radio-group flex align-center" @change="e => radioChange(e, field)">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="(item, index) in field.radioList" :key="item.value">
<label class="uni-list-cell uni-list-cell-pd align-center flex ml-48" v-for="item in field.radioList" :key="item.value">
<radio style="transform: scale(0.7)" :value="item.value" :checked="getRadioChecked(item.value, field)" />
<view class="radio-name">{{ item.name }}</view>
</label>
......@@ -74,6 +84,25 @@
</view>
</picker>
</template>
<view v-if="field.type === 'switchInput'" class="switch-input" @click.stop="">
<view class="switch-input__header flex align-center justify-between">
<view class="from-label">
{{ field.label }}
<text class="requiredLabel" v-if="field.required || isSwitchInputRequired(field)">*</text>
</view>
<switch :checked="Number(formData[field.switchKey]) === 1" color="#4673FF" @change="e => handleSwitchChange(e, field)" />
</view>
<view v-if="Number(formData[field.switchKey]) === 1" class="switch-input__body">
<input
class="switch-input__input"
type="text"
:placeholder="field.placeholder || '请输入'"
v-model="formData[field.remarkKey]"
:maxlength="field.maxlength || 100"
@blur="e => handleBlur(e, { ...field, targetKey: field.remarkKey })"
/>
</view>
</view>
<template v-if="field.type === 'textarea'">
<textarea v-if="field.targetObj" :placeholder="'请输入 (' + (field.maxlength || 100) + '字以内)'" v-model="formData[field.targetObj][field.targetKey]" :maxlength="field.maxlength || 100" />
<textarea v-else :placeholder="'请输入 (' + (field.maxlength || 100) + '字以内)'" v-model="formData[field.targetKey]" :maxlength="field.maxlength || 100" />
......@@ -135,7 +164,21 @@ export default {
},
computed: {},
methods: {
isSwitchInputRequired(field) {
return field.type === 'switchInput' && Number(this.formData[field.switchKey]) === 1
},
handleSwitchChange(e, field) {
const switchValue = e.detail.value ? 1 : 0
this.$set(this.formData, field.switchKey, switchValue)
if (switchValue === 0 && field.clearRemarkOnSwitchOff !== false) {
this.$set(this.formData, field.remarkKey, '')
}
this.$emit('switchChange', switchValue, field)
},
handleCell(field) {
if (field.type === 'switchInput') {
return
}
this.$emit('handleCell', field)
},
radioChange(e, field) {
......@@ -431,5 +474,48 @@ export default {
.scanBtn {
margin-left: toRpx(16);
}
.switch-input {
flex: 1;
width: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
gap: toRpx(16);
}
.switch-input__header {
width: 100%;
}
.switch-input__body {
border-radius: toRpx(16);
border: toRpx(2) solid #eff0f2;
background: #f4f5f7;
padding: toRpx(18) toRpx(24);
box-sizing: border-box;
}
.switch-input__input {
width: 100%;
height: toRpx(44);
font-size: toRpx(28);
color: #333333;
padding: 0;
text-align: left;
outline: none;
border: 0;
background: transparent;
}
switch {
transform: scale(0.85);
}
.form-item-switchInput {
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
gap: toRpx(16);
}
}
</style>
......@@ -238,7 +238,7 @@
<view class="tab-panel-title">收款人信息</view>
<view class="gridBoxNoPadding">
<template v-for="(item, index) in payeeItems">
<view v-if="formatValue(item, detailsInfo)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view v-if="item.alwaysShow || formatValue(item, detailsInfo)" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<image :src="getImageDisplayUrl(formatValue(item, detailsInfo))" @click.stop="previewMedia(formatValue(item, detailsInfo), 1)"></image>
......@@ -631,7 +631,8 @@ export default {
payeeItems: [
{ label: '收款人姓名', key: 'signingInfo.saleContract.payeeName' },
{ label: '银行卡账号', key: 'signingInfo.saleContract.bankCardNumber' },
{ label: '开户行', key: 'signingInfo.saleContract.bankOfDeposit', fullWidth: true },
{ label: '开户行', key: 'signingInfo.saleContract.bankOfDeposit' },
{ label: '回单摘要', key: 'signingInfo.saleContract.returnSummaryRemark', alwaysShow: true },
{ label: '身份证国徽面', key: 'signingInfo.saleContract.payerIdCardFrontUrl', type: 'image' },
{ label: '身份证人像面', key: 'signingInfo.saleContract.payerIdCardBackUrl', type: 'image' },
{ label: '银行卡', key: 'signingInfo.saleContract.payerBankCardUrl', type: 'image' }
......
......@@ -130,6 +130,10 @@
<text class="popup-cell-title">开户行</text>
<text class="popup-cell-value">{{ payPopupObj.bankOfDeposit }}</text>
</view>
<view class="flex align-center mb-16">
<text class="popup-cell-title">回单摘要</text>
<text class="popup-cell-value">{{ payPopupObj.returnSummaryRemark }}</text>
</view>
<view class="flex align-center">
<text class="popup-cell-title">付款方式</text>
<radio-group class="radio-group flex align-center" @change="e => radioChange(e)">
......@@ -205,7 +209,8 @@ export default {
evalPrice: '',
paymentType: '',
status: '',
paymentMethod: 1
paymentMethod: 1,
returnSummaryRemark: '',
},
signAgreementObj: {
evalOrderNo: '',
......
const clearAppCache = () => {
// #ifdef APP-PLUS
try {
const currentVersion = plus.runtime.version;
const lastVersion = uni.$storage.get('storageVersion')
const webview = plus.webview.currentWebview();
uni.$logger.local.info(`=== 版本检查开始 ===`)
uni.$logger.local.info(`当前版本(currentVersion): ${currentVersion}`)
uni.$logger.local.info(`存储版本(lastVersion): ${lastVersion}`)
uni.$logger.local.info(`版本是否一致: ${lastVersion === currentVersion}`)
if (lastVersion && lastVersion !== currentVersion) {
uni.$logger.local.info(`检测到版本变化: ${lastVersion} -> ${currentVersion}`)
if (webview) {
uni.$logger.local.info('清除webview缓存');
webview.clear();
}
uni.clearStorage(); // 清除本地存储
uni.showLoading({
title: '检测到新版本,正在重启...',
mask: true
})
uni.$logger.local.info('清除应用缓存');
plus.cache.clear()
// 在重启前设置新版本号
uni.$storage.set('storageVersion', currentVersion)
uni.$logger.local.info(`已更新存储版本为: ${currentVersion}`)
uni.$logger.local.info('3秒后重启应用');
setTimeout(() => {
plus.runtime.restart();
}, 3e3);
} else {
uni.$logger.local.info('版本未变化,无需更新')
// 只在首次安装或版本一致时设置
if (!lastVersion) {
uni.$storage.set('storageVersion', currentVersion)
uni.$logger.local.info(`首次安装,设置版本为: ${currentVersion}`)
}
}
} catch (error) {
uni.$logger.local.error('setAPPVersion error:', error);
}
// #endif
}
export default {
clearAppCache
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!