jufubao-base 1.0.237-beta4 → 1.0.237-beta6

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 (33) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +4 -1
  3. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +3 -3
  4. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +13 -2
  5. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  6. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  7. package/src/components/JfbBaseHeaderColumn/Attr.js +75 -0
  8. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +46 -2
  9. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +2 -2
  10. package/src/components/JfbBaseOpenVip/Attr.js +41 -0
  11. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +31 -4
  12. package/src/components/JfbBaseOpenVip/Mock.js +1 -1
  13. package/src/components/JfbBaseOpenVip/XdVipList.vue +7 -1
  14. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +13 -4
  15. package/src/components/JfbBaseOpenVipDetail/Mock.js +13 -11
  16. package/src/components/JfbBasePay/Attr.js +40 -0
  17. package/src/components/JfbBasePay/JfbBasePay.vue +12 -4
  18. package/src/components/JfbBasePay/Mock.js +0 -9
  19. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +1 -1
  20. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +12 -8
  21. package/src/components/JfbBasePoster/Attr.js +1 -1
  22. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  23. package/src/components/JfbBasePosterGroup/Attr.js +8 -0
  24. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +5 -2
  25. package/src/components/JfbBaseShare/JfbBaseShare.vue +3 -1
  26. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +1 -0
  27. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +4 -0
  28. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  29. package/src/components/JfbBaseUserInfo/Attr.js +61 -1
  30. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +29 -5
  31. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  32. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  33. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +19 -3
@@ -20,12 +20,13 @@
20
20
  <xd-list-item label="套餐期限" paddingLR="40rpx">{{ vipInfo.life_cycle_label }}</xd-list-item>
21
21
  </view>
22
22
 
23
- <view class="combo_section">
23
+ <!-- #13418 开通plus会员:此版本没有平台优惠 -->
24
+ <view v-if="0" class="combo_section">
24
25
  <xd-list-item label="套餐金额" paddingLR="40rpx">¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.user_pay_amount, 100) }}</xd-list-item>
25
26
  <xd-list-item label="平台优惠" paddingLR="40rpx">-¥{{ $xdUniHelper.divisionFloatNumber(vipInfo.platform_discount_amount, 100) }}</xd-list-item>
26
27
  </view>
27
28
 
28
- <view class="fixed_bottom" :style="[fixed_bottom]">
29
+ <view class="fixed_bottom" :style="fixed_bottom">
29
30
  <view class="pay_btn" @click="p_createVipOrder">
30
31
  立即支付
31
32
  <xd-unit style="margin-left: 16rpx;"
@@ -66,6 +67,7 @@
66
67
  closeMask: true,
67
68
  xnamespace: "",
68
69
  notify_provider_id: "",
70
+ hasClick: false,
69
71
 
70
72
  vip_card_id: "",
71
73
  vipInfo: {},
@@ -82,7 +84,7 @@
82
84
  }
83
85
  },
84
86
  fixed_bottom() {
85
- return this.fixedStyle({paddingBottom: 36, zIndex: 111})
87
+ return this.fixedStyle({height: 36, zIndex: 111})
86
88
  },
87
89
  },
88
90
  watch: {
@@ -120,6 +122,9 @@
120
122
  })
121
123
  },
122
124
  p_createVipOrder(){
125
+ if(this.hasClick) return;
126
+ this.hasClick = true;
127
+ this.$xdShowLoading({});
123
128
  jfbRootExec("createVipOrder", {
124
129
  vm: this,
125
130
  data: {
@@ -129,6 +134,8 @@
129
134
  need_pay_price: this.vipInfo.user_pay_amount
130
135
  }
131
136
  }).then(res => {
137
+ this.hasClick = false;
138
+ this.$xdHideLoading();
132
139
  if(res.need_pay_price > 0){
133
140
  this.$xdUniHelper.redirectTo({
134
141
  url: this.payPath + `?order_id=${res.pay_order_id}&main_order_id=${res.main_order_id}`
@@ -138,7 +145,9 @@
138
145
  url: this.paySuccessPath + '?order_id=' + res.main_order_id
139
146
  })
140
147
  }
141
-
148
+ }).catch(err => {
149
+ this.hasClick = false;
150
+ this.$xdHideLoading();
142
151
  })
143
152
  },
144
153
  onJfbScroll(options) {
@@ -1,13 +1,15 @@
1
- 'use strict';
1
+ "use strict";
2
2
 
3
3
  module.exports = {
4
-
5
- getOpenByIdFilmSquate:{},
6
-
7
- updateOpenFilmPaiqiDate:{},
8
-
9
- removeOpenFilmAddress:{},
10
-
11
- addOpenFilmcart:{},
12
-
13
- }
4
+ getVipConfirm: {
5
+ vip_card_id: 1,
6
+ product_id: 60038515,
7
+ product_name: "年卡会员",
8
+ sale_price: 20000,
9
+ platform_discount_amount: 120,
10
+ user_pay_amount: 20000,
11
+ life_cycle_label: "1年",
12
+ request_id: "cc61b6e3a8e0931f"
13
+ },
14
+ createVipOrder: {}
15
+ };
@@ -8,6 +8,46 @@ export default {
8
8
  advanced: [],
9
9
  content: data=>{
10
10
  return [
11
+ {
12
+ label: "【仍需扣点】文案:",
13
+ ele: "el-input",
14
+ valueKey: "text1",
15
+ value: data.text1 || "仍需扣点",
16
+ groupKey: "content",
17
+ inline: false,
18
+ className: "input80",
19
+ },
20
+ {
21
+ label: "【(可使用多张票券点数)】文案:",
22
+ ele: "el-input",
23
+ valueKey: "text2",
24
+ value: data.text2 || '',
25
+ placeholder: '(可使用多张票券点数)',
26
+ groupKey: "content",
27
+ inline: false,
28
+ className: "input80",
29
+ },
30
+ {
31
+ label: "【选择以下补差方式】文案:",
32
+ ele: "el-input",
33
+ valueKey: "text3",
34
+ value: data.text3 || '选择以下补差方式',
35
+ groupKey: "content",
36
+ inline: false,
37
+ className: "input80",
38
+ },
39
+ {
40
+ label: "是否展示继续补差",
41
+ ele: "xd-radio",
42
+ valueKey: "showContinuePay",
43
+ value: data.showContinuePay || 'Y',
44
+ groupKey: "content",
45
+ inline: true,
46
+ list: [
47
+ { label: "展示", value: "Y" },
48
+ { label: "不展示", value: "N" },
49
+ ],
50
+ },
11
51
  ...styleForm.getForm(data),
12
52
  {
13
53
  label: '支付成功跳转路径:', //label
@@ -100,7 +100,7 @@
100
100
  <view class="remain_pay" v-if="payInfo.channel_amount > 0">
101
101
  <view style="border-bottom: 2rpx solid #eee;" class="column-group">
102
102
  <view class="column-item" style="padding: 30rpx 60rpx">
103
- <view class="column_label">仍需扣点<text class="label_sub">(可使用多张票券点数)</text></view>
103
+ <view class="column_label">{{text1}}<text class="label_sub">{{ text2 }}</text></view>
104
104
  <view class="column_value text-primary">
105
105
  <xd-unit
106
106
  :price="payInfo.channel_amount"
@@ -112,8 +112,8 @@
112
112
  </view>
113
113
  </view>
114
114
  <view class="remain_header">
115
- <view>选择以下补差方式</view>
116
- <view class="flex align-center text-primary">
115
+ <view>{{ text3 }}</view>
116
+ <view v-if="showContinuePay==='Y'" class="flex align-center text-primary">
117
117
  <view class="margin-right">继续补差</view>
118
118
  <xd-unit
119
119
  :price="payInfo.channel_amount"
@@ -212,7 +212,11 @@ export default {
212
212
  rechargeSuccessPath: "", //充值成功
213
213
  ...styleForm.getDataItem(),
214
214
  borderColor:'rgba(0,0,0,0)',
215
- options:{}
215
+ options:{},
216
+ text1: "",
217
+ text2: "",
218
+ text3: "",
219
+ showContinuePay: "",
216
220
  };
217
221
  },
218
222
  watch: {
@@ -262,6 +266,10 @@ export default {
262
266
  * @param container {object} 业务组件对象自己
263
267
  */
264
268
  init(container) {
269
+ this.text1 = getContainerPropsValue(container, 'content.text1', "");
270
+ this.text2 = getContainerPropsValue(container, 'content.text2', "");
271
+ this.text3 = getContainerPropsValue(container, 'content.text3', "");
272
+ this.showContinuePay = getContainerPropsValue(container, 'content.showContinuePay', 'Y');
265
273
  this.paySuccessPath = getContainerPropsValue(
266
274
  container,
267
275
  "content.pay_success_path",
@@ -24,15 +24,6 @@ module.exports = {
24
24
  "card_use_price": 10000,
25
25
  "use_card_point": "5000"
26
26
  },
27
- {
28
- "card_number": "101001000005195",
29
- "card_type_name": "聚福宝福卡测试蛋糕",
30
- "end_time": 1679034403,
31
- "card_point": 5000,
32
- "is_bind_card": true,
33
- "card_use_price": 10000,
34
- "use_card_point": "5000"
35
- },
36
27
  ],
37
28
  },
38
29
  getBaseOrderStatus:{},
@@ -125,7 +125,7 @@
125
125
  vm: this,
126
126
  data: {
127
127
  nickname: this.info.nickname,
128
- sex: this.info.sex.value,
128
+ sex: this.info.sex,
129
129
  birthday_date: this.info.birthday_date
130
130
  },
131
131
  }).then(res => {
@@ -87,14 +87,7 @@
87
87
  },
88
88
  methods: {
89
89
  onJfbLoad(options) {
90
- jfbRootExec("getPointsPropertyList", {
91
- vm: this,
92
- data: {},
93
- }).then(res => {
94
- this.typeList = res.list
95
- }).catch(err => {
96
- console.log(err, "err");
97
- })
90
+ this.getList()
98
91
  },
99
92
  /**
100
93
  * @description 监听事件变化
@@ -114,6 +107,16 @@
114
107
  this.withdrawPath = getContainerPropsValue(container, 'content.withdrawPath', { value: "" }).value;
115
108
  this.couponPath = getContainerPropsValue(container, 'content.couponPath', { value: "" }).value;
116
109
  },
110
+ getList(){
111
+ jfbRootExec("getPointsPropertyList", {
112
+ vm: this,
113
+ data: {},
114
+ }).then(res => {
115
+ this.typeList = res.list
116
+ }).catch(err => {
117
+ console.log(err, "err");
118
+ })
119
+ },
117
120
  getAmout(amount) {
118
121
  return this.$xdUniHelper.divisionFloatNumber(amount, 100)
119
122
  },
@@ -136,6 +139,7 @@
136
139
  },
137
140
  onJfbShow(options) {
138
141
  console.log('event.onJfbShow', options)
142
+ this.getList()
139
143
  },
140
144
  onJfbHide(options) {
141
145
  console.log('event.onJfbHide', options)
@@ -264,7 +264,7 @@ export default {
264
264
  size: 'small',
265
265
  groupKey:'content',
266
266
  },
267
- showBg && params.poster && params.poster['type']&& params.poster['type'] !== '1' && {
267
+ showBg && params.poster && params.poster['type'] && {
268
268
  label: '广告背景图:',
269
269
  ele: 'xd-upload',
270
270
  valueKey: 'background',
@@ -112,7 +112,7 @@
112
112
  }"
113
113
  >
114
114
  <view
115
- v-if="topIsCarousel === 1 && topList.lenght > 0"
115
+ v-if="topIsCarousel === 1 "
116
116
  :style="{
117
117
  width: bigWidth + 'rpx',
118
118
  height: smallHeight + 'rpx',
@@ -190,7 +190,7 @@
190
190
  }"
191
191
  >
192
192
  <view
193
- v-if="bottomIsCarousel === 1 && bottomList.lenght > 0"
193
+ v-if="bottomIsCarousel === 1 "
194
194
  :style="{
195
195
  width: bigWidth + 'rpx',
196
196
  height: smallHeight + 'rpx',
@@ -56,6 +56,13 @@ export default {
56
56
  });
57
57
  },
58
58
  },
59
+ {
60
+ label: "背景颜色:",
61
+ ele: "xd-color",
62
+ valueKey: "bgColor",
63
+ value: data.bgColor || null,
64
+ groupKey: "style",
65
+ },
59
66
  {
60
67
  label: '背景图:',
61
68
  ele: 'xd-upload',
@@ -82,6 +89,7 @@ export default {
82
89
  valueKey: "title",
83
90
  value: data.title || '',
84
91
  groupKey: 'content',
92
+ height:200,
85
93
  imageConfig: {
86
94
  sort: true,
87
95
  maxlen: 100,
@@ -44,6 +44,7 @@
44
44
  import { getContainerPropsValue } from "@/utils/xd.base";
45
45
  import getServiceUrl from "@/common/getServiceUrl";
46
46
  import componentsMixins from "@/mixins/componentsMixins";
47
+ import posterMixins from "@/mixins/posterMixins";
47
48
  import extsMixins from "@/mixins/extsMixins";
48
49
  export default {
49
50
  name: "JfbBasePosterGroup",
@@ -52,7 +53,7 @@
52
53
  XdContentXss
53
54
  },
54
55
  mixins: [
55
- componentsMixins, extsMixins, JfbBasePosterGroupMixin
56
+ componentsMixins, extsMixins, JfbBasePosterGroupMixin, posterMixins
56
57
  ],
57
58
  data() {
58
59
  return {
@@ -67,6 +68,7 @@
67
68
  radius: 0,
68
69
  margin: {},
69
70
  padding: {},
71
+ bgColor: ''
70
72
  }
71
73
  },
72
74
  watch: {
@@ -78,6 +80,7 @@
78
80
  computed: {
79
81
  bodyStyleComp() {
80
82
  return {
83
+ backgroundColor: this.bgColor,
81
84
  backgroundImage: `url(${this.backgroundImage})`,
82
85
  backgroundSize: '100% 100%',
83
86
  backgroundPosition: 'center',
@@ -122,7 +125,6 @@
122
125
  },
123
126
  getPosterGroup(item) {
124
127
  this.tab = item.random;
125
- this.imageGroup = [];
126
128
  jfbRootExec('getListPosterGroupContent', {
127
129
  vm: this,
128
130
  data: {
@@ -148,6 +150,7 @@
148
150
  this.morePath = getContainerPropsValue(container, 'content.morePath', { value: "" }).value;
149
151
  this.is_show_more = getContainerPropsValue(container, 'content.is_show_more', 'Y');
150
152
  this.backgroundImage = getServiceUrl(getContainerPropsValue(container, 'content.backgroundImage', { url: "" }).url);
153
+ this.bgColor = getContainerPropsValue(value, "content.bgColor", "#FFFFFF");
151
154
  this.title = getContainerPropsValue(container, 'content.title', '<p style="font-weight:bold;font-size:16px"><span style="color: #FFF">全球大牌,会员低至</span><span style="color: #F2D894">8折</span></p>');
152
155
  this.subtitle = getContainerPropsValue(container, 'content.subtitle', '超300+品牌商品');
153
156
  this.radius = getContainerPropsValue(container, 'content.radius', 20);
@@ -115,7 +115,9 @@
115
115
  }
116
116
  }).then(res => {
117
117
  this.shareList = res.list.map(item => {
118
- item.share_image_url = getServiceUrl(item.share_image_url);
118
+ let urlSearch = item.share_image_url.split('?')[1];
119
+ let newImgUrl = getServiceUrl(item.share_image_url);
120
+ item.share_image_url = newImgUrl.split('?')[0] + '?' + urlSearch;
119
121
  return item;
120
122
  });
121
123
  })
@@ -32,6 +32,7 @@
32
32
  v-if="productConfig.isPrice === 'Y'"
33
33
  type="two"
34
34
  :showPrice="item['show_prices']"
35
+ :isShowIcon="productConfig.isShowIcon"
35
36
  :isPlus="productConfig.is_plus_site">
36
37
  </CusPrice>
37
38
  </view>
@@ -73,6 +73,7 @@
73
73
  import listMixins from "./listMixins";
74
74
  import CustomList from "./CustomList.vue";
75
75
  import AllList from "./AllList.vue";
76
+ import { mapState } from 'vuex';
76
77
 
77
78
  class EmitParent {
78
79
  constructor(options) {
@@ -131,6 +132,9 @@
131
132
  }
132
133
  },
133
134
  computed: {
135
+ ...mapState({
136
+ siteInfo: state => state.siteInfo,
137
+ }),
134
138
  showMenuList(){
135
139
  return [{label: "全部", value: "all"}, ...this.menuList]
136
140
  },
@@ -24,7 +24,8 @@ export default {
24
24
  let differ = getContainerPropsValue(container, 'content.differ', 1);
25
25
  let showActivityPrice = getContainerPropsValue(container, 'content.showActivityPrice', 'N');
26
26
  let isShowExchange = getContainerPropsValue(container, 'content.isShowExchange', 'N');
27
- this.productConfig = {is_show_brand, isPrice, isShowTag, isShowDiscount, isAddCart, differ, showActivityPrice, isShowExchange,is_plus_site: this.is_plus_site};
27
+ let isShowIcon = this.siteInfo.mapping.is_show_coin_icon==='Y'
28
+ this.productConfig = {is_show_brand, isPrice, isShowTag, isShowDiscount, isAddCart, differ, showActivityPrice, isShowExchange,is_plus_site: this.is_plus_site,isShowIcon};
28
29
 
29
30
  //内容
30
31
  let brandColor = getContainerPropsValue(container, 'content.brandColor', '#aaa');
@@ -244,7 +244,55 @@ export default {
244
244
  selected:defContBorder.type
245
245
  },
246
246
  },
247
- {
247
+ data['is_plus_site']==='Y'&&{
248
+ label: "plus用户昵称字体样式设置",
249
+ ele: "xd-text-and-bgc",
250
+ groupKey:'style',
251
+ valueKey: 'plusNickStyle',
252
+ value: data['plusNickStyle'] || null,
253
+ setting: {
254
+ fontSize: true,
255
+ color: true,
256
+ bgColor: false,
257
+ weight: true,
258
+ selected:false
259
+ },
260
+ handleCustom({action, data}) {
261
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
262
+ .then(res => {
263
+ data.cb(res.list)
264
+ })
265
+ .catch(error => {
266
+ console.error(error);
267
+ data.cb([])
268
+ });
269
+ },
270
+ },
271
+ data['is_plus_site']==='Y'&&{
272
+ label: "普通用户昵称字体样式设置",
273
+ ele: "xd-text-and-bgc",
274
+ groupKey:'style',
275
+ valueKey: 'normalNickStyle',
276
+ value: data['normalNickStyle'] || null,
277
+ setting: {
278
+ fontSize: true,
279
+ color: true,
280
+ bgColor: false,
281
+ weight: true,
282
+ selected:false
283
+ },
284
+ handleCustom({action, data}) {
285
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
286
+ .then(res => {
287
+ data.cb(res.list)
288
+ })
289
+ .catch(error => {
290
+ console.error(error);
291
+ data.cb([])
292
+ });
293
+ },
294
+ },
295
+ data['is_plus_site']==='N'&&{
248
296
  label: "昵称字体样式设置",
249
297
  ele: "xd-text-and-bgc",
250
298
  groupKey:'style',
@@ -556,6 +604,18 @@ export default {
556
604
  },
557
605
  inline: false,
558
606
  },
607
+ data['is_plus_site']==='Y'&&{
608
+ label: '个人资料路径:',
609
+ ele: 'xd-select-pages-path',
610
+ valueKey: 'profilePath',
611
+ groupKey:'advanced',
612
+ placeholder: '请选择二维码路径',
613
+ value: data['profilePath'] || null,
614
+ setting: {
615
+ router: XdBus.getParentApi('getPagesTree'),
616
+ },
617
+ inline: false,
618
+ },
559
619
  {
560
620
  label: '',
561
621
  ele: 'slot',
@@ -13,18 +13,18 @@
13
13
  class="jfb-base-user-info__body-plus-header-top">
14
14
  <view class="jfb-base-user-info__body-plus-header-top-left">
15
15
  <template v-if="logined">
16
- <image :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}"
16
+ <image @click="handleToPersonal" :style="{border: `1px solid ${imageColor}`, borderRadius:imageRadius}"
17
17
  v-if="userInfo['head_url']" :src="userInfo['head_url']"></image>
18
18
  <view :style="{borderColor: imageColor, borderRadius:imageRadius}" class="no-image" v-else>
19
19
  <xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
20
20
  </view>
21
21
  </template>
22
- <view :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else class="no-image">
22
+ <view @click="handleToPersonal" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else class="no-image">
23
23
  <xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
24
24
  </view>
25
25
  <view class="jfb-base-user-info__body-plus-header-top-left-info">
26
26
  <view class="jfb-base-user-info__body-plus-header-top-left-info-name" v-if="logined">
27
- <view :style="[nickNameStyle]">{{userInfo|getName}} </view>
27
+ <view :style="is_vip==='Y'?[plusNickNameStyle]:[normalNickNameStyle]">{{userInfo|getName}} </view>
28
28
  <view v-if="is_vip==='Y'"><text>PLUS</text>会员</view>
29
29
  <view v-else>普通用户</view>
30
30
  </view>
@@ -190,7 +190,20 @@
190
190
  if (this.is_border === 'Y') return `${this.is_border_w}rpx ${this.is_border_s} ${this.is_border_c}`;
191
191
  else return '0';
192
192
  },
193
-
193
+ plusNickNameStyle() {
194
+ return {
195
+ fontSize: this.plusNickStyle.fontSize || '32rpx',
196
+ color: `${this.plusNickStyle.color ||'#333'}`,
197
+ fontWeight: `${this.plusNickStyle.fontWeight || 'normal'}`,
198
+ }
199
+ },
200
+ normalNickNameStyle() {
201
+ return {
202
+ fontSize: this.normalNickStyle.fontSize || '32rpx',
203
+ color: `${this.normalNickStyle.color ||'#333'}`,
204
+ fontWeight: `${this.normalNickStyle.fontWeight || 'normal'}`,
205
+ }
206
+ },
194
207
  nickNameStyle() {
195
208
  return {
196
209
  fontSize: this.nickStyle.fontSize || '32rpx',
@@ -253,6 +266,8 @@
253
266
  margin: {},
254
267
  padding: {},
255
268
  nickStyle: {},
269
+ normalNickStyle: {},
270
+ plusNickStyle: {},
256
271
  logoutStyle: {},
257
272
  rightContent: null,
258
273
  addressUrl: '',
@@ -270,7 +285,8 @@
270
285
  plusBottomBackgroundColor: '',
271
286
  normalTopBackgroundColor: '',
272
287
  normalBottomBackgroundColor: '',
273
- codePath: ''
288
+ codePath: '',
289
+ profilePath: ''
274
290
  }
275
291
  },
276
292
  watch: {
@@ -399,6 +415,14 @@
399
415
  this.openVipPath = getContainerPropsValue(container, 'content.openVipPath', { value: "" }).value;
400
416
  this.viewPath = getContainerPropsValue(container, 'content.viewPath', { value: "" }).value;
401
417
  this.codePath = getContainerPropsValue(container, 'content.codePath', { value: "" }).value;
418
+ this.profilePath = getContainerPropsValue(container, 'content.profilePath', { value: "" }).value;
419
+ this.plusNickStyle = getContainerPropsValue(container, 'content.plusNickStyle', {});
420
+ this.normalNickStyle = getContainerPropsValue(container, 'content.normalNickStyle', {});
421
+ },
422
+ handleToPersonal(){
423
+ this.$xdUniHelper.navigateTo({
424
+ url: this.profilePath
425
+ })
402
426
  },
403
427
  handleAddress() {
404
428
  this.$xdUniHelper.navigateTo({
@@ -21,6 +21,21 @@ export default {
21
21
  groupKey:'advanced',
22
22
  },
23
23
  {
24
+ label: '是否展示我的订单:',
25
+ ele: 'xd-radio',
26
+ valueKey: 'isShowMyOrder',
27
+ value: data['isShowMyOrder'] || 'Y',
28
+ placeholder: '请选择是否展示我的订单',
29
+ groupKey:'content',
30
+ multiple: false,
31
+ labelInline:true,
32
+ className: 'input80',
33
+ list: [
34
+ {label: '展示', value: 'Y'},
35
+ {label: '隐藏', value: 'N'},
36
+ ]
37
+ },
38
+ data['isShowMyOrder']==='Y'&&{
24
39
  label: '我的订单自定义名称:',
25
40
  ele: 'el-input',
26
41
  type: 'text',
@@ -101,6 +116,7 @@ export default {
101
116
  {"label": "待收货", "value": 'unreceived'},
102
117
  {"label": "已取消", "value": 'cancel'},
103
118
  {"label": "已完成", "value": 'com'},
119
+ {"label": "售后", "value": 'afterSale'},
104
120
  ])
105
121
  }
106
122
  },
@@ -16,8 +16,9 @@
16
16
  <view class="jfb-base-user-order__body">
17
17
  <view class="x-line"></view>
18
18
  <view :style="[bodyStyleComp]" v-if="list.length > 0">
19
- <view class="my-order__add" :style="[titleMarginComp]">
20
- <view :style="[titleStyleComp]">{{myOrderName}}</view>
19
+ <view v-if="isShowMyOrder==='Y'||isShowBtn === 'Y'" class="my-order__add" :style="[titleMarginComp]">
20
+ <view v-if="isShowMyOrder==='Y'" :style="[titleStyleComp]">{{myOrderName}}</view>
21
+ <view v-else></view>
21
22
  <view
22
23
  v-if="isShowBtn === 'Y'"
23
24
  @click="handleToLink(afterUrl)"
@@ -179,6 +180,7 @@
179
180
  cardNameColor: '#333',
180
181
  titleStyle: {},
181
182
  titleMargin:{},
183
+ isShowMyOrder: '',
182
184
 
183
185
  //售后订单
184
186
  isShowBtn:'Y',
@@ -274,6 +276,7 @@
274
276
 
275
277
 
276
278
  //标题
279
+ this.isShowMyOrder = getContainerPropsValue(container, 'content.isShowMyOrder', 'Y');
277
280
  this.myOrderName = getContainerPropsValue(container, 'content.myOrderName', '我的订单')
278
281
  this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
279
282
  this.titleMargin = getContainerPropsValue(container,'content.titleMargin', {})
@@ -333,6 +336,12 @@
333
336
 
334
337
  handleToLink(path, type) {
335
338
  if (this.$configProject['isPreview']) return;
339
+ if(type==='afterSale'){
340
+ this.$xdUniHelper.navigateTo({
341
+ url: this.afterUrl
342
+ })
343
+ return
344
+ }
336
345
  this.$xdUniHelper.navigateTo({
337
346
  url: type ? `${path}?type=${type}` : path
338
347
  })