修复发布优惠券日期选择器部分手机无法显示按钮卡顿等问题调整添加员工接口问题
This commit is contained in:
@@ -79,7 +79,20 @@
|
|||||||
<label class="input-label">{{timeIndex == 0 ? '券有效期': '延期天数'}}</label>
|
<label class="input-label">{{timeIndex == 0 ? '券有效期': '延期天数'}}</label>
|
||||||
<block v-if="timeIndex === 0">
|
<block v-if="timeIndex === 0">
|
||||||
<view class="input-text" @click="showDatePicker = true">{{datePickerValue.length == 0 ? '选择优惠券有效期区间': datePickerValue[0] + ' 至 ' + datePickerValue[1]}}<uni-icons class="picker-icon" type="arrowdown" size="14" /></view>
|
<view class="input-text" @click="showDatePicker = true">{{datePickerValue.length == 0 ? '选择优惠券有效期区间': datePickerValue[0] + ' 至 ' + datePickerValue[1]}}<uni-icons class="picker-icon" type="arrowdown" size="14" /></view>
|
||||||
<tn-date-picker :show="showDatePicker" :monthNum="12" color="#8b64fd" :showTips="true" beginText="开始日期" endText="结束日期" @confirm="confirmDatePicker" @cancel="showDatePicker = false"/>
|
<u-calendar
|
||||||
|
:safe-area-inset-bottom="true"
|
||||||
|
v-model="showDatePicker"
|
||||||
|
mode="range"
|
||||||
|
active-bg-color="#8b64fd"
|
||||||
|
range-bg-color="rgba(139,100,253, .2)"
|
||||||
|
range-color="#8b64fd"
|
||||||
|
btn-type="default"
|
||||||
|
max-date="2099-12-12"
|
||||||
|
:min-date="minDate"
|
||||||
|
@change="confirmDatePicker"
|
||||||
|
>
|
||||||
|
</u-calendar>
|
||||||
|
<!-- <tn-date-picker :show="showDatePicker" :monthNum="12" color="" :showTips="true" beginText="开始日期" endText="结束日期" @confirm="confirmDatePicker" @cancel="showDatePicker = false"/> -->
|
||||||
</block>
|
</block>
|
||||||
<block v-if="timeIndex === 1">
|
<block v-if="timeIndex === 1">
|
||||||
<view class="input-number">
|
<view class="input-number">
|
||||||
@@ -107,13 +120,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TnDatePicker from "@/components/tn-datepicker/tn-datepicker";
|
import date from '@/public/date'
|
||||||
import { uploads } from '@/apis/interfaces/uploading'
|
import { uploads } from '@/apis/interfaces/uploading'
|
||||||
import { pushCoupons } from '@/apis/interfaces/coupons'
|
import { pushCoupons } from '@/apis/interfaces/coupons'
|
||||||
export default {
|
export default {
|
||||||
components:{
|
|
||||||
TnDatePicker
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loding : true,
|
loding : true,
|
||||||
@@ -139,10 +149,14 @@
|
|||||||
price : '', // 减少金额
|
price : '', // 减少金额
|
||||||
description : '', // 使用规则
|
description : '', // 使用规则
|
||||||
coupongoods : [], // 关联商品
|
coupongoods : [], // 关联商品
|
||||||
timeNumber : 1 // 延期券时间
|
timeNumber : 1 ,// 延期券时间
|
||||||
|
minDate : ''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
|
new date().then(res => {
|
||||||
|
this.minDate = res
|
||||||
|
})
|
||||||
this.coupongoods = this.$store.getters.getCoupongoods
|
this.coupongoods = this.$store.getters.getCoupongoods
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
@@ -168,7 +182,7 @@
|
|||||||
},
|
},
|
||||||
// 日期
|
// 日期
|
||||||
confirmDatePicker(e){
|
confirmDatePicker(e){
|
||||||
this.datePickerValue = e.value
|
this.datePickerValue = [e.startDate , e.endDate]
|
||||||
this.showDatePicker = false
|
this.showDatePicker = false
|
||||||
},
|
},
|
||||||
// 上传优惠券封面
|
// 上传优惠券封面
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
<label>
|
<label>
|
||||||
<view class="item-title">设为推荐</view>
|
<view class="item-title">设为推荐</view>
|
||||||
<view class="item-info">设为推荐员工将在企业自媒体中优先展示</view>
|
<view class="item-info">设为推荐员工将在企业自媒体中优先展示</view>
|
||||||
<switch class="item-switch" :checked="isPosition" color="#e93340" @change="switchChange" />
|
<switch class="item-switch" :checked="isPosition" color="#8b64fd" @change="switchChange" />
|
||||||
</label>
|
</label>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<label>
|
<label>
|
||||||
<view class="item-title">{{item.title}}</view>
|
<view class="item-title">{{item.title}}</view>
|
||||||
<view class="item-info">{{item.description}}</view>
|
<view class="item-info">{{item.description}}</view>
|
||||||
<checkbox class="item-checkbox" :checked="item.check" color="#e93340" :value="item.permission_id" />
|
<checkbox class="item-checkbox" :checked="item.check" color="#8b64fd" :value="String(item.permission_id)"/>
|
||||||
</label>
|
</label>
|
||||||
</view>
|
</view>
|
||||||
</checkbox-group>
|
</checkbox-group>
|
||||||
@@ -93,8 +93,16 @@
|
|||||||
}
|
}
|
||||||
employeesConfig().then(res => {
|
employeesConfig().then(res => {
|
||||||
this.section = res.store
|
this.section = res.store
|
||||||
|
|
||||||
|
console.log(res)
|
||||||
|
|
||||||
if(this.$Route.query.type === 'PUT'){
|
if(this.$Route.query.type === 'PUT'){
|
||||||
employeesInfo(this.$Route.query.id || 4).then(res => {
|
|
||||||
|
console.log(111)
|
||||||
|
|
||||||
|
employeesInfo(this.$Route.query.id).then(res => {
|
||||||
|
console.log(11111)
|
||||||
|
console.log(res)
|
||||||
let permissionIds = []
|
let permissionIds = []
|
||||||
for(let val of res.permission){
|
for(let val of res.permission){
|
||||||
if(val.check){
|
if(val.check){
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
text : '编辑',
|
text : '编辑',
|
||||||
type : 'PUT',
|
type : 'PUT',
|
||||||
style : {
|
style : {
|
||||||
backgroundColor: '#3688ee'
|
backgroundColor: '#8b64fd'
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
text : '删除',
|
text : '删除',
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
let type = e.content.type,
|
let type = e.content.type,
|
||||||
val = this.lists[upIndex].data[index]
|
val = this.lists[upIndex].data[index]
|
||||||
if(type == 'PUT'){
|
if(type == 'PUT'){
|
||||||
this.$Router.push({name: 'addEmployees', params: {type: 'PUT', id: val.employee_id}})
|
this.$Router.push({name: 'employeesAdd', params: {type: 'PUT', id: val.employee_id}})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
cancelText : '取消',
|
cancelText : '取消',
|
||||||
cancelColor : '#555',
|
cancelColor : '#555',
|
||||||
confirmText : '确认',
|
confirmText : '确认',
|
||||||
confirmColor: '#e93340',
|
confirmColor: '#8b64fd',
|
||||||
success : res => {
|
success : res => {
|
||||||
if(res.confirm) {
|
if(res.confirm) {
|
||||||
employeesDelete(val.employee_id).then(res => {
|
employeesDelete(val.employee_id).then(res => {
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
cancelText : '稍后创建',
|
cancelText : '稍后创建',
|
||||||
cancelColor : '#555',
|
cancelColor : '#555',
|
||||||
confirmText : '立即创建',
|
confirmText : '立即创建',
|
||||||
confirmColor: '#e93340',
|
confirmColor: '#8b64fd',
|
||||||
success : res => {
|
success : res => {
|
||||||
if(res.confirm) {
|
if(res.confirm) {
|
||||||
this.$Router.push({name: 'shopCreate'})
|
this.$Router.push({name: 'shopCreate'})
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
<image class="newCont-close" src="/static/user/order-cancelPay.png" mode="aspectFill" @click="newEject()"></image>
|
<image class="newCont-close" src="/static/user/order-cancelPay.png" mode="aspectFill" @click="newEject()"></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- 消息列表弹出 end -->
|
<!-- 消息列表弹出 end -->
|
||||||
|
<!-- @scrolltoupper="onScrolltoupper" -->
|
||||||
<scroll-view class="content-scroll" scroll-y="true">
|
<scroll-view class="content-scroll" scroll-y="true">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<!-- 工具 -->
|
<!-- 工具 -->
|
||||||
@@ -244,17 +244,17 @@ export default {
|
|||||||
newState : false, // 消息 显示状态
|
newState : false, // 消息 显示状态
|
||||||
newnextShow : false, // 消息 下一条按钮状态
|
newnextShow : false, // 消息 下一条按钮状态
|
||||||
newPopIndex : '', // 消息列表选择index
|
newPopIndex : '', // 消息列表选择index
|
||||||
animatedShow : false, // vip上下跳动效果
|
|
||||||
customer : {
|
customer : {
|
||||||
customerShow: false, // 专属客服弹出
|
customerShow: false, // 专属客服弹出
|
||||||
customerCode: '', // 专属客服二维码
|
customerCode: '', // 专属客服二维码
|
||||||
},
|
},
|
||||||
|
// 滚动
|
||||||
coverTransform: 'translateY(0px)',
|
coverTransform: 'translateY(0px)',
|
||||||
coverTransition: '0s',
|
coverTransition: '0s',
|
||||||
startY: 0, // 落点
|
startY: 0, // 落点
|
||||||
moving: false, //开启卡片
|
moving: false, //开启卡片
|
||||||
moveY: 0,
|
moveY: 0,
|
||||||
|
ScrollTop: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
@@ -390,6 +390,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 滑动部分
|
// 滑动部分
|
||||||
|
onScrolltoupper(){
|
||||||
|
this.ScrollTop = true
|
||||||
|
},
|
||||||
coverTouchstart(e) {
|
coverTouchstart(e) {
|
||||||
this.coverTransition = 'transform .1s linear'
|
this.coverTransition = 'transform .1s linear'
|
||||||
this.startY = e.touches[0].clientY
|
this.startY = e.touches[0].clientY
|
||||||
@@ -553,6 +556,7 @@ export default {
|
|||||||
border: 3rpx solid #b197ff;
|
border: 3rpx solid #b197ff;
|
||||||
color: #f6e9fa;
|
color: #f6e9fa;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
padding-bottom: 40rpx;
|
||||||
.userVip-top {
|
.userVip-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 30rpx;
|
padding: 30rpx;
|
||||||
|
|||||||
@@ -24,11 +24,11 @@ const router = createRouter({
|
|||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
const token = store.getters.getToken || uni.getStorageSync('token')
|
const token = store.getters.getToken || uni.getStorageSync('token')
|
||||||
// 检查是否需要微信授权
|
// 检查是否需要微信授权
|
||||||
if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
// if(store.getters.getCode === '' && to.name != 'wxAuth'){
|
||||||
next({
|
// next({
|
||||||
name: 'wxAuth'
|
// name: 'wxAuth'
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
// 检查是否需要登录
|
// 检查是否需要登录
|
||||||
if(to.auth && token === ''){
|
if(to.auth && token === ''){
|
||||||
next({
|
next({
|
||||||
|
|||||||
2
unpackage/dist/build/h5/index.html
vendored
2
unpackage/dist/build/h5/index.html
vendored
@@ -1,2 +1,2 @@
|
|||||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>链商星球</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>链商星球</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
|
||||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5e7e3b56.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.61332aa4.js></script><script src=/static/js/index.c4a50413.js></script></body></html>
|
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.5e7e3b56.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.61332aa4.js></script><script src=/static/js/index.04327572.js></script></body></html>
|
||||||
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/h5/static/js/pages-company-approve.c6f0bd89.js
vendored
Normal file
1
unpackage/dist/build/h5/static/js/pages-company-approve.c6f0bd89.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/h5/static/js/pages-coupons-add.8f4e89ad.js
vendored
Normal file
1
unpackage/dist/build/h5/static/js/pages-coupons-add.8f4e89ad.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/h5/static/js/pages-login-login.ba3ed9f6.js
vendored
Normal file
1
unpackage/dist/build/h5/static/js/pages-login-login.ba3ed9f6.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/h5/static/js/pages-user-index.0f8ec403.js
vendored
Normal file
1
unpackage/dist/build/h5/static/js/pages-user-index.0f8ec403.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/h5/static/js/pages-vip-vip.fe8c624e.js
vendored
Normal file
1
unpackage/dist/build/h5/static/js/pages-vip-vip.fe8c624e.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user