jufubao-base 1.0.243-beta201 → 1.0.243-beta202

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