jufubao-base 1.0.119-beta7 → 1.0.119-beta8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.119-beta7",
3
+ "version": "1.0.119-beta8",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -25,10 +25,23 @@ module.exports = [
25
25
  {
26
26
  mapFnName: 'doSignBless',
27
27
  title: '祝福 - 签收',
28
- path: '/saas/v1/bless/sign/:bless_id',
28
+ path: '/saas/v1/bless/confirm-sign/:bless_id',
29
29
  isRule: false,
30
30
  data: {
31
31
  bless_id: ['bless_id', 'Number', '必选'],
32
+ sign_image_url: ['签名图片url', 'String', '必选']
33
+ },
34
+ isConsole: true,
35
+ disabled: true,
36
+ },
37
+ {
38
+ mapFnName: "noSignBless",
39
+ title: "祝福 - 签收 - 免签名",
40
+ path: "/saas/v1/bless/sign/:bless_id",
41
+ isRule: false,
42
+ data: {
43
+ bless_id: ['bless_id', 'Number', '必选'],
44
+ sign_image_url: ['签名图片url', 'String', '必选']
32
45
  },
33
46
  isConsole: true,
34
47
  disabled: true,
@@ -134,7 +134,18 @@
134
134
  },
135
135
 
136
136
  showSign(){
137
- this.dialogShow = true;
137
+ if(this.blessData.signature_method === 'N'){
138
+ jfbRootExec("noSignBless", {
139
+ vm: this,
140
+ data: {
141
+ bless_id: this.bless_id,
142
+ }
143
+ }).then(res => {
144
+ this.dialogSuccess = true;
145
+ })
146
+ }else{
147
+ this.dialogShow = true;
148
+ }
138
149
  },
139
150
  clearSign(){
140
151
  this.$refs.signatureRef.clear()
@@ -1,5 +1,27 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getBlessDetail: {
5
+ bless_id: "1",
6
+ bless_type_name: "聚福宝节日祝福券",
7
+ bless_name: "",
8
+ bless_detail_config: `{
9
+ "material_nickname": "亲爱的张珊珊:",
10
+ "material_content": "同事好比亲兄弟,一个单位共努力,加班加点在一起,齐心协力拼业绩,新年春节悄然到身旁,祝福送你好兄弟,合家欢乐福相伴,年年有余好运随,新年春节快乐哟!",
11
+ "material_end": "聚福宝",
12
+ "material_image": {
13
+ "path": "https://img.js.design/assets/img/63ef1aad9d2376d02eb759e6.png"
14
+ },
15
+ "material_margin": {
16
+ "top": 480,
17
+ "left": 100,
18
+ "right": 100,
19
+ "bottom": 0
20
+ },
21
+ "material_color": "#333333"
22
+ }`,
23
+ release_time: "",
24
+ bless_card_number: "1",
25
+ receive_status: "N"
26
+ }
5
27
  }
@@ -186,7 +186,7 @@
186
186
  if(action === '@showBaseBlessDialog'){
187
187
  this.getList();
188
188
  }
189
- console.log('event.onJfbReachBottom', options)
189
+ console.log('event.onJfbReachBottom', action, data)
190
190
  },
191
191
  }
192
192
  }
@@ -1,5 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getBlessList: {
5
+ list: [
6
+ {
7
+ bless_id: "1",
8
+ bless_type_name: "聚福宝节日祝福券",
9
+ bless_name: "节日祝福",
10
+ bless_card_number: "1",
11
+ bless_cover_config: `{
12
+ "material_nickname": "亲爱的张珊珊:",
13
+ "material_content": "您收到了一份为您定制的专属祝福,快去查看并使用吧!",
14
+ "material_end": "聚福宝",
15
+ "material_image": {
16
+ "path": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636"
17
+ }
18
+ }`,
19
+ release_time: "",
20
+ receive_status: "",
21
+ }
22
+ ],
23
+ total_size: 2,
24
+ next_page_token: "",
25
+ }
5
26
  }
@@ -1,5 +1,40 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getBlessAll: {
5
+ list: [
6
+ {
7
+ bless_id: "1",
8
+ bless_cover_config: `{
9
+ "material_nickname": "亲爱的张珊珊:",
10
+ "material_content": "您收到了一份为您定制的专属祝福,快去查看并使用吧!",
11
+ "material_end": "聚福宝",
12
+ "material_image": {
13
+ "path": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
14
+ "url": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
15
+ }
16
+ }`,
17
+ bless_type_name: "聚福宝节日祝福券",
18
+ bless_name: "节日祝福",
19
+ bless_card_number: "1",
20
+ release_time: "312456786",
21
+ },
22
+ {
23
+ bless_id: "2",
24
+ bless_cover_config: `{
25
+ "material_nickname": "亲爱的张珊珊:",
26
+ "material_content": "您收到了一份为您定制的专属祝福,快去查看并使用吧!",
27
+ "material_end": "聚福宝",
28
+ "material_image": {
29
+ "path": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
30
+ "url": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
31
+ }
32
+ }`,
33
+ bless_type_name: "聚福宝节日祝福券",
34
+ bless_name: "节日祝福",
35
+ bless_card_number: "1",
36
+ release_time: "312456786",
37
+ }
38
+ ]
39
+ }
5
40
  }
@@ -41,7 +41,7 @@
41
41
  <view class="notice" v-if="comp.container_key === 'notice' && noticeList.length" :key="i">
42
42
  <!-- 公告:薄如蝉翼的金华火腿,每一口都是时间的味道 -->
43
43
  <swiper vertical style="height: 40rpx;" autoplay>
44
- <swiper-item v-for="(item,i) in noticeList" :key="i">
44
+ <swiper-item v-for="(item,i) in noticeList" :key="i" @click="toNewsDetail(item.id, 'notice')">
45
45
  <view style="height: 40rpx;line-height: 40rpx;">{{ item.title }}</view>
46
46
  </swiper-item>
47
47
  </swiper>
@@ -58,7 +58,7 @@
58
58
  </view>
59
59
  </view>
60
60
  <view class="group_body">
61
- <view class="news_item" v-for="(news, i) in newsList" :key="i" @click="toNewsDetail(news.id)">
61
+ <view class="news_item" v-for="(news, i) in newsList" :key="i" @click="toNewsDetail(news.id, 'news')">
62
62
  <view class="news_cont">
63
63
  <view class="news_tit">{{ news.title }}</view>
64
64
  <view class="news_date">{{ news.created_time }}</view>
@@ -81,7 +81,7 @@
81
81
  </view>
82
82
  </view>
83
83
  <view class="group_body">
84
- <view class="news_item" v-for="(news, i) in studyList" :key="i" @click="toNewsDetail(news.id)">
84
+ <view class="news_item" v-for="(news, i) in studyList" :key="i" @click="toNewsDetail(news.id, 'study')">
85
85
  <view class="news_cont">
86
86
  <view class="news_tit">{{ news.title }}</view>
87
87
  <view class="news_date">{{ news.created_time }}</view>
@@ -218,9 +218,9 @@
218
218
  url: `${this.newsListUrl}?position_id=${position_id}`,
219
219
  });
220
220
  },
221
- toNewsDetail(id){
221
+ toNewsDetail(id, position_id){
222
222
  this.$xdUniHelper.navigateTo({
223
- url: `${this.newsDetailUrl}?id=${id}`,
223
+ url: `${this.newsDetailUrl}?id=${id}&position_id=${position_id}`,
224
224
  });
225
225
  },
226
226
  toBannerLink(item){
@@ -2,6 +2,31 @@
2
2
 
3
3
  module.exports = {
4
4
  getHomeConfig: {
5
- index_config: ""
5
+ index_config: `[
6
+ {\"status\": \"Y\", \"container_key\": \"banner\"},
7
+ {\"config\": {
8
+ \"items\": [
9
+ {\"menu_id\": 4, \"site_id\": \"\", \"menu_icon\": \"https://img2.jufubao.cn/uploads/20231212/d7e653434aefc786ccb8a5032da0ab48.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"电影\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"},
10
+ {\"menu_id\": 2, \"site_id\": \"\", \"menu_icon\": \"https://img4.jufubao.cn/uploads/20231212/32922773dafc3a72d508445abf4d92b4.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"蛋糕\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"},
11
+ {\"menu_id\": 1, \"site_id\": \"\", \"menu_icon\": \"https://img4.jufubao.cn/uploads/20231212/f05cce33b30826e07c85f929ab485513.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"商城\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"},
12
+ {\"menu_id\": 3, \"site_id\": \"\", \"menu_icon\": \"https://img4.jufubao.cn/uploads/20231212/f0899132291cb61cd9c202a111f8a06d.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"餐饮\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"}
13
+ ]},\"status\": \"Y\", \"container_key\": \"menus\"
14
+ },
15
+ {\"status\": \"Y\", \"container_key\": \"notice\"},
16
+ {\"config\": {\"name\": \"新闻资讯2\"}, \"status\": \"Y\", \"container_key\": \"news\"},
17
+ {\"config\": {\"name\": \"学习资料2\"}, \"status\": \"Y\", \"container_key\": \"study\"},
18
+ {\"status\": \"Y\", \"container_key\": \"is_pop\"}
19
+ ]`
20
+ },
21
+ getNewsList: {
22
+ list: [
23
+ {
24
+ title: "企业公告的信息,如果没有则不展示该模块直接展示企业新闻",
25
+ content: "123123",
26
+ created_time: "1234561235",
27
+ thumb: "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
28
+ status: "Y",
29
+ }
30
+ ]
6
31
  }
7
32
  }
@@ -41,6 +41,7 @@
41
41
  data() {
42
42
  return {
43
43
  id: "",
44
+ position_id: "",
44
45
  info: {},
45
46
  //todo
46
47
  }
@@ -58,6 +59,7 @@
58
59
  methods: {
59
60
  onJfbLoad(options) {
60
61
  this.id = options.id;
62
+ this.position_id = options.position_id;
61
63
  this.p_getNewsDetail();
62
64
  },
63
65
  /**
@@ -76,7 +78,7 @@
76
78
  vm: this,
77
79
  data: {
78
80
  id: this.id,
79
- position_id: "news",
81
+ position_id: this.position_id,
80
82
  scene: "news"
81
83
  }
82
84
  }).then(res => {
@@ -137,6 +139,9 @@
137
139
  font-size: 24rpx;
138
140
  font-weight: 400;
139
141
  margin-top: 56rpx;
142
+ /deep/ img{
143
+ max-width: 100% !important;
144
+ }
140
145
  }
141
146
  }
142
147
  }
@@ -1,5 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getNewsDetail: {
5
+ title: "企业新闻标题 如果超长的标题那么就折行处理折行处理的样式就像是这样子的",
6
+ content: "在难以生存的恶劣环境下,三体人决定移民其他星球,目的地就是人类所在的地球。整个计划耗时数百年之久,并且路途中充满不确定性,为什么三体人不直接摧毁一颗或两颗恒星,使剩余的恒星保持规律的运动,拥有稳定恒纪元,而是一定要大费周章的来到地球呢?要知道在三体人遭受黑暗森林打击之前,就已经拥有了高度发达的科技,能将宇宙飞船加速到近乎光速。能够摧毁恒星的光粒本质上也只是一个以光速飞行的物体,完全可以用宇宙飞船来充当光粒,摧毁恒星。那么三体人是真的没有想到吗?事实当然绝非如此,摧毁恒星获得恒纪元远非我们想的这么简单。首先用近乎光速的宇宙飞船去摧毁恒星本身就不太现实。星环号的飞船等级和三体人是一样的,它到达286光年外的DX3906恒星花费了52个小时。这并不是真正的光速飞行,假如以100%的光速前往DX3906,时间会在光速中停止,对飞船上的人来说是在瞬间就达到了目的地。",
7
+ created_time: "321654789",
8
+ }
5
9
  }
@@ -49,6 +49,7 @@
49
49
  data() {
50
50
  return {
51
51
  newsList: [],
52
+ position_id: "",
52
53
 
53
54
  //面板
54
55
  newsDetailUrl: "", //新闻详情url
@@ -67,6 +68,7 @@
67
68
  methods: {
68
69
  onJfbLoad(options) {
69
70
  let position_id = options.position_id;
71
+ this.position_id = position_id;
70
72
  this.p_getNewsList(position_id)
71
73
  },
72
74
  /**
@@ -74,12 +76,12 @@
74
76
  * @param container {object} 业务组件对象自己
75
77
  */
76
78
  init(container) {
77
-
79
+ this.newsDetailUrl = getContainerPropsValue(container, 'content.newsDetailUrl', {value: ""}).value;
78
80
  //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
79
81
  },
80
82
  toDetail(item){
81
83
  this.$xdUniHelper.navigateTo({
82
- url: `${this.newsDetailUrl}?id=${item.id}`,
84
+ url: `${this.newsDetailUrl}?id=${item.id}&position_id=${this.position_id}`,
83
85
  });
84
86
  },
85
87
  p_getNewsList(position_id){
@@ -1,5 +1,24 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getNewsList: {
5
+ list: [
6
+ {
7
+ id: "1",
8
+ title: "企业公告的信息,如果没有则不展示该模块直接展示企业新闻",
9
+ content: "123123",
10
+ created_time: "1234561235",
11
+ thumb: "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
12
+ status: "Y",
13
+ },
14
+ {
15
+ id: "2",
16
+ title: "企业新闻标题如果很长就折行处理 如果再长就省略号处理...",
17
+ content: "123123",
18
+ created_time: "1234561235",
19
+ thumb: "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
20
+ status: "Y",
21
+ }
22
+ ]
23
+ }
5
24
  }