jufubao-base 1.0.118 → 1.0.119-beta2
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/JfbBaseCard/Attr.js +380 -287
- package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -4
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
- package/src/components/JfbBaseConFlashHome/Api.js +60 -0
- package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
- package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
- package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
- package/src/components/JfbBaseConFlashList/Api.js +60 -0
- package/src/components/JfbBaseConFlashList/Attr.js +117 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
- package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
- package/src/components/JfbBaseConFlashList/Mock.js +5 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
- package/src/components/JfbBaseConPhone/Api.js +70 -0
- package/src/components/JfbBaseConPhone/Attr.js +10 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
- package/src/components/JfbBaseConPhone/Mock.js +26 -0
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +2 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
- package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
- package/src/components/JfbBaseSaasHome/Api.js +48 -0
- package/src/components/JfbBaseSaasHome/Attr.js +35 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
- package/src/components/JfbBaseSaasHome/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/Api.js +39 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
- package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
- 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
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'getBlessDetail',
|
|
16
|
+
title: '祝福 - 详情',
|
|
17
|
+
path: '/saas/v1/bless/item/:bless_id',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {
|
|
20
|
+
bless_id: ['bless_id', 'Number', '必选'],
|
|
21
|
+
},
|
|
22
|
+
isConsole: true,
|
|
23
|
+
disabled: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
mapFnName: 'doSignBless',
|
|
27
|
+
title: '祝福 - 签收',
|
|
28
|
+
path: '/saas/v1/bless/sign/:bless_id',
|
|
29
|
+
isRule: false,
|
|
30
|
+
data: {
|
|
31
|
+
bless_id: ['bless_id', 'Number', '必选'],
|
|
32
|
+
},
|
|
33
|
+
isConsole: true,
|
|
34
|
+
disabled: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
mapFnName: "getOssSign",
|
|
38
|
+
title: "获取上传参数",
|
|
39
|
+
path: "/common-user/v1/h5-oss/sign",
|
|
40
|
+
isRule: false,
|
|
41
|
+
data: {
|
|
42
|
+
|
|
43
|
+
},
|
|
44
|
+
isConsole: true,
|
|
45
|
+
disabled: true,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
mapFnName: "doOssUpload",
|
|
49
|
+
title: "开启oss上传",
|
|
50
|
+
path: "/common-user/v1/h5-oss/upload",
|
|
51
|
+
isRule: false,
|
|
52
|
+
data: {
|
|
53
|
+
file_name: ['file_name', 'String', true],
|
|
54
|
+
file: ['file', 'file', true]
|
|
55
|
+
},
|
|
56
|
+
isConsole: true,
|
|
57
|
+
disabled: true,
|
|
58
|
+
}
|
|
59
|
+
];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '使用祝福券跳转地址:', //label
|
|
12
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
+
valueKey: 'useTicketUrl', //form[valueKey]
|
|
14
|
+
placeholder: '请选择使用祝福券跳转地址',
|
|
15
|
+
value: null,
|
|
16
|
+
setting: {
|
|
17
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
18
|
+
},
|
|
19
|
+
inline: false,
|
|
20
|
+
},
|
|
21
|
+
].filter(i=>i)
|
|
22
|
+
},
|
|
23
|
+
advanced: [],
|
|
24
|
+
};
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-saas-bless-detail"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-saas-bless-detail__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-saas-bless-detail__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view class="jfb-base-saas-bless-detail__body">
|
|
17
|
+
<view class="bless_detail">
|
|
18
|
+
<view class="bless_box">
|
|
19
|
+
<view class="dear">亲爱的张珊珊:</view>
|
|
20
|
+
<view class="desc">同事好比亲兄弟,一个单位共努力,加班加点在一起,齐心协力拼业绩,新年春节悄然到身旁,祝福送你好兄弟,合家欢乐福相伴,年年有余好运随,新年春节快乐哟!</view>
|
|
21
|
+
<view class="salute">某某公司致上</view>
|
|
22
|
+
<xd-button class="sign_btn"
|
|
23
|
+
style="width: 250rpx;" type="primary"
|
|
24
|
+
@click="showSign"
|
|
25
|
+
>去签收</xd-button>
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
<xd-dailog :show.sync="dialogShow" title="" class="my_dialog">
|
|
29
|
+
<view class="dialog_head">
|
|
30
|
+
<view class="h_main">请签名</view>
|
|
31
|
+
<view class="h_sub">请务必由本人签收,字迹工整</view>
|
|
32
|
+
</view>
|
|
33
|
+
<view class="sign_box">
|
|
34
|
+
<xd-signature ref="signatureRef"></xd-signature>
|
|
35
|
+
</view>
|
|
36
|
+
<view slot="btn" class="btn_wrap">
|
|
37
|
+
<xd-button style="width: 220rpx;" @click="clearSign">重写</xd-button>
|
|
38
|
+
<xd-button style="width: 220rpx;margin-left: 60rpx;" type="primary" @click="submitSign">确定</xd-button>
|
|
39
|
+
</view>
|
|
40
|
+
</xd-dailog>
|
|
41
|
+
<xd-dailog :show.sync="dialogSuccess" title="" class="success_dialog">
|
|
42
|
+
<view class="dialog_main">
|
|
43
|
+
<xd-font-icon icon="iconchenggong" :size="90" :color="mainColor"></xd-font-icon>
|
|
44
|
+
<view class="sign_tit">签收成功</view>
|
|
45
|
+
<view class="sign_cont">节日福利已经放入您的账户</view>
|
|
46
|
+
<view class="sign_ticket">祝福券 X1张</view>
|
|
47
|
+
</view>
|
|
48
|
+
<view slot="btn">
|
|
49
|
+
<xd-button style="width: 280rpx;" type="primary" @click="toUseTicket">去使用</xd-button>
|
|
50
|
+
</view>
|
|
51
|
+
</xd-dailog>
|
|
52
|
+
</view>
|
|
53
|
+
</view>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script>
|
|
57
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
58
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
59
|
+
import XdDailog from "@/components/XdDailog/XdDailog"
|
|
60
|
+
import XdSignature from "@/components/XdSignature/XdSignature"
|
|
61
|
+
import XdUpload from "@/components/XdUpload/XdUpload"
|
|
62
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
63
|
+
import JfbBaseSaasBlessDetailMixin from "./JfbBaseSaasBlessDetailMixin";
|
|
64
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
65
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
66
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
67
|
+
export default {
|
|
68
|
+
name: "JfbBaseSaasBlessDetail",
|
|
69
|
+
components: {
|
|
70
|
+
XdFontIcon,
|
|
71
|
+
XdButton,
|
|
72
|
+
XdDailog,
|
|
73
|
+
XdSignature,
|
|
74
|
+
XdUpload
|
|
75
|
+
},
|
|
76
|
+
mixins: [
|
|
77
|
+
componentsMixins, extsMixins, JfbBaseSaasBlessDetailMixin
|
|
78
|
+
],
|
|
79
|
+
data() {
|
|
80
|
+
return {
|
|
81
|
+
dialogShow: false,
|
|
82
|
+
dialogSuccess: false,
|
|
83
|
+
sign_image_url: "",
|
|
84
|
+
bless_id: "",
|
|
85
|
+
|
|
86
|
+
//面板
|
|
87
|
+
useTicketUrl: "", //使用券跳转地址
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
watch: {
|
|
91
|
+
container(value) {
|
|
92
|
+
this.init(value)
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
created() {
|
|
96
|
+
this.init(this.container);
|
|
97
|
+
|
|
98
|
+
//todo
|
|
99
|
+
},
|
|
100
|
+
methods: {
|
|
101
|
+
onJfbLoad(options) {
|
|
102
|
+
this.bless_id = options.bless_id;
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* @description 监听事件变化
|
|
106
|
+
* @param container {object} 业务组件对象自己
|
|
107
|
+
*/
|
|
108
|
+
init(container) {
|
|
109
|
+
|
|
110
|
+
},
|
|
111
|
+
showSign(){
|
|
112
|
+
this.dialogShow = true;
|
|
113
|
+
},
|
|
114
|
+
clearSign(){
|
|
115
|
+
this.$refs.signatureRef.clear()
|
|
116
|
+
},
|
|
117
|
+
toUseTicket(){
|
|
118
|
+
this.$xdUniHelper.navigateTo({
|
|
119
|
+
url: `${this.useTicketUrl}`,
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
submitSign(){
|
|
123
|
+
this.$refs.signatureRef.canvasToTempFilePath({
|
|
124
|
+
success: async (res) => {
|
|
125
|
+
console.log(res);
|
|
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
|
|
145
|
+
}
|
|
146
|
+
}).then(res => {
|
|
147
|
+
resolve(res);
|
|
148
|
+
}).catch(err => {
|
|
149
|
+
reject(err);
|
|
150
|
+
})
|
|
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});
|
|
202
|
+
},
|
|
203
|
+
onJfbScroll(options) {
|
|
204
|
+
|
|
205
|
+
},
|
|
206
|
+
onJfbReachBottom(options) {
|
|
207
|
+
console.log('event.onJfbReachBottom', options)
|
|
208
|
+
},
|
|
209
|
+
onJfbShow(options) {
|
|
210
|
+
console.log('event.onJfbShow', options)
|
|
211
|
+
},
|
|
212
|
+
onJfbHide(options) {
|
|
213
|
+
console.log('event.onJfbHide', options)
|
|
214
|
+
},
|
|
215
|
+
onJfbBack(options) {
|
|
216
|
+
console.log('event.onJfbBack', options)
|
|
217
|
+
this.$xdUniHelper.navigateBack();
|
|
218
|
+
},
|
|
219
|
+
onJfbUpdate(...data) {
|
|
220
|
+
console.log('event.onJfbUpdate', data)
|
|
221
|
+
},
|
|
222
|
+
onJfbCustomEvent(options) {
|
|
223
|
+
console.log('event.onJfbReachBottom', options)
|
|
224
|
+
},
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
</script>
|
|
229
|
+
|
|
230
|
+
<style scoped lang="less">
|
|
231
|
+
@import "./JfbBaseSaasBlessDetailLess.less";
|
|
232
|
+
|
|
233
|
+
.jfb-base-saas-bless-detail {
|
|
234
|
+
&__body{
|
|
235
|
+
box-sizing: border-box;
|
|
236
|
+
.bless_detail{
|
|
237
|
+
padding: 350rpx 48rpx;
|
|
238
|
+
|
|
239
|
+
.bless_box{
|
|
240
|
+
width: 600rpx;
|
|
241
|
+
height: 720rpx;
|
|
242
|
+
border: 1px solid #DDD;
|
|
243
|
+
margin: 0 auto;
|
|
244
|
+
background-color: #FFF2CD;
|
|
245
|
+
box-sizing: border-box;
|
|
246
|
+
padding: 100rpx 80rpx;
|
|
247
|
+
color: #FA2300;
|
|
248
|
+
font-size: 32rpx;
|
|
249
|
+
font-weight: 400;
|
|
250
|
+
.dear{
|
|
251
|
+
font-weight: 500;
|
|
252
|
+
}
|
|
253
|
+
.desc{
|
|
254
|
+
margin: 50rpx 0;
|
|
255
|
+
}
|
|
256
|
+
.salute{
|
|
257
|
+
text-align: right;
|
|
258
|
+
}
|
|
259
|
+
.sign_btn{
|
|
260
|
+
margin-top: 32rpx;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
.my_dialog{
|
|
265
|
+
/deep/ .xd-dailog__body-content-box{
|
|
266
|
+
padding: 0;
|
|
267
|
+
}
|
|
268
|
+
.dialog_head{
|
|
269
|
+
display: flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
justify-content: space-between;
|
|
272
|
+
padding: 48rpx 0;
|
|
273
|
+
|
|
274
|
+
.h_main{
|
|
275
|
+
font-size: 36rpx;
|
|
276
|
+
color: #333333;
|
|
277
|
+
font-weight: 500;
|
|
278
|
+
}
|
|
279
|
+
.h_sub{
|
|
280
|
+
font-size: 24rpx;
|
|
281
|
+
color: #808080;
|
|
282
|
+
font-weight: 400;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
.sign_box{
|
|
286
|
+
width: 600rpx;
|
|
287
|
+
height: 460rpx;
|
|
288
|
+
background-color: #F2F2F2;
|
|
289
|
+
}
|
|
290
|
+
.btn_wrap{
|
|
291
|
+
display: flex;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
.success_dialog{
|
|
295
|
+
.dialog_main{
|
|
296
|
+
padding: 140rpx 0 100rpx;
|
|
297
|
+
.sign_tit{
|
|
298
|
+
color: #FE7A63;
|
|
299
|
+
margin-top: 28rpx;
|
|
300
|
+
font-size: 40rpx;
|
|
301
|
+
}
|
|
302
|
+
.sign_cont{
|
|
303
|
+
font-size: 32rpx;
|
|
304
|
+
color: #333333;
|
|
305
|
+
margin-top: 40rpx;
|
|
306
|
+
}
|
|
307
|
+
.sign_ticket{
|
|
308
|
+
font-size: 32rpx;
|
|
309
|
+
color: #FE7A63;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-base-saas-bless-detail {
|
|
16
|
+
border: 1px dashed rgba(0, 0, 0, 0);
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
min-height: unit(50, rpx);
|
|
19
|
+
|
|
20
|
+
&__body{
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
z-index: 2
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.editx {
|
|
27
|
+
position: relative;
|
|
28
|
+
border: 1px dashed blue;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
z-index: 3
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
border: 1px dashed blue;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.noBorder {
|
|
39
|
+
border-color: rgba(0,0,0,0);
|
|
40
|
+
border-width: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
&__edit {
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
position: absolute;
|
|
47
|
+
right: unit(0, rpx);
|
|
48
|
+
top: unit(-52, rpx);
|
|
49
|
+
height: unit(50, rpx);
|
|
50
|
+
line-height: unit(50, rpx);
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
background: rgba(0, 0, 0, .6);
|
|
55
|
+
border-radius: unit(10, rpx);
|
|
56
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
57
|
+
color: #fff;
|
|
58
|
+
font-size: unit(22, rpx);
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-base-saas-bless-detail {
|
|
75
|
+
&:before {
|
|
76
|
+
content: " ";
|
|
77
|
+
display: table;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-base-saas-bless-detail'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'getBlessList',
|
|
16
|
+
title: '祝福 - 列表:代签收',
|
|
17
|
+
path: '/saas/v1/bless/items-unsigned',
|
|
18
|
+
isRule: false,
|
|
19
|
+
data: {
|
|
20
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
+
},
|
|
22
|
+
isConsole: true,
|
|
23
|
+
disabled: true,
|
|
24
|
+
},
|
|
25
|
+
];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '选取节日祝福详情路径:', //label
|
|
12
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
13
|
+
valueKey: 'blessDetailUrl', //form[valueKey]
|
|
14
|
+
placeholder: '请选择优惠券列表路径',
|
|
15
|
+
value: data['blessDetailUrl'] ||null,
|
|
16
|
+
setting: {
|
|
17
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
18
|
+
},
|
|
19
|
+
inline: false,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: '活动提示方式:',
|
|
23
|
+
ele: 'xd-radio',
|
|
24
|
+
valueKey: 'type',
|
|
25
|
+
value: data['type']||1,
|
|
26
|
+
placeholder: '请选择活动提示方式',
|
|
27
|
+
multiple: false,
|
|
28
|
+
className: 'input80',
|
|
29
|
+
list: [
|
|
30
|
+
{ label: '弹框', value: 1 },
|
|
31
|
+
{ label: '切换', value: 2 },
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: '是否隐藏弹框(仅预览模式生效):',
|
|
36
|
+
ele: 'xd-radio',
|
|
37
|
+
valueKey: 'isHide',
|
|
38
|
+
value: data['isHide']||false,
|
|
39
|
+
placeholder: '请选择是否隐藏弹框',
|
|
40
|
+
multiple: false,
|
|
41
|
+
className: 'input80',
|
|
42
|
+
list: [
|
|
43
|
+
{ label: '是', value: true },
|
|
44
|
+
{ label: '否', value: false },
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
].filter(i=>i)
|
|
48
|
+
},
|
|
49
|
+
advanced: [],
|
|
50
|
+
};
|