jufubao-mall 2.0.71 → 2.0.72-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.71",
3
+ "version": "2.0.72-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -184,4 +184,15 @@ module.exports = [
184
184
  },
185
185
  disabled: true,
186
186
  },
187
+ {
188
+ path: "/store/v1/order/show-brand-tip",
189
+ title: "显示品牌提示",
190
+ mapFnName: "showBrandTip",
191
+ isRule: false,
192
+ params: {
193
+ shop_id: ['门店id', 'Number', '必选'],
194
+ },
195
+ isConsole: true,
196
+ disabled: true,
197
+ },
187
198
  ];
@@ -204,6 +204,25 @@
204
204
  </view>
205
205
  </template>
206
206
  </xd-down-drawer>
207
+
208
+ <!-- 温馨提示弹框 -->
209
+ <view class="warm_dialog" v-if="showTipDialog">
210
+ <view class="warm_mask" @click="doHideDialog" @touchmove.stop.prevent="moveHandle"></view>
211
+ <view class="warm_content">
212
+ <view class="warm_header">
213
+ <view class="h_l">
214
+ <xd-font-icon icon='icontongzhi1' :size="28" style="margin-right: 8rpx;"></xd-font-icon> {{ notice_title }}
215
+ </view>
216
+ <view>
217
+ <xd-font-icon @click="doHideDialog" icon="iconguanbi"></xd-font-icon>
218
+ </view>
219
+ </view>
220
+ <view class="warm_body" v-html="notice_content"></view>
221
+ <view class="warm_foot">
222
+ <view class="warm_btn" @click="doHideDialog">确定</view>
223
+ </view>
224
+ </view>
225
+ </view>
207
226
  </view>
208
227
  </template>
209
228
 
@@ -322,6 +341,9 @@
322
341
  showBrandDetailDialog:false,
323
342
  brandLogo:'',
324
343
  successPath:'',
344
+ showTipDialog: false,
345
+ notice_title: '',
346
+ notice_content: '',
325
347
  }
326
348
  },
327
349
  watch: {
@@ -531,6 +553,7 @@
531
553
  this.$xdLog.catch(error);
532
554
  this.$xdHideLoading();
533
555
  })
556
+ this.getShowBrandTip(options['shop_id'])
534
557
  },
535
558
  /**
536
559
  * @description 监听事件变化
@@ -677,6 +700,20 @@
677
700
  .exec();
678
701
 
679
702
  },
703
+ getShowBrandTip(shop_id){
704
+ jfbRootExec("showBrandTip", {
705
+ vm: this,
706
+ data: {
707
+ shop_id: shop_id
708
+ }
709
+ }).then(res => {
710
+ if(res.confirm_notice&&res.prompt_method === 1){
711
+ this.showTipDialog = true;
712
+ this.notice_title = res.notice_title;
713
+ this.notice_content = res.notice_content;
714
+ }
715
+ })
716
+ },
680
717
  handleError(){
681
718
  this.errorStatus = true;
682
719
  },
@@ -804,6 +841,12 @@
804
841
  handleShowBrandDetail(){
805
842
  this.showBrandDetailDialog = true;
806
843
  },
844
+ doHideDialog(){
845
+ this.showTipDialog = false;
846
+ },
847
+ moveHandle(){
848
+ // 阻止默认滚动事件
849
+ },
807
850
  }
808
851
  }
809
852
 
@@ -1129,4 +1172,75 @@
1129
1172
  color: #666666;
1130
1173
  }
1131
1174
  }
1175
+ .warm_dialog{
1176
+ position: fixed;
1177
+ top: 0;
1178
+ bottom: 0;
1179
+ left: 0;
1180
+ right: 0;
1181
+ z-index: 3000;
1182
+ .warm_mask{
1183
+ position: absolute;
1184
+ top: 0;
1185
+ bottom: 0;
1186
+ left: 0;
1187
+ right: 0;
1188
+ background: rgba(0, 0, 0, 0.3);
1189
+ }
1190
+ .warm_content{
1191
+ width: 590rpx;
1192
+ box-sizing: border-box;
1193
+ position: absolute;
1194
+ top: 50%;
1195
+ left: 50%;
1196
+ transform: translate(-50%, -50%);
1197
+ display: flex;
1198
+ flex-direction: column;
1199
+ border-radius: 16rpx;
1200
+ overflow: hidden;
1201
+ .warm_header{
1202
+ display: flex;
1203
+ align-items: center;
1204
+ justify-content: space-between;
1205
+ background-color: #FF8D1A;
1206
+ color: #FFFFFF;
1207
+ height: 88rpx;
1208
+ padding: 0 32rpx;
1209
+ font-size: 28rpx;
1210
+ .h_l{
1211
+ display: flex;
1212
+ align-items: center;
1213
+ }
1214
+ }
1215
+ .warm_body{
1216
+ display: flex;
1217
+ text-align: center;
1218
+ background-color: #FFFFFF;
1219
+ padding: 52rpx 32rpx;
1220
+ font-size: 32rpx;
1221
+ max-height: 50vh;
1222
+ overflow-y: auto;
1223
+ }
1224
+ .warm_foot{
1225
+ border-top: 1px solid #F5F9FA;
1226
+ display: flex;
1227
+ align-items: center;
1228
+ justify-content: center;
1229
+ background-color: #FFFFFF;
1230
+ padding: 24rpx 0;
1231
+ border-radius: 0 0 16rpx 16rpx;
1232
+ .warm_btn{
1233
+ width: 300rpx;
1234
+ height: 72rpx;
1235
+ font-size: 28rpx;
1236
+ color: #FFFFFF;
1237
+ background-color: #FF8D1A;
1238
+ border-radius: 50rpx;
1239
+ display: flex;
1240
+ align-items: center;
1241
+ justify-content: center;
1242
+ }
1243
+ }
1244
+ }
1245
+ }
1132
1246
  </style>
@@ -205,5 +205,6 @@ module.exports = {
205
205
  },
206
206
  ],
207
207
  request_id: "8560c761aa7ca2eb"
208
- }
208
+ },
209
+ showBrandTip: { "confirm_notice": false, "notice_title": "", "notice_content": "", "request_id": "d8129fa759d21be2" },
209
210
  };
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }