jufubao-base 1.0.116-beta2 → 1.0.116-beta4
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 +1 -1
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +5 -2
- package/src/components/JfbBaseConList/JfbBaseConList.vue +1 -1
- package/src/components/JfbBaseConPhone/Api.js +60 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +110 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +18 -0
- package/src/components/JfbBaseConPhone/Mock.js +5 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +21 -22
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +6 -88
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +100 -12
- package/src/components/JfbBaseSaasBlessDialog/Api.js +4 -39
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +2 -2
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +14 -5
- package/src/components/JfbBaseSaasBlessReceive/Api.js +4 -39
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +6 -88
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +29 -18
- package/src/components/JfbBaseSaasHome/Api.js +14 -26
- package/src/components/JfbBaseSaasHome/Attr.js +15 -86
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +131 -60
- package/src/components/JfbBaseSaasLogin/Api.js +13 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +11 -11
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +64 -7
- package/src/components/JfbBaseSaasNewsDetail/Api.js +6 -39
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +2 -94
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +26 -22
- package/src/components/JfbBaseSaasNewsList/Api.js +5 -39
- package/src/components/JfbBaseSaasNewsList/Attr.js +6 -88
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +45 -19
- package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
- package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
- package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
- package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
<view class="dear">亲爱的张珊珊:</view>
|
|
20
20
|
<view class="desc">同事好比亲兄弟,一个单位共努力,加班加点在一起,齐心协力拼业绩,新年春节悄然到身旁,祝福送你好兄弟,合家欢乐福相伴,年年有余好运随,新年春节快乐哟!</view>
|
|
21
21
|
<view class="salute">某某公司致上</view>
|
|
22
|
-
<xd-button class="sign_btn"
|
|
22
|
+
<xd-button class="sign_btn"
|
|
23
|
+
style="width: 250rpx;" type="primary"
|
|
24
|
+
@click="showSign"
|
|
25
|
+
>去签收</xd-button>
|
|
23
26
|
</view>
|
|
24
27
|
</view>
|
|
25
28
|
<xd-dailog :show.sync="dialogShow" title="" class="my_dialog">
|
|
@@ -43,7 +46,7 @@
|
|
|
43
46
|
<view class="sign_ticket">祝福券 X1张</view>
|
|
44
47
|
</view>
|
|
45
48
|
<view slot="btn">
|
|
46
|
-
<xd-button style="width: 280rpx;" type="primary">去使用</xd-button>
|
|
49
|
+
<xd-button style="width: 280rpx;" type="primary" @click="toUseTicket">去使用</xd-button>
|
|
47
50
|
</view>
|
|
48
51
|
</xd-dailog>
|
|
49
52
|
</view>
|
|
@@ -55,6 +58,7 @@
|
|
|
55
58
|
import XdButton from "@/components/XdButton/XdButton";
|
|
56
59
|
import XdDailog from "@/components/XdDailog/XdDailog"
|
|
57
60
|
import XdSignature from "@/components/XdSignature/XdSignature"
|
|
61
|
+
import XdUpload from "@/components/XdUpload/XdUpload"
|
|
58
62
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
59
63
|
import JfbBaseSaasBlessDetailMixin from "./JfbBaseSaasBlessDetailMixin";
|
|
60
64
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
@@ -66,15 +70,21 @@
|
|
|
66
70
|
XdFontIcon,
|
|
67
71
|
XdButton,
|
|
68
72
|
XdDailog,
|
|
69
|
-
XdSignature
|
|
73
|
+
XdSignature,
|
|
74
|
+
XdUpload
|
|
70
75
|
},
|
|
71
76
|
mixins: [
|
|
72
77
|
componentsMixins, extsMixins, JfbBaseSaasBlessDetailMixin
|
|
73
78
|
],
|
|
74
79
|
data() {
|
|
75
80
|
return {
|
|
76
|
-
dialogShow:
|
|
81
|
+
dialogShow: false,
|
|
77
82
|
dialogSuccess: false,
|
|
83
|
+
sign_image_url: "",
|
|
84
|
+
bless_id: "",
|
|
85
|
+
|
|
86
|
+
//面板
|
|
87
|
+
useTicketUrl: "", //使用券跳转地址
|
|
78
88
|
}
|
|
79
89
|
},
|
|
80
90
|
watch: {
|
|
@@ -89,7 +99,7 @@
|
|
|
89
99
|
},
|
|
90
100
|
methods: {
|
|
91
101
|
onJfbLoad(options) {
|
|
92
|
-
|
|
102
|
+
this.bless_id = options.bless_id;
|
|
93
103
|
},
|
|
94
104
|
/**
|
|
95
105
|
* @description 监听事件变化
|
|
@@ -97,24 +107,101 @@
|
|
|
97
107
|
*/
|
|
98
108
|
init(container) {
|
|
99
109
|
|
|
110
|
+
},
|
|
111
|
+
showSign(){
|
|
112
|
+
this.dialogShow = true;
|
|
100
113
|
},
|
|
101
114
|
clearSign(){
|
|
102
115
|
this.$refs.signatureRef.clear()
|
|
103
116
|
},
|
|
117
|
+
toUseTicket(){
|
|
118
|
+
this.$xdUniHelper.navigateTo({
|
|
119
|
+
url: `${this.useTicketUrl}`,
|
|
120
|
+
});
|
|
121
|
+
},
|
|
104
122
|
submitSign(){
|
|
105
123
|
this.$refs.signatureRef.canvasToTempFilePath({
|
|
106
|
-
success: (res) => {
|
|
124
|
+
success: async (res) => {
|
|
107
125
|
console.log(res);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
126
|
+
let url = res.tempFilePath
|
|
127
|
+
if(!res.isEmpty){
|
|
128
|
+
//上传签名图片
|
|
129
|
+
await this.doSubmitSign(url);
|
|
130
|
+
//提交签名
|
|
131
|
+
await this.p_doSignBless();
|
|
132
|
+
this.dialogShow = false;
|
|
133
|
+
this.dialogSuccess = true;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
},
|
|
138
|
+
p_doSignBless(){
|
|
139
|
+
return new Promise((resolve, reject) => {
|
|
140
|
+
jfbRootExec("doSignBless", {
|
|
141
|
+
vm: this,
|
|
142
|
+
data: {
|
|
143
|
+
bless_id: this.bless_id,
|
|
144
|
+
sign_image_url: this.sign_image_url
|
|
113
145
|
}
|
|
146
|
+
}).then(res => {
|
|
147
|
+
resolve(res);
|
|
148
|
+
}).catch(err => {
|
|
149
|
+
reject(err);
|
|
150
|
+
})
|
|
114
151
|
})
|
|
152
|
+
|
|
153
|
+
},
|
|
154
|
+
doSubmitSign(url){
|
|
155
|
+
let fileName = "sign.png";
|
|
156
|
+
let file = this.base64ToFile(url,fileName);
|
|
157
|
+
|
|
158
|
+
return new Promise((resolve,reject) => {
|
|
159
|
+
jfbRootExec("getOssSign", {
|
|
160
|
+
vm: this,
|
|
161
|
+
data: { name: fileName }
|
|
162
|
+
}).then(res => {
|
|
163
|
+
console.log(res);
|
|
164
|
+
let OSSAccessKeyId = res['id']
|
|
165
|
+
let cdnUrl = res['cdn_url']
|
|
166
|
+
delete res['id']
|
|
167
|
+
delete res['cdn_url']
|
|
168
|
+
|
|
169
|
+
uni.uploadFile({
|
|
170
|
+
url: res.action,
|
|
171
|
+
file: file,
|
|
172
|
+
name: 'file',
|
|
173
|
+
formData: {
|
|
174
|
+
...res,
|
|
175
|
+
OSSAccessKeyId: OSSAccessKeyId,
|
|
176
|
+
name: fileName,
|
|
177
|
+
cdnUrl: cdnUrl,
|
|
178
|
+
success_action_status: 200
|
|
179
|
+
},
|
|
180
|
+
success: (res) => {
|
|
181
|
+
this.sign_image_url = cdnUrl;
|
|
182
|
+
resolve(cdnUrl);
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
}).catch(err => {
|
|
186
|
+
reject();
|
|
187
|
+
})
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
// this.dialogSuccess = true;
|
|
191
|
+
},
|
|
192
|
+
base64ToFile(base64String, filename){
|
|
193
|
+
var arr = base64String.split(',');
|
|
194
|
+
var mime = arr[0].match(/:(.*?);/)[1];
|
|
195
|
+
var bstr = atob(arr[1]);
|
|
196
|
+
var n = bstr.length;
|
|
197
|
+
var u8arr = new Uint8Array(n);
|
|
198
|
+
while(n--) {
|
|
199
|
+
u8arr[n] = bstr.charCodeAt(n);
|
|
200
|
+
}
|
|
201
|
+
return new File([u8arr], filename, {type:mime});
|
|
115
202
|
},
|
|
116
203
|
onJfbScroll(options) {
|
|
117
|
-
|
|
204
|
+
|
|
118
205
|
},
|
|
119
206
|
onJfbReachBottom(options) {
|
|
120
207
|
console.log('event.onJfbReachBottom', options)
|
|
@@ -127,6 +214,7 @@
|
|
|
127
214
|
},
|
|
128
215
|
onJfbBack(options) {
|
|
129
216
|
console.log('event.onJfbBack', options)
|
|
217
|
+
this.$xdUniHelper.navigateBack();
|
|
130
218
|
},
|
|
131
219
|
onJfbUpdate(...data) {
|
|
132
220
|
console.log('event.onJfbUpdate', data)
|
|
@@ -12,47 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
16
|
-
title: '
|
|
17
|
-
path: '/
|
|
15
|
+
mapFnName: 'getBlessList',
|
|
16
|
+
title: '祝福 - 列表:代签收',
|
|
17
|
+
path: '/saas/v1/bless/items-unsigned',
|
|
18
18
|
isRule: false,
|
|
19
|
-
|
|
19
|
+
data: {
|
|
20
20
|
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
22
|
-
},
|
|
23
|
-
isConsole: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
-
title: '更新排期',
|
|
29
|
-
path: '/api/account/film/paiqi-date',
|
|
30
|
-
isRule: false,
|
|
31
|
-
params: {
|
|
32
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
34
|
-
},
|
|
35
|
-
isConsole: true,
|
|
36
|
-
disabled: true,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
-
title: '删除我的配送地址',
|
|
41
|
-
path: '/api/account/film/paiqi-date',
|
|
42
|
-
isRule: false,
|
|
43
|
-
params: {
|
|
44
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
-
},
|
|
46
|
-
isConsole: true,
|
|
47
|
-
disabled: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
mapFnName: 'addFilmcart', //自定义方法名字(必选)
|
|
51
|
-
title: '添加购物车',
|
|
52
|
-
path: '/api/account/film/paiqi-date',
|
|
53
|
-
isRule: false,
|
|
54
|
-
params: {
|
|
55
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
56
21
|
},
|
|
57
22
|
isConsole: true,
|
|
58
23
|
disabled: true,
|
|
@@ -10,9 +10,9 @@ export default {
|
|
|
10
10
|
{
|
|
11
11
|
label: '选取节日祝福详情路径:', //label
|
|
12
12
|
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
-
valueKey: '
|
|
13
|
+
valueKey: 'blessDetailUrl', //form[valueKey]
|
|
14
14
|
placeholder: '请选择优惠券列表路径',
|
|
15
|
-
value: data['
|
|
15
|
+
value: data['blessDetailUrl'] ||null,
|
|
16
16
|
setting: {
|
|
17
17
|
router: XdBus.getParentApi('getPagesTree'),
|
|
18
18
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<view class="bless_name">亲爱的张珊珊:</view>
|
|
32
32
|
<view class="bless_cont">您收到了一份为您定制的专属祝福,快去查看并使用吧!</view>
|
|
33
33
|
</view>
|
|
34
|
-
<xd-button class="btn_image" type="primary" @click="
|
|
34
|
+
<xd-button class="btn_image" type="primary" @click="handleToDetail">去看看</xd-button>
|
|
35
35
|
</view>
|
|
36
36
|
<view class="_right" @click="handleChange('right')">
|
|
37
37
|
<xd-font-icon icon="iconxiangyou_xian"></xd-font-icon>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
currentIndex: 0,
|
|
82
82
|
list: [],
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
blessDetailUrl: "", //祝福详情url
|
|
85
85
|
type: "",
|
|
86
86
|
isHide: false,
|
|
87
87
|
}
|
|
@@ -97,7 +97,15 @@
|
|
|
97
97
|
},
|
|
98
98
|
methods: {
|
|
99
99
|
onJfbLoad(options) {
|
|
100
|
-
|
|
100
|
+
jfbRootExec("getBlessList", {
|
|
101
|
+
vm: this,
|
|
102
|
+
data: {
|
|
103
|
+
page_size: 10,
|
|
104
|
+
page_token: '1'
|
|
105
|
+
}
|
|
106
|
+
}).then(res => {
|
|
107
|
+
this.list = res.list;
|
|
108
|
+
})
|
|
101
109
|
},
|
|
102
110
|
/**
|
|
103
111
|
* @description 监听事件变化
|
|
@@ -110,9 +118,9 @@
|
|
|
110
118
|
this.isShow = !this.isHide;
|
|
111
119
|
}
|
|
112
120
|
},
|
|
113
|
-
|
|
121
|
+
handleToDetail(){
|
|
114
122
|
this.$xdUniHelper.navigateTo({
|
|
115
|
-
url: `${this.
|
|
123
|
+
url: `${this.blessDetailUrl}?bless_id=${1}`,
|
|
116
124
|
});
|
|
117
125
|
},
|
|
118
126
|
handleClose(){
|
|
@@ -121,6 +129,7 @@
|
|
|
121
129
|
return;
|
|
122
130
|
}
|
|
123
131
|
this.currentIndex = this.currentIndex + 1;
|
|
132
|
+
this.isShow = false;
|
|
124
133
|
},
|
|
125
134
|
handleChange(type){
|
|
126
135
|
this.currentIndex = type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
|
|
@@ -12,47 +12,12 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
16
|
-
title: '
|
|
17
|
-
path: '/
|
|
15
|
+
mapFnName: 'getBlessAll',
|
|
16
|
+
title: '祝福 - 列表:所有',
|
|
17
|
+
path: '/saas/v1/bless/items-all',
|
|
18
18
|
isRule: false,
|
|
19
|
-
|
|
19
|
+
data: {
|
|
20
20
|
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
22
|
-
},
|
|
23
|
-
isConsole: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
-
title: '更新排期',
|
|
29
|
-
path: '/api/account/film/paiqi-date',
|
|
30
|
-
isRule: false,
|
|
31
|
-
params: {
|
|
32
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
34
|
-
},
|
|
35
|
-
isConsole: true,
|
|
36
|
-
disabled: true,
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
-
title: '删除我的配送地址',
|
|
41
|
-
path: '/api/account/film/paiqi-date',
|
|
42
|
-
isRule: false,
|
|
43
|
-
params: {
|
|
44
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
-
},
|
|
46
|
-
isConsole: true,
|
|
47
|
-
disabled: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
mapFnName: 'addFilmcart', //自定义方法名字(必选)
|
|
51
|
-
title: '添加购物车',
|
|
52
|
-
path: '/api/account/film/paiqi-date',
|
|
53
|
-
isRule: false,
|
|
54
|
-
params: {
|
|
55
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
56
21
|
},
|
|
57
22
|
isConsole: true,
|
|
58
23
|
disabled: true,
|
|
@@ -8,99 +8,17 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
12
|
-
ele: 'xd-color', //package 名称
|
|
13
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
14
|
-
value: data.bgcolor || '', //v-model
|
|
15
|
-
placeholder: '请输入占位框背景颜色',
|
|
16
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '选中路径:', //label
|
|
11
|
+
label: '祝福详情跳转地址:', //label
|
|
27
12
|
ele: 'xd-select-pages-path', //package 名称
|
|
28
|
-
valueKey: '
|
|
29
|
-
|
|
13
|
+
valueKey: 'blessSignUrl', //form[valueKey]
|
|
14
|
+
placeholder: '请选择祝福详情跳转地址',
|
|
15
|
+
value: null,
|
|
30
16
|
setting: {
|
|
31
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
17
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
32
18
|
},
|
|
33
19
|
inline: false,
|
|
34
20
|
},
|
|
35
|
-
data.bgcolor && {
|
|
36
|
-
label: '高度:', //label
|
|
37
|
-
ele: 'el-input', //package 名称
|
|
38
|
-
type: 'number',
|
|
39
|
-
valueKey: 'height', //form[valueKey]
|
|
40
|
-
value: data.height || 100, //v-model
|
|
41
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
42
|
-
className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
43
|
-
rules: [
|
|
44
|
-
{
|
|
45
|
-
required: true,
|
|
46
|
-
message: '请输入占位框高度',
|
|
47
|
-
trigger: 'blur'
|
|
48
|
-
},
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: '', //label
|
|
53
|
-
ele: 'slot', //package 名称
|
|
54
|
-
slot: 'is_reference',
|
|
55
|
-
},
|
|
56
21
|
].filter(i=>i)
|
|
57
22
|
},
|
|
58
|
-
advanced: [
|
|
59
|
-
{
|
|
60
|
-
label: '背景颜色:', //label
|
|
61
|
-
ele: 'xd-color', //package 名称
|
|
62
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
63
|
-
value: '', //v-model
|
|
64
|
-
placeholder: '请输入占位框背景颜色',
|
|
65
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
66
|
-
rules: [
|
|
67
|
-
{
|
|
68
|
-
required: true,
|
|
69
|
-
message: '请输入占位框背景颜色',
|
|
70
|
-
trigger: 'blur'
|
|
71
|
-
},
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
label: '选中路径:', //label
|
|
76
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
77
|
-
valueKey: 'select-pages-path', //form[valueKey]
|
|
78
|
-
value: null,
|
|
79
|
-
setting: {
|
|
80
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
81
|
-
},
|
|
82
|
-
inline: false,
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
label: '高度:', //label
|
|
86
|
-
ele: 'el-input', //package 名称
|
|
87
|
-
type: 'number',
|
|
88
|
-
valueKey: 'height', //form[valueKey]
|
|
89
|
-
value: null, //v-model
|
|
90
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
91
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
92
|
-
rules: [
|
|
93
|
-
{
|
|
94
|
-
required: true,
|
|
95
|
-
message: '请输入占位框高度',
|
|
96
|
-
trigger: 'blur'
|
|
97
|
-
},
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: '', //label
|
|
102
|
-
ele: 'slot', //package 名称
|
|
103
|
-
slot: 'is_reference',
|
|
104
|
-
},
|
|
105
|
-
],
|
|
23
|
+
advanced: [],
|
|
106
24
|
};
|
|
@@ -15,17 +15,18 @@
|
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-saas-bless-receive__body">
|
|
17
17
|
<view class="receive_list">
|
|
18
|
-
<view class="receive_item">
|
|
19
|
-
<view class="head"
|
|
18
|
+
<view class="receive_item" v-for="(item, i) in blessData" :key="i">
|
|
19
|
+
<view class="head">{{item.bless_type_name}}</view>
|
|
20
20
|
<view class="card"></view>
|
|
21
21
|
<view class="receive_cont">
|
|
22
|
-
<view class="card_name"
|
|
22
|
+
<view class="card_name">{{ item.bless_name }}</view>
|
|
23
23
|
<view class="card_num">× 1张</view>
|
|
24
24
|
</view>
|
|
25
25
|
<view class="receive_time">
|
|
26
26
|
<view class="_time">2022.10.01 23:45</view>
|
|
27
27
|
<view>
|
|
28
|
-
<xd-button size="small" type="primary">立即签收</xd-button>
|
|
28
|
+
<xd-button v-if="item.receive_status === 'N'" size="small" type="primary" @click="toSignUrl(item)">立即签收</xd-button>
|
|
29
|
+
<xd-button v-else size="small" type="default" @click="toSignUrl(item)">再次查看</xd-button>
|
|
29
30
|
</view>
|
|
30
31
|
</view>
|
|
31
32
|
</view>
|
|
@@ -53,8 +54,10 @@
|
|
|
53
54
|
],
|
|
54
55
|
data() {
|
|
55
56
|
return {
|
|
57
|
+
blessData: [],
|
|
56
58
|
|
|
57
|
-
|
|
59
|
+
//面板
|
|
60
|
+
blessSignUrl: "", //签收跳转地址
|
|
58
61
|
}
|
|
59
62
|
},
|
|
60
63
|
watch: {
|
|
@@ -70,28 +73,34 @@
|
|
|
70
73
|
methods: {
|
|
71
74
|
onJfbLoad(options) {
|
|
72
75
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
// vm: this,// data: {
|
|
76
|
-
|
|
77
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
78
|
-
|
|
79
|
-
// }
|
|
80
|
-
|
|
81
|
-
// }).then().catch()
|
|
76
|
+
this.p_getBlessAll();
|
|
82
77
|
},
|
|
83
78
|
/**
|
|
84
79
|
* @description 监听事件变化
|
|
85
80
|
* @param container {object} 业务组件对象自己
|
|
86
81
|
*/
|
|
87
82
|
init(container) {
|
|
83
|
+
this.blessSignUrl = getContainerPropsValue(container, 'content.blessSignUrl', {value: ""}).value;
|
|
84
|
+
},
|
|
85
|
+
toSignUrl(item){
|
|
86
|
+
this.$xdUniHelper.navigateTo({
|
|
87
|
+
url: `${this.blessSignUrl}?bless_id=${item.bless_id}`,
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
p_getBlessAll(){
|
|
91
|
+
this.$xdShowLoading({});
|
|
92
|
+
jfbRootExec("getBlessAll", {
|
|
93
|
+
vm: this,
|
|
94
|
+
data: {
|
|
88
95
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
}
|
|
97
|
+
}).then(res => {
|
|
98
|
+
this.$xdHideLoading();
|
|
99
|
+
this.blessData = res.list;
|
|
100
|
+
})
|
|
92
101
|
},
|
|
93
102
|
onJfbScroll(options) {
|
|
94
|
-
|
|
103
|
+
|
|
95
104
|
},
|
|
96
105
|
onJfbReachBottom(options) {
|
|
97
106
|
console.log('event.onJfbReachBottom', options)
|
|
@@ -104,6 +113,7 @@
|
|
|
104
113
|
},
|
|
105
114
|
onJfbBack(options) {
|
|
106
115
|
console.log('event.onJfbBack', options)
|
|
116
|
+
this.$xdUniHelper.navigateBack();
|
|
107
117
|
},
|
|
108
118
|
onJfbUpdate(...data) {
|
|
109
119
|
console.log('event.onJfbUpdate', data)
|
|
@@ -121,6 +131,7 @@
|
|
|
121
131
|
|
|
122
132
|
.jfb-base-saas-bless-receive {
|
|
123
133
|
&__body{
|
|
134
|
+
background: #F5F9FA;
|
|
124
135
|
.receive_list{
|
|
125
136
|
padding: 20rpx;
|
|
126
137
|
.receive_item{
|
|
@@ -12,47 +12,35 @@
|
|
|
12
12
|
*/
|
|
13
13
|
module.exports = [
|
|
14
14
|
{
|
|
15
|
-
mapFnName: '
|
|
16
|
-
title: '
|
|
17
|
-
path: '/
|
|
15
|
+
mapFnName: 'getCompanyList',
|
|
16
|
+
title: '获取公司列表',
|
|
17
|
+
path: '/saas/v1/company/items',
|
|
18
18
|
isRule: false,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
22
|
-
},
|
|
23
|
-
isConsole: true,
|
|
24
|
-
disabled: true,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
-
title: '更新排期',
|
|
29
|
-
path: '/api/account/film/paiqi-date',
|
|
30
|
-
isRule: false,
|
|
31
|
-
params: {
|
|
32
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
19
|
+
data: {
|
|
20
|
+
phone_number: ['手机号', 'String', '必选'],
|
|
34
21
|
},
|
|
35
22
|
isConsole: true,
|
|
36
23
|
disabled: true,
|
|
37
24
|
},
|
|
38
25
|
{
|
|
39
|
-
mapFnName: '
|
|
40
|
-
title: '
|
|
41
|
-
path: '/
|
|
26
|
+
mapFnName: 'getHomeConfig',
|
|
27
|
+
title: '获取首页配置',
|
|
28
|
+
path: '/saas/v1/company_config/item',
|
|
42
29
|
isRule: false,
|
|
43
30
|
params: {
|
|
44
|
-
|
|
31
|
+
phone_number: ['手机号', 'String', '必选'],
|
|
45
32
|
},
|
|
46
33
|
isConsole: true,
|
|
47
34
|
disabled: true,
|
|
48
35
|
},
|
|
49
36
|
{
|
|
50
|
-
mapFnName: '
|
|
51
|
-
title: '
|
|
52
|
-
path: '/
|
|
37
|
+
mapFnName: 'getNewsList',
|
|
38
|
+
title: '获取新闻列表',
|
|
39
|
+
path: '/saas/v1/content_ad_news/items',
|
|
53
40
|
isRule: false,
|
|
54
41
|
params: {
|
|
55
|
-
|
|
42
|
+
position_id: ['位置ID', 'String', '必选'],
|
|
43
|
+
scene: ['场景ad,news', 'String', '必选']
|
|
56
44
|
},
|
|
57
45
|
isConsole: true,
|
|
58
46
|
disabled: true,
|