xiaoe_mp_npm 0.5.23 → 0.5.24-t1209
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/.gitlab-ci.yml +1 -0
- package/miniprogram_dist/common/api/liveGoodsList.js +1 -1
- package/miniprogram_dist/wechatKF/index/index.js +82 -0
- package/miniprogram_dist/wechatKF/index/index.json +3 -0
- package/miniprogram_dist/wechatKF/index/index.less +57 -0
- package/miniprogram_dist/wechatKF/index/index.wxml +27 -0
- package/miniprogram_dist/wechatKF/index/index.wxss +56 -0
- package/package.json +1 -1
- package/src/common/api/liveGoodsList.js +1 -1
- package/src/wechatKF/index/index.js +82 -0
- package/src/wechatKF/index/index.json +3 -0
- package/src/wechatKF/index/index.less +57 -0
- package/src/wechatKF/index/index.wxml +27 -0
- package/src/wechatKF/index/index.wxss +56 -0
package/.gitlab-ci.yml
CHANGED
|
@@ -19,7 +19,7 @@ let gateway = (data = "_alive/") => {
|
|
|
19
19
|
|
|
20
20
|
const GOODS_LIST = {
|
|
21
21
|
GOODS_LIST: `${gateway()}xe.ecommerce.alive_goods_system.marketing.list.get/1.0.0`,
|
|
22
|
-
COUPON_SWITCH: `${gateway()}xe.marketing.switch.config/1.0.0`,
|
|
22
|
+
COUPON_SWITCH: `${gateway()}xe.marketing.coupon.switch.config/1.0.0`,
|
|
23
23
|
USER_PERMISSION: `${gateway()}xe.ecommerce.alive_goods_system.check.permission/1.0.0`,
|
|
24
24
|
SNAP_CHECK: `${gateway()}xe.ecommerce.alive_goods_system.check.snap_up/1.0.0`,
|
|
25
25
|
SHOW_GOODS: `${gateway()}xe.user.display_package.edit`
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// src/ConfirmOrder/components/PayComplete/index.js
|
|
2
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
3
|
+
Component({
|
|
4
|
+
behaviors: [computedBehavior],
|
|
5
|
+
/**
|
|
6
|
+
* 组件的属性列表
|
|
7
|
+
*/
|
|
8
|
+
properties: {
|
|
9
|
+
avatar: {
|
|
10
|
+
type: String,
|
|
11
|
+
value: ''
|
|
12
|
+
},
|
|
13
|
+
name: {
|
|
14
|
+
type: String,
|
|
15
|
+
value: ''
|
|
16
|
+
},
|
|
17
|
+
// 微信客服跳转链接
|
|
18
|
+
link: {
|
|
19
|
+
type: String,
|
|
20
|
+
value: ''
|
|
21
|
+
},
|
|
22
|
+
showMessageCard:{
|
|
23
|
+
type: Boolean,
|
|
24
|
+
value: false
|
|
25
|
+
},
|
|
26
|
+
sendMessageTitle: {
|
|
27
|
+
type: String,
|
|
28
|
+
value: ''
|
|
29
|
+
},
|
|
30
|
+
sendMessagePath: {
|
|
31
|
+
type: String,
|
|
32
|
+
value: ''
|
|
33
|
+
},
|
|
34
|
+
sendMessageImg: {
|
|
35
|
+
type: String,
|
|
36
|
+
value: ''
|
|
37
|
+
},
|
|
38
|
+
// 企业ID
|
|
39
|
+
corpId: {
|
|
40
|
+
type: String,
|
|
41
|
+
value: ''
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
lifetimes: {
|
|
45
|
+
attached() {
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* 组件的初始数据
|
|
51
|
+
*/
|
|
52
|
+
data: {
|
|
53
|
+
|
|
54
|
+
},
|
|
55
|
+
lifetimes: {
|
|
56
|
+
attached() {
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
computed:{
|
|
61
|
+
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* 组件的方法列表
|
|
65
|
+
*/
|
|
66
|
+
methods: {
|
|
67
|
+
contact(){
|
|
68
|
+
const {link, corpId, showMessageCard, sendMessageTitle, sendMessagePath, sendMessageImg } = this.properties
|
|
69
|
+
let params = {
|
|
70
|
+
extInfo:{
|
|
71
|
+
url: decodeURIComponent(link)
|
|
72
|
+
},
|
|
73
|
+
corpId,
|
|
74
|
+
showMessageCard,
|
|
75
|
+
sendMessageTitle,
|
|
76
|
+
sendMessagePath: decodeURIComponent(sendMessagePath),
|
|
77
|
+
sendMessageImg: decodeURIComponent(sendMessageImg)
|
|
78
|
+
}
|
|
79
|
+
wx.openCustomerServiceChat(params)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
})
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.customer-service {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-top: 40rpx;
|
|
4
|
+
.customer-service_btn{
|
|
5
|
+
width: 670rpx;
|
|
6
|
+
height: 580rpx;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
border-radius: 8rpx;
|
|
9
|
+
text-align: center;
|
|
10
|
+
color: #333;
|
|
11
|
+
font-size: 0;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
&::after {
|
|
14
|
+
border: none;
|
|
15
|
+
}
|
|
16
|
+
.shop-avator {
|
|
17
|
+
margin-top: 80rpx;
|
|
18
|
+
margin-bottom: 32rpx;
|
|
19
|
+
width: 240rpx;
|
|
20
|
+
height: 240rpx;
|
|
21
|
+
border: 2px solid #DBDBDB;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
}
|
|
24
|
+
.shop-name{
|
|
25
|
+
display: block;
|
|
26
|
+
font-size: 32rpx;
|
|
27
|
+
line-height: 48rpx;
|
|
28
|
+
}
|
|
29
|
+
.shop-contact {
|
|
30
|
+
position: absolute;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
left: 0;
|
|
33
|
+
right: 0;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
padding-left: 32rpx;
|
|
37
|
+
padding-right: 40rpx;
|
|
38
|
+
height: 120rpx;
|
|
39
|
+
line-height: 120rpx;
|
|
40
|
+
border-top: 2rpx solid #eee;;
|
|
41
|
+
}
|
|
42
|
+
.shop-contact_icon {
|
|
43
|
+
margin-right: 24rpx;
|
|
44
|
+
width: 40rpx;
|
|
45
|
+
height: 40rpx;
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
.shop-contact_text {
|
|
49
|
+
flex: 1;
|
|
50
|
+
font-size: 28rpx;
|
|
51
|
+
text-align: left;
|
|
52
|
+
}
|
|
53
|
+
.icon-right {
|
|
54
|
+
width: 24rpx;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="customer-service">
|
|
3
|
+
<view
|
|
4
|
+
class="customer-service_btn"
|
|
5
|
+
bindtap="contact"
|
|
6
|
+
>
|
|
7
|
+
<image
|
|
8
|
+
class="shop-avator"
|
|
9
|
+
:src="avatar"
|
|
10
|
+
/>
|
|
11
|
+
<text class="shop-name">
|
|
12
|
+
{{ name }}
|
|
13
|
+
</text>
|
|
14
|
+
<view class="shop-contact">
|
|
15
|
+
<image
|
|
16
|
+
class="shop-contact_icon"
|
|
17
|
+
src="@/static/homeIndexComponents/contact.png"
|
|
18
|
+
/>
|
|
19
|
+
<text class="shop-contact_text">
|
|
20
|
+
发起会话
|
|
21
|
+
</text>
|
|
22
|
+
<text class="icon-right iconfont icon-jiantou-you" />
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
</view>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.customer-service {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-top: 40rpx;
|
|
4
|
+
}
|
|
5
|
+
.customer-service .customer-service_btn {
|
|
6
|
+
width: 670rpx;
|
|
7
|
+
height: 580rpx;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border-radius: 8rpx;
|
|
10
|
+
text-align: center;
|
|
11
|
+
color: #333;
|
|
12
|
+
font-size: 0;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
}
|
|
15
|
+
.customer-service .customer-service_btn::after {
|
|
16
|
+
border: none;
|
|
17
|
+
}
|
|
18
|
+
.customer-service .customer-service_btn .shop-avator {
|
|
19
|
+
margin-top: 80rpx;
|
|
20
|
+
margin-bottom: 32rpx;
|
|
21
|
+
width: 240rpx;
|
|
22
|
+
height: 240rpx;
|
|
23
|
+
border: 2px solid #DBDBDB;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
}
|
|
26
|
+
.customer-service .customer-service_btn .shop-name {
|
|
27
|
+
display: block;
|
|
28
|
+
font-size: 32rpx;
|
|
29
|
+
line-height: 48rpx;
|
|
30
|
+
}
|
|
31
|
+
.customer-service .customer-service_btn .shop-contact {
|
|
32
|
+
position: absolute;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding-left: 32rpx;
|
|
39
|
+
padding-right: 40rpx;
|
|
40
|
+
height: 120rpx;
|
|
41
|
+
line-height: 120rpx;
|
|
42
|
+
border-top: 2rpx solid #eee;
|
|
43
|
+
}
|
|
44
|
+
.customer-service .customer-service_btn .shop-contact_icon {
|
|
45
|
+
margin-right: 24rpx;
|
|
46
|
+
width: 40rpx;
|
|
47
|
+
height: 40rpx;
|
|
48
|
+
}
|
|
49
|
+
.customer-service .customer-service_btn .shop-contact_text {
|
|
50
|
+
flex: 1;
|
|
51
|
+
font-size: 28rpx;
|
|
52
|
+
text-align: left;
|
|
53
|
+
}
|
|
54
|
+
.customer-service .customer-service_btn .icon-right {
|
|
55
|
+
width: 24rpx;
|
|
56
|
+
}
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ let gateway = (data = "_alive/") => {
|
|
|
19
19
|
|
|
20
20
|
const GOODS_LIST = {
|
|
21
21
|
GOODS_LIST: `${gateway()}xe.ecommerce.alive_goods_system.marketing.list.get/1.0.0`,
|
|
22
|
-
COUPON_SWITCH: `${gateway()}xe.marketing.switch.config/1.0.0`,
|
|
22
|
+
COUPON_SWITCH: `${gateway()}xe.marketing.coupon.switch.config/1.0.0`,
|
|
23
23
|
USER_PERMISSION: `${gateway()}xe.ecommerce.alive_goods_system.check.permission/1.0.0`,
|
|
24
24
|
SNAP_CHECK: `${gateway()}xe.ecommerce.alive_goods_system.check.snap_up/1.0.0`,
|
|
25
25
|
SHOW_GOODS: `${gateway()}xe.user.display_package.edit`
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// src/ConfirmOrder/components/PayComplete/index.js
|
|
2
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
3
|
+
Component({
|
|
4
|
+
behaviors: [computedBehavior],
|
|
5
|
+
/**
|
|
6
|
+
* 组件的属性列表
|
|
7
|
+
*/
|
|
8
|
+
properties: {
|
|
9
|
+
avatar: {
|
|
10
|
+
type: String,
|
|
11
|
+
value: ''
|
|
12
|
+
},
|
|
13
|
+
name: {
|
|
14
|
+
type: String,
|
|
15
|
+
value: ''
|
|
16
|
+
},
|
|
17
|
+
// 微信客服跳转链接
|
|
18
|
+
link: {
|
|
19
|
+
type: String,
|
|
20
|
+
value: ''
|
|
21
|
+
},
|
|
22
|
+
showMessageCard:{
|
|
23
|
+
type: Boolean,
|
|
24
|
+
value: false
|
|
25
|
+
},
|
|
26
|
+
sendMessageTitle: {
|
|
27
|
+
type: String,
|
|
28
|
+
value: ''
|
|
29
|
+
},
|
|
30
|
+
sendMessagePath: {
|
|
31
|
+
type: String,
|
|
32
|
+
value: ''
|
|
33
|
+
},
|
|
34
|
+
sendMessageImg: {
|
|
35
|
+
type: String,
|
|
36
|
+
value: ''
|
|
37
|
+
},
|
|
38
|
+
// 企业ID
|
|
39
|
+
corpId: {
|
|
40
|
+
type: String,
|
|
41
|
+
value: ''
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
lifetimes: {
|
|
45
|
+
attached() {
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* 组件的初始数据
|
|
51
|
+
*/
|
|
52
|
+
data: {
|
|
53
|
+
|
|
54
|
+
},
|
|
55
|
+
lifetimes: {
|
|
56
|
+
attached() {
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
computed:{
|
|
61
|
+
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* 组件的方法列表
|
|
65
|
+
*/
|
|
66
|
+
methods: {
|
|
67
|
+
contact(){
|
|
68
|
+
const {link, corpId, showMessageCard, sendMessageTitle, sendMessagePath, sendMessageImg } = this.properties
|
|
69
|
+
let params = {
|
|
70
|
+
extInfo:{
|
|
71
|
+
url: decodeURIComponent(link)
|
|
72
|
+
},
|
|
73
|
+
corpId,
|
|
74
|
+
showMessageCard,
|
|
75
|
+
sendMessageTitle,
|
|
76
|
+
sendMessagePath: decodeURIComponent(sendMessagePath),
|
|
77
|
+
sendMessageImg: decodeURIComponent(sendMessageImg)
|
|
78
|
+
}
|
|
79
|
+
wx.openCustomerServiceChat(params)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
})
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.customer-service {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-top: 40rpx;
|
|
4
|
+
.customer-service_btn{
|
|
5
|
+
width: 670rpx;
|
|
6
|
+
height: 580rpx;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
border-radius: 8rpx;
|
|
9
|
+
text-align: center;
|
|
10
|
+
color: #333;
|
|
11
|
+
font-size: 0;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
&::after {
|
|
14
|
+
border: none;
|
|
15
|
+
}
|
|
16
|
+
.shop-avator {
|
|
17
|
+
margin-top: 80rpx;
|
|
18
|
+
margin-bottom: 32rpx;
|
|
19
|
+
width: 240rpx;
|
|
20
|
+
height: 240rpx;
|
|
21
|
+
border: 2px solid #DBDBDB;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
}
|
|
24
|
+
.shop-name{
|
|
25
|
+
display: block;
|
|
26
|
+
font-size: 32rpx;
|
|
27
|
+
line-height: 48rpx;
|
|
28
|
+
}
|
|
29
|
+
.shop-contact {
|
|
30
|
+
position: absolute;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
left: 0;
|
|
33
|
+
right: 0;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
padding-left: 32rpx;
|
|
37
|
+
padding-right: 40rpx;
|
|
38
|
+
height: 120rpx;
|
|
39
|
+
line-height: 120rpx;
|
|
40
|
+
border-top: 2rpx solid #eee;;
|
|
41
|
+
}
|
|
42
|
+
.shop-contact_icon {
|
|
43
|
+
margin-right: 24rpx;
|
|
44
|
+
width: 40rpx;
|
|
45
|
+
height: 40rpx;
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
.shop-contact_text {
|
|
49
|
+
flex: 1;
|
|
50
|
+
font-size: 28rpx;
|
|
51
|
+
text-align: left;
|
|
52
|
+
}
|
|
53
|
+
.icon-right {
|
|
54
|
+
width: 24rpx;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="customer-service">
|
|
3
|
+
<view
|
|
4
|
+
class="customer-service_btn"
|
|
5
|
+
bindtap="contact"
|
|
6
|
+
>
|
|
7
|
+
<image
|
|
8
|
+
class="shop-avator"
|
|
9
|
+
:src="avatar"
|
|
10
|
+
/>
|
|
11
|
+
<text class="shop-name">
|
|
12
|
+
{{ name }}
|
|
13
|
+
</text>
|
|
14
|
+
<view class="shop-contact">
|
|
15
|
+
<image
|
|
16
|
+
class="shop-contact_icon"
|
|
17
|
+
src="@/static/homeIndexComponents/contact.png"
|
|
18
|
+
/>
|
|
19
|
+
<text class="shop-contact_text">
|
|
20
|
+
发起会话
|
|
21
|
+
</text>
|
|
22
|
+
<text class="icon-right iconfont icon-jiantou-you" />
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
</view>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.customer-service {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding-top: 40rpx;
|
|
4
|
+
}
|
|
5
|
+
.customer-service .customer-service_btn {
|
|
6
|
+
width: 670rpx;
|
|
7
|
+
height: 580rpx;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
border-radius: 8rpx;
|
|
10
|
+
text-align: center;
|
|
11
|
+
color: #333;
|
|
12
|
+
font-size: 0;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
}
|
|
15
|
+
.customer-service .customer-service_btn::after {
|
|
16
|
+
border: none;
|
|
17
|
+
}
|
|
18
|
+
.customer-service .customer-service_btn .shop-avator {
|
|
19
|
+
margin-top: 80rpx;
|
|
20
|
+
margin-bottom: 32rpx;
|
|
21
|
+
width: 240rpx;
|
|
22
|
+
height: 240rpx;
|
|
23
|
+
border: 2px solid #DBDBDB;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
}
|
|
26
|
+
.customer-service .customer-service_btn .shop-name {
|
|
27
|
+
display: block;
|
|
28
|
+
font-size: 32rpx;
|
|
29
|
+
line-height: 48rpx;
|
|
30
|
+
}
|
|
31
|
+
.customer-service .customer-service_btn .shop-contact {
|
|
32
|
+
position: absolute;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
left: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding-left: 32rpx;
|
|
39
|
+
padding-right: 40rpx;
|
|
40
|
+
height: 120rpx;
|
|
41
|
+
line-height: 120rpx;
|
|
42
|
+
border-top: 2rpx solid #eee;
|
|
43
|
+
}
|
|
44
|
+
.customer-service .customer-service_btn .shop-contact_icon {
|
|
45
|
+
margin-right: 24rpx;
|
|
46
|
+
width: 40rpx;
|
|
47
|
+
height: 40rpx;
|
|
48
|
+
}
|
|
49
|
+
.customer-service .customer-service_btn .shop-contact_text {
|
|
50
|
+
flex: 1;
|
|
51
|
+
font-size: 28rpx;
|
|
52
|
+
text-align: left;
|
|
53
|
+
}
|
|
54
|
+
.customer-service .customer-service_btn .icon-right {
|
|
55
|
+
width: 24rpx;
|
|
56
|
+
}
|