jufubao-base 1.0.168 → 1.0.169-beta10

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseLogin/Attr.js +1147 -510
  3. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +364 -63
  4. package/src/components/JfbBaseMapSearch/MapSearchMp.vue +1 -1
  5. package/src/components/JfbBaseOrderDetail/Api.js +12 -7
  6. package/src/components/JfbBaseOrderDetail/Attr.js +28 -14
  7. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +68 -18
  8. package/src/components/JfbBaseOrderDetail/Mock.js +3 -1
  9. package/src/components/JfbBaseTfkCardBind/Api.js +49 -30
  10. package/src/components/JfbBaseTfkCardBind/Attr.js +635 -38
  11. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +617 -22
  12. package/src/components/JfbBaseTfkCardBind/Mock.js +19 -9
  13. package/src/components/JfbBaseTfkCardDetail/Api.js +19 -32
  14. package/src/components/JfbBaseTfkCardDetail/Attr.js +692 -33
  15. package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +630 -23
  16. package/src/components/JfbBaseTfkCardDetail/Mock.js +151 -11
  17. package/src/components/JfbBaseTfkCardLogin/Api.js +19 -34
  18. package/src/components/JfbBaseTfkCardLogin/Attr.js +898 -33
  19. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +741 -17
  20. package/src/components/JfbBaseTfkCardLogin/Mock.js +677 -11
  21. package/src/components/JfbBaseTfkCardLogin/XdCouponItem.vue +271 -0
  22. package/src/components/JfbBaseTfkSearch/AllList.vue +232 -0
  23. package/src/components/JfbBaseTfkSearch/Api.js +11 -42
  24. package/src/components/JfbBaseTfkSearch/Attr.js +225 -33
  25. package/src/components/JfbBaseTfkSearch/ContentCinema.vue +157 -0
  26. package/src/components/JfbBaseTfkSearch/ContentFilm.vue +179 -0
  27. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +308 -0
  28. package/src/components/JfbBaseTfkSearch/ContentShop.vue +184 -0
  29. package/src/components/JfbBaseTfkSearch/CusAttr.js +213 -0
  30. package/src/components/JfbBaseTfkSearch/CustomList.vue +402 -0
  31. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +230 -26
  32. package/src/components/JfbBaseTfkSearch/Mock.js +90 -11
  33. package/src/components/JfbBaseTfkSearch/SkeletonCinema.vue +45 -0
  34. package/src/components/JfbBaseTfkSearch/SkeletonFilm.vue +109 -0
  35. package/src/components/JfbBaseTfkSearch/SkeletonProduct.vue +246 -0
  36. package/src/components/JfbBaseTfkSearch/SkeletonShop.vue +81 -0
  37. package/src/components/JfbBaseTfkSearch/handleKeyword.js +24 -0
  38. package/src/components/JfbBaseTfkSearch/listMixins.js +153 -0
  39. package/src/components/JfbBaseTfkSearch/search.js +293 -0
  40. package/src/mixins/colorCardMixins.js +71 -9
  41. package/src/mixins/componentsMixins.js +346 -23
@@ -22,20 +22,6 @@ export default {
22
22
  inline: false,
23
23
  notice: '前台页面展示会根据返回数据类型进行页面渲染'
24
24
  },
25
- {
26
- label: '是否需要客服电话:',
27
- ele: 'xd-radio',
28
- valueKey: 'is_hot',
29
- value: data['is_hot'] || 'N',
30
- groupKey:'content',
31
- placeholder: '请选择是否需要客服电话',
32
- multiple: false,
33
- className: 'input80',
34
- list: [
35
- { label: '是', value: 'Y' },
36
- { label: '否', value: 'N' },
37
- ]
38
- },
39
25
  {
40
26
  label: '自定义内容:',
41
27
  ele: 'xd-site-news',
@@ -260,6 +246,20 @@ export default {
260
246
  }
261
247
  },
262
248
  },
249
+ {
250
+ label: '是否需要客服电话:',
251
+ ele: 'xd-radio',
252
+ valueKey: 'is_hot',
253
+ value: data['is_hot'] || 'N',
254
+ groupKey:'content',
255
+ placeholder: '请选择是否需要客服电话',
256
+ multiple: false,
257
+ className: 'input80',
258
+ list: [
259
+ { label: '是', value: 'Y' },
260
+ { label: '否', value: 'N' },
261
+ ]
262
+ },
263
263
  {
264
264
  label: "是否展示可用门店:",
265
265
  ele: 'xd-radio',
@@ -274,6 +274,20 @@ export default {
274
274
  { label: '否', value: 'N' },
275
275
  ]
276
276
  },
277
+ {
278
+ label: "是否允许删除订单:",
279
+ ele: 'xd-radio',
280
+ valueKey: "is_show_delete_order",
281
+ value: data['is_show_delete_order'] || 'N',
282
+ groupKey:'content',
283
+ placeholder: '请选择是否允许删除订单',
284
+ multiple: false,
285
+ className: 'input80',
286
+ list: [
287
+ { label: '允许', value: 'Y' },
288
+ { label: '不允许', value: 'N' },
289
+ ]
290
+ },
277
291
  {
278
292
  label: '外填充:',
279
293
  ele: 'xd-margin-padding',
@@ -683,9 +683,8 @@
683
683
  <view v-else>
684
684
  <xd-button
685
685
  size="small"
686
- type="primary"
686
+ :type="item.type !== undefined ? item.type: 'primary'"
687
687
  radius="40rpx"
688
- :bg-color="mainColor"
689
688
  @click="handleAction(item)"
690
689
  >{{ item.text }}</xd-button>
691
690
  </view>
@@ -741,6 +740,7 @@ import { mapState } from "vuex";
741
740
  import bizMock from "./bizMock";
742
741
  import Color from "color";
743
742
 
743
+
744
744
  export default {
745
745
  name: "JfbBaseOrderDetail",
746
746
  components: {
@@ -774,6 +774,7 @@ export default {
774
774
  is_not_show_price: "",
775
775
  brandTextColor:'',
776
776
  is_show_support_shop: "",
777
+ is_show_delete_order:'N', //删除订单
777
778
 
778
779
  showPassword: false,
779
780
  dialogPassword: "",
@@ -822,6 +823,11 @@ export default {
822
823
  this.getOrderDetail();
823
824
  }
824
825
  },
826
+ is_show_delete_order(){
827
+ if (this.isPreview) {
828
+ this.getOrderDetail();
829
+ }
830
+ },
825
831
  },
826
832
  computed: {
827
833
  ...mapState(['siteInfo']),
@@ -857,8 +863,7 @@ export default {
857
863
  },
858
864
  methods: {
859
865
  onJfbLoad(options) {
860
- this.main_order_id =
861
- options.id || options.order_id || options.main_order_id;
866
+ this.main_order_id = options.id || options.order_id || options.main_order_id;
862
867
  this.getOrderDetail();
863
868
  },
864
869
 
@@ -993,6 +998,20 @@ export default {
993
998
  ).fullTime;
994
999
  res.film_show.thumb = getServiceUrl(res.film_show.thumb);
995
1000
  }
1001
+
1002
+ //增加删除订单按钮
1003
+ if(this.is_show_delete_order === 'Y') {
1004
+ let pay = (res.buttons||[]).filter(item => item.action === 'pay');
1005
+ let del = [{action:'delete', text:'删除订单', type: 'info'}];
1006
+ if(pay.length === 1) del = []
1007
+ res.buttons = del.concat(res.buttons || []).map(item=>{
1008
+ if(item.action === 'view_logistics' && !item.type) {
1009
+ item.type = 'default';
1010
+ }
1011
+ return item
1012
+ });
1013
+ }
1014
+
996
1015
  if (res.product) {
997
1016
  jfbRootExec("getBaseProductDetail", {
998
1017
  vm: this,
@@ -1011,7 +1030,8 @@ export default {
1011
1030
  .catch((err) => {
1012
1031
  console.log(err, "err");
1013
1032
  });
1014
- } else {
1033
+ }
1034
+ else {
1015
1035
  this.info = res;
1016
1036
  if (this.info.status.loading_timeout != "-1") {
1017
1037
  this.timeDown();
@@ -1051,6 +1071,7 @@ export default {
1051
1071
  this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
1052
1072
  this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
1053
1073
  this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
1074
+ this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
1054
1075
  },
1055
1076
  getCountDown() {
1056
1077
  this.timer = setInterval(() => {
@@ -1135,25 +1156,15 @@ export default {
1135
1156
  },
1136
1157
  handleAction(item) {
1137
1158
  if (item.action === "view_logistics") {
1138
- // if (
1139
- // this.info.extras.first_logistics_package_id &&
1140
- // this.info.extras.logistics_count === 1
1141
- // ) {
1142
- // this.$xdUniHelper.navigateTo({
1143
- // url: `${this.logisticsPath}?package_id=${this.info.extras.first_logistics_package_id}`,
1144
- // });
1145
- // } else {
1146
- // this.$xdUniHelper.navigateTo({
1147
- // url: `${this.packageListPath}?order_id=${this.main_order_id}`,
1148
- // });
1149
- // }
1150
1159
  this.$xdUniHelper.navigateTo({
1151
1160
  url: `${this.packageListPath}?order_id=${this.main_order_id}`,
1152
1161
  });
1153
- } else {
1162
+ }
1163
+ else if(item.action === 'cancel_unpaid') {
1154
1164
  this.$xdConfirm({
1155
1165
  styles: this.styles,
1156
1166
  content: "是否取消订单",
1167
+ zIndex: 3000,
1157
1168
  success: (action) => {
1158
1169
  if (action.confirm) {
1159
1170
  jfbRootExec("cancelBaseOrder", {
@@ -1175,6 +1186,45 @@ export default {
1175
1186
  },
1176
1187
  });
1177
1188
  }
1189
+ else if(item.action === 'delete'){
1190
+ this.$xdConfirm({
1191
+ styles: this.styles,
1192
+ content: "订单删除后将无法找到订单<br/>您确认删除吗?",
1193
+ cancelText:'我在看看',
1194
+ isHtml: true,
1195
+ zIndex: 3000,
1196
+ success: (action) => {
1197
+ if (action.confirm) {
1198
+ this.handleDeleteOrder();
1199
+ }
1200
+ },
1201
+ });
1202
+ }
1203
+ else {
1204
+ console.error(`item.action=${item.action}, 此action不可用`)
1205
+ }
1206
+ },
1207
+
1208
+ handleDeleteOrder(){
1209
+ jfbRootExec("deleteBaseOrder", {
1210
+ vm: this,
1211
+ data: {
1212
+ main_order_id: this.main_order_id,
1213
+ },
1214
+ })
1215
+ .then((res) => {
1216
+ this.$xdAlert({
1217
+ content: "删除成功",
1218
+ time: 2000,
1219
+ zIndex: 3000,
1220
+ });
1221
+ setTimeout(()=>{
1222
+ this.$xdUniHelper.navigateBack()
1223
+ },3000)
1224
+ })
1225
+ .catch((err) => {
1226
+ console.log(err, "err");
1227
+ });
1178
1228
  },
1179
1229
 
1180
1230
  onJfbShow(options) {
@@ -95,5 +95,7 @@ module.exports = {
95
95
  "shop_address": "北京3北京西夏区城区河北省廊坊市三河市燕郊开发区燕高路西侧实验小学南侧 "
96
96
  },
97
97
  "request_id": "6178d3499b91f274"
98
- }
98
+ },
99
+ cancelBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
100
+ deleteBaseOrder:{"pay_order_id": "488003809474256896","request_id": "6178d3499b91f274"},
99
101
  }
@@ -6,53 +6,72 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Tfk
10
- mapFnName: 'getTfkByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'qrcodeCardBind',
13
10
  isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
11
+ title: '根据二维码绑定卡',
12
+ prefix: 'qrcode',
13
+ path: '/card/v1/card-bind/bind-card-by-qrcode',
14
+ data: {
15
+ card_qrcode: ['二维码内容', 'String', '必选'],
17
16
  },
18
- isConsole: true,
19
17
  disabled: true,
20
18
  },
21
19
  {
22
- //设置方法名字当别忘记加上【模块名字】:Tfk
23
- mapFnName: 'updateTfkFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
20
+ mapFnName: 'getByPwdCardDetail',
26
21
  isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
22
+ title: '根据卡号密码获得卡信息',
23
+ prefix: 'detal',
24
+ path: '/card/v1/card-bind/get-card-by-password',
25
+ data: {
26
+ card_number: ['卡号', 'String', '必选'],
27
+ card_password: ['卡号密码', 'String', '必选']
30
28
  },
31
- isConsole: true,
32
29
  disabled: true,
33
30
  },
34
31
  {
35
- //设置方法名字当别忘记加上【模块名字】:Tfk
36
- mapFnName: 'removeTfkFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
32
+ mapFnName: 'getByQrCardDetail',
39
33
  isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
34
+ title: '根据二维码获得卡信息',
35
+ prefix: 'detal',
36
+ path: '/card/v1/card-bind/get-card-by-qrcode',
37
+ data: {
38
+ card_qrcode: ['二维码', 'String', '必选'],
42
39
  },
43
- isConsole: true,
44
40
  disabled: true,
45
41
  },
46
42
  {
47
- //设置方法名字当别忘记加上【模块名字】:Tfk
48
- mapFnName: 'addTfkFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
43
+ mapFnName: 'pwdCardBind',
51
44
  isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
45
+ title: '根据卡号密码绑定卡',
46
+ prefix: 'pwd',
47
+ path: '/card/v1/card-bind/bind-card-by-password',
48
+ data: {
49
+ card_number: ['卡号', 'String', '必选'],
50
+ card_password: ['密码', 'String', '可选'],
51
+ },
52
+ disabled: true,
53
+ },
54
+ {
55
+ mapFnName: 'qrCardBind',
56
+ isRule: false,
57
+ title: '根据二维码绑定卡',
58
+ prefix: 'qrcode',
59
+ path: '/card/v1/card-bind/bind-card-by-qrcode',
60
+ data: {
61
+ card_qrcode: ['二维码', 'String', '必选'],
54
62
  },
55
- isConsole: true,
56
63
  disabled: true,
57
64
  },
65
+ {
66
+ mapFnName: "checkValidCode",
67
+ title: "图片验证码 - 校验",
68
+ path: "/common/v1/valid_code/image/check",
69
+ isRule: false,
70
+ data: {
71
+ token: ['随机请求码,前端生成', 'String', '必选'],
72
+ valid_code: ['验证码', 'String', '必选'],
73
+ },
74
+ isConsole: true,
75
+ disabled: true,
76
+ }
58
77
  ];