jufubao-base 1.0.183 → 1.0.184-beta1
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/JfbBaseCardDelay/Api.js +19 -30
- package/src/components/JfbBaseCardDelay/Attr.js +237 -35
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +279 -78
- package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +121 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +206 -29
- package/src/components/JfbBaseCardGive/Api.js +18 -34
- package/src/components/JfbBaseCardGive/Attr.js +40 -32
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +502 -79
- package/src/components/JfbBaseCardGive/Mock.js +2 -9
- package/src/components/JfbBaseCardReceive/Api.js +10 -36
- package/src/components/JfbBaseCardReceive/Attr.js +9 -39
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +403 -80
- package/src/components/JfbBaseCardReceive/Mock.js +1 -7
- package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
- package/src/components/JfbBaseCardReceiveCover/Attr.js +119 -30
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +189 -82
- package/src/components/JfbBaseCardReceiveCover/Mock.js +1 -9
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +42 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +40 -7
- package/src/components/JfbBasePay/Attr.js +12 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +14 -8
- package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
- package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -1
- package/src/components/JfbBaseRechargeOrder/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +46 -27
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +11 -0
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +142 -13
- package/src/components/JfbBaseRechargeSuccess/Api.js +11 -0
- package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -3
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
|
@@ -8,49 +8,138 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
11
|
+
label: '可领取背景图:', //label
|
|
12
|
+
ele: 'xd-upload', //package 名称
|
|
13
|
+
valueKey: 'canReceiveBg', //form[valueKey]
|
|
14
|
+
value: data.canReceiveBg || null, //v-model
|
|
15
|
+
defaultValue: data.canReceiveBg || null, //默认图片对象
|
|
16
|
+
groupKey: "style",
|
|
17
|
+
slot: true, //按钮是否使用slot
|
|
18
|
+
oneWidth: 375, //单个图片显示宽度
|
|
19
|
+
oneHeight: 672, //单个图片显示高度
|
|
20
|
+
elinputClassName: 'input40',
|
|
21
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
22
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
23
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
24
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
25
|
+
size: 5, //5M
|
|
26
|
+
action: 'aliyun',
|
|
27
|
+
sort: true, //当上传图片列表时候,是否启用排序
|
|
28
|
+
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
29
|
+
rules: [
|
|
30
|
+
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: '可领取背景颜色:',
|
|
12
35
|
ele: 'xd-color',
|
|
13
|
-
valueKey: '
|
|
14
|
-
value: data
|
|
15
|
-
|
|
36
|
+
valueKey: 'canReceiveBgColor',
|
|
37
|
+
value: data['canReceiveBgColor'] || '',
|
|
38
|
+
groupKey: "style",
|
|
39
|
+
placeholder: '请输入可领取背景颜色',
|
|
16
40
|
classNmae: 'input80',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: '不可领取背景图:', //label
|
|
44
|
+
ele: 'xd-upload', //package 名称
|
|
45
|
+
valueKey: 'cannotReceiveBg', //form[valueKey]
|
|
46
|
+
value: data.cannotReceiveBg || null, //v-model
|
|
47
|
+
defaultValue: data.cannotReceiveBg || null, //默认图片对象
|
|
48
|
+
groupKey: "style",
|
|
49
|
+
slot: true, //按钮是否使用slot
|
|
50
|
+
oneWidth: 375, //单个图片显示宽度
|
|
51
|
+
oneHeight: 672, //单个图片显示高度
|
|
52
|
+
elinputClassName: 'input40',
|
|
53
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
54
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
55
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
56
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
57
|
+
size: 5, //5M
|
|
58
|
+
action: 'aliyun',
|
|
59
|
+
sort: true, //当上传图片列表时候,是否启用排序
|
|
60
|
+
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
17
61
|
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
62
|
+
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
23
63
|
]
|
|
24
64
|
},
|
|
25
65
|
{
|
|
26
|
-
label: '
|
|
66
|
+
label: '不可领取背景颜色:',
|
|
67
|
+
ele: 'xd-color',
|
|
68
|
+
valueKey: 'cannotReceiveBgColor',
|
|
69
|
+
value: data['cannotReceiveBgColor'] || '',
|
|
70
|
+
groupKey: "style",
|
|
71
|
+
placeholder: '请输入不可领取背景颜色',
|
|
72
|
+
classNmae: 'input80',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: '按钮背景图:', //label
|
|
76
|
+
ele: 'xd-upload', //package 名称
|
|
77
|
+
valueKey: 'btnBg', //form[valueKey]
|
|
78
|
+
value: data.btnBg || null, //v-model
|
|
79
|
+
defaultValue: data.btnBg || null, //默认图片对象
|
|
80
|
+
groupKey: "style",
|
|
81
|
+
slot: true, //按钮是否使用slot
|
|
82
|
+
oneWidth: 163, //单个图片显示宽度
|
|
83
|
+
oneHeight: 45, //单个图片显示高度
|
|
84
|
+
elinputClassName: 'input40',
|
|
85
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
86
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
87
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
88
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
89
|
+
size: 5, //5M
|
|
90
|
+
action: 'aliyun',
|
|
91
|
+
sort: true, //当上传图片列表时候,是否启用排序
|
|
92
|
+
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
93
|
+
rules: [
|
|
94
|
+
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
label: '内容背景图:', //label
|
|
99
|
+
ele: 'xd-upload', //package 名称
|
|
100
|
+
valueKey: 'contentBg', //form[valueKey]
|
|
101
|
+
value: data.contentBg || null, //v-model
|
|
102
|
+
defaultValue: data.contentBg || null, //默认图片对象
|
|
103
|
+
groupKey: "style",
|
|
104
|
+
slot: true, //按钮是否使用slot
|
|
105
|
+
oneWidth: 300, //单个图片显示宽度
|
|
106
|
+
oneHeight: 200, //单个图片显示高度
|
|
107
|
+
elinputClassName: 'input40',
|
|
108
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
109
|
+
type: ['jpg', 'png', 'jpeg'],
|
|
110
|
+
styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
|
|
111
|
+
uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
|
|
112
|
+
size: 5, //5M
|
|
113
|
+
action: 'aliyun',
|
|
114
|
+
sort: true, //当上传图片列表时候,是否启用排序
|
|
115
|
+
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
116
|
+
rules: [
|
|
117
|
+
{ required: true, message: '请上传图片', trigger: ['blur', 'change'] },
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
label: '领取跳转地址:',
|
|
27
122
|
ele: 'xd-select-pages-path',
|
|
28
|
-
valueKey: '
|
|
29
|
-
|
|
123
|
+
valueKey: 'receive_get_url',
|
|
124
|
+
groupKey:'advanced',
|
|
125
|
+
placeholder: '请选择领取跳转地址',
|
|
126
|
+
value: data['receive_get_url']||null,
|
|
30
127
|
setting: {
|
|
31
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
128
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
32
129
|
},
|
|
33
|
-
|
|
34
|
-
data.bgcolor && {
|
|
35
|
-
label: '高度:',
|
|
36
|
-
ele: 'el-input',
|
|
37
|
-
type: 'number',
|
|
38
|
-
valueKey: 'height',
|
|
39
|
-
value: data.height || 100,
|
|
40
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
41
|
-
className: 'input80',
|
|
130
|
+
inline: false,
|
|
42
131
|
rules: [
|
|
43
|
-
{
|
|
44
|
-
required: true,
|
|
45
|
-
message: '请输入占位框高度',
|
|
46
|
-
trigger: 'blur'
|
|
47
|
-
},
|
|
132
|
+
{ required: true, message: '请选择领取地址', trigger: ['blur', 'change'] },
|
|
48
133
|
]
|
|
49
134
|
},
|
|
50
135
|
{
|
|
51
|
-
label: '',
|
|
52
|
-
ele: '
|
|
53
|
-
|
|
136
|
+
label: '按钮文字颜色:',
|
|
137
|
+
ele: 'xd-color',
|
|
138
|
+
valueKey: 'btnColor',
|
|
139
|
+
value: data['btnColor'] || '',
|
|
140
|
+
groupKey: "style",
|
|
141
|
+
placeholder: '请输入按钮文字颜色',
|
|
142
|
+
classNmae: 'input80',
|
|
54
143
|
},
|
|
55
144
|
].filter(i=>i)
|
|
56
145
|
},
|
|
@@ -2,110 +2,217 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="jfb-base-card-receive-cover"
|
|
4
4
|
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx
|
|
5
|
+
:class="{ editx: isEditx && active }"
|
|
6
6
|
>
|
|
7
7
|
<!--#ifdef H5-->
|
|
8
8
|
<view
|
|
9
9
|
class="jfb-base-card-receive-cover__edit"
|
|
10
|
-
:class="{ editx
|
|
10
|
+
:class="{ editx: isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-base-card-receive-cover__edit-icon" @click="delEdit"
|
|
14
|
+
>删除</view
|
|
15
|
+
>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
|
-
<view
|
|
17
|
-
|
|
18
|
+
<view
|
|
19
|
+
:style="{
|
|
20
|
+
height: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
21
|
+
background: status === 'N' ? canReceiveBgColor : cannotReceiveBgColor,
|
|
22
|
+
}"
|
|
23
|
+
>
|
|
24
|
+
<view class="jfb-base-card-receive-cover__body" :style="[bgStyle]">
|
|
25
|
+
<view v-if="status === 'N'" class="content" :style="contentBgStyle">
|
|
26
|
+
<view class="content-info">{{ greeting }}</view>
|
|
27
|
+
</view>
|
|
28
|
+
<view
|
|
29
|
+
v-if="status === 'N'"
|
|
30
|
+
class="btn"
|
|
31
|
+
@click="handleToReceive"
|
|
32
|
+
:style="btnBgStyle"
|
|
33
|
+
>{{ status === "T" ? "链接已失效" : "立即领取" }}</view
|
|
34
|
+
>
|
|
35
|
+
</view>
|
|
18
36
|
</view>
|
|
19
37
|
</view>
|
|
20
38
|
</template>
|
|
21
39
|
|
|
22
40
|
<script>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
42
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
43
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
44
|
+
import JfbBaseCardReceiveCoverMixin from "./JfbBaseCardReceiveCoverMixin";
|
|
45
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
46
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
47
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
48
|
+
export default {
|
|
49
|
+
name: "JfbBaseCardReceiveCover",
|
|
50
|
+
components: {
|
|
51
|
+
XdFontIcon,
|
|
52
|
+
XdButton,
|
|
53
|
+
},
|
|
54
|
+
mixins: [componentsMixins, extsMixins, JfbBaseCardReceiveCoverMixin],
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
btnBg: "",
|
|
58
|
+
contentBg: "",
|
|
59
|
+
greeting: "",
|
|
60
|
+
receive_get_url: "",
|
|
61
|
+
btnColor: "",
|
|
62
|
+
transfer_auth_code: null,
|
|
63
|
+
status: "N",
|
|
64
|
+
cannotReceiveBg: "",
|
|
65
|
+
canReceiveBg: "",
|
|
66
|
+
cannotReceiveBgColor: "",
|
|
67
|
+
canReceiveBgColor: "",
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
bgStyle() {
|
|
72
|
+
let status = this.status;
|
|
38
73
|
return {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
74
|
+
height: this.layoutInfo.bodyMinHeightRpx + "rpx",
|
|
75
|
+
backgroundImage:
|
|
76
|
+
status === "N"
|
|
77
|
+
? `url(${this.canReceiveBg})`
|
|
78
|
+
: `url(${this.cannotReceiveBg})`,
|
|
79
|
+
backgroundSize: "100% 100%",
|
|
80
|
+
};
|
|
42
81
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
82
|
+
btnBgStyle() {
|
|
83
|
+
return this.styleObjectToString({
|
|
84
|
+
backgroundImage: "url(" + this.btnBg + ")",
|
|
85
|
+
backgroundRepeat: "no-repeat",
|
|
86
|
+
backgroundSize: "cover",
|
|
87
|
+
width: "326rpx",
|
|
88
|
+
height: "90rpx",
|
|
89
|
+
display: "flex",
|
|
90
|
+
justifyContent: "center",
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
color: this.btnColor,
|
|
93
|
+
border: "none",
|
|
94
|
+
});
|
|
48
95
|
},
|
|
49
|
-
|
|
50
|
-
this.
|
|
51
|
-
|
|
52
|
-
|
|
96
|
+
contentBgStyle() {
|
|
97
|
+
return [this.styleObjectToString({
|
|
98
|
+
backgroundImage: "url(" + this.contentBg + ")",
|
|
99
|
+
backgroundRepeat: "no-repeat",
|
|
100
|
+
backgroundSize: "100% 100%",
|
|
101
|
+
color: this.mainColor,
|
|
102
|
+
})];
|
|
53
103
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// }
|
|
64
|
-
|
|
65
|
-
// }).then().catch()
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* @description 监听事件变化
|
|
69
|
-
* @param container {object} 业务组件对象自己
|
|
70
|
-
*/
|
|
71
|
-
init(container) {
|
|
72
|
-
|
|
73
|
-
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
-
|
|
75
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
-
},
|
|
77
|
-
onJfbScroll(options) {
|
|
78
|
-
console.log('event.onJfbScroll', options)
|
|
79
|
-
},
|
|
80
|
-
onJfbReachBottom(options) {
|
|
81
|
-
console.log('event.onJfbReachBottom', options)
|
|
82
|
-
},
|
|
83
|
-
onJfbShow(options) {
|
|
84
|
-
console.log('event.onJfbShow', options)
|
|
85
|
-
},
|
|
86
|
-
onJfbHide(options) {
|
|
87
|
-
console.log('event.onJfbHide', options)
|
|
88
|
-
},
|
|
89
|
-
onJfbBack(options) {
|
|
90
|
-
console.log('event.onJfbBack', options)
|
|
91
|
-
},
|
|
92
|
-
onJfbUpdate(...data) {
|
|
93
|
-
console.log('event.onJfbUpdate', data)
|
|
94
|
-
},
|
|
95
|
-
onJfbCustomEvent(options) {
|
|
96
|
-
console.log('event.onJfbReachBottom', options)
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
}
|
|
104
|
+
},
|
|
105
|
+
watch: {
|
|
106
|
+
container(value, oldValue) {
|
|
107
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
108
|
+
if (this.$configProject["isPreview"]) this.init(value);
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
created() {
|
|
112
|
+
this.init(this.container);
|
|
100
113
|
|
|
114
|
+
//todo
|
|
115
|
+
},
|
|
116
|
+
methods: {
|
|
117
|
+
onJfbLoad(options) {
|
|
118
|
+
this.transfer_auth_code = options.transfer_auth_code;
|
|
119
|
+
jfbRootExec("getReceiveGreetingCard", {
|
|
120
|
+
vm: this,
|
|
121
|
+
data: {
|
|
122
|
+
transfer_auth_code: this.transfer_auth_code,
|
|
123
|
+
},
|
|
124
|
+
})
|
|
125
|
+
.then((res) => {
|
|
126
|
+
this.greeting = res.transfer_record.greeting;
|
|
127
|
+
this.status = res.transfer_record.status;
|
|
128
|
+
})
|
|
129
|
+
.catch((err) => {
|
|
130
|
+
console.log(err, "err");
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
init(container) {
|
|
134
|
+
this.btnBg = getContainerPropsValue(container, "content.btnBg", {
|
|
135
|
+
path: "",
|
|
136
|
+
}).path;
|
|
137
|
+
this.contentBg = getContainerPropsValue(container, "content.contentBg", {
|
|
138
|
+
path: "",
|
|
139
|
+
}).path;
|
|
140
|
+
this.canReceiveBg = getContainerPropsValue(
|
|
141
|
+
container,
|
|
142
|
+
"content.canReceiveBg",
|
|
143
|
+
{
|
|
144
|
+
path: "",
|
|
145
|
+
}
|
|
146
|
+
).path;
|
|
147
|
+
this.canReceiveBgColor = getContainerPropsValue(
|
|
148
|
+
container,
|
|
149
|
+
"content.canReceiveBgColor",
|
|
150
|
+
"#000"
|
|
151
|
+
);
|
|
152
|
+
this.cannotReceiveBg = getContainerPropsValue(
|
|
153
|
+
container,
|
|
154
|
+
"content.cannotReceiveBg",
|
|
155
|
+
{
|
|
156
|
+
path: "",
|
|
157
|
+
}
|
|
158
|
+
).path;
|
|
159
|
+
this.cannotReceiveBgColor = getContainerPropsValue(
|
|
160
|
+
container,
|
|
161
|
+
"content.cannotReceiveBgColor",
|
|
162
|
+
"#000"
|
|
163
|
+
);
|
|
164
|
+
this.receive_get_url = getContainerPropsValue(
|
|
165
|
+
container,
|
|
166
|
+
"content.receive_get_url",
|
|
167
|
+
{
|
|
168
|
+
value: "",
|
|
169
|
+
}
|
|
170
|
+
).value;
|
|
171
|
+
this.btnColor = getContainerPropsValue(
|
|
172
|
+
container,
|
|
173
|
+
"content.btnColor",
|
|
174
|
+
"#000"
|
|
175
|
+
);
|
|
176
|
+
},
|
|
177
|
+
handleToReceive() {
|
|
178
|
+
if (this.status === "T") return;
|
|
179
|
+
this.$xdUniHelper.navigateTo({
|
|
180
|
+
url: `${this.receive_get_url}?transfer_auth_code=${this.transfer_auth_code}`,
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
};
|
|
101
185
|
</script>
|
|
102
186
|
|
|
103
187
|
<style scoped lang="less">
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.jfb-base-card-receive-cover {
|
|
107
|
-
&__body{
|
|
188
|
+
@import "./JfbBaseCardReceiveCoverLess.less";
|
|
108
189
|
|
|
190
|
+
.jfb-base-card-receive-cover {
|
|
191
|
+
&__body {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: flex-end;
|
|
196
|
+
.content {
|
|
197
|
+
position: relative;
|
|
198
|
+
min-height: 400rpx;
|
|
199
|
+
min-width: 600rpx;
|
|
200
|
+
display: flex;
|
|
201
|
+
justify-content: center;
|
|
202
|
+
font-size: 40rpx;
|
|
203
|
+
font-weight: 500;
|
|
204
|
+
&-info {
|
|
205
|
+
padding-top: 70rpx;
|
|
206
|
+
width: 300rpx;
|
|
207
|
+
text-align: center;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
.btn {
|
|
211
|
+
margin-top: 50rpx;
|
|
212
|
+
margin-bottom: 100rpx;
|
|
213
|
+
font-size: 36rpx;
|
|
214
|
+
text-align: center;
|
|
109
215
|
}
|
|
110
216
|
}
|
|
217
|
+
}
|
|
111
218
|
</style>
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
getCardByIdFilmSquate:{},
|
|
6
|
-
|
|
7
|
-
updateCardFilmPaiqiDate:{},
|
|
8
|
-
|
|
9
|
-
removeCardFilmAddress:{},
|
|
10
|
-
|
|
11
|
-
addCardFilmcart:{},
|
|
12
|
-
|
|
4
|
+
getReceiveGreetingCard:{"card_number":"101001000008098","card_point":99028,"card_type_name":"多余额福卡","end_time":"2025-07-31","card_status":"Y","card_status_name":"开启","unit":"点","main_business_code_name":"蛋糕(勿改)、网络视听(勿改)、体检(勿改)","other_card_point":79222,"is_exchange":"N","exchange_card_type_name":"","exchange_card_point":0,"card_point_type":2,"is_can_unbind":"","business_codes":["movie","market","cake"],"site_entry_settings":[],"transfer_record":{"transfer_auth_code":"aa6ljeQETINBUAJ-9l486","status":"N","status_name":"待领取","transfer_time":"2024-09-09 11:32:11","user_id":5000223,"user_nickname":"金L爽","user_phone_number":"188****4566","greeting":"送给你了"},"request_id":"2646fc69fab35413"},
|
|
13
5
|
}
|
|
@@ -489,6 +489,48 @@ export default {
|
|
|
489
489
|
},
|
|
490
490
|
inline: false,
|
|
491
491
|
},
|
|
492
|
+
{
|
|
493
|
+
label: '是否展开票券信息:',
|
|
494
|
+
ele: 'xd-radio',
|
|
495
|
+
valueKey: 'is_open',
|
|
496
|
+
value: data['is_open'] || 'N',
|
|
497
|
+
groupKey:'content',
|
|
498
|
+
placeholder: '请选择是否展开票券信息',
|
|
499
|
+
multiple: false,
|
|
500
|
+
className: 'input80',
|
|
501
|
+
list: [
|
|
502
|
+
{ label: '展开', value: 'Y' },
|
|
503
|
+
{ label: '收起', value: 'N' },
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
label: '是否展开商品详情:',
|
|
508
|
+
ele: 'xd-radio',
|
|
509
|
+
valueKey: 'is_show_all_detail',
|
|
510
|
+
value: data['is_show_all_detail'] || 'N',
|
|
511
|
+
groupKey:'content',
|
|
512
|
+
placeholder: '请选择是否展开商品详情',
|
|
513
|
+
multiple: false,
|
|
514
|
+
className: 'input80',
|
|
515
|
+
list: [
|
|
516
|
+
{ label: '展开', value: 'Y' },
|
|
517
|
+
{ label: '收起', value: 'N' },
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
label: '提货码展示/隐藏:',
|
|
522
|
+
ele: 'xd-radio',
|
|
523
|
+
valueKey: 'is_show',
|
|
524
|
+
value: data['is_show'] || 'Y',
|
|
525
|
+
groupKey:'content',
|
|
526
|
+
placeholder: '请选择提货码展示/隐藏',
|
|
527
|
+
multiple: false,
|
|
528
|
+
className: 'input80',
|
|
529
|
+
list: [
|
|
530
|
+
{ label: '显示', value: 1 },
|
|
531
|
+
{ label: '隐藏', value: 0 },
|
|
532
|
+
]
|
|
533
|
+
},
|
|
492
534
|
].filter(i=>i)
|
|
493
535
|
},
|
|
494
536
|
}
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
|
|
260
260
|
>
|
|
261
261
|
<view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
262
|
-
<view style="position: relative">
|
|
262
|
+
<view v-if="showPreviewCode" style="position: relative">
|
|
263
263
|
<image
|
|
264
264
|
:style="{
|
|
265
265
|
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
@@ -556,20 +556,18 @@
|
|
|
556
556
|
></view>
|
|
557
557
|
</view>
|
|
558
558
|
<view v-if="info.pay_info.cards && info.pay_info.cards.length > 0">
|
|
559
|
-
<view class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
559
|
+
<view @click="showPayCard = true" class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
560
560
|
<text>使用 {{ info.pay_info.cards.length }} 张票券 展开</text>
|
|
561
561
|
<xd-font-icon
|
|
562
562
|
style="margin-left: 8rpx"
|
|
563
|
-
@click="showPayCard = true"
|
|
564
563
|
size="28"
|
|
565
564
|
icon="iconxia_down"
|
|
566
565
|
></xd-font-icon>
|
|
567
566
|
</view>
|
|
568
|
-
<view class="jfb-base-order-detail__body-show" v-else>
|
|
567
|
+
<view @click="showPayCard = false" class="jfb-base-order-detail__body-show" v-else>
|
|
569
568
|
<text>使用{{ info.pay_info.cards.length }}张票券 收起</text>
|
|
570
569
|
<xd-font-icon
|
|
571
570
|
style="margin-left: 8rpx"
|
|
572
|
-
@click="showPayCard = false"
|
|
573
571
|
size="28"
|
|
574
572
|
icon="iconshang_up"
|
|
575
573
|
></xd-font-icon>
|
|
@@ -653,8 +651,25 @@
|
|
|
653
651
|
<view class="jfb-base-order-detail__body-shop-title">
|
|
654
652
|
<view :style="{ background: mainColor }"></view>
|
|
655
653
|
<view>商品详情</view>
|
|
654
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
|
|
655
|
+
<text> 展开</text>
|
|
656
|
+
<xd-font-icon
|
|
657
|
+
style="margin-left: 8rpx"
|
|
658
|
+
size="28"
|
|
659
|
+
icon="iconxia_down"
|
|
660
|
+
></xd-font-icon>
|
|
661
|
+
</view>
|
|
662
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
|
|
663
|
+
<text> 收起</text>
|
|
664
|
+
<xd-font-icon
|
|
665
|
+
style="margin-left: 8rpx"
|
|
666
|
+
size="28"
|
|
667
|
+
icon="iconxia_down"
|
|
668
|
+
></xd-font-icon>
|
|
669
|
+
</view>
|
|
670
|
+
</view>
|
|
671
|
+
<view v-if="showAllProductDetail" v-html="info.product_detail">
|
|
656
672
|
</view>
|
|
657
|
-
<view v-html="info.productDetail"></view>
|
|
658
673
|
</view>
|
|
659
674
|
<view
|
|
660
675
|
v-if="info.custom_content"
|
|
@@ -835,6 +850,11 @@ export default {
|
|
|
835
850
|
logo: "",
|
|
836
851
|
|
|
837
852
|
noticeBgc:'',
|
|
853
|
+
is_open: '',
|
|
854
|
+
is_show: '',
|
|
855
|
+
showAllProductDetail: false,
|
|
856
|
+
is_show_all_detail: '',
|
|
857
|
+
showPreviewCode: true
|
|
838
858
|
};
|
|
839
859
|
},
|
|
840
860
|
watch: {
|
|
@@ -921,6 +941,7 @@ export default {
|
|
|
921
941
|
main_order_id: this.main_order_id,
|
|
922
942
|
custom_content_page_id: this.pageAttr.page_id,
|
|
923
943
|
custom_content_container_id: this.cid,
|
|
944
|
+
is_show_jhd_code: this.is_show
|
|
924
945
|
},
|
|
925
946
|
})
|
|
926
947
|
.then((res) => {
|
|
@@ -1047,7 +1068,7 @@ export default {
|
|
|
1047
1068
|
}
|
|
1048
1069
|
|
|
1049
1070
|
//增加删除订单按钮
|
|
1050
|
-
if(this.is_show_delete_order
|
|
1071
|
+
if(this.is_show_delete_order === 'Y') {
|
|
1051
1072
|
let pay = (res.buttons||[]).filter(item => item.action === 'pay');
|
|
1052
1073
|
let del = [{action:'delete', text:'删除订单', type: 'info'}];
|
|
1053
1074
|
if(pay.length === 1) del = []
|
|
@@ -1119,6 +1140,18 @@ export default {
|
|
|
1119
1140
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1120
1141
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1121
1142
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1143
|
+
this.is_open = getContainerPropsValue(container, "content.is_open", "N");
|
|
1144
|
+
this.is_show = getContainerPropsValue(container, "content.is_show", "Y");
|
|
1145
|
+
this.showPayCard = this.is_open==='Y'
|
|
1146
|
+
this.is_show_all_detail = getContainerPropsValue(container, "content.is_show_all_detail", "N");
|
|
1147
|
+
this.showAllProductDetail = this.is_show_all_detail==='Y'
|
|
1148
|
+
if(this.isPreview) {
|
|
1149
|
+
if(this.is_show===0) {
|
|
1150
|
+
this.showPreviewCode = false;
|
|
1151
|
+
} else {
|
|
1152
|
+
this.showPreviewCode = true;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1122
1155
|
},
|
|
1123
1156
|
getCountDown() {
|
|
1124
1157
|
this.timer = setInterval(() => {
|
|
@@ -16,6 +16,18 @@ export default {
|
|
|
16
16
|
placeholder: '请选择支付成功路径',
|
|
17
17
|
value: data.pay_success_path || null,
|
|
18
18
|
groupKey:'advanced',
|
|
19
|
+
setting: {
|
|
20
|
+
router: XdBus.getParentApi('getPag©esTree'),
|
|
21
|
+
},
|
|
22
|
+
inline: false,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: '票券支付成功跳转路径:', //label
|
|
26
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
27
|
+
valueKey: 'rechargeSuccessPath', //form[valueKey]
|
|
28
|
+
placeholder: '请选择票券支付成功跳转路径',
|
|
29
|
+
value: data.rechargeSuccessPath || null,
|
|
30
|
+
groupKey:'advanced',
|
|
19
31
|
setting: {
|
|
20
32
|
router: XdBus.getParentApi('getPagesTree'),
|
|
21
33
|
},
|