From f18e69fede54550bddecd4b184c67f1ecf857a84 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Fri, 10 Jan 2025 15:51:22 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 1 +
api/http.js | 2 +-
api/model/index.js | 13 +-
api/model/info.js | 234 ++++++++++-----------
api/model/login.js | 2 +-
api/model/order.js | 20 +-
api/model/zhaomu.js | 11 +
common.scss | 3 +-
components/active/active-item.vue | 8 +-
components/cart/CardList.vue | 11 +-
components/cart/signInQrcodePopup.vue | 132 ++++++++++++
components/zhaomu/zlx-item.vue | 33 +--
config.js | 2 +-
mixins/list.js | 7 +
pages.json | 13 +-
pages/index/cart.vue | 44 ++--
pages/index/index.vue | 21 +-
pages/index/member.vue | 9 +-
pages_login/wxLogin.vue | 23 +-
pages_login/wxUserInfo.vue | 2 +-
pages_login/yinsixieyi.vue | 24 ++-
pages_my/activeList.vue | 135 ++++++++----
pages_my/collection.vue | 14 +-
pages_my/guanyuwomen.vue | 1 +
pages_my/qiandao-list.vue | 44 ++--
pages_my/travelList.vue | 112 ++++++----
pages_my/user-info.vue | 12 +-
pages_my/zlx-qiandao.vue | 44 ++--
pages_order/huodong-detail.vue | 18 +-
pages_order/invoiceIssuance.vue | 3 +-
pages_order/invoiceRecords.vue | 54 +++--
pages_order/lvyou-detail.vue | 1 +
pages_order/orderDetails.vue | 19 +-
pages_zlx/zlx-form.vue | 3 +-
store/store.js | 1 +
.../components/uv-calendars/i18n/zh-Hans.json | 2 +-
.../components/uv-calendars/i18n/zh-Hant.json | 2 +-
.../components/uv-calendars/uv-calendars.vue | 6 +-
.../uv-drop-down-popup/uv-drop-down-popup.vue | 38 +++-
utils/utils.js | 2 +-
40 files changed, 766 insertions(+), 360 deletions(-)
create mode 100644 components/cart/signInQrcodePopup.vue
diff --git a/App.vue b/App.vue
index 63fde9a..8c725d3 100644
--- a/App.vue
+++ b/App.vue
@@ -1,6 +1,7 @@
diff --git a/components/cart/signInQrcodePopup.vue b/components/cart/signInQrcodePopup.vue
new file mode 100644
index 0000000..6f41b21
--- /dev/null
+++ b/components/cart/signInQrcodePopup.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{adminUserInfo.nickName}}
+ 主理人
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/zhaomu/zlx-item.vue b/components/zhaomu/zlx-item.vue
index 84646ff..895a688 100644
--- a/components/zhaomu/zlx-item.vue
+++ b/components/zhaomu/zlx-item.vue
@@ -2,7 +2,7 @@
-
+
@@ -11,7 +11,7 @@
{{item.address}}
- 20/40
+ {{ item.num }}/{{ item.sum }}
开始签到
@@ -25,7 +25,10 @@
props: {
item: {
type: Object,
- default: ()=>{}
+ default: {}
+ },
+ showBottom : {
+ default : false,
},
},
data() {
@@ -36,7 +39,12 @@
components: {
},
- computed: {},
+ computed: {
+ images(){
+ return this.item.image ? this.item
+ .image.split(','): []
+ },
+ },
watch: {
},
@@ -45,11 +53,6 @@
},
mounted() {},
methods: {
- skip(val) {
- uni.navigateTo({
- url: '/pages_order/orderDetails'
- })
- },
qiandaoClick() {
this.$emit('qiandaoClick')
}
@@ -71,8 +74,8 @@
height: 228rpx;
border-radius: 20rpx;
overflow: hidden;
-
- img {
+ flex-shrink: 0;
+ image {
width: 100%;
height: 100%;
}
@@ -86,12 +89,15 @@
margin-left: 26rpx;
color: $uni-text-color-grey;
font-size: 24rpx;
-
+ width: 320rpx;
.detailed {
.title {
font-size: 32rpx;
color: #fff;
padding-top: 11rpx;
+ overflow:hidden; //超出的文本隐藏
+ text-overflow:ellipsis; //溢出用省略号显示
+ white-space:nowrap; //溢出不换行
}
.date {
@@ -127,11 +133,10 @@
}
.price {
-
display: flex;
align-items: center;
justify-content: space-between;
-
+ margin-top: 10rpx;
.num-box {
font-size: 27rpx;
color: #fff;
diff --git a/config.js b/config.js
index 59295c5..a3a87a7 100644
--- a/config.js
+++ b/config.js
@@ -27,7 +27,7 @@ const config = {
// 默认配置
const defaultConfig = {
- mapKey : 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
+ mapKey : 'DGFBZ-JU76M-34A63-6BU47-2FLJH-XLBCN',
aliOss : {
url : 'https://image.hhlm1688.com/',
config : {
diff --git a/mixins/list.js b/mixins/list.js
index a27db1c..5789a31 100644
--- a/mixins/list.js
+++ b/mixins/list.js
@@ -26,6 +26,7 @@ export default {
},
total : 0,
list : [],
+ uvLoadMore : 'loading',
}
},
onPullDownRefresh() {
@@ -55,6 +56,12 @@ export default {
this[this.mixinsListKey || 'list'] = res.result.records || res.result
this.total = res.result.total || res.result.length
+
+ if(this.queryParams.pageSize < this.total){
+ this.uvLoadMore = 'loadmore'
+ }else{
+ this.uvLoadMore = 'nomore'
+ }
}
})
})
diff --git a/pages.json b/pages.json
index 4f2184a..25558b9 100644
--- a/pages.json
+++ b/pages.json
@@ -3,7 +3,8 @@
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "",
- "navigationStyle": "custom"
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": true
}
},
{
@@ -30,12 +31,14 @@
"path": "pages/index/cart",
"style": {
"navigationStyle": "custom" ,
- "navigationBarTextStyle": "white"
+ "navigationBarTextStyle": "white",
+ "enablePullDownRefresh": true
}
},
{
"path": "pages/index/member",
"style": {
+ "enablePullDownRefresh": true,
"navigationBarTitleText": ""
}
}
@@ -89,6 +92,7 @@
{
"path": "invoiceRecords",
"style": {
+ "enablePullDownRefresh": true,
"navigationStyle": "custom" ,
"navigationBarTextStyle": "white"
}
@@ -114,6 +118,7 @@
{
"path": "zlx-qiandao",
"style": {
+ "enablePullDownRefresh": true,
"navigationStyle": "custom" ,
"navigationBarTextStyle": "white"
}
@@ -121,6 +126,7 @@
{
"path": "qiandao-list",
"style": {
+ "enablePullDownRefresh": true,
"navigationStyle": "custom" ,
"navigationBarTextStyle": "white"
}
@@ -142,6 +148,7 @@
{
"path": "collection",
"style": {
+ "enablePullDownRefresh": true,
"navigationStyle": "custom" ,
"navigationBarTextStyle": "white"
}
@@ -149,6 +156,7 @@
{
"path": "travelList",
"style": {
+ "enablePullDownRefresh": true,
"navigationStyle": "custom" ,
"navigationBarTextStyle": "white"
}
@@ -156,6 +164,7 @@
{
"path": "activeList",
"style": {
+ "enablePullDownRefresh": true,
"navigationStyle": "custom" ,
"navigationBarTextStyle": "white"
}
diff --git a/pages/index/cart.vue b/pages/index/cart.vue
index d0c7d89..33a18fb 100644
--- a/pages/index/cart.vue
+++ b/pages/index/cart.vue
@@ -14,6 +14,9 @@
+
+
+
@@ -21,6 +24,7 @@
@@ -45,6 +56,7 @@
z-index: -1;
}
.content {
+ margin-top: 40rpx;
padding: 0 30rpx;
padding-top: calc(var(--status-bar-height) + 110rpx);
}
diff --git a/pages_my/activeList.vue b/pages_my/activeList.vue
index 35e67e7..74b61ec 100644
--- a/pages_my/activeList.vue
+++ b/pages_my/activeList.vue
@@ -8,9 +8,13 @@
:extra-icon="{name:'arrow-down-fill',color:'#666',size:'26rpx'}"
:extra-active-icon="{name:'arrow-up-fill',color:'#fff',size:'26rpx'}" :defaultValue="defaultValue"
:custom-style="{padding: '0 30rpx'}" @click="selectMenu">
-
+
-
+
+
+
+
+
@@ -39,6 +43,10 @@
-->
+
+
@@ -93,24 +101,20 @@
status:"loading",
bgColor:'transparent',
// 表示value等于这些值,就属于默认值
- defaultValue: ['', 'all', '0'],
+ defaultValue: ['-1', 'all', 'allAddress'],
// 筛选结果
- result: [{
- name: 'order',
- label: '全部',
- value: ''
- }],
+ result: [],
// { name: 'order', label: '最新发布', value: 'new' }
- activeName: 'order',
- order: {
+ activeName: 'state',
+ state: {
label: '全部',
- value: '',
+ value: '-1',
activeIndex: 0,
- color: '#333',
+ color: '#999',
activeColor: '#FF4546',
child: [{
label: '全部',
- value: ''
+ value: '-1'
},{
label: '报名中',
value: '0'
@@ -119,41 +123,64 @@
value: '1'
}]
},
- type: {
+ date: {
label: '时间',
value: 'all',
activeIndex: 0,
- color: '#333',
+ color: '#999',
activeColor: '#FF4546',
- child: [{
- label: '全部',
- value: 'all'
- }, {
- label: 'PDF',
- value: 'pdf'
- }, {
- label: 'WROD',
- value: 'word'
- }, {
- label: 'PPT',
- value: 'ppt'
- }]
+ child: [
+ {
+ label: '时间',
+ value: 'all'
+ },
+ ]
+ },
+ address: {
+ label: '全部地区',
+ value: 'allAddress',
+ activeIndex: 0,
+ color: '#999',
+ activeColor: '#FF4546',
+ child: [
+ {
+ label: '全部地区',
+ value: 'allAddress'
+ },
+ ]
},
totalPage:0,
cardListData:[],
params:{
- state:'',
+ state : '',
pageNo:1,
pageSize:10
},
+ isC : false,
}
},
onLoad() {
this.getActivityPageList()
+ this.getArea()
+ },
+ onPullDownRefresh() {
+ this.params.pageNo = 1
+ this.cardListData = []
+ this.getActivityPageList()
},
methods: {
getActivityPageList() {
- this.$api('activityPageList',this.params,res=>{
+
+ let params = {
+ ...this.params
+ }
+
+ this.result.forEach(n => {
+ params[n.name] = n.value
+ })
+
+ this.$api('activityPageList', params, res=>{
+ uni.stopPullDownRefresh()
if(res.code == 200) {
this.totalPage = res.result.pages
this.cardListData = [...this.cardListData,...res.result.records]
@@ -165,6 +192,18 @@
}
})
},
+ getArea(){
+ this.$api('getArea', res => {
+ if(res.code == 200){
+ res.result.forEach(n => {
+ this.address.child.push({
+ label: n.city,
+ value: n.id
+ })
+ })
+ }
+ })
+ },
change(e) {
console.log('弹窗打开状态:', e);
},
@@ -177,11 +216,7 @@
this.activeName = name;
// type 等于1 的需要特殊处理:type不等于1可以忽略
if (type == 1) {
- this.clickItem({
- name: 'vip_type',
- label: 'VIP文档',
- value: e.active ? 1 : 0
- });
+ this.$refs.calendars.open()
} else {
const find = this.result.find(item => item.name == this.activeName);
if (find) {
@@ -200,9 +235,9 @@
value
} = e;
const findIndex = this.result.findIndex(item => item.name == this.activeName);
- // if (this.defaultValue.indexOf(value) > -1 && this[this.activeName].label) {
- // label = this[this.activeName].label;
- // }
+ if (this.defaultValue.indexOf(value) > -1 && this[this.activeName].label) {
+ label = this[this.activeName].label;
+ }
// // 已经存在筛选项
if (findIndex > -1) {
this.$set(this.result, findIndex, {
@@ -217,12 +252,29 @@
value
});
}
- let stateInfo = this.result.find(item=>item.name == 'order')
- this.params.state = stateInfo.value
+
+ this.result = this.result.filter(item => this.defaultValue.indexOf(item.value) == -1);
+
this.params.pageNo = 1
this.cardListData = []
this.getActivityPageList()
- }
+ },
+ confirmCalendars(e){
+ this.isC = true
+ this.clickItem({
+ name: 'date',
+ label: e.fulldate,
+ value: e.fulldate
+ });
+ },
+ closeCalendars(){
+ if(this.isC) return this.isC = false
+ this.clickItem({
+ name: 'date',
+ label: 'all',
+ value: 'all'
+ });
+ },
}
}
@@ -235,6 +287,7 @@
position: absolute;
}
.content {
+ margin-top: 40rpx;
padding-top: calc(var(--status-bar-height) + 110rpx);
}
/deep/.uv-sticky__content {
diff --git a/pages_my/collection.vue b/pages_my/collection.vue
index 1ef1c26..002ce34 100644
--- a/pages_my/collection.vue
+++ b/pages_my/collection.vue
@@ -28,6 +28,7 @@
+
+
+
+
+
+
+
+
+
@@ -105,7 +111,7 @@
if (active) {
return activeColor ? activeColor : '#3c9cff';
}
- return color ? color : '#333';
+ return color ? color : '#999';
}
},
getTextSize(index) {
@@ -227,12 +233,24 @@
}