cart2.wxml 55.3 KB
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 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
<!-- 促销弹出框 -->
<pro_pop id="pro_pop" bind:sure_cx_group="sure_cx_group"></pro_pop>

<wxs module="filter" src="c_filter.wxs"></wxs>
<wxs src="filter.wxs" module="util"></wxs>
<wxs module="filters" src="../../../../utils/filter.wxs"></wxs>

<form>
  <view class="container">
    <block wx:if="{{show_submit}}">
      <!-- 立即购买的时候 -->
      <block wx:if="{{is_b_now==1}}">
        <view class="tab-container">
          <view class="tab-wrapper">
            <view hidden="{{bn_t_exp_t==2}}" bindtap='setexptype2' data-t='1' class="tab {{bn_exp_type == 1? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">门店自提</view>

            <view hidden="{{bn_t_exp_t==1}}" bindtap='setexptype2' data-t='0' class="tab {{bn_exp_type== 0 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">快递邮寄</view>

            <!-- 同城配送 -->
            <block wx:if="{{show_same_city}}">
              <view hidden="{{bn_t_exp_t==3}}" bindtap='setexptype2' data-t='2' class="tab {{bn_exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
            </block>

          </view>
        </view>
      </block>
      <!-- 购物购买只有一单的时候 -->
      <block wx:if="{{is_b_now==0 && cartlist.length==1}}">
        <view class="tab-container">
          <view class="tab-wrapper">
            <view hidden="{{cartlist[0].distr_t==2}}" bindtap='setexptype_w2' data-ind="0" data-t='1' class="tab {{cartlist[0].exp_type == 1? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">门店自提</view>

            <view hidden="{{cartlist[0].distr_t==1}}" bindtap='setexptype_w2' data-ind="0" data-t='0' class="tab {{cartlist[0].exp_type== 0 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">快递邮寄</view>

            <!-- 判断能不能显示同城配送 -->
            <block wx:if="{{cartlist[0].show_same_city}}">
              <view hidden="{{cartlist[0].distr_t==3}}" bindtap='setexptype_w2' data-ind="0" data-t='2' class="tab {{cartlist[0].exp_type== 2 ? 'active':''}}" data-txt='cartlist[0].exp_type' data-wl_txt='cartlist[0].wind' data-index="{{index}}">同城配送</view>
            </block>

          </view>
        </view>
      </block>
    </block>

    <!--要进行判断地址是否显示---->
    <view bindtap="enterAddressPage" class="user-mes mgt20" hidden='{{(bn_exp_type==1 && is_b_now==1) || (is_all_zt==1 && is_b_now==0 )}}'>
      <!---默认地址显示------>
      <block wx:if="{{user_addr!=null}}">

        <view class="user-contact">
          <text class="bold fs36 pdr20">{{user_addr.consignee}}</text>
          <text class="fs28">{{user_addr.mobile}}</text>
        </view>
        <view class="location">
          <view class="address fs26 pdt20">
            <view class="pos-icon">
              <image class="wh100 bdr14" src="{{imgUrl}}/miniapp/images/goodscategory/new_position.png"></image>
            </view>
            {{user_addr.more_address}}{{' '}}{{user_addr.address}}
          </view>

        </view>
        <view class="update-logistics">
          <!-- <image class="arrow-rigth" src="{{imgUrl}}/miniapp/images/new_position.png"></image> -->
          <view class="xc-right"></view>
        </view>
      </block>
      <!---先增地址------>
      <block wx:else>
        <view class="add_new">
          <image class="addr_jia" src="{{imgUrl}}/miniapp/images/jia.png"></image>添加地址
        </view>
      </block>
      <!-- <view class="border-img">
				<image class="wh100" src="{{imgUrl}}/miniapp/images/order/new_dividing_line.png"></image>
			</view> -->
    </view>

    <!-- -------------------购物车进来,有可能多单-------------------- -->
    <block wx:if="{{is_b_now==0}}">
      <!-- <view class="xc-border main-top"></view> -->
      <view wx:for="{{cartlist}}" wx:for-index="pidx">
        <view class="use-item bfff bdr_t-14 mgt20">
          <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'></image>
          <!-- <view>门店:{{item.pname}}</view> -->
          <view>{{item.pname}}</view>
        </view>

        <!-- for循环使用 -->
        <block wx:for="{{item.goods}}" wx:for-index="idx" wx:for-item="items">
            <view class="order-detail" >
              <!----商品图片----->
              <view class="goods-img" style="position: relative; overflow: hidden" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
                <image wx:if="{{items.is_gift}}" src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>
                <text class="zuhe" wx:if="{{items.prom_type==7}}">组合购</text>
                <image class="wh100 bdr14" src="{{items.original_img}}" binderror='cart_set_err' data-err='cartlist[{{pidx}}].goods[{{idx}}].original_img'></image>
              </view>
              <!----商品名称规格---->
              <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
                <view class="goods-name ellipsis-2">{{items.goods_name}}</view>
                <!-- 商品属性 -->
                <view class="flex-vertical fs28 color-gray n_guige">
                  <view class="goods-color">
                    <block><text>{{filters.show_gui_ge(items.goods_spec,items.goods_color)}}</text></block>
                  </view>
                </view>

                <!-----商品名称规格------>
                <view class="order-num flex-space-between">
                  <view wx:if="{{items.prom_type==10}}" class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text><text>({{items.discount}}折)</text></view>
                  <view wx:else class="co-red">¥<text class="fs36">{{filters.toFix(items.goods_price,2)}}</text></view>
                  <view style="color: red;" wx:if="{{items.use_commission && items.use_commission*1>0}}">佣金:{{filters.toFix(items.use_commission/items.goods_num,2)}}*{{items.goods_num}}</view>
                  <view class="goods-num">x{{items.goods_num}}</view>
                </view>
              </navigator>
            </view>


             <!-- 验证活动是不是多个,要不要显示切换 -->
             <!-- 新增促销多活动的排版,单商品的时候 -->
             <block  wx:if="{{(util.is_more_act(items,item.show_can_cx) && item.show_can_cx[items.goods_id] && item.show_can_cx[items.goods_id].act_arr.length>1)}}">


               <!-- 组合购和阶梯促销要特殊出来 -->
               <block wx:if="{{item.show_can_cx[items.goods_id].sele_prom_type==7 || item.show_can_cx[items.goods_id].sele_prom_type==10 }}">

                 <!-- 是不是活动的最后一个商品 -->
                 <view class="bdb16" wx:if="{{items.is_act_last}}"  >
                   <view bindtap="switch_cx_group"
                         data-index="{{pidx}}"
                         data-gd_key="{{items.goods_id}}"
                         class="cx-frame flex" style="position: relative">
                     <view class="cx-sizs fs30">促销</view>
                     <view class="flex ai_c f1 pdh20">
                       <view class="xc-coupon-fram" wx:for="{{item.show_can_cx[items.goods_id].act_arr}}" >
                         <view wx:if="{{item.prom_type==3}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">优惠促销</view>
                         <view wx:if="{{item.prom_type==5}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">搭配促销</view>
                         <view wx:if="{{item.prom_type==7}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">组合购</view>
                         <view wx:if="{{item.prom_type==10}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">阶梯促销</view>
                       </view>
                     </view>
                     <view class="cx-obtain-coupon wsize">
                       <text class="bg_jj"></text>
                     </view>
                   </view>
                 </view>

               </block>
               <block wx:else>
                   <view class="bdb16">
                   <view bindtap="switch_cx_group"
                         data-index="{{pidx}}"
                         data-gd_key="{{items.goods_id}}"
                         class="cx-frame flex" style="position: relative">
                     <view class="cx-sizs fs30">促销</view>
                     <view class="flex ai_c f1 pdh20">
                       <view class="xc-coupon-fram" wx:for="{{item.show_can_cx[items.goods_id].act_arr}}" >
                         <view wx:if="{{item.prom_type==3}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">优惠促销</view>
                         <view wx:if="{{item.prom_type==5}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">搭配促销</view>
                         <view wx:if="{{item.prom_type==7}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">组合购</view>
                         <view wx:if="{{item.prom_type==10}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">阶梯促销</view>
                       </view>
                     </view>
                     <view class="cx-obtain-coupon wsize">
                       <text class="bg_jj"></text>
                     </view>
                   </view>
                 </view>
               </block>



             </block>

             <!--此时是多个商品参与活动的切换 验证活动是不是多个,要不要显示切换,同时要最后一个商品显示 -->
             <!-- 新增促销多活动的排版,多商品的时候 -->
             <block wx:if="{{item.show_can_cx}}">
                    <block  wx:for="{{item.show_can_cx}}" wx:for-item="pitem">

                      <!-- 组合购和阶梯促销要特殊出来 -->
                      <block wx:if="{{ pitem.sele_prom_type==7 || pitem.sele_prom_type==10 }}">
                        <!-- 是不是活动的最后一个商品 -->
                        <view class="bdb16" wx:if="{{pitem.is_duo_gd && pitem.act_arr.length>1 && items.is_act_last}}" >

                          <view bindtap="switch_cx_group"
                                data-index="{{pidx}}"
                                data-gd_key="{{index}}"
                                class="cx-frame flex" style="position: relative">
                            <view class="cx-sizs fs30">促销</view>
                            <view class="flex ai_c f1 pdh20">
                              <view class="xc-coupon-fram" wx:for="{{pitem.act_arr}}" >
                                <view wx:if="{{item.prom_type==3}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">优惠促销</view>
                                <view wx:if="{{item.prom_type==5}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">搭配促销</view>
                                <view wx:if="{{item.prom_type==7}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">组合购</view>
                                <view wx:if="{{item.prom_type==10}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">阶梯促销</view>
                              </view>
                            </view>
                            <view class="cx-obtain-coupon wsize">
                              <text class="bg_jj"></text>
                            </view>
                          </view>
                        </view>
                      </block>
                      <block wx:else>
                        <view class="bdb16" wx:if="{{pitem.is_duo_gd && pitem.act_arr.length>1 && util.check_is_last(index,items.goods_id) }}" >
                          <view bindtap="switch_cx_group"
                                data-index="{{pidx}}"
                                data-gd_key="{{index}}"
                                class="cx-frame flex" style="position: relative">
                            <view class="cx-sizs fs30">促销</view>
                            <view class="flex ai_c f1 pdh20">
                              <view class="xc-coupon-fram" wx:for="{{pitem.act_arr}}" >
                                <view wx:if="{{item.prom_type==3}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">优惠促销</view>
                                <view wx:if="{{item.prom_type==5}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">搭配促销</view>
                                <view wx:if="{{item.prom_type==7}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">组合购</view>
                                <view wx:if="{{item.prom_type==10}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">阶梯促销</view>
                              </view>
                            </view>
                            <view class="cx-obtain-coupon wsize">
                              <text class="bg_jj"></text>
                            </view>
                          </view>
                        </view>
                      </block>

                    </block>
                  </block>

        </block>

        <!--此时是多个商品参与活动的切换 验证活动是不是多个,要不要显示切换 -->
        <!-- 新增促销多活动的排版 -->
<!--        <block wx:if="{{item.show_can_cx}}">-->
<!--          <block  wx:for="{{item.show_can_cx}}" wx:for-item="pitem">-->
<!--            <view class="bdb16" wx:if="{{pitem.is_duo_gd && pitem.act_arr.length>1}}" >-->
<!--              <view bindtap="switch_cx_group"-->
<!--                    data-index="{{pidx}}"-->
<!--                    data-gd_key="{{index}}"-->
<!--                    class="cx-frame flex" style="position: relative">-->
<!--                <view class="cx-sizs fs30">促销</view>-->
<!--                <view class="flex ai_c f1 pdh20">-->
<!--                  <view class="xc-coupon-fram" wx:for="{{pitem.act_arr}}" >-->
<!--                    <view wx:if="{{item.prom_type==3}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">优惠促销</view>-->
<!--                    <view wx:if="{{item.prom_type==5}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">搭配促销</view>-->
<!--                    <view wx:if="{{item.prom_type==7}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">组合购</view>-->
<!--                    <view wx:if="{{item.prom_type==10}}" class="xc-coupon t-c four-level-word {{!item.sele?'gray':'' }} ">阶梯促销</view>-->
<!--                  </view>-->
<!--                </view>-->
<!--                <view class="cx-obtain-coupon wsize">-->
<!--                  <text class="bg_jj"></text>-->
<!--                </view>-->
<!--              </view>-->
<!--            </view>-->
<!--          </block>-->
<!--        </block>-->



        <!-- 使用搭配 -->
        <cart_collect_temp id="col{{pidx}}"
                bind:childFun="select_coll" sales_rules="{{sales_rules}}"
                pick="{{item.pickup_id}}" is_cart="1" cart_index="{{pidx}}"
                distr_t="{{item.distr_t}}"
                appoint_pick_keyid="{{appoint_pick_keyid}}" all_collocation_list="{{item.collocationList}}" />

        <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
        <view class="plus_buy fs28" wx:if="{{item.card_cut_price>0}}">
          <view class="flex">
            <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
              <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
                </image>
                <text class="card_name">{{show_card.CardName}}</text>
            </view>
            <view>立减 <text style="color:#f23030;">{{filters.toFix(item.card_cut_price,2) }}</text> </view>
          </view>
          <view>
            <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
          </view>
          <!-- 三角形 -->
          <view class="car_tri_up"></view>
          <!-- 立即开通跳转 -->
          <view bindtap="buycard" class="card_op">立即开通</view>
        </view>

        <!-- 有送礼包 -->
        <view wx:if="{{send_lb[item.pickup_id]}}">
          <block wx:for="{{send_lb[item.pickup_id]}}" wx:key="id" wx:for-item="send">
            <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{send.l_id}}" data-flag="{{send.flag}}" bindtap="viewLbDetails">
              <view class="flex ai_c">
                <view class="circle1"></view>{{send.zxlbtitle?send.zxlbtitle:send.lbtitle}}
                <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}"></view>{{item.zxlbtitle}} -->
              </view>
              <view class="flex ai_c">
                x{{send.num}}<text class="bg_jj"></text>
              </view>
            </view>
          </block>
        </view>
        <!-- 每月礼包 -->
        <view wx:if="{{month_lb[item.pickup_id]}}">
          <block wx:for="{{month_lb[item.pickup_id]}}" wx:key="id" wx:for-item="send">
            <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{send.month_id}}" data-flag="2" bindtap="viewLbDetails">
              <view class="flex ai_c">
                <view class="circle1"></view>{{send.monthlbtitle}}
                <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
              </view>
              <view class="flex ai_c">
                x{{send.monthnum}}<text class="bg_jj"></text>
              </view>
            </view>
          </block>
        </view>
        <!-- 赠品的显示 -->
        <view wx:if="{{send_gf[item.pickup_id]}}">
          <block wx:for="{{send_gf[item.pickup_id]}}" wx:for-item="iter">
            <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-pk="{{item.pickup_id}}" data-index="{{index}}" bindtap="show_sele_gift">
              <view class="flex ai_c">
                <view class="circle1"></view>{{iter.name}} 可选赠品{{iter.zp_num}}个
              </view>

              <view class="flex ai_c" wx:if="{{iter.selected}}">
                已选择<text class="bg_jj"></text>
              </view>

              <view class="flex ai_c" wx:else="{{}}">
                未选择<text class="bg_jj"></text>
              </view>

            </view>
          </block>
        </view>

        <!-----使用优惠券------>
        <view class="xc-coupon-frame flex-center" data-bn="0" bindtap="open_coupon_list" wx:if="{{!(yh_is_xz_yh[item.pickup_id]) && ((item.quan_list && item.quan_list.length>0  ) || get_by_quan_list_cart[item.pickup_id]!=null && item.can_num>0)}}" data-cind="{{pidx}}" data-pickid="{{item.pickup_id}}">
          <view class="work-frame flex-space-between">
            <view class="work">优惠券<text class="quan_num_show fs20">{{item.can_num}}张可用</text></view>
            <view class="xc-right-frame">
              <text wx:if="{{using_quan[item.pickup_id].is_nouse}}">不使用</text>
              <text wx:if="{{using_quan[item.pickup_id].money}}">¥{{using_quan[item.pickup_id].money}}元优惠券</text>
              <text wx:if="{{using_quan[item.pickup_id].isby}}">包邮券</text>
              <view class="xc-right"></view>
            </view>
          </view>
        </view>


        <view class="set-mes bdr_b-14">
          <view wx:if="{{order.store_prom}}">
            <icon color="#f23030" size="16" type="info"></icon>
            {{order.store_prom}}
          </view>

          <!-- 当是物流很多单的时候 -->
          <view class="use-item flex-space-between" wx:if="{{cartlist.length>1 && show_submit}}">
            <view class="flex-vertical">
              <view bindtap='setexptype_w2' data-ind="{{pidx}}" data-t='1' data-txt='cartlist[{{pidx}}].exp_type' style="padding-right:26rpx;display:{{item.distr_t==2?'none':'flex;align-items: center'}};">
                <!-- <icon  bindtap='setexptype_w' data-t='1' data-txt='cartlist[{{pidx}}].exp_type'  color="{{item.exp_type==1?'red':'gray'}}" size="16" type="success"></icon> -->

                <block wx:if="{{item.exp_type==1}}">
                  <!-- <view class="circle white xc-hookt fs20 red-b  sn"><text>Γ</text></view> -->
                  <icon data-t='1' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
                </block>
                <block wx:else>
                  <view class="circle  xc-hookts on"></view>
                </block>
                <view bindtap='setexptype_w2' data-ind="{{pidx}}" data-t='1' data-txt='cartlist[{{pidx}}].exp_type' class="yu_er">门店自提</view>
              </view>

              <view data-t='0' data-txt='cartlist[{{pidx}}].exp_type' data-ind="{{pidx}}" bindtap="setexptype_w2" style="display:{{item.distr_t==1?'none':'flex;align-items: center'}};">

                <block wx:if="{{item.exp_type==0}}">
                  <icon data-t='0' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
                </block>
                <block wx:else>
                  <view class="circle  xc-hookts on"></view>
                </block>

                <view bindtap='setexptype_w2' data-t='0' data-ind="{{pidx}}" data-txt='cartlist[{{pidx}}].exp_type' data-wl_txt='cartlist[{{pidx}}].wind' class="yu_er">快递邮寄</view>
              </view>

              <!-- 同城配送 -->
              <view data-t='2' data-txt='cartlist[{{pidx}}].exp_type' data-ind="{{pidx}}" bindtap="setexptype_w2" style=" margin-left: 5rpx;display:{{!item.show_same_city?'none':'flex;align-items: center'}};">

                <block wx:if="{{item.exp_type==2}}">
                  <icon data-t='2' data-txt='cartlist[{{pidx}}].exp_type' color="red" size="16" type="success"></icon>
                </block>
                <block wx:else>
                  <view class="circle  xc-hookts on"></view>
                </block>

                <view bindtap='setexptype_w2' data-t='2' data-ind="{{pidx}}" data-txt='cartlist[{{pidx}}].exp_type' data-wl_txt='cartlist[{{pidx}}].wind' class="yu_er">同城配送</view>
              </view>
            </view>


            <!-- 点击显示物流选择,如果是默认使用的情况不成立 -->
            <view wx:if="{{!is_default_logistics && item.exp_type!=1 && item.exp_type!=2}}" class="flex-vertical" bindtap="show_wu_arr" data-txt='cartlist[{{pidx}}].wind' data-w_sele_index="{{pidx}}" style="padding-right:6rpx;">
              <view>{{wu_arr[item.wind].name}}</view>
              <view class="xc-right"></view>
            </view>

          </view>

          <!-- 当是物流,只有一单的时候 -->
          <block wx:else>
            <view class="use-item flex-space-between" wx:if="{{item.exp_type==0 && !is_default_logistics}}">
              <view class="flex jc_sb" style="width: 100%; padding: 0 13rpx;">
                <view>选择物流</view>
                <view class="flex-vertical" bindtap="show_wu_arr" data-txt='cartlist[{{pidx}}].wind' data-w_sele_index="{{pidx}}" style="padding-right:6rpx;">
                  <view>{{wu_arr[item.wind].name}}</view>
                  <view class="xc-right"></view>
                </view>
              </view>
            </view>
          </block>
        </view>

        <!-- 保障服务 -->
        <view class="bz_view22 flex bdt16 ai_c" wx:if="{{bconfig.service_bz}}">
          <image class="bzfu_img22" src="{{imgUrl}}/miniapp/images/bzfu_w.png"></image>
          <view class="flex f1 ai_c rel22" style="position: relative;" bindtap="{{showFold ? 'clickCollapse':''}}">
            <view class="bz-content22 showArea22 {{flag ? '':'ellipsis-1x'}}">{{bconfig.service_bz}}</view>
            <view class="bz-content22 hideArea22">{{bconfig.service_bz}}</view>
            <view class="cx-obtain-coupon22 wsize22 arrow22" wx:if="{{showFold}}"   >
              <text class="bg_jj22 {{flag ? 'up22':''}}"></text>
            </view>
          </view>
        </view>

        <!-- 留言 -->
        <view class="coupon-mes flex-vertical">
          <view>留言</view>
          <view class="leave-word">

            <block wx:if="{{ly_map[pidx]}}">
                <input bindblur="hide_ly" bindinput="keyUpChangeNum"
                       data-index="{{pidx}}" focus="{{ly_map[pidx]}}"  style="color:#8c8c8c"
                       value="{{user_note[pidx]}}" class="word-box"
                       maxlength="100" name="user_note_{{item.pickup_id}}" />
            </block>
            <block wx:else>
               <text bindtap="show_ly"   style="color:#8c8c8c;font-size:26rpx;"
                     data-index="{{pidx}}">{{user_note[pidx]?user_note[pidx]:'给商家留言,最多100字'}}</text>
            </block>


          </view>
        </view>
        <!-- 预存款 -->
        <view class="set-mes" wx:if="{{item.yck_off}}" data-ind="{{pidx}}" data-item="{{item}}" catchtap="prestore">
          <view class="use-item" style="justify-content: space-between;">
            <view>
              <icon color="{{item.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
              <view class="yu_er">使用预存</view>
            </view>
            <view wx:if="{{item.yck_off==2}}">¥{{filters.toFix(item.yck,2)}}</view>
          </view>
        </view>

        <!-- 是否参与店铺优惠 -->
        <view class="coupon-mes flex-vertical" data-index="{{index}}" bindtap="cart_pop_offline" wx:if="{{item.offline_price}}">
          <view>店铺优惠</view>
          <view class="leave-word fs32" style="color: #999;">
            省{{filters.toFix(item.offline_price,2)}}元
          </view>
          <block wx:if="{{item.is_offline}}">
            <text style="color: #d7642b;">-¥{{filters.toFix(item.offline_price,2)}}</text>
          </block>
          <block wx:else>
            <text style="color: #d7642b;">不使用优惠</text>
          </block>
          <!-- 右边点击 -->
          <view class="xc-right" style="margin-right: 12rpx; border-color: #d7642b;"></view>
        </view>

      </view>


      <!-----使用佣金------>
      <view class="set-mes bdr_t-14" wx:if="{{cart_commission>0 && can_commission}}">

        <view class="use-item" bindtap='set_cart_commission'>
          <icon color="{{cart_use_commission?'red':'gray'}}" size="16" type="success"></icon>
          <view class="yu_er">使用佣金 :¥{{cart_commission}} </view>
        </view>
      </view>

      <!-- ---使用余额---- -->
      <view class="set-mes bdr_t-14" wx:if="{{yuer>0}}">
        <view class="use-item" bindtap='set_js_useyuer'>
          <icon color="{{js_use_money?'red':'gray'}}" size="16" type="success"></icon>
          <view class="yu_er">使用余额 :¥{{yuer}} </view>
        </view>
      </view>

    </block>

    <!-- ----立即购买------ -->
    <block wx:if="{{is_b_now==1}}">
      <view class="use-item bfff bdr_t-14 mgt20">
        <image class="dp" src='{{imgUrl}}/miniapp/images/goodscategory/new_store.png'> </image>
        <view>{{bn_pickname}}</view>
      </view>
      <view class="order-detail">
        <view class="goods-img" bindtap="go_url" data-url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}&prom_type={{bn_goods.prom_type}}&prom_id={{bn_goods.prom_id}}">
          <image class="wh100 bdr14" src="{{bn_goods.original_img}}" binderror='cart_set_err' data-err="bn_goods.original_img"></image>
        </view>
        <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{bn_goods.goods_id}}&prom_type={{items.prom_type}}&prom_id={{items.prom_id}}">
          <view class="goods-name ellipsis-2">{{bn_goods.goods_name}}</view>
          <!-- 商品属性 -->
          <view class="flex-vertical fs28 xc-ash color-gray n_guige">
            <view class="goods-color">
              <block><text>{{filters.show_gui_ge(bn_goods.goods_spec,bn_goods.goods_color)}}</text></block>
            </view>
          </view>

          <!-- ---商品名称规格---- -->
          <view class="order-num  flex-space-between">
            <view class="co-red">¥<text class="fs36">{{filters.toFix(bn_goods.shop_price,2)}}</text></view>
            <view style="color: red;" wx:if="{{bn_goods.use_commission && bn_goods.use_commission*1>0}}">佣金:{{filters.toFix(bn_goods.use_commission/bn_goods.buynum,2)}}*{{bn_goods.buynum}}</view>
            <view class="goods-num">x{{bn_goods.buynum}}</view>
          </view>
        </navigator>

      </view>
      <!-- 赠品的显示 -->
      <block wx:if="{{buy_now_gift_goods}}">
        <view class="order-detail" wx:for="{{buy_now_gift_goods}}">
          <view class="goods-img" style="position: relative">
            <image src="{{imgUrl}}/miniapp/images/giveaway.png" class="gift_image"></image>

            <image class="wh100 bdr14" src="{{item.original_img}}" binderror='cart_set_err' data-err="buy_now_gift_goods[{{index}}].original_img"></image>
          </view>
          <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
            <view class="goods-name ellipsis-2">{{item.goods_name}}</view>
            <!-- 商品属性 -->
            <view class="flex-vertical fs28 xc-ash color-gray n_guige">
              <view class="goods-color">
                <block><text>{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</text></block>
              </view>
            </view>
            <!-- ---商品名称规格---- -->
            <view class="order-num  flex-space-between">
              <view class="co-red">¥<text class="fs36">0</text></view>
              <view class="goods-num">x{{item.buynum}}</view>
            </view>
          </navigator>
        </view>
      </block>


      <block wx:if="{{collocation_goods}}">
        <!-- 搭配购买的功能实现 -->
        <view class="order-detail" wx:for="{{collocation_goods}}">
          <view class="goods-img">
            <image class="wh100 bdr14" src="{{imgUrl+item.original_img}}" binderror='cart_set_err1' data-err="collocation_goods[{{index}}].original_img"></image>
          </view>
          <navigator class="order-cont" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}">
            <view class="goods-name ellipsis-2">{{item.goods_name}}</view>
            <!-- 商品属性 -->
            <view class="flex-vertical fs28 xc-ash color-gray n_guige">
              <view class="goods-color">
                <block><text>{{filters.show_gui_ge(item.goods_spec,item.goods_color)}}</text></block>
              </view>
            </view>
            <!-- ---商品名称规格---- -->
            <view class="order-num  flex-space-between">
              <view class="co-red">¥<text class="fs36">{{item.price}}</text></view>
              <view class="goods-num">x{{item.goods_num}}</view>
            </view>
          </navigator>
        </view>
      </block>

      <!-- 使用搭配 -->
      <cart_collect_temp bind:childFun="select_coll" id="bn_coll"
                         all_collocation_list="{{all_collocation_list}}" distr_t="{{bn_goods.distr_type}}"
                         appoint_pick_keyid="{{appoint_pick_keyid}}" sales_rules="{{sales_rules}}" pick="{{bn_pick}}" />


      <!-- 如果是等级卡的商品,会员没有注册,要提醒注册 -->
      <view class="plus_buy fs28" wx:if="{{card_cut_price>0}}">
        <view class="flex">
          <view class="card_bg ellipsis-1" style="margin-right: 10rpx;">
            <image src="{{imgUrl}}/miniapp/images/plus/dj_icon.png">
              </ image>
              <text class="card_name">{{show_card.CardName}}</text>
          </view>
          <view>立减 <text style="color:#f23030;">{{filters.toFix(card_cut_price,2) }}</text> </view>
        </view>
        <view>
          <text style="color: #999;margin-left: 4rpx;">vip超级会员仅需{{show_card.CardFee}}元</text>
        </view>
        <!-- 三角形 -->
        <view class="car_tri_up"></view>
        <!-- 立即开通跳转 -->
        <view bindtap="buycard" class="card_op">立即开通</view>
      </view>

      <!-- 有送礼包 -->
      <view wx:if="{{bn_goods.s_libao}}">
        <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.s_libao}}" data-flag="1" bindtap="viewLbDetails">
          <view class="flex ai_c">
            <view class="circle1"></view>{{bn_goods.lbtitle}}
            <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}"></view>{{item.zxlbtitle}} -->
          </view>
          <view class="flex ai_c">
            x{{bn_goods.s_lb_num}}<text class="bg_jj"></text>
          </view>
        </view>
      </view>
      <!-- 有送专享礼包 -->
      <view wx:if="{{bn_goods.zx_libao}}">
        <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.zx_libao}}"  bindtap="viewLbDetails">
          <view class="flex ai_c">
            <view class="circle1"></view>{{bn_goods.zxlbtitle}}
            <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}">赠</view>{{item.zxlbtitle}} -->
          </view>
          <view class="flex ai_c">
            x{{bn_goods.zx_lb_num}}<text class="bg_jj"></text>
          </view>
        </view>
      </view>
      <!-- 有送每月礼包 -->
      <view wx:if="{{bn_goods.month_libao}}">
        <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-id="{{bn_goods.month_libao}}" data-flag="2" bindtap="viewLbDetails">
          <view class="flex ai_c">
            <view class="circle1"></view>{{bn_goods.monthlbtitle}}
            <!-- <view class="circle1" wx:if="{{item.zxlb_id>0}}"></view>{{item.zxlbtitle}} -->
          </view>
          <view class="flex ai_c">
            x{{bn_goods.month_lb_num}}<text class="bg_jj"></text>
          </view>
        </view>
      </view>


      <!-- 赠品的显示 -->
      <view wx:if="{{send_gf[bn_pick]}}">
        <block wx:for="{{send_gf[bn_pick]}}" wx:for-item="iter">
          <view class="coupon-mes flex jc_sb" style="margin: 10rpx 0; padding-right: 35rpx" data-pk="{{bn_pick}}" data-index="{{index}}" bindtap="show_sele_gift">
            <view class="flex ai_c">
              <view class="circle1"></view>{{iter.name}} 可选赠品{{iter.zp_num}}个
            </view>

            <view class="flex ai_c" wx:if="{{iter.selected}}">
              已选择<text class="bg_jj"></text>
            </view>

            <view class="flex ai_c" wx:else="{{}}">
              未选择<text class="bg_jj"></text>
            </view>

          </view>
        </block>
      </view>


      <view class="set-mes bdr_b-14">

        <view wx:if="{{order.store_prom}}">
          <icon color="#f23030" size="16" type="info"></icon>{{order.store_prom}}
        </view>

        <view class="xc-coupon-frame flex-center" data-bn="1" bindtap="open_coupon_list" data-pickid="{{bn_pick}}" hidden="{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list && bn_exp_type==0?get_by_quan_list.length:0)<=0}}" wx:if="{{is_coupon > 0 && ((selected_quan_list && selected_quan_list.length>0) || get_by_quan_list!=null)}}">
          <view class="work-frame flex-space-between">
            <view class="work">
              优惠券 <text class="quan_num_show">{{(selected_quan_list?selected_quan_list.length:0)+ (get_by_quan_list && bn_exp_type==0?get_by_quan_list.length:0)}}张可用</text>
            </view>
            <view class="xc-right-frame">
              <text wx:if="{{using_quan[bn_pick].is_nouse}}">不使用</text>
              <block wx:else>
                <text wx:if="{{using_quan[bn_pick].money}}">¥{{using_quan[bn_pick].money}}元优惠券</text>
                <text wx:if="{{using_quan[bn_pick].isby}}">包邮券</text>
              </block>
              <view class="xc-right"></view>
            </view>
          </view>
        </view>

        <view class="xc-coupon-frame" wx:if="{{bn_exp_type==0 && !is_default_logistics}}">
          <view class="flex-space-between" style="padding: 20rpx 25rpx; font-size: 30rpx;">
            <view>选择物流</view>
            <view class="flex-vertical" bindtap="show_wu_arr" data-txt='index' style="margin-right: 12rpx;">
              <view class="logistics-name">{{wu_arr[index].name}}</view>
              <view class="xc-right"></view>
            </view>
          </view>
        </view>
      </view>

              <!-- 保障服务 -->
              <view class="bz_view22 flex bdt16 ai_c" wx:if="{{bconfig.service_bz}}">
          <image class="bzfu_img22" src="{{imgUrl}}/miniapp/images/bzfu_w.png"></image>
          <view class="flex f1 ai_c rel22" style="position: relative;" bindtap="{{showFold ? 'clickCollapse':''}}">
            <view class="bz-content22 showArea22 {{flag ? '':'ellipsis-1x'}}">{{bconfig.service_bz}}</view>
            <view class="bz-content22 hideArea22">{{bconfig.service_bz}}</view>
            <view class="cx-obtain-coupon22 wsize22 arrow22" wx:if="{{showFold}}">
              <text class="bg_jj22 {{flag ? 'up22':''}}"></text>
            </view>
          </view>
        </view>

      <!-- 留言 -->
      <view class="coupon-mes flex-vertical">
        <view>留言</view>
        <view class="leave-word">
          <input placeholder-class="fs28" placeholder='给商家留言,最多100字' data-index="{{index}}" bindinput="keyUpChangeNum" class="word-box" maxlength="100" name="user_note"></input>
        </view>
      </view>

      <!-- 是否参与店铺优惠 -->
      <view class="coupon-mes flex-vertical" bindtap="bn_pop_offline" wx:if="{{bn_goods.offline_price}}">
        <view>店铺优惠</view>
        <view class="leave-word fs32" style="color: #999;">
          省{{filters.toFix(bn_goods.shop_price-bn_goods.offline_price,2)}}元
        </view>
        <block wx:if="{{bn_goods.is_offline}}">
          <text style="color: #d7642b;">-¥{{filters.toFix(bn_goods.shop_price-bn_goods.offline_price,2)}}</text>
        </block>
        <block wx:else>
          <text style="color: #d7642b;">不使用优惠</text>
        </block>
        <!-- 右边点击 --> 
        <view class="xc-right" style="margin-right: 12rpx; border-color: #d7642b;"></view>
      </view>

      <!-- 预存款 -->
      <view class="set-mes" catchtap="prestore2" wx:if="{{bn_goods.yck_off}}">
        <view class="use-item" style="justify-content: space-between;">
          <view>
            <icon color="{{bn_goods.yck_off==2 ? 'red' : '#808080'}}" size="16" type="success"></icon>
            <view class="yu_er">使用预存</view>
          </view>
          <view wx:if="{{bn_goods.yck_off==2 }}">¥{{filters.toFix(bn_goods.yck,2)}}</view>
        </view>
      </view>

      <!-----使用佣金------>
      <view class="set-mes bdr_t-14" wx:if="{{bn_goods.use_commission>0 && can_commission}}">
        <view class="use-item" bindtap='set_bn_commission'>
          <icon color="{{bn_use_commission?'red':'gray'}}" size="16" type="success"></icon>
          <view class="yu_er">使用佣金 :¥{{bn_goods.use_commission}} </view>
        </view>
      </view>


      <!-----使用余额------>
      <view class="set-mes bdr_t-14" wx:if="{{yuer>0}}">
        <view class="use-item" bindtap='set_bn_useyuer'>
          <icon color="{{bn_use_money?'red':'gray'}}" size="16" type="success"></icon>
          <view class="yu_er">使用余额 :¥{{yuer}} </view>
        </view>
      </view>

    </block>

    <view class="information bdr14">
      <view class="item" wx:if="{{formData.all_price>0}}">
        <view>商品金额</view>
        <view class="co-red"> {{formData.all_price}}元</view>
      </view>
      <view class="item" wx:if="{{formData.shipping_price>0}}">
        <view>配送费用</view>
        <view class="co-red"> {{formData.shipping_price}}元</view>
      </view>
      <view class="item" wx:if="{{formData.coupon_price>0}}">
        <view>使用优惠券</view>
        <view class="co-red">-  {{formData.coupon_price}}元</view>
      </view>
      <!-- 优惠活动优惠金额 --> 
      <view class="item" wx:if="{{formData.cut_price>0}}">
        <view>优惠活动</view>
        <view class="co-red">-  {{filters.toFix(formData.cut_price,2)}}元</view>
      </view>
      <!-- 组合购优惠金额 -->
      <view class="item" wx:if="{{formData.zh_cut_price>0 || formData.zh_cut_price<0}}">
        <view>组合购优惠</view>
        <view class="co-red">-  {{filters.toFix(formData.zh_cut_price,2)}}元</view>
      </view>
      <!-- 组合购优惠金额 -->
      <view class="item" wx:if="{{formData.ladder_cut_price>0 || formData.ladder_cut_price<0}}">
        <view>阶梯促销优惠</view>
        <view class="co-red">-  {{filters.toFix(formData.ladder_cut_price,2)}}元</view>
      </view>

      <!-- 订单优惠优惠金额 -->
      <view class="item" wx:if="{{formData.order_prom_amount>0}}">
        <view>订单优惠</view>
        <view class="co-red">-  {{filters.toFix(formData.order_prom_amount,2)}}元</view>
      </view>
      <!-- 使用预存优惠金额 -->
      <view class="item" wx:if="{{formData.prestore>0}}">
        <view>使用预存</view>
        <view class="co-red">-  {{filters.toFix(formData.prestore,2)}}元</view>
      </view>
      <view class="item" wx:if="{{formData.user_money>0}}">
        <view>使用余额</view>
        <view class="co-red">-  {{formData.user_money}}元</view>
      </view>
    </view>
  </view>

  <view class="btn-wrap shadow-1" wx:if="{{show_submit}}">
    <view class="pay-amount">
      <view class="payable">应付金额:<text class="co-red"><text class="fs24"></text>{{formData.order_amount}}</text></view>
      <!-- <view class="co-red big"></view> -->
    </view>
    <button class="tips-btn" formType="submit" id="submitOrder"
            disabled="{{submit || !same_ok}}" bindtap="requestSubscribe">提交订单</button>
  </view>
</form>

<!-- 使用券列表的弹窗 -->
<view wx:if='{{open_quan==1}}'>
  <view class="cover-layer flex-center " bindtap='close_coupon'> </view>
  <view class="cx-popup {{open_quan==true?'up' : 'down'}}">
    <!-- 最上面 -->
    <view class="top flex">
      <view class="xc-top-content  t-c">
        <view class="xc-title">优惠券使用</view>
      </view>
      <view class="xc-close-frame" bindtap='close_coupon'>
        <view class="xc-close">×</view>
      </view>
    </view>
    <!-- 使用优惠券和不使用优惠券层-->
    <view class="may_use_coupon fs28 flex"> 可使用的优惠券
      <view class=" is_use_coupon flex-vertical" bindtap="sele_quan_item" data-no="1">不使用优惠券
        <block wx:if="{{using_quan[selected_quan_pick].is_nouse_red}}">
          <view class="circle white xc-hooka fs20 red-b  sn"><text>Γ</text></view>
        </block>
        <block wx:else>
          <view class="circle  xc-hookst ons"></view>
        </block>
      </view>
    </view>

    <!-- 中间券内容显示 -->
    <view class="xc-frame flex-level">
      <view class="list-frame">
        <view wx:for="{{selected_quan_list}}" bindtap="sele_quan_item" wx:if="{{!item.is_using}}" data-ind="{{q_index}}" wx:for-item="item" wx:for-index="q_index">
          <view class="xc-coupon-frame flex-center" data-ind="{{q_index}}">
            <view class="coupon-frame flex rel">
              <!-- 锯齿 -->
              <include src="juchi_part.wxml" />
              <!-- 左边 -->
              <view class="coupon-left  rel {{filter.setcolor(item.UseObjectType)}} flex-center">
                <view class="white xc-money-frames">
                  <view class="f_text"><text class="xc-rmb-symbol">¥</text><text class="xc-rmb-val">{{item.Sum}}</text></view>
                  <view class="coupon-explain t-c" wx:if="{{item.BuySum>0}}">满{{item.BuySum}}元可用</view>
                  <view class="coupon-explain t-c" wx:else>满0元可用</view>
                </view>
              </view>
              <!-- 右边 -->
              <view class="coupon-right flex-center rel">
                <view class="coupon-annotation  flex">
                  <view class="flex  top-frame">
                    <view class="frame">
                      <view class="coupon-wode ib flex ellipsis-2 ">
                        <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(item.UseObjectType)}}</text>
                        <block>{{item.Sum}}元优惠券</block>
                      </view>
                      <view class="coupon-time">{{filters.replace_time2(item.BeginDate)}}至{{item.ValidDate?filters.replace_time2(item.ValidDate):'不限'}}</view>
                    </view>
                  </view>
                  <block wx:if="{{item.show_red}}">
                    <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
                  </block>
                  <block wx:else>
                    <view class="circle  xc-hooks on"></view>
                  </block>
                </view>
                <include src="remark_click_part.wxml" />
              </view>
            </view>
          </view>
          <!-- 打开是说明 -->
          <include src="remark_part.wxml" />
        </view>
        <!-- 包邮券的显示,立即购买 -->
        <block wx:if="{{ is_b_now && bn_exp_type==0}}">
          <view wx:for="{{get_by_quan_list}}" bindtap="sele_quan_item_by" wx:if="{{!item.is_using}}" data-ind="{{byq_index}}" wx:for-item="item" wx:for-index="byq_index">
            <view class="xc-coupon-frame flex-center" data-ind="{{byq_index}}">
              <view class="coupon-frame flex rel">
                <!-- 锯齿 -->
                <include src="juchi_part.wxml" />
                <!-- 左边 -->
                <view class="coupon-left  rel {{filter.setcolor(item.UseObjectType)}} flex-center">
                  <view class="white xc-money-frames">
                    <view class="f_text"><text class="xc-rmb-val">包邮券</text></view>
                    <view class="coupon-explain t-c" wx:if="{{item.condition>0}}">满{{item.condition}}元可用</view>
                    <view class="coupon-explain t-c" wx:else>满0元可用</view>
                  </view>
                </view>
                <!-- 右边 -->
                <view class="coupon-right flex-center rel">
                  <view class="coupon-annotation  flex">
                    <view class="flex  top-frame">
                      <view class="frame">
                        <view class="coupon-wode ib flex ellipsis-2 ">
                          <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(0)}}</text>
                          <block>包邮券</block>
                        </view>
                        <view class="coupon-time">{{filters.format_time(item.use_start_time)}}至{{item.use_end_time?filters.format_time(item.use_end_time):'不限'}}</view>
                      </view>
                    </view>
                    <block wx:if="{{item.show_red}}">
                      <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
                    </block>
                    <block wx:else>
                      <view class="circle  xc-hooks on"></view>
                    </block>
                  </view>
                  <include src="remark_click_part2.wxml" />
                </view>
              </view>
            </view>
            <!-- 打开是说明 -->
            <include src="remark_part.wxml" />
          </view>
        </block>

        <!-- 包邮券的显示,购物车购买 -->
        <block wx:if="{{!is_b_now && sele_exp_type==0}}">
          <view wx:for="{{by_quan_list_cart}}" bindtap="sele_quan_item_by" wx:if="{{!item.is_using}}" data-ind="{{byq_index}}" wx:for-item="item" wx:for-index="byq_index">
            <view class="xc-coupon-frame flex-center" data-ind="{{byq_index}}">
              <view class="coupon-frame flex rel">
                <!-- 锯齿 -->
                <include src="juchi_part.wxml" />
                <!-- 左边 -->
                <view class="coupon-left  rel {{filter.setcolor(item.UseObjectType)}} flex-center">
                  <view class="white xc-money-frames">
                    <view class="f_text"><text class="xc-rmb-val">包邮券</text></view>
                    <view class="coupon-explain t-c" wx:if="{{item.condition>0}}">满{{item.condition}}元可用</view>
                    <view class="coupon-explain t-c" wx:else>满0元可用</view>
                  </view>
                </view>
                <!-- 右边 -->
                <view class="coupon-right flex-center rel">
                  <view class="coupon-annotation  flex">
                    <view class="flex  top-frame">
                      <view class="frame">
                        <view class="coupon-wode ib flex ellipsis-2 ">
                          <text class="xc-brand t-c ib white {{filter.setcolor(item.UseObjectType)}}">{{filter.get_type_card(0)}}</text>
                          <block>包邮券</block>
                        </view>
                        <view class="coupon-time">{{filters.format_time(item.use_start_time)}}至{{item.use_end_time?filters.format_time(item.use_end_time):'不限'}}</view>
                      </view>
                    </view>
                    <block wx:if="{{item.show_red}}">
                      <view class="circle white xc-hook fs20 red-b sn"><text>Γ</text></view>
                    </block>
                    <block wx:else>
                      <view class="circle  xc-hooks on"></view>
                    </block>
                  </view>
                  <include src="remark_click_part2.wxml" />
                </view>
              </view>
            </view>
            <!-- 打开是说明 -->
            <include src="remark_part.wxml" />
          </view>
        </block>


      </view>
    </view>
    <!-- 最底下确定层-->
    <view class="determine-frame">
      <view class="xc-confirm flex-center" bindtap="confirm_quan"> 确定 </view>
    </view>
  </view>
</view>
<!----弹起选择物流名的列表---->
<view wx:if='{{open_express==1}}'>
  <view class="cover-layer flex-center " bindtap='close_express'>
  </view>

  <view class="cx-popup radius {{open_express==1?'up' : 'down'}}">
    <view class="tops flex">
      <view class="top-content fs32">
        <view>选择物流名字</view>
      </view>
      <view class="close-frame" bindtap='close_express'>
        <view class="xc-close-express">×</view>
      </view>
    </view>
    <view class="express_list">
      <view wx:for="{{wu_arr}}" wx:for-item="express_list" wx:for-index="idx">
        <view class="express_list_frame" bindtap="click_express_name" data-shippingcode="{{express_list.shipping_code}}" data-name="{{express_list.name}}" data-idxe="{{idx}}">

          <block wx:if="{{is_express==idx}}">
            <view class="circle white xc-hook fs20 red-b"><text>Γ</text></view>
          </block>
          <block wx:else>
            <view class="circle  xc-hooks"></view>
          </block>
          <view class="fs30">{{express_list.name}}</view>

        </view>
      </view>
    </view>
    <view class="flex click-buttem">
      <view class="xc-determine flex-center" bindtap="determine_expres">
        <view class="flex-vertical  t-c">确定</view>
      </view>
      <view class="xc-confirms flex-center" bindtap="select_default_logistics">
        <view class="flex-vertical  t-c">设为默认</view>
      </view>
    </view>

  </view>
</view>
<warn id="warn"></warn>
<!-- 是不是使用店铺优惠pop -->
<view class="cover-layer flex ai-center" bindtap="close_offline" wx:if="{{is_offline_show}}">
  <view style="background-color: #fff; width: 540rpx; margin: 0 auto; border-radius: 20rpx;">
    <view class="fs32" style="text-align: center;height: 80rpx; line-height: 80rpx;">店铺优惠</view>
    <view class="flex jc_sb ai-center fs28" style="height: 80rpx; width: 400rpx; margin-left: 70rpx;">
      <view catchtap="sure_offline" class="flex ai-center">优惠¥{{show_off_price}}
        <icon style="margin-left: 10rpx;" color="{{is_get_offline?'red':'gray'}}" size="14" type="success" role="img"></icon>
      </view>
      <view catchtap="cancle_offline" class="flex ai-center">不用优惠
        <icon style="margin-left: 10rpx;" color="{{is_get_offline!=1?'red':'gray'}}" size="14" type="success" role="img"></icon>
      </view>
    </view>
  </view>
</view>

<!-- 多赠品 -->
<view class="duo_gift_sele" wx:if="{{show_duo_gift}}">
  <!-- top search -->
  <view class="flex gift_top_v ai_c">
    <text bindtap="close_sele_gift" class="bg_jj1"></text>
    <view class="pdh20 pdv10 flex ai_c jc_sb">
      <view class="input-box" style="width: 580rpx;display: flex; padding-left: 20rpx">
        <view class="sear_box" bindtap="submitSearch"></view>
        <input autoFocus class="input-search" name="word" placeholder="搜索关键字" bindconfirm="submitSearch" bindinput="getInput" bindfocus="inputFocus" value="{{keyword}}" />
      </view>
    </view>

  </view>
  <!-- top act_name -->
  <view class="flex gift_top_v ai_c fs30" style="padding-left: 70rpx">
    {{gf_pr_name}},可选{{zp_num}}件商品为赠品
  </view>
  <!-- 赠品选择 -->
  <scroll-view scroll-y="{{true}}" style="height:calc(100% - 300rpx);">
    <view class="order-item" hidden="{{items.hide_div}}" data-item="{{idx}}" wx:for="{{giftsinfo}}" wx:for-item="items" wx:for-index="idx">

      <view bindtap="check_th_item" class="order-raido flex-vertical " data-check="{{items.selected?items.selected:0}}" data-item="{{idx}}">
        <icon wx:if="{{items.selected}}" color="red" size="20" type="success"></icon>
        <text wx:else class="icon_no_sele"></text>
      </view>

      <navigator class="goods-img rel" bindtap="go_gd" data-gd="{{items.goods_id}}">
        <image class="wh100" src="{{imgUrl+items.goodsinfo.original_img}}" binderror="cart_set_err1" data-err="giftsinfo[{{idx}}].goodsinfo.original_img"></image>
      </navigator>
      <view class="goods-cont">
        <view class="goods-name2">
          <navigator bindtap="go_gd" class="ellipsis-2 fs30" data-gd="{{items.goods_id}}">{{items.goods_name}}
          </navigator>

          <view class="specifications  ellipsis-1">
            <view wx:if="{{items.goodsinfo.goods_color || items.goodsinfo.goods_spec}}">
              {{items.goodsinfo.goods_color}}{{items.goodsinfo.goods_color?"/":''}}{{items.goodsinfo.goods_spec}}</view>
            <view wx:else>规格1</view>
          </view>
          <text class="c-red" wx:if="{{items.must_num>0}}">必选{{items.must_num*gf_bs}}件</text>

        </view>

        <view class="flex alend jc_sb">
          <view class="goods-price co-red baseline ellipsis-1">
            <view class="fs20"></view>
            <view class="fs28">{{items.goodsinfo.shop_price}}</view>
          </view>
          <view class="count">
            <view bindtap="{{items.goods_num <= 1 ? '':'subNum'}}" class="sub fs28 {{items.goods_num <= 1 ? 'active':''}}" data-pitems="{{pidx}}" data-item="{{idx}}"></view>
            <input class="goodadd" bindblur="valueToNum" data-item="{{idx}}" bindinput="refresh_input" data-item="{{idx}}" type="number" value="{{items.goods_num}}"></input>
            <view class="add" bindtap="addNum" data-item="{{idx}}">+</view>
          </view>
        </view>

      </view>
    </view>
  </scroll-view>
  <!-- 确认选择 -->
  <view class="pay-for flex-vertical-between" style="bottom: 0">
    <view></view>
    <view>
      <button bindtap="sure_this_gift" class="pay-btn">确定</button>
    </view>
  </view>

</view>