jufubao-base 1.0.243-beta201 → 1.0.243-beta203

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 (148) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +40 -3
  3. package/src/components/JfbBaseAfterSales/Mock.js +2 -9
  4. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +3 -3
  5. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +24 -5
  6. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +9 -1
  7. package/src/components/JfbBaseAfterSalesList/Attr.js +23 -0
  8. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +53 -8
  9. package/src/components/JfbBaseBalance/Api.js +46 -0
  10. package/src/components/JfbBaseBalance/Attr.js +316 -0
  11. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  12. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  13. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  14. package/src/components/JfbBaseBalance/Mock.js +9 -0
  15. package/src/components/JfbBaseCardDetailEntry/Attr.js +11 -0
  16. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +6 -6
  17. package/src/components/JfbBaseCardEntry/Attr.js +27 -16
  18. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +4 -2
  19. package/src/components/JfbBaseCardEntry/Mock.js +20 -1
  20. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +2 -4
  21. package/src/components/JfbBaseCardInfoEntry/Attr.js +36 -25
  22. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +5 -2
  23. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  24. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  25. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  26. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  27. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  28. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  29. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +4 -5
  30. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  31. package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
  32. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1118 -0
  33. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  34. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  35. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  36. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  37. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  38. package/src/components/JfbBaseFooter/Attr.js +12 -0
  39. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
  40. package/src/components/JfbBaseHeader/Attr.js +82 -0
  41. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  42. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  43. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  44. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +17 -3
  45. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  46. package/src/components/JfbBaseNoticeDialog/Attr.js +27 -0
  47. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +42 -15
  48. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  49. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  50. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  51. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
  52. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
  53. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  54. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  55. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  56. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +459 -0
  57. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  58. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  59. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  60. package/src/components/JfbBaseOpenVip/XdVipList.vue +130 -0
  61. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  62. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  63. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  64. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  65. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  66. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  67. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  68. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  69. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  70. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  71. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  72. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  73. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +191 -19
  74. package/src/components/JfbBaseOrderList/Api.js +11 -0
  75. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +31 -13
  76. package/src/components/JfbBasePay/Attr.js +52 -0
  77. package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
  78. package/src/components/JfbBasePay/Mock.js +0 -9
  79. package/src/components/JfbBasePersonalData/Api.js +26 -0
  80. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  81. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +278 -0
  82. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  83. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  84. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  85. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
  86. package/src/components/JfbBasePointsCard/Api.js +18 -0
  87. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  88. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  89. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  90. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  91. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  92. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  93. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  94. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  95. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  96. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  97. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  98. package/src/components/JfbBasePoster/Attr.js +1 -1
  99. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  100. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  101. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  102. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  103. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  104. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  105. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  106. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  107. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  108. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
  109. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  110. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  111. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  112. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  113. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  114. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  115. package/src/components/JfbBaseShare/Api.js +20 -0
  116. package/src/components/JfbBaseShare/Attr.js +59 -0
  117. package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
  118. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  119. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  120. package/src/components/JfbBaseShare/Mock.js +16 -0
  121. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +14 -3
  122. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  123. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  124. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  125. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  126. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  127. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +342 -119
  128. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  129. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  130. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  131. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  132. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  133. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  134. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  135. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  136. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  137. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  138. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  139. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  140. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  141. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  142. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  143. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  144. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  145. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  146. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  147. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  148. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
@@ -0,0 +1,1118 @@
1
+ <template>
2
+ <view class="jfb-base-consump-code" @click="handleEditxSelect" :class="{ editx : isEditx && active }">
3
+ <!--#ifdef H5-->
4
+ <view class="jfb-base-consump-code__edit" :class="{ editx : isEditx && active }" v-if="isEditx && active">
5
+ <view class="jfb-base-consump-code__edit-icon" @click="delEdit">删除</view>
6
+ </view>
7
+ <!-- #endif -->
8
+ <view v-if="!showMask" class="jfb-base-consump-code__body" :style="{
9
+ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
10
+ background: 'url(https://img.js.design/assets/img/678f560988986af5661c2876.png#a3be067970d2c78a56d08024581a9ca0)',
11
+ backgroundSize: '100% 100%'
12
+ }">
13
+ <view class="content-box">
14
+ <view class="logo-box">
15
+ <image :src="userInfo['head_url']" class="logo"></image>
16
+ </view>
17
+ <view v-if="isFlow">
18
+ <view @click="handleToShop" class="shop">
19
+ <view>{{shopName}}</view>
20
+ <XdFontIcon size="20" icon="iconxiangyou_xian"></XdFontIcon>
21
+ </view>
22
+ <view class="verification-item">
23
+ <view class="verification-item-label">提货标签</view>
24
+ <view class="verification-item-tags">
25
+ <view :style="{color:tag_id===item.value?mainColor:'',borderColor: tag_id===item.value?mainColor:''}"
26
+ v-for="(item,index) in settle_tag_list" :key="index" @click="handlerTagRadio(item)">{{item.label}}
27
+ </view>
28
+ </view>
29
+ <view class="nodata" v-if="settle_tag_list_status">结算标签为空,请联系店员设置后重试</view>
30
+ </view>
31
+ <view class="verification-item">
32
+ <view class="verification-item-label">提货点数</view>
33
+ <view class="verification-item-input">
34
+ <input v-model="total_price" @input="(value)=>handlerPrice(value)" type="text">
35
+ <xd-number v-if="curTag.is_static_price" class="xd-number" :min="1" :max="999" v-model="num"
36
+ @change="handleNumberChange"></xd-number>
37
+ <view :style="{color:mainColor}" class="tip">*提货点数请咨询店员,提货成功后无法退换</view>
38
+ </view>
39
+ </view>
40
+ <XdButton v-if="btnDisabled" style="margin-top: 200rpx;display:block" width="260rpx" type="primary" disabled>
41
+ 下一步</XdButton>
42
+ <XdButton v-else style="margin-top: 200rpx;display:block" width="260rpx" type="primary" @click="toPayOrder">
43
+ 下一步</XdButton>
44
+ <view v-if="plusDiscount">
45
+ <view class="vip" v-if="is_vip==='N'">
46
+ <view class="vip-title">
47
+ <view class="vip-title-left">PLUS会员专享</view>
48
+ <view class="vip-title-right">
49
+ <text>{{plusDiscount/1000}}</text>折
50
+ </view>
51
+ </view>
52
+ <view class="vip-open" @click="handleToOpen">
53
+ <xd-font-icon color="#FCBF28" size="20" icon="iconPLUShuiyuan"></xd-font-icon>
54
+ <text>立即开通</text>
55
+ <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
56
+ </view>
57
+ </view>
58
+ <view class="is-vip" v-else>
59
+ <text>PLUS</text>会员消费专享 <text>{{plusDiscount/1000}}</text>折
60
+ </view>
61
+ </view>
62
+ </view>
63
+ <view v-else>
64
+ <view>
65
+ <view @click="handleToShop" class="shop">
66
+ <view>{{shopName}}</view>
67
+ <XdFontIcon size="20" icon="iconxiangyou_xian"></XdFontIcon>
68
+ </view>
69
+ <image mode="aspectFit" class="bar-code" :src="barcode_url">
70
+ </image>
71
+ <view class="bar-code-text">{{barCode}}</view>
72
+ <image mode="aspectFit" class="qrcode" :src="code_url">
73
+ </image>
74
+ <view class="code-refresh">{{expiration_sec_str}}后自动更新</view>
75
+ <view v-if="plusDiscount">
76
+ <view class="vip" v-if="is_vip==='N'">
77
+ <view class="vip-title">
78
+ <view class="vip-title-left">PLUS会员专享</view>
79
+ <view class="vip-title-right">
80
+ <text>{{plusDiscount/1000}}</text>折
81
+ </view>
82
+ </view>
83
+ <view class="vip-open" @click="handleToOpen">
84
+ <xd-font-icon color="#FCBF28" size="20" icon="iconPLUShuiyuan"></xd-font-icon>
85
+ <text>立即开通</text>
86
+ <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
87
+ </view>
88
+ </view>
89
+ <view class="is-vip" v-else>
90
+ <text>PLUS</text>会员消费专享 <text>{{plusDiscount/1000}}</text>折
91
+ </view>
92
+ </view>
93
+ </view>
94
+ </view>
95
+
96
+ </view>
97
+ </view>
98
+ <view :style="{
99
+ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
100
+ background: 'url(https://img1-b.jufubao.cn/uploads/20250507/1a97fda8cd8804f9bcf984da10e0a666.png?x-oss-process=style/size8)',
101
+ backgroundSize: '100% 100%'
102
+ }" v-else>
103
+ <view
104
+ style="display: flex;justify-content: center;align-items: center;height: 100vh;font-size: 30rpx;color: #333">
105
+ {{tip}}</view>
106
+ </view>
107
+ <XdDialog width="80%" :show.sync="showDialog" :showClose="false" :showTitle="true">
108
+ <view class="dialog-title" slot="title">门店确认</view>
109
+ <view class="dialog-content">
110
+ <view>当前门店:<span :style="{color:mainColor}">{{shopName}}</span></view>
111
+ <view>请确认您是否在当前门店中</view>
112
+ </view>
113
+ <view class="dialog-btns" slot="btn">
114
+ <XdButton @click="handleToShop" bgColor="#EEEEEE" color="#888888" size="small" type="info">更换门店</XdButton>
115
+ <XdButton @click="handleConfirm" size="small" type="primary">确认</XdButton>
116
+ </view>
117
+ </XdDialog>
118
+ <XdDialog class="location-dialog-title" width="80%" :show.sync="showLocationDialog" :showClose="false"
119
+ :showTitle="true">
120
+ <view slot="title">
121
+ <xd-font-icon icon="icondingweixiao" color="#999999" size="60"></xd-font-icon>
122
+ <text style="font-size: 32rpx;color: #333;margin-top: 12rpx;">定位请求</text>
123
+ </view>
124
+ <view class="location-dialog-content">
125
+ <view>为了给您提供更好的服务需要获取您的位置信息</view>
126
+ </view>
127
+ <view class="dialog-btns" slot="btn">
128
+ <XdButton @click="showLocationDialog=false" bgColor="#EEEEEE" color="#888888" size="small" type="info">取消
129
+ </XdButton>
130
+ <XdButton @click="handleToCity" size="small" type="primary">允许</XdButton>
131
+ </view>
132
+ </XdDialog>
133
+ </view>
134
+ </template>
135
+
136
+ <script>
137
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
138
+ import XdDialog from "@/components/XdDailog/XdDailog";
139
+ import XdButton from "@/components/XdButton/XdButton";
140
+ import { jfbRootExec } from "@/utils/xd.event";
141
+ import JfbBaseConsumpCodeMixin from "./JfbBaseConsumpCodeMixin";
142
+ import getServiceUrl from "@/common/getServiceUrl";
143
+ import { getContainerPropsValue, isWechat, isWechatTools } from "@/utils/xd.base";
144
+ import componentsMixins from "@/mixins/componentsMixins";
145
+ import extsMixins from "@/mixins/extsMixins";
146
+ import { mapState } from 'vuex';
147
+
148
+ export default {
149
+ //#ifdef MP-WEIXIN
150
+ options: { styleIsolation: 'shared' },
151
+ //#endif
152
+ name: "JfbBaseConsumpCode",
153
+ components: {
154
+ XdFontIcon,
155
+ XdDialog,
156
+ XdButton
157
+ },
158
+ mixins: [
159
+ componentsMixins, extsMixins, JfbBaseConsumpCodeMixin
160
+ ],
161
+ data() {
162
+ return {
163
+ openPath: "",
164
+ shopPath: "",
165
+ successPath: "",
166
+ cashPayPath: "",
167
+ showDialog: false,
168
+ showMask: true,
169
+ shop_id: '',
170
+ secondTimer: null,
171
+ expiration_sec: '',
172
+ code_url: '',
173
+ barcode_url: '',
174
+ barCode: '',
175
+ statusTimer: null,
176
+ validTimer: null,
177
+ payChannels: [],
178
+ channel_provider_id: "",
179
+ options: {},
180
+ canEdit: true,
181
+ settle_tag_list: [],
182
+ settle_tag_list_status: false,
183
+ tag_id: "",
184
+ price: "",
185
+ total_price: "",
186
+ num: 1,
187
+ tip: '',
188
+ shopName: '',
189
+ isFlow: false,
190
+ xnamespace: '',
191
+ plusDiscount: 0,
192
+ userInfo: {},
193
+ is_vip: 'N',
194
+ isPreview: false,
195
+ jwxSDK: null,
196
+ refresh: true, //onshow是否刷新数据
197
+ showLocationDialog: false,
198
+ cityPath: '',
199
+ resource_shop_id: ''
200
+ }
201
+ },
202
+ watch: {
203
+ container(value, oldValue) {
204
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
205
+ if (this.$configProject['isPreview']) this.init(value)
206
+ },
207
+ stateLocation(n, o) {
208
+ if (JSON.stringify(n) === JSON.stringify(o)) return;
209
+ this.onJfbLoad(this.options)
210
+ }
211
+ },
212
+ computed: {
213
+ ...mapState({
214
+ stateCity: state => state.cityLocation.city,
215
+ stateLocation: state => state.cityLocation.location || {},
216
+ brandInfo: state => state.brandInfo,
217
+ jfbAuthorize: (state) => state.jfbAuthorize,
218
+ }),
219
+ expiration_sec_str() {
220
+ //秒数转 x分x秒
221
+ let second = this.expiration_sec;
222
+ if (second < 60) {
223
+ return second + "秒";
224
+ }
225
+ let min = parseInt(second / 60);
226
+ let sec = second % 60;
227
+ return `${min}分${sec}秒`;
228
+ },
229
+ curTag() {
230
+ return this.settle_tag_list.find(item => item.value === this.tag_id) || {}
231
+ },
232
+ curTagPrice() {
233
+ const curTag = this.curTag;
234
+ if (this.$xdUniHelper.isEmpty(curTag)) return 0;
235
+ if (curTag.is_static_price) {
236
+ return curTag.price_yuan;
237
+ } else {
238
+ return this.total_price;
239
+ }
240
+ },
241
+ btnDisabled() {
242
+ return this.total_price === '' || !this.tag_id;
243
+ }
244
+ },
245
+ created() {
246
+ this.isPreview = this.$configProject['isPreview']
247
+ this.is_vip = this.getTokenForKey('user_level') && this.getTokenForKey('user_level') === 'VIP' ? 'Y' : 'N'
248
+ this.init(this.container);
249
+ // #ifdef H5
250
+ if (!this.$configProject.isPreview && (isWechat() || isWechatTools())) {
251
+ this.getH5WxAuthorize()
252
+ }
253
+ // #endif
254
+ },
255
+ methods: {
256
+ async onJfbLoad(options) {
257
+ this.xnamespace = this.projectAttr.business_code
258
+ this.getUserInfo()
259
+ this.options = options
260
+ if (!this.isPreview) {
261
+ console.log(this.stateLocation, 'this.stateLocation');
262
+
263
+ if (Object.keys(this.stateLocation).length === 0) {
264
+ this.tip = '为了给您提供更好的服务需要获取您的位置信息'
265
+ this.showLocationDialog = true;
266
+ this.showMask = true;
267
+ this.showDialog = false;
268
+ return
269
+ } else{
270
+ this.showLocationDialog = false
271
+ }
272
+ }
273
+ if (!this.options.shop_id) {
274
+ jfbRootExec("getConsumpShopList", {
275
+ vm: this,
276
+ data: {
277
+ city_code: this.stateCity.city_code,
278
+ consume_mode: 'SELL',
279
+ latitude: this.stateLocation.latitude + '',
280
+ longitude: this.stateLocation.longitude + '',
281
+ },
282
+ }).then(res => {
283
+ if (res && res.list.length > 0) {
284
+ this.shop_id = res.list[0].shop_id;
285
+ this.resource_shop_id = res.list[0].resource_shop_id;
286
+ this.shopName = res.list[0].resource_shop_name;
287
+ this.showMask = true;
288
+ this.showDialog = true;
289
+ } else {
290
+ this.tip = '您的附近暂时没有支持的店铺'
291
+ this.showDialog = false;
292
+ }
293
+ })
294
+ } else {
295
+ this.shop_id = this.options.shop_id;
296
+ this.resource_shop_id = this.options.resource_shop_id;
297
+ this.p_getAsyncStep();
298
+ }
299
+ },
300
+ /**
301
+ * @description 监听事件变化
302
+ * @param container {object} 业务组件对象自己
303
+ */
304
+ init(container) {
305
+ this.openPath = getContainerPropsValue(
306
+ container,
307
+ "content.openPath",
308
+ { value: "" }
309
+ ).value;
310
+ this.shopPath = getContainerPropsValue(
311
+ container,
312
+ "content.shopPath",
313
+ { value: "" }
314
+ ).value;
315
+ this.successPath = getContainerPropsValue(
316
+ container,
317
+ "content.successPath",
318
+ { value: "" }
319
+ ).value;
320
+ this.cashPayPath = getContainerPropsValue(container, 'content.cash_pay_path', { value: "" }
321
+ ).value;
322
+ this.successPath = getContainerPropsValue(
323
+ container,
324
+ "content.successPath",
325
+ { value: "" }
326
+ ).value;
327
+ this.cityPath = getContainerPropsValue(container, 'content.cityPath', { value: "" }
328
+ ).value;
329
+ },
330
+ getUserInfo() {
331
+ jfbRootExec("getConsumpBaseUserInfo", {
332
+ vm: this,
333
+ data: {},
334
+ }).then(res => {
335
+ res = res || {};
336
+ if(res['head_url']) res['head_url'] = getServiceUrl(res['head_url'], 'size2')
337
+ this.userInfo = res;
338
+ })
339
+ },
340
+ async p_getAsyncStep() {
341
+ await this.p_getQuickPayQRCode();
342
+ if (!this.isFlow) {
343
+ this.p_getQRCodeStatus();
344
+ this.p_getListUserPayChannel();
345
+ }
346
+ },
347
+ getH5WxAuthorize() {
348
+ jfbRootExec("getH5WxAuthorize", {
349
+ vm: this,
350
+ data: { jsApiList: ["chooseWXPay"], },
351
+ })
352
+ .then((res) => {
353
+ this.jwxSDK = res.jwxSDK;
354
+ console.log('this.jwxSDK', this.jwxSDK);
355
+ })
356
+ .catch(error => {
357
+ this.$xdAlert({
358
+ content: error,
359
+ });
360
+ });
361
+ },
362
+ p_getListUserPayChannel() {
363
+ const { pay_channels } = this.projectAttr;
364
+ jfbRootExec("getConsumpListUserPayChannel", {
365
+ vm: this,
366
+ data: {
367
+ providers: pay_channels && pay_channels.join(","),
368
+ },
369
+ }).then((res) => {
370
+ console.log("p_getListUserPayChannel", res);
371
+ this.payChannels = res.list;
372
+ this.channel_provider_id = res.list[0].channel_provider_id;
373
+ });
374
+ },
375
+ p_getQuickPayQRCode() {
376
+ return new Promise((resolve, reject) => {
377
+ this.$xdShowLoading({});
378
+ let data = {
379
+ shop_id: this.shop_id,
380
+ temp_order_id: this.temp_order_id,
381
+ business_code: this.xnamespace,
382
+ resource_shop_id: this.resource_shop_id
383
+ }
384
+ if(data.resource_shop_id) delete data.shop_id
385
+ jfbRootExec("getConsumpCode", {
386
+ vm: this,
387
+ data: data
388
+ }).then(res => {
389
+ this.$xdHideLoading();
390
+ this.plusDiscount = res.plus_discount
391
+ if (res.is_st_flow === 'Y') {
392
+ //水牌
393
+ this.isFlow = true
394
+ this.showMask = false;
395
+ this.shopName = res.resource_shop_name;
396
+ this.getSettleTagList()
397
+ } else {
398
+ // 消费码
399
+ this.temp_order_id = res.temp_order_id;
400
+ let code_url = this.brandInfo['api_host'] + res.code_url;
401
+ let barcode_url = this.brandInfo['api_host'] + res.barcode_url;
402
+ if (this.isPreview) {
403
+ code_url = 'https://sandbox-apis.jufubao.cn/common/v1/image/qrcode?code_content=h.161.v91654768653746&size=240'
404
+ barcode_url = 'https://sandbox-apis.jufubao.cn/common/v1/image/barcode?code_content=h.161.v91654768653746'
405
+ }
406
+ this.code_url = code_url;
407
+ this.barcode_url = barcode_url;
408
+ this.barCode = res.payment_code
409
+ this.expiration_sec = res.expiration_sec;
410
+ this.showMask = false;
411
+ this.shopName = res.resource_shop_name;
412
+ clearInterval(this.secondTimer);
413
+ this.secondTimer = setInterval(() => {
414
+ this.expiration_sec--;
415
+ if (this.expiration_sec <= 0) {
416
+ clearInterval(this.secondTimer);
417
+ this.p_getQuickPayQRCode();
418
+ }
419
+ }, 1000);
420
+ resolve();
421
+ }
422
+
423
+ }).catch(err => {
424
+ console.error(err);
425
+ reject(err);
426
+ })
427
+ })
428
+ },
429
+ p_getQRCodeStatus() {
430
+ jfbRootExec("getConsumpCodeScanStatus", {
431
+ vm: this,
432
+ data: {
433
+ temp_order_id: this.temp_order_id,
434
+ shop_id: this.shop_id
435
+ }
436
+ }).then(res => {
437
+ //P处理中 Y成功 E 失败
438
+ if (res.status === 'P') {
439
+ if (!this.isPreview) {
440
+ if (this.statusTimer) clearTimeout(this.statusTimer);
441
+ this.statusTimer = setTimeout(() => {
442
+ this.p_getQRCodeStatus();
443
+ }, 2000);
444
+ }
445
+ } else if (res.status === 'Y') {
446
+ //订单下单有效时间 秒
447
+ if (this.statusTimer) clearTimeout(this.statusTimer);
448
+ this.orderSeconds = res.seconds;
449
+ if (this.orderSeconds > 0) {
450
+ this.validTimer = setInterval(() => {
451
+ this.orderSeconds--;
452
+ if (this.orderSeconds <= 0) {
453
+ this.handlerOderFail();
454
+ }
455
+
456
+ }, 1000)
457
+ }
458
+ this.p_createOrder();
459
+ } else if (res.status === 'E') {
460
+ if (this.statusTimer) clearTimeout(this.statusTimer);
461
+ this.$xdAlert({
462
+ content: res.message,
463
+ time: 1500,
464
+ isClose: false,
465
+ zIndex: 5000
466
+ });
467
+ }
468
+ })
469
+ },
470
+ p_createOrder() {
471
+ jfbRootExec("batchConsumpUseCardCreated", {
472
+ vm: this,
473
+ data: {
474
+ temp_order_id: this.temp_order_id,
475
+ business_code: this.xnamespace,
476
+ }
477
+ }).then(res => {
478
+ this.request_order_id = res.request_order_id;
479
+ this.p_getOrderStatus();
480
+ }).catch(err => {
481
+ this.handlerOderFail();
482
+ })
483
+ },
484
+ p_getOrderStatus() {
485
+ jfbRootExec("getConsumpAsyncSubmitStatus", {
486
+ vm: this,
487
+ data: {
488
+ request_order_id: this.request_order_id
489
+ }
490
+ }).then(res => {
491
+ let { hand_status, hand_status_msg, order_id, pay_order_id, need_pay_price } = res;
492
+
493
+ if (hand_status === 'U') {
494
+ this.orderTimer = setTimeout(() => {
495
+ this.p_getOrderStatus();
496
+ }, 2000)
497
+ } else if (hand_status === 'S') { //成功
498
+ if (parseFloat(need_pay_price) > 0) {//补差
499
+ this.handleThirdPay(pay_order_id, order_id);
500
+ } else {//订单成功
501
+ this.refresh = false
502
+ this.$xdUniHelper.redirectTo({
503
+ url: this.successPath + `?order_id=${order_id}`
504
+ })
505
+ }
506
+ } else if (hand_status === 'F') {
507
+ this.handlerOderFail();
508
+ this.$xdAlert({
509
+ content: hand_status_msg || '支付失败',
510
+ time: 3000,
511
+ isClose: false,
512
+ zIndex: 5000
513
+ });
514
+ }
515
+ })
516
+ },
517
+ openTemplatePay(paySignData, cb) {
518
+ console.log('openTemplatePay', paySignData);
519
+
520
+ const { timeStamp, ...otherData } = paySignData;
521
+ otherData["timestamp"] = timeStamp;
522
+ // #ifdef H5
523
+ this.jwxSDK.chooseWXPay({
524
+ ...otherData,
525
+ success: (res) => {
526
+ this.$xdLog.setARMSInfo({ options: this.options, res }, 'pay_success');
527
+ uni.showToast({
528
+ title: "支付成功",
529
+ });
530
+ cb(res);
531
+ },
532
+ cancel: () => {
533
+ this.onRefreshPage();
534
+ this.$xdLog.setARMSInfo(this.options, 'cancel_pay');
535
+ uni.showToast({
536
+ title: "取消支付",
537
+ });
538
+ },
539
+ fail: (error) => {
540
+ this.onRefreshPage();
541
+ if (typeof error === 'string') error = { error: error }
542
+ if (window['jwxJfbSDKParams']) error = Object.assign(error, paySignData, window['jwxJfbSDKParams'])
543
+ this.$xdLog.setARMSError(error)
544
+ uni.showToast({
545
+ title: "支付失败",
546
+ });
547
+ },
548
+ });
549
+ // #endif
550
+ // #ifdef MP
551
+ wx.requestPayment({
552
+ ...paySignData,
553
+ success: (res) => {
554
+ this.$xdLog.setARMSInfo({ options: this.options, res }, 'pay_success');
555
+ uni.showToast({
556
+ title: "支付成功",
557
+ icon: "none",
558
+ });
559
+ cb(res);
560
+ },
561
+ fail: (err) => {
562
+ this.onRefreshPage();
563
+ this.$xdLog.setARMSError({
564
+ options: this.options,
565
+ error: JSON.stringify(err)
566
+ });
567
+ uni.showToast({
568
+ title: "支付失败",
569
+ icon: "none",
570
+ });
571
+ },
572
+ });
573
+ // #endif
574
+ },
575
+ onRefreshPage() {
576
+ this.temp_order_id = "";
577
+ if (this.validTimer) clearInterval(this.validTimer)
578
+ this.p_getAsyncStep();
579
+ },
580
+ getSettleTagList() {
581
+ this.$xdShowLoading({});
582
+
583
+ jfbRootExec("getConsumpSettleMainInfo", {
584
+ vm: this,
585
+ data: {
586
+ shop_id: this.shop_id,
587
+ }
588
+ }).then(res => {
589
+ this.$xdHideLoading();
590
+ const { settle_tag_list } = res;
591
+ this.settle_tag_list = settle_tag_list;
592
+ if (settle_tag_list.length > 0) {
593
+ this.handlerTagRadio(settle_tag_list[0]);
594
+ this.settle_tag_list_status = false;
595
+ }
596
+ else this.settle_tag_list_status = true;
597
+ }).catch(err => {
598
+ this.$xdHideLoading();
599
+ this.$xdLog.catch(error)
600
+ })
601
+ },
602
+ toPayOrder(options = {}) {
603
+ let { tag_id, total_price, curTag, num = 1, shop_id } = this;
604
+ let err_tip = "";
605
+ if (!curTag.is_static_price) this.price = total_price;
606
+ if (curTag.is_static_price) {
607
+ if (total_price > 10000) {
608
+ err_tip = '金额不能超过10000'
609
+ }
610
+ }
611
+ let price = this.price;
612
+ if (!price) err_tip = "请填写正确的提货金额";
613
+ if (!tag_id) err_tip = "请选择结算标签";
614
+ if (err_tip) {
615
+ uni.showToast({
616
+ title: err_tip,
617
+ icon: 'none'
618
+ });
619
+ return false;
620
+ }
621
+ if (this.total_price == 0) {
622
+ uni.showToast(
623
+ {
624
+ title: '核销金额不能为0',
625
+ icon: 'none'
626
+ }
627
+ )
628
+ return
629
+ }
630
+ jfbRootExec("addConsumpCashierTempOrderData", {
631
+ vm: this,
632
+ data: {
633
+ shop_id: this.shop_id,
634
+ settle_tag_id: this.tag_id,
635
+ num: this.num,
636
+ settle_tag_price: this.curTagPrice,
637
+ total_price: this.total_price,
638
+ ...options
639
+ }
640
+ })
641
+ .then(res => {
642
+ if (res.confirm_notice) {
643
+ return this.useCardPop(res).then(data => {
644
+ if (data == 2) {
645
+ this.toPayOrder({
646
+ is_ignore_unique_check: "Y"
647
+ })
648
+ }
649
+ })
650
+ } else {
651
+ this.price = "";
652
+ let params = {
653
+ ...this.options,
654
+ price: price,
655
+ num: num,
656
+ tag: tag_id,
657
+ shop_id: shop_id,
658
+ cart_order_id: res.cart_order_id
659
+ };
660
+ params = this.$xdUniHelper.jsonToParams(params)
661
+ this.$xdUniHelper.navigateTo({
662
+ url: this.cashPayPath + `?${params}`
663
+ })
664
+ }
665
+ })
666
+ .catch(error => {
667
+ console.error(error);
668
+ })
669
+ },
670
+ //选卡弹出项
671
+ useCardPop(data) {
672
+ return new Promise((resolve, reject) => {
673
+ uni.showModal({
674
+ title: '提示',
675
+ content: data.msg,
676
+ // confirmText: data.confirm_text,
677
+ // cancelText: data.cancel_text,
678
+ success: function (res) {
679
+ if (res.confirm) {
680
+ resolve(2);
681
+ } else if (res.cancel) {
682
+ resolve();
683
+ }
684
+ },
685
+ fail: function (res) {
686
+ reject(res);
687
+ }
688
+ });
689
+ })
690
+ },
691
+ handlerPrice(e) {
692
+ this.$nextTick(() => {
693
+ this.total_price = e.detail.value.replace(/^\D*([0-9]\d*\.?\d{0,2})?.*$/, '$1');
694
+ if (this.total_price > 10000) {
695
+ this.total_price = 10000
696
+ uni.showToast(
697
+ {
698
+ title: '核销金额不能超过10000',
699
+ icon: 'none'
700
+ }
701
+ )
702
+ }
703
+ })
704
+ },
705
+ handleThirdPay(pay_order_id, main_order_id) {
706
+ let { login_providers = [] } = this.projectAttr;
707
+ let data = {
708
+ order_id: pay_order_id,
709
+ channel_provider_id: this.channel_provider_id,
710
+ login_providers: login_providers.join(","),
711
+ };
712
+ //设置支付成功页面地址
713
+ if (!this.$configProject.isPreview) {
714
+ data['pay_success_url'] = '';
715
+ // #ifdef H5
716
+ data['pay_success_url'] = `${window.location.protocol}//${window.location.host}/${this.projectAttr.deploy_dir}`;
717
+ // #endif
718
+ data['pay_success_url'] += this.successPath + `?order_id=${main_order_id}`;
719
+ }
720
+
721
+ jfbRootExec("setConsumpThirdPlace", {
722
+ vm: this,
723
+ data,
724
+ })
725
+ .then((res) => {
726
+ this.$xdHideLoading();
727
+ const { channel_data } = res;
728
+ const paySignData = JSON.parse(Base64.decode(channel_data));
729
+ this.openTemplatePay(paySignData, (ps) => {
730
+ jfbRootExec("updateConsumpPay", {
731
+ vm: this,
732
+ data: {
733
+ main_order_id: main_order_id,
734
+ },
735
+ })
736
+ .then((res) => {
737
+ this.refresh = false;
738
+ this.$xdUniHelper.redirectTo({
739
+ url: this.successPath + `?order_id=${main_order_id}`
740
+ });
741
+ })
742
+ .catch(error => {
743
+ this.$xdLog.setARMSCustomError('update_loading_fail', { options: this.options, error });
744
+ });
745
+ })
746
+ });
747
+ },
748
+ //订单失效
749
+ handlerOderFail() {
750
+ console.warn("handlerOderFail");
751
+ this.temp_order_id = "";
752
+ clearInterval(this.validTimer);
753
+ clearTimeout(this.orderTimer);
754
+ clearInterval(this.secondTimer);
755
+ },
756
+ handleToShop() {
757
+ this.$xdUniHelper.navigateTo({
758
+ url: this.shopPath
759
+ });
760
+ },
761
+ handleToOpen() {
762
+ this.$xdUniHelper.navigateTo({
763
+ url: this.openPath
764
+ });
765
+ },
766
+ handleConfirm() {
767
+ this.showDialog = false;
768
+ this.p_getAsyncStep();
769
+ },
770
+ handlerTagRadio(item) {
771
+ this.tag_id = item.value;
772
+ this.canEdit = !item.is_static_price;
773
+ this.num = 1;
774
+ if (item.is_static_price) {
775
+ this.total_price = item.price_yuan
776
+ this.price = item.price_yuan
777
+ } else {
778
+ this.total_price = "";
779
+ this.price = "";
780
+ }
781
+ },
782
+ handleToCity() {
783
+ this.$xdUniHelper.navigateTo({
784
+ url: this.cityPath
785
+ },true);
786
+ },
787
+ handleNumberChange(num) {
788
+ let curTag = this.curTag;
789
+ this.total_price = this.$xdUniHelper.multiplyFloatNumber(curTag.price_yuan, num);
790
+ },
791
+ onJfbUnload(options) {
792
+ console.log('event.onJfbUnload', options)
793
+ if (this.secondTimer) clearInterval(this.secondTimer);
794
+ if (this.statusTimer) clearTimeout(this.statusTimer);
795
+ if (this.orderTimer) clearTimeout(this.orderTimer);
796
+ },
797
+ onJfbBack(options) {
798
+ console.log('event.onJfbBack', options)
799
+ if (this.secondTimer) clearInterval(this.secondTimer);
800
+ if (this.statusTimer) clearTimeout(this.statusTimer);
801
+ if (this.orderTimer) clearTimeout(this.orderTimer);
802
+ },
803
+ onJfbScroll(options) {
804
+ console.log('event.onJfbScroll', options)
805
+ },
806
+ onJfbReachBottom(options) {
807
+ console.log('event.onJfbReachBottom', options)
808
+ },
809
+ onJfbShow(options) {
810
+ console.log('event.onJfbShow', options)
811
+ if (this.refresh) {
812
+ this.onJfbLoad(options);
813
+ }
814
+ },
815
+ onJfbHide(options) {
816
+ console.log('event.onJfbHide', options)
817
+ if (this.secondTimer) clearInterval(this.secondTimer);
818
+ if (this.statusTimer) clearTimeout(this.statusTimer);
819
+ if (this.orderTimer) clearTimeout(this.orderTimer);
820
+ },
821
+ onJfbUpdate(...data) {
822
+ console.log('event.onJfbUpdate', data)
823
+ },
824
+ onJfbCustomEvent(options) {
825
+ console.log('event.onJfbReachBottom', options)
826
+ },
827
+ }
828
+ }
829
+
830
+ </script>
831
+
832
+ <style scoped lang="less">
833
+ @import "./JfbBaseConsumpCodeLess.less";
834
+
835
+ .jfb-base-consump-code {
836
+ &__body {
837
+ .content-box {
838
+ margin: 0 30rpx 0 30rpx;
839
+ background-color: #fff;
840
+ padding: 81rpx 32rpx 32rpx 32rpx;
841
+ border-radius: 24rpx;
842
+ position: relative;
843
+ top: 158rpx;
844
+ display: flex;
845
+ flex-direction: column;
846
+ align-items: center;
847
+ justify-content: center;
848
+
849
+ .logo-box {
850
+ width: 154rpx;
851
+ height: 154rpx;
852
+ background-color: #fff;
853
+ position: absolute;
854
+ top: -100rpx;
855
+ left: 50%;
856
+ transform: translate(-50%, 0);
857
+ display: flex;
858
+ justify-content: center;
859
+ align-items: center;
860
+ border-radius: 50%;
861
+
862
+ .logo {
863
+ width: 144rpx;
864
+ height: 144rpx;
865
+ border-radius: 50%;
866
+ }
867
+ }
868
+
869
+ }
870
+
871
+ .shop {
872
+ border: 2rpx solid #E6E6E6;
873
+ padding: 30rpx 40rpx;
874
+ border-radius: 24rpx;
875
+ color: #fff;
876
+ font-size: 26rpx;
877
+ display: flex;
878
+ justify-content: space-between;
879
+ align-items: center;
880
+ width: 520rpx;
881
+ background: linear-gradient(135deg, #2D2824 0%, #625344 100%);
882
+ ;
883
+ }
884
+
885
+ .bar-code {
886
+ height: 120rpx;
887
+ width: 600rpx;
888
+ margin: 38rpx 0 0 0;
889
+
890
+ &-text {
891
+ color: #999999;
892
+ font-size: 24rpx;
893
+ text-align: center;
894
+ }
895
+ }
896
+
897
+ .qrcode {
898
+ width: 272rpx;
899
+ height: 272rpx;
900
+ margin: 54rpx auto 18rpx auto;
901
+ display: flex;
902
+ justify-content: center;
903
+ align-items: center;
904
+
905
+ }
906
+
907
+ .code-refresh {
908
+ color: #999;
909
+ font-size: 24rpx;
910
+ width: 95%;
911
+ text-align: center;
912
+ }
913
+
914
+ .is-vip {
915
+ font-size: 28rpx;
916
+ color: #333333;
917
+ text-align: center;
918
+ padding-top: 40rpx;
919
+ margin-top: 40rpx;
920
+ border-top: 1px dashed rgba(229, 229, 229, 1);
921
+
922
+ &>text:first-child {
923
+ font-weight: 700;
924
+ }
925
+
926
+ &>text:last-child {
927
+ color: #D10300;
928
+ }
929
+ }
930
+
931
+ .vip {
932
+ display: flex;
933
+ align-items: center;
934
+ justify-content: space-between;
935
+ width: 100%;
936
+ padding-top: 40rpx;
937
+ margin-top: 40rpx;
938
+ border-top: 1px dashed rgba(229, 229, 229, 1);
939
+
940
+ &-title {
941
+ display: flex;
942
+ align-items: center;
943
+ padding-left: 20rpx;
944
+
945
+ &-left {
946
+ background: linear-gradient(90deg, #665646 0%, #473D34 52.05%, #2B2623 100%);
947
+ color: #EFD5C3;
948
+ font-size: 22rpx;
949
+ border-radius: 74rpx 0rpx 0rpx 74rpx;
950
+ padding: 18rpx 18rpx 18rpx 22rpx;
951
+ display: flex;
952
+ align-items: center;
953
+ justify-content: center;
954
+ }
955
+
956
+ &-right {
957
+ background: linear-gradient(270deg, #FCD6B8 0%, #FCEDD7 100%);
958
+ border-radius: 0px 80rpx 80rpx 0px;
959
+ padding: 5rpx 32rpx;
960
+ font-size: 22rpx;
961
+ display: flex;
962
+ align-items: center;
963
+ justify-content: center;
964
+
965
+ &>text {
966
+ color: #D10300;
967
+ font-weight: 700;
968
+ font-size: 43rpx;
969
+ margin-right: 5rpx;
970
+ }
971
+ }
972
+ }
973
+
974
+ &-open {
975
+ display: flex;
976
+ color: #86541E;
977
+ font-size: 28rpx;
978
+ align-items: center;
979
+
980
+ &>text {
981
+ margin: 0 8rpx;
982
+ }
983
+ }
984
+ }
985
+
986
+ .mask-box {
987
+ margin: 0 auto;
988
+
989
+ .mask {
990
+ width: 660rpx;
991
+ height: 640rpx;
992
+ display: flex;
993
+ flex-direction: column;
994
+ align-items: center;
995
+ justify-content: center;
996
+ background: url('https://img1-b.jufubao.cn/uploads/20250507/1a97fda8cd8804f9bcf984da10e0a666.png?x-oss-process=style/size8') no-repeat;
997
+ background-size: 100% 100%;
998
+
999
+ &-title {
1000
+ font-size: 26rpx;
1001
+ color: #666666;
1002
+ margin-bottom: 48rpx;
1003
+ width: 300rpx;
1004
+ text-align: center;
1005
+ }
1006
+
1007
+ &-open {
1008
+ font-size: 28rpx;
1009
+ }
1010
+ }
1011
+ }
1012
+
1013
+ .verification {
1014
+ &-item {
1015
+ display: flex;
1016
+ margin-top: 60rpx;
1017
+ align-items: baseline;
1018
+
1019
+ &-label {
1020
+ color: #999999;
1021
+ font-size: 30rpx;
1022
+ margin-right: 64rpx;
1023
+ flex-shrink: 0;
1024
+ }
1025
+
1026
+ &-tags {
1027
+ display: flex;
1028
+ align-items: flex-start;
1029
+ flex-wrap: wrap;
1030
+
1031
+ &>view {
1032
+ margin-right: 32rpx;
1033
+ font-size: 28rpx;
1034
+ border-radius: 12rpx;
1035
+ padding: 16rpx 24rpx;
1036
+ border: 2rpx solid #EEEEEE;
1037
+ color: #CCCCCC;
1038
+ margin-bottom: 18rpx;
1039
+ }
1040
+
1041
+ &>view:last-child {
1042
+ margin-bottom: 0;
1043
+ }
1044
+
1045
+ }
1046
+
1047
+ &-input {
1048
+ display: flex;
1049
+ flex-direction: column;
1050
+ text-align: center;
1051
+ font-size: 28rpx;
1052
+
1053
+ &>input {
1054
+ border-radius: 10rpx;
1055
+ border: 2rpx solid #EEEEEE;
1056
+ padding: 20rpx 24rpx;
1057
+ }
1058
+
1059
+ .tip {
1060
+ font-size: 18rpx;
1061
+ margin-top: 12rpx;
1062
+ }
1063
+ }
1064
+ }
1065
+ }
1066
+
1067
+ .nodata {
1068
+ color: #f00;
1069
+ line-height: unit(68, rpx);
1070
+ font-size: unit(28, rpx);
1071
+ }
1072
+ }
1073
+
1074
+ .dialog-title {
1075
+ color: #333;
1076
+ font-size: 32rpx;
1077
+ }
1078
+
1079
+ .dialog-content {
1080
+ padding-bottom: 30rpx;
1081
+ border-bottom: 2rpx dashed #E5E5E5;
1082
+ font-size: 26rpx;
1083
+ color: #999999;
1084
+
1085
+ &>view:first-child {
1086
+ margin-bottom: 10rpx;
1087
+ }
1088
+ }
1089
+
1090
+ .dialog-btns {
1091
+ width: 100%;
1092
+ display: flex;
1093
+ justify-content: space-around;
1094
+
1095
+ }
1096
+
1097
+ .location-dialog-content {
1098
+ display: flex;
1099
+ justify-content: center;
1100
+ align-items: center;
1101
+ border-bottom: 2rpx dashed #E5E5E5;
1102
+ padding-bottom: 30rpx;
1103
+
1104
+ &>view:first-child {
1105
+ font-size: 26rpx;
1106
+ color: #999999;
1107
+ width: 60%;
1108
+ }
1109
+ }
1110
+
1111
+ .location-dialog-title ::v-deep .xd-dailog__body-title {
1112
+ padding-top: 40rpx;
1113
+ padding-bottom: 32rpx;
1114
+ height: auto;
1115
+ line-height: inherit;
1116
+ }
1117
+ }
1118
+ </style>