diff --git a/miniprogram/app.json b/miniprogram/app.json
index fd3f3c3..cf0904a 100644
--- a/miniprogram/app.json
+++ b/miniprogram/app.json
@@ -15,7 +15,7 @@
"pages/subscribe/2023/sydw/scqd/index",
"pages/subscribe/2023/sydw/jls/index",
"pages/subscribe/2023/sydw/bs/index",
- "pages/sydw/lnbmrs-cc/index",
+ "pages/sydw/lnbmrs/index",
"pages/sydw/lngwjzb-jls/index",
"pages/sydw/lngwjzb-jlsjs/index",
"pages/sydw/2023/subscribe/index",
diff --git a/miniprogram/pages/sydw/lnbmrs-cc/index.wxml b/miniprogram/pages/sydw/lnbmrs-cc/index.wxml
deleted file mode 100644
index 6db6111..0000000
--- a/miniprogram/pages/sydw/lnbmrs-cc/index.wxml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.item02}}
- {{item.item06}}
-
-
-
- {{item.item01}}
- {{item.item02}}
- {{item.item03}}
- {{item.item04}}
- {{item.item05}}
- {{item.item06}}
-
-
-
-
-
-
-
-
-
-
-
- 下拉页面可刷新数据
- {{suffixStr}}
-
-
-
-
diff --git a/miniprogram/pages/sydw/lnbmrs-cc/index.js b/miniprogram/pages/sydw/lnbmrs/index.js
similarity index 95%
rename from miniprogram/pages/sydw/lnbmrs-cc/index.js
rename to miniprogram/pages/sydw/lnbmrs/index.js
index 992bacc..ac0057a 100644
--- a/miniprogram/pages/sydw/lnbmrs-cc/index.js
+++ b/miniprogram/pages/sydw/lnbmrs/index.js
@@ -12,7 +12,6 @@ Page({
CRMRemark: "", // CRM 注释 长春事业单位报名人数
actid: "", //zg99id
backgroundColor: "",
- version: "",
dwList: [],
dwValue: '',
@@ -20,6 +19,10 @@ Page({
gwList: [],
gwValue: '',
+ // 列表展示配置
+ listTitle: [], // 标题
+ listContent: [], // 内容
+
suffix: {}, // 后缀
suffixStr: "", // 后缀 字符串
@@ -55,7 +58,7 @@ Page({
// 现将之前内容清空
const gwList = []
-
+
// 将数据添加到已清空的列表中
for (var i = 0; i < response.lists.length; i++) {
@@ -78,10 +81,10 @@ Page({
}
})
break
-
+
case "gw": //岗位
_this.setData({
- gwValue:e.detail.text
+ gwValue: e.detail.text
})
}
@@ -115,11 +118,14 @@ Page({
//查询
search() {
let _this = this //作用域
- if(!_this.data.dwValue){
- wx.showToast({title: '请输入单位名称',icon: 'error'})
+ if (!_this.data.dwValue) {
+ wx.showToast({
+ title: '请输入单位名称',
+ icon: 'error'
+ })
return
}
-
+
wx.showLoading({
title: '查询中...',
mask: true
@@ -157,9 +163,9 @@ Page({
const result = [];
if (list.lists) {
- list.lists.forEach(valueList=>{
+ list.lists.forEach(valueList => {
let same = false;
- result.forEach(valueResult=>{
+ result.forEach(valueResult => {
if (valueList.item07 == valueResult.item07) {
same = true;
}
@@ -169,7 +175,7 @@ Page({
}
})
}
- result.forEach(valueResult=>{
+ result.forEach(valueResult => {
if (valueResult.item07 == 0) {
valueResult.item07 = '暂无';
}
@@ -211,15 +217,7 @@ Page({
*/
onLoad: function (options) {
//console.log(options);
- if (!options.version) {
- getApp().methods.handleError({
- err: null,
- title: "出错啦",
- content: '缺少版本号',
- reLaunch: true
- });
- return
- }
+
if (!options.actid) {
getApp().methods.handleError({
err: null,
@@ -241,7 +239,6 @@ Page({
url: "https://zg99.offcn.com/index/chaxun/getfylist",
data: {
actid: options.actid,
- version: options.version,
tabnum: "100",
sstime: new Date().valueOf()
},
@@ -270,14 +267,15 @@ Page({
}
// 保存活动配置
_this.setData({
- version: options.version,
actid: options.actid,
CRMEFSID: response.lists[0].CRMEFSID,
imageUrl: response.lists[0].imageUrl,
title: response.lists[0].title,
shareImages: response.lists[0].shareImages,
backgroundColor: response.lists[0].backgroundColor,
- CRMRemark: `报名人数,${response.lists[0].title},${options.version}`
+ CRMRemark: `报名人数,${response.lists[0].title}`,
+ listTitle: response.lists[0].listTitle.split(',').map(item=>{return {name: item.split('|')[0], itemName: item.split('|')[1]}}),
+ listContent: response.lists[0].listContent.split(',').map(item=>{return {name: item.split('|')[0], itemName: item.split('|')[1]}})
})
// 获取一级联动数据
wx.request({
diff --git a/miniprogram/pages/sydw/lnbmrs-cc/index.json b/miniprogram/pages/sydw/lnbmrs/index.json
similarity index 100%
rename from miniprogram/pages/sydw/lnbmrs-cc/index.json
rename to miniprogram/pages/sydw/lnbmrs/index.json
diff --git a/miniprogram/pages/sydw/lnbmrs/index.wxml b/miniprogram/pages/sydw/lnbmrs/index.wxml
new file mode 100644
index 0000000..a39ee13
--- /dev/null
+++ b/miniprogram/pages/sydw/lnbmrs/index.wxml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item[listTitle[0].itemName]}}
+
+
+
+
+ {{item[item1.itemName]}}
+
+
+
+
+
+
+
+
+ 下拉页面可刷新数据
+ {{suffixStr}}
+
+
+
+
\ No newline at end of file
diff --git a/miniprogram/pages/sydw/lnbmrs-cc/index.wxss b/miniprogram/pages/sydw/lnbmrs/index.wxss
similarity index 96%
rename from miniprogram/pages/sydw/lnbmrs-cc/index.wxss
rename to miniprogram/pages/sydw/lnbmrs/index.wxss
index b5f3d89..8387ba3 100644
--- a/miniprogram/pages/sydw/lnbmrs-cc/index.wxss
+++ b/miniprogram/pages/sydw/lnbmrs/index.wxss
@@ -89,7 +89,7 @@
overflow: hidden;
}
-.item_group .item_line {
+.item_line {
justify-content: flex-start;
margin-bottom: 14rpx;
flex-direction: row;
@@ -98,8 +98,8 @@
line-height: 60rpx;
}
-.item_group .item_line label {
- color: #969799;
+.item_line label {
+ color: #c30014;
display: inline-block;
margin-right: 10rpx;
/* 文本两端对齐 */