1
李凌
2025-09-08 f076a06808275f8a955c5545cf73553997b4bf00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
<template>
  <div id="full" class="flex flex-col w-full h-full">
    <order-nav />
    <div class="flex-1 tabBackground" style="overflow-y: auto">
      <div class="pb-40 text-center c2cColor mainBackground">
        <div>
          <h1 class="font-600 font-36">{{ $t("请确认已收到付款") }}</h1>
          <div class="flex justify-center items-center mt-42 font-60 font-600">
            <span class="relative bottom-2 mr-10 font-44">{{
              detail.currency
            }}</span>
            <span>{{ detail.amount }}</span>
            <!--            <span class="relative bottom-5 ml-16 font-400 font-44">USDT</span>-->
          </div>
          <div class="mt-32">
            <van-icon class="" color="#9399A4" name="arrow-down" />
          </div>
          <div class="flex justify-center items-center mt-50" @click="
            $router.push({
              path: '/chat',
              query: JSON.stringify(),
            })
            ">
            <van-badge class="w-36 h-34 mr-22">
              <img class="w-full h-full" src="@/assets/image/c2c/Vector.png" alt="" />
            </van-badge>
            <span class="font-32">{{ $t("联系买家") }}</span>
          </div>
        </div>
      </div>
      <div class="w-full pt-50 pb-72 tabBackground">
        <div class="ml-50 pl-38 pr-32 msg relative">
          <div
            class="circle absolute top-0 left-0 z-10 w-45 h-45 flex justify-center items-center bg-blue text-white font-26"
            style="border-radius: 50%">
            1
          </div>
          <div
            class="circle absolute bottom-90 left-0 z-10 w-45 h-45 flex justify-center items-center bg-blue text-white font-26"
            style="border-radius: 50%">
            2
          </div>
          <div class="font-30 c2cColor">
            {{ $t("登陆您下方的收款帐户,确认买家的付款已到账。") }}
          </div>
          <div class="mt-22 px-24 py-34 mainBackground rounded-2xl msg-wrapper">
            <div class="flex items-center">
              <div class="w-6 h-28 rounded-xl mr-20" style="background: #e7bb41"></div>
              <span class="ml-8 font-30 c2cColor">{{ detail.methodName }}</span>
            </div>
            <van-cell-group>
              <van-cell class="order-number " v-for="item in params" :key="item.id">
                <template #title>
                  <div>
                    <span class="mr-14 textColor">{{ item.name }}</span>
                  </div>
                </template>
                <template #default>
                  <div class="flex justify-end">
                    <span class="mr-14 textColor">{{ item.value }}</span>
                  </div>
                </template>
              </van-cell>
              <!-- <van-cell class="order-number" title="银行卡号">
                <template #default>
                  <div class="flex justify-end">
                    <span class="mr-14">{{ orderInfo.paramValue1 }}</span>
                  </div>
                </template>
              </van-cell>
              <van-cell
                class="order-number buyer"
                style="background: #f5f5f5"
                title="买家实名"
              >
                <template #default>
                  <div class="flex justify-end">
                    <span class="mr-14">{{ $t(orderInfo.realName) }}</span>
                  </div>
                </template>
              </van-cell> -->
            </van-cell-group>
          </div>
          <div class="mt-39 font-30 c2cColor">
            {{
              $t("确认收到款项后,返回平台,点击下方按钮「我已确认收款」。")
            }}
          </div>
          <div class="flex items-center mt-24">
            <img class="w-24 h-24" src="@/assets/image/c2c/Group41-2.png" alt="" />
            <span class="ml-14 font-20 text-blue">{{
              $t("若您未收到款项,请勿点击按钮,避免资产损失。")
            }}</span>
          </div>
        </div>
      </div>
      <div class="px-32 my-34 mainBackground">
        <van-collapse v-model="activeNames">
          <van-collapse-item name="1">
            <template #title>
              <span class="c2cColor font-28">{{ $t("交易条款") }}</span>
            </template>
            <van-divider />
            <p class="font-28 c2cColor pt-20">{{ $t("资金绝对安全") }}</p>
            <p class="mt-20 font-28 c2cColor">
              {{ $t("平时订单较多,看见了会立马打款。急单勿拍!") }}
            </p>
          </van-collapse-item>
        </van-collapse>
      </div>
    </div>
    <div class="px-40 pt-54 pb-40 flex font-30 mainBackground">
      <van-button class="w-244 h-80 mr-16 rounded-2xl c2cColor greyBg border-none" type="primary"
        @click="$router.push({ path: '/appeal/page' })">{{ $t("帮助") }}
      </van-button>
      <van-button class="flex-1 h-80 rounded-2xl bg-blue text-white border-none" type="primary" @click="handleClick">{{
        $t("我已确认收款")
      }}
      </van-button>
    </div>
 
    <!--  弹窗  -->
    <van-popup v-model:show="show" round position="bottom">
      <div class="pt-44">
        <div class="mb-42 font-600 font-32 text-center">
          {{ $t("您是否已收到款项?") }}
        </div>
        <div class="">
          <van-radio-group v-model="radio">
            <van-radio name="1" class="p-32" :class="{ active: radio === '1' }">
              <span>{{ $t("我还没登陆收款账户确认款项无误。") }}</span>
              <img class="w-40 h-40 gou" src="@/assets/image/c2c/Group2318.png" alt="" />
              <template #icon="props">
                <img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
              </template>
            </van-radio>
            <van-radio name="2" class="p-32" :class="{ active: radio === '2' }">
              <span>{{
                $t(
                  "我已确认收款无误,付款人与买家在DOME上的验证姓名一致,确认放行数字货币给买家。"
                )
              }}</span>
              <img class="w-40 h-40 gou" src="@/assets/image/c2c/Group2318.png" alt="" />
              <template #icon="props">
                <img class="img-icon" :src="props.checked ? activeIcon : inactiveIcon" />
              </template>
            </van-radio>
          </van-radio-group>
        </div>
        <div class="mt-52">
          <div class="flex box-border pl-24 pb-31 pr-52">
            <img class="w-36 h-36 mr-14" src="@/assets/image/c2c/Group41.png" alt="" />
            <div class="font-24">
              <p class="font-28" style="color: #454649">{{ $t("温馨提示") }}</p>
              <p class="my-14">
                {{
                  $t(
                    "1.收款时,请勿盲目相信转账截图,务必打开收款账户核对款项无误。"
                  )
                }}
              </p>
              <p class="my-20">
                {{ $t("2.若付款仍在进行中,请等待款项到账后再放币。") }}
              </p>
              <p>
                {{
                  $t(
                    "3.请勿接受第三方付款。若收到与APP上的验证姓名不相匹配的款项,请立即退款,并避免因放行后遭银行拒付而造成财务损失。"
                  )
                }}
              </p>
            </div>
          </div>
        </div>
        <div class="mt-78 px-34 pb-40 flex font-30 tabBackground">
          <van-button class="w-244 h-80 mr-16 rounded-2xl c2cColor bg-grey border-none" type="primary">{{ $t("帮助") }}
          </van-button>
          <van-button class="flex-1 h-80 rounded-2xl bg-blue text-white border-none" type="primary"
            :disabled="radio === '1'" @click="onConfirm">{{ $t("我已确认收款") }}
          </van-button>
        </div>
      </div>
    </van-popup>
    <div v-if="isLoading" class="fixed top-0 left-0 w-full h-full loading-wrapper">
      <van-loading color="#fff" />
    </div>
  </div>
</template>
 
<script>
import { mapState } from "vuex";
import {
  Badge,
  Button,
  Cell,
  CellGroup,
  Collapse,
  CollapseItem,
  CountDown,
  Divider,
  Icon,
  Popup,
  Radio,
  RadioGroup,
  Loading,
  Toast,
} from "vant";
import OrderNav from "@/components/order-nav/OrderNav.vue";
import Question from "./components/Question.vue";
import otcApi from "@/service/otc";
 
export default {
  name: "ConfirmedPaid",
  data() {
    return {
      isLoading: false,
      show: false,
      activeNames: [],
      radio: "1",
      activeIcon: new URL('@/assets/image/c2c/Group23172.png', import.meta.url).href,
      inactiveIcon: new URL('@/assets/image/c2c/Group2317.png', import.meta.url).href,
      passwd: "",
      detail: {},
      params: [],
    };
  },
  mounted() {
 
  },
  activated() {
    const order_no = this.$store.state.c2c.order_no;
    otcApi.ctcOrderGetDetail({ order_no, language: this.$i18n.locale }).then((res) => {
      this.detail = res.data;
      this.params = [{ id: 0, name: this.$t('姓名'), value: this.detail.realName }];
      for (let i = 1; i < 16; i++) {
        this.params.push({
          id: i,
          name: this.detail["paramName" + i],
          value: this.detail["paramValue" + i],
        });
      }
      this.params = this.params.filter((item) => item.name && item.value);
      console.log(this.detail);
    });
    this.$bus.$on("returnPwd", (pwd) => {
      this.passwd = pwd;
      this.enterTrade();
    });
  },
  methods: {
    onConfirm() {
      this.$router.push({
        path: "/withdraw/securityVerification",
        query: {
          type: "sell",
        },
      });
      // this.$router.go(-1)
    },
    back() {
      this.show = false;
    },
    handleClick() {
      console.log("handle");
      this.show = true;
    },
    enterTrade() {
      // 订单放行
      otcApi.ctcOrderPass({
        order_no: this.detail.orderNo,
        safe_password: this.passwd,
      }).then((res) => {
        this.isLoading = false;
        this.$router.replace({
          path: "/tradeSuccessSell",
        });
      });
    },
  },
  // watch: {
  //   passwd() {
  //     if (this.passwd === '000000') {
  //       console.log(111);
 
  //       this.isLoading = true;
 
  //       // 发送请求
  //       this.enterTrade();
  //     }
  //   }
  // },
  components: {
    [CountDown.name]: CountDown,
    [Cell.name]: Cell,
    [CellGroup.name]: CellGroup,
    [Button.name]: Button,
    [Popup.name]: Popup,
    [Icon.name]: Icon,
    [Badge.name]: Badge,
    [Collapse.name]: Collapse,
    [CollapseItem.name]: CollapseItem,
    [Divider.name]: Divider,
    [RadioGroup.name]: RadioGroup,
    [Radio.name]: Radio,
    [Loading.name]: Loading,
    OrderNav,
    Question,
  },
  beforeDestroy() {
    this.$bus.$off("returnPwd");
  },
};
</script>
 
<style lang="scss" scoped>
@import "@/assets/init.scss";
@import "@/assets/css/copy2.scss";
 
#full {
  ::v-deep .van-count-down {
    font-size: 26px;
    color: $blue;
  }
 
  .msg-wrapper {
    .van-cell {
      margin-top: 28px;
      color: #fff;
 
      .van-cell__title,
      .van-cell__value {
        color: $text_color;
        font-size: 26px;
      }
    }
  }
 
  ::v-deep .van-cell-group {
    background: $main_background;
  }
 
  ::v-deep .van-cell,
  ::v-deep .van-collapse-item__content {
    background: $main_background;
  }
 
  ::v-deep .van-cell::after {
    display: none;
  }
 
  ::v-deep .van-collapse-item__title--expanded::after {
    display: none;
  }
 
  ::v-deep ::v-deep .van-collapse-item__content {
    padding: 0;
  }
 
  ::v-deep .van-radio__label {
    position: relative;
    width: 664px;
    margin-left: 20px;
 
    .gou {
      display: none;
      position: absolute;
      top: 50%;
      right: -54px;
      transform: translateY(-50%);
    }
  }
 
  ::v-deep .loading-wrapper {
    z-index: 20;
    background: rgba(0, 0, 0, 0.3);
 
    .van-loading {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
 
  ::v-deep .van-divider {
    border-color: $line_color;
  }
}
 
 
 
.active {
  background: #fafafa;
 
  .gou {
    display: block !important;
  }
}
 
.msg {
  //border-left: 1px solid #EAEBEE;
 
  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 86%;
    background: #eaebee;
  }
}
 
.msg-wrapper {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
 
.circle {
  transform: translateX(-50%);
}
 
.buyer {
  padding: 10px 18px !important;
  font-size: 28px;
}
 
.img-icon {
  width: 32px;
  height: 32px;
}
</style>