RedeemView.vue 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  1. <template>
  2. <div class="right-wrap">
  3. <el-breadcrumb separator="/" style="margin-bottom: 13px">
  4. <el-breadcrumb-item :to="{ path: '/home/pointsMall' }">积分商城</el-breadcrumb-item>
  5. <el-breadcrumb-item>兑换详情</el-breadcrumb-item>
  6. </el-breadcrumb>
  7. <el-card class="box-card">
  8. <div slot="header" class="clearfix">
  9. <span>兑换详情</span>
  10. <!-- <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> -->
  11. </div>
  12. <div class="goodDetail">
  13. <div class="goods-image">
  14. <!-- 左侧大图-->
  15. <div class="middle" ref="target">
  16. <img style="width: 100%;" :src="imageList[activeIndex]" alt="" />
  17. </div>
  18. <!-- 小图列表 -->
  19. <ul class="small">
  20. <li v-for="(img, i) in imageList" :key="i" v-if="i<5" @mouseenter="enterhandler(i)"
  21. :class="{ active: i == activeIndex }">
  22. <img style="width: 100%;" :src="img" alt="" />
  23. </li>
  24. </ul>
  25. </div>
  26. <div class="goods-content">
  27. <div class="goods-name">{{ data.name }}</div>
  28. <div class="goods-price">兑换积分:{{ data.price }} <span style="color: red;margin-left: 150px;">参 考 价:¥{{ data.hisPrice}}</span></div>
  29. <div class="goods-price">物品类别:{{ data.skuType==0 ? '积分商品' : '活动礼品' }}</div>
  30. <div class="goods-price">兑换方式:{{ data.deliveryTypeName }}</div>
  31. <div class="goods-price">是否包邮:{{ data.freightType == '0' ? '不包邮' : '包邮' }}</div>
  32. <div class="footer">
  33. <div class="left-info">
  34. <span class="info-title">
  35. 兑换说明
  36. </span>
  37. <div v-html="data.comment"></div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <!-- <div class="footer">
  43. <div class="left-info" style="width: 100%">
  44. <span class="info-title">
  45. <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"
  46. class="info-icon">
  47. <path fill-rule="evenodd" clip-rule="evenodd"
  48. d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1Z"
  49. fill="#165DFF"></path>
  50. <path fill-rule="evenodd" clip-rule="evenodd"
  51. d="M8.54189 6.70582C8.67075 6.70582 8.77522 6.81029 8.77522 6.93915L8.77511 10.2335L9.46743 10.2343C9.61176 10.2343 9.72876 10.3513 9.72876 10.4956V11.3319C9.72876 11.4762 9.61176 11.5932 9.46743 11.5932H6.58458C6.44025 11.5932 6.32324 11.4762 6.32324 11.3319V10.4956C6.32324 10.3513 6.44025 10.2343 6.58458 10.2343L7.28178 10.2335V8.08122L7.14759 8.08198C7.00326 8.08198 6.88626 7.96498 6.88626 7.82065V6.97073C6.88626 6.8264 7.00326 6.70939 7.14759 6.70939L7.47956 6.70859C7.49132 6.70677 7.50337 6.70582 7.51565 6.70582H8.54189ZM8.40513 4.41602C8.54946 4.41602 8.66646 4.53302 8.66646 4.67735V5.64802C8.66646 5.79235 8.54946 5.90935 8.40513 5.90935H7.43446C7.29013 5.90935 7.17313 5.79235 7.17313 5.64802V4.67735C7.17313 4.53302 7.29013 4.41602 7.43446 4.41602H8.40513Z"
  52. fill="white"></path>
  53. </svg>
  54. 物品介绍
  55. </span>
  56. <div v-html="data.comment"></div>
  57. </div>
  58. </div> -->
  59. <div v-show="deliveryType == 1">
  60. <p class="label">收货地址</p>
  61. <div class="address">
  62. <div v-if="addressDetail">
  63. <div class="address-container">
  64. <div class="header">
  65. <div class="left">
  66. <span>{{ name }}</span>
  67. </div>
  68. <span @click="handleClickAddress" role="button" class="btn">修改</span>
  69. </div>
  70. <p class="phone">{{ phone }}</p>
  71. <p class="address">{{ addressStr + street + address }}</p>
  72. </div>
  73. </div>
  74. <div v-else @click="handleClickAddress">
  75. <div class="address-container new">
  76. <i class="add-icon byte-icon byte-icon--plus"><svg xmlns="http://www.w3.org/2000/svg"
  77. viewBox="0 0 48 48">
  78. <path fill="none" d="M0 0h48v48H0z"></path>
  79. <path
  80. d="M24.7 4c.4 0 .6 0 .8.1.2.1.3.2.4.4.1.2.1.3.1.8V22h16.7c.4 0 .6 0 .8.1.2.1.3.2.4.4.1.2.1.3.1.8v1.4c0 .4 0 .6-.1.8-.1.2-.2.3-.4.4-.2.1-.3.1-.8.1H26v16.7c0 .4 0 .6-.1.8-.1.2-.2.3-.4.4-.2.1-.3.1-.8.1h-1.4c-.4 0-.6 0-.8-.1-.2-.1-.3-.2-.4-.4-.1-.2-.1-.3-.1-.8V26H5.3c-.4 0-.6 0-.8-.1-.2-.1-.3-.2-.4-.4-.1-.2-.1-.3-.1-.8v-1.4c0-.4 0-.6.1-.8.1-.2.2-.3.4-.4.2-.1.3-.1.8-.1H22V5.3c0-.4 0-.6.1-.8.1-.2.2-.3.4-.4.2-.1.3-.1.8-.1h1.4z">
  81. </path>
  82. </svg></i>
  83. <span class="add-label">添加收货地址</span>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div v-show="deliveryType == 4">
  89. <p class="label">手机直充</p>
  90. <div class="address">
  91. <div v-if="phoneNumber">
  92. <div class="address-container" style="min-height: 45px">
  93. <div class="header">
  94. <div class="left">
  95. <span>{{ phoneNumber }}</span>
  96. </div>
  97. <span @click="handleClickPhoneNumber" role="button" class="btn">修改</span>
  98. </div>
  99. </div>
  100. </div>
  101. <div v-else @click="handleClickPhoneNumber">
  102. <div class="address-container new">
  103. <i class="add-icon byte-icon byte-icon--plus"><svg xmlns="http://www.w3.org/2000/svg"
  104. viewBox="0 0 48 48">
  105. <path fill="none" d="M0 0h48v48H0z"></path>
  106. <path
  107. d="M24.7 4c.4 0 .6 0 .8.1.2.1.3.2.4.4.1.2.1.3.1.8V22h16.7c.4 0 .6 0 .8.1.2.1.3.2.4.4.1.2.1.3.1.8v1.4c0 .4 0 .6-.1.8-.1.2-.2.3-.4.4-.2.1-.3.1-.8.1H26v16.7c0 .4 0 .6-.1.8-.1.2-.2.3-.4.4-.2.1-.3.1-.8.1h-1.4c-.4 0-.6 0-.8-.1-.2-.1-.3-.2-.4-.4-.1-.2-.1-.3-.1-.8V26H5.3c-.4 0-.6 0-.8-.1-.2-.1-.3-.2-.4-.4-.1-.2-.1-.3-.1-.8v-1.4c0-.4 0-.6.1-.8.1-.2.2-.3.4-.4.2-.1.3-.1.8-.1H22V5.3c0-.4 0-.6.1-.8.1-.2.2-.3.4-.4.2-.1.3-.1.8-.1h1.4z">
  108. </path>
  109. </svg></i>
  110. <span class="add-label">填写充值手机号</span>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. <p class="label">物品信息</p>
  116. <div v-if="activeName == 'goodsNotice'">
  117. <table class="table">
  118. <thead>
  119. <tr>
  120. <th width="25%">兑换物品</th>
  121. <th style="text-align: center">数量</th>
  122. <th style="text-align: center">单价</th>
  123. <th style="text-align: center" width="15%">
  124. <span style="color: red">*</span>兑换方式
  125. </th>
  126. <th v-if="deliveryType == '0'" style="text-align: center" width="15%">
  127. <span style="color: red">*</span>领取地点
  128. </th>
  129. <th style="text-align: center">总计</th>
  130. </tr>
  131. </thead>
  132. <tbody>
  133. <tr>
  134. <td>
  135. <div class="prize-info">
  136. <div class="prize-img-container">
  137. <el-image :src="data.imgUrl" v-if="data.imgUrl"
  138. :preview-src-list="imgUrls.length == 0 ? [data.imgUrl] : imgUrls"
  139. class="prize-img"></el-image>
  140. </div>
  141. <div class="prize-detail-info">
  142. <h3 class="title">{{ data.name }}</h3>
  143. <!-- <h3 style="color: #1e80ff;" class="title" @click="handleClickGood(data.skuDesc)">{{ data.name }}</h3> -->
  144. <!-- <p class="desc">
  145. <span v-if="data.location">{{ data.location }}</span>
  146. </p> -->
  147. </div>
  148. </div>
  149. </td>
  150. <td style="text-align: center">
  151. <el-input-number @change="changeCount" size="mini" v-model="skuCount" :step="1" :min="1"
  152. step-strictly></el-input-number>
  153. </td>
  154. <td style="text-align: center">
  155. {{ data.price }} 积分
  156. </td>
  157. <td style="text-align: center">
  158. <el-select size="small" clearable v-model="deliveryType" placeholder="请选择"
  159. value-key="value" @change="changeDeliveryType">
  160. <el-option :key="item.dictValue" v-for="item in deliveryTypeList"
  161. :label="item.dictLabel" :value="item.dictValue">
  162. </el-option>
  163. </el-select>
  164. </td>
  165. <td v-if="deliveryType == '0'" style="text-align: center">
  166. <el-select size="small" clearable v-model="reclaimAddr" placeholder="请选择"
  167. value-key="value" @change="changeReclaimAddr">
  168. <el-option :key="item.dictValue" v-for="item in reclaimAddrList"
  169. :label="item.dictLabel" :value="item.dictValue">
  170. </el-option>
  171. </el-select>
  172. </td>
  173. <td style="text-align: center" class="finlly-price">
  174. {{ money ? userInfo.surplusIntegral : total }} 积分
  175. <span style="color: red;" v-if="money">+{{ money }}元</span>
  176. </td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </div>
  181. <div v-else>
  182. <table class="table">
  183. <thead>
  184. <tr>
  185. <th width="25%">兑换物品</th>
  186. <th style="text-align: center" width="15%">物品属性</th>
  187. <th style="text-align: center" width="15%">
  188. <span style="color: red">*</span>兑换券
  189. </th>
  190. <th style="text-align: center" width="15%">
  191. <span style="color: red">*</span>兑换方式
  192. </th>
  193. <th v-if="deliveryType == '1' && data.freightType == '0'" style="text-align: center"
  194. width="15%">
  195. 快递费
  196. </th>
  197. <th v-if="deliveryType == '0'" style="text-align: center" width="15%">
  198. <span style="color: red">*</span>领取地点
  199. </th>
  200. </tr>
  201. </thead>
  202. <tbody>
  203. <tr>
  204. <td>
  205. <div class="prize-info">
  206. <div class="prize-img-container">
  207. <el-image :src="data.imgUrl" v-if="data.imgUrl"
  208. :preview-src-list="imgUrls.length == 0 ? [data.imgUrl] : imgUrls"
  209. class="prize-img"></el-image>
  210. </div>
  211. <div class="prize-detail-info">
  212. <h3 class="title">{{ data.name }}</h3>
  213. <!-- <h3 style="color: #1e80ff;" class="title" @click="handleClickGood(data.skuDesc)">{{ data.name }}</h3> -->
  214. <!-- <p class="desc">
  215. <span v-if="data.location">{{ data.location }}</span>
  216. </p> -->
  217. </div>
  218. </div>
  219. </td>
  220. <td style="text-align: center">{{ data.productAttributeName }}</td>
  221. <td style="text-align: center">
  222. <el-select size="small" clearable v-model="voucher" placeholder="请选择" value-key="value"
  223. @change="changeCouponList">
  224. <el-option :key="item.voucher" v-for="item in couponList" :label="item.couponName"
  225. :value="item.voucher">
  226. </el-option>
  227. </el-select>
  228. </td>
  229. <td style="text-align: center">
  230. <el-select size="small" clearable v-model="deliveryType" placeholder="请选择"
  231. value-key="value" @change="changeDeliveryTypeGift">
  232. <el-option :key="item.dictValue" v-for="item in deliveryTypeList"
  233. :label="item.dictLabel" :value="item.dictValue">
  234. </el-option>
  235. </el-select>
  236. </td>
  237. <td v-if="deliveryType == '1' && data.freightType == '0'" style="text-align: center">180 积分
  238. </td>
  239. <td v-if="deliveryType == '0'" style="text-align: center">
  240. <el-select size="small" clearable v-model="reclaimAddr" placeholder="请选择"
  241. value-key="value" @change="changeReclaimAddr">
  242. <el-option :key="item.dictValue" v-for="item in reclaimAddrList"
  243. :label="item.dictLabel" :value="item.dictValue">
  244. </el-option>
  245. </el-select>
  246. </td>
  247. </tr>
  248. </tbody>
  249. </table>
  250. </div>
  251. <div class="footer">
  252. <div class="right" v-if="data.stock != 0">
  253. <div class="btn-line">
  254. <el-button :disabled="disabled" @click="handleClick" type="primary" round>确认兑换</el-button>
  255. </div>
  256. </div>
  257. <div class="left-info" style="width: 100%">
  258. <span class="info-title">
  259. <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"
  260. class="info-icon">
  261. <path fill-rule="evenodd" clip-rule="evenodd"
  262. d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1Z"
  263. fill="#165DFF"></path>
  264. <path fill-rule="evenodd" clip-rule="evenodd"
  265. d="M8.54189 6.70582C8.67075 6.70582 8.77522 6.81029 8.77522 6.93915L8.77511 10.2335L9.46743 10.2343C9.61176 10.2343 9.72876 10.3513 9.72876 10.4956V11.3319C9.72876 11.4762 9.61176 11.5932 9.46743 11.5932H6.58458C6.44025 11.5932 6.32324 11.4762 6.32324 11.3319V10.4956C6.32324 10.3513 6.44025 10.2343 6.58458 10.2343L7.28178 10.2335V8.08122L7.14759 8.08198C7.00326 8.08198 6.88626 7.96498 6.88626 7.82065V6.97073C6.88626 6.8264 7.00326 6.70939 7.14759 6.70939L7.47956 6.70859C7.49132 6.70677 7.50337 6.70582 7.51565 6.70582H8.54189ZM8.40513 4.41602C8.54946 4.41602 8.66646 4.53302 8.66646 4.67735V5.64802C8.66646 5.79235 8.54946 5.90935 8.40513 5.90935H7.43446C7.29013 5.90935 7.17313 5.79235 7.17313 5.64802V4.67735C7.17313 4.53302 7.29013 4.41602 7.43446 4.41602H8.40513Z"
  266. fill="white"></path>
  267. </svg>
  268. 物品介绍
  269. </span>
  270. <div v-html="data.skuDesc"></div>
  271. </div>
  272. </div>
  273. </el-card>
  274. <el-dialog title="兑换物品收货地址" :visible.sync="dialogFormVisible" width="500px">
  275. <el-form label-position="left" :model="dataForm" ref="dataForm" style="padding: 0 75px" :rules="rules">
  276. <el-form-item label="联系姓名" :label-width="formLabelWidth" prop="name">
  277. <el-input size="medium" v-model="dataForm.name" placeholder="请输入联系姓名"></el-input>
  278. </el-form-item>
  279. <el-form-item label="联系方式" :label-width="formLabelWidth" prop="phone">
  280. <el-input size="medium" v-model="dataForm.phone" placeholder="请输入11位手机号码"></el-input>
  281. </el-form-item>
  282. <el-form-item label="省市区" :label-width="formLabelWidth" prop="addressArr">
  283. <el-cascader style="width: 100%" clearable placeholder="请选择省市区" size="medium" :options="options"
  284. v-model="dataForm.addressArr" @change="handleChange">
  285. </el-cascader>
  286. </el-form-item>
  287. <el-form-item label="街道" :label-width="formLabelWidth" prop="street">
  288. <el-input size="medium" v-model="dataForm.street" placeholder="请输入街道"></el-input>
  289. </el-form-item>
  290. <el-form-item label="详细地址" :label-width="formLabelWidth" prop="address">
  291. <el-input size="medium" v-model="dataForm.address" placeholder="请输入小区楼栋/乡村名称"></el-input>
  292. </el-form-item>
  293. </el-form>
  294. <div slot="footer" class="dialog-footer" style="text-align: center">
  295. <el-button class="addButton-address" type="primary" @click="submitForm('dataForm')">提交</el-button>
  296. </div>
  297. </el-dialog>
  298. <el-dialog title="手机充值" :visible.sync="dialogFormPhoneNumber" width="500px">
  299. <el-form :model="dataFormPhoneNumber" ref="dataFormPhoneNumber" :rules="rules">
  300. <el-form-item label="充值手机" :label-width="formLabelWidth" prop="phoneNumber">
  301. <el-input size="medium" v-model="dataFormPhoneNumber.phoneNumber"
  302. placeholder="请输入11位手机号码"></el-input>
  303. </el-form-item>
  304. </el-form>
  305. <div slot="footer" class="dialog-footer" style="text-align: center">
  306. <el-button class="addButton-address" type="primary"
  307. @click="submitFormPhoneNumber('dataFormPhoneNumber')">提交</el-button>
  308. </div>
  309. </el-dialog>
  310. <el-dialog title="结算明细" :visible.sync="dialogFormOrderInfo" width="300px">
  311. <div class="checklist">
  312. <div class="listItem">
  313. <div class="itemName">商品积分</div>
  314. <div class="itemValue">{{ data.price }}</div>
  315. </div>
  316. <div class="listItem">
  317. <div class="itemName">商品数量</div>
  318. <div class="itemValue">{{ skuCount }}</div>
  319. </div>
  320. <div class="listItem">
  321. <div class="itemName">快递积分</div>
  322. <div class="itemValue red">+180</div>
  323. </div>
  324. <div class="listItem">
  325. <div class="itemName">合计</div>
  326. <div class="itemValue">
  327. {{ money ? userInfo.surplusIntegral : total }}
  328. <span style="color: red;" v-if="money">+{{ money }}元</span>
  329. </div>
  330. </div>
  331. </div>
  332. <div slot="footer" class="dialog-footer" style="text-align: center">
  333. <el-button class="addButton-address" type="primary" style="
  334. background-image: linear-gradient(to right, #f5b543, #faa029);
  335. width: 100px;
  336. height: 35px;
  337. line-height: 34px;
  338. " @click="handleClickOrderInfo">确定</el-button>
  339. </div>
  340. </el-dialog>
  341. <el-dialog :visible.sync="dialogMsgVisible" width="400px" @close="handleClose">
  342. <div class="wrapper">
  343. <svg width="291" height="93" viewBox="0 0 291 93" fill="none" xmlns="http://www.w3.org/2000/svg"
  344. src="./success.svg" class="success-icon">
  345. <g filter="url(#filter0_f_6844:108643)">
  346. <circle cx="143" cy="56.5723" r="3" fill="#51F1E8"></circle>
  347. </g>
  348. <path d="M195.768 48.1699L195.768 39.5097L203.268 43.8398L195.768 48.1699Z" fill="#FF5E54"></path>
  349. <path d="M232.39 10.953L230.149 2.58781L238.514 4.82925L232.39 10.953Z" fill="#9F54FF"></path>
  350. <path d="M7.519 27.6623L1.39528 21.5385L9.76044 19.2971L7.519 27.6623Z" fill="#FF834E"></path>
  351. <path
  352. d="M106.774 8.99609L96.2168 11.168C94.5498 27.4571 102.885 34.5158 107.886 36.6877C113.999 37.7736 120.031 35.8701 124 32.8869C111.22 33.4298 104.552 19.3126 106.774 8.99609Z"
  353. fill="#51F1E8"></path>
  354. <path
  355. d="M283.89 68.9961L290.383 70.4176C292.692 77.5253 288.076 83.9223 283.89 84.9096C280.384 85.3438 277.597 84.0817 275 82.5007C284.452 83.364 285.768 73.9715 283.89 68.9961Z"
  356. fill="#FF5E54"></path>
  357. <g filter="url(#filter1_f_6844:108643)">
  358. <path
  359. d="M50 82.4171L55.3529 77.9961C57.902 79.4698 63 83.3014 63 86.8382C59.8213 88.1508 58.6931 89.8153 58.427 90.9879C58.4503 91.3588 58.4426 91.6987 58.4118 91.9961C58.3461 91.7429 58.3346 91.395 58.427 90.9879C58.2575 88.2958 56.4523 83.9714 50 82.4171Z"
  360. fill="#FFCF8B"></path>
  361. </g>
  362. <defs data-v-50d84ad4="">
  363. <filter id="filter0_f_6844:108643" x="139" y="52.5723" width="8" height="8"
  364. filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
  365. <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood>
  366. <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend>
  367. <feGaussianBlur stdDeviation="0.5" result="effect1_foregroundBlur_6844:108643">
  368. </feGaussianBlur>
  369. </filter>
  370. <filter id="filter1_f_6844:108643" x="49" y="76.9961" width="15" height="16"
  371. filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
  372. <feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood>
  373. <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend>
  374. <feGaussianBlur stdDeviation="0.5" result="effect1_foregroundBlur_6844:108643">
  375. </feGaussianBlur>
  376. </filter>
  377. </defs>
  378. </svg>
  379. <h2 class="header">恭喜你,兑换成功!</h2>
  380. <img :src="data.imgUrl" class="icon" />
  381. <div class="desc">
  382. <span>已下单,经过审批后,2周内发货,如有问题联系物品介绍中备注的相关联系人</span>
  383. <!-- <span>恭喜你成功兑换{{ data.name }},随后你可在</span>
  384. <a href="/home/myCenter" class="link">个人中心</a>中查看兑换的物品 -->
  385. </div>
  386. </div>
  387. <div slot="footer" class="dialog-footer" style="text-align: center">
  388. <router-link to="/home/myCenter">
  389. <el-button @click="setTab" class="addButton-address" type="primary">
  390. 查看物品
  391. </el-button>
  392. </router-link>
  393. </div>
  394. </el-dialog>
  395. <el-dialog title="兑换确认" :visible.sync="dialogVisible" width="30%">
  396. <div class="checklist">
  397. <div class="listItem">
  398. <div class="itemName">商品名称</div>
  399. <div class="itemValue">{{ data.name }}</div>
  400. </div>
  401. <div v-if="activeName == 'giftNotice'" class="listItem">
  402. <div class="itemName">商品属性</div>
  403. <div class="itemValue">{{ data.productAttributeName }}</div>
  404. </div>
  405. <div v-if="activeName == 'giftNotice'" class="listItem">
  406. <div class="itemName">兑换卷</div>
  407. <div class="itemValue">{{ couponName }}</div>
  408. </div>
  409. <div v-if="activeName == 'goodsNotice'" class="listItem">
  410. <div class="itemName">商品积分</div>
  411. <div class="itemValue">{{ data.price }}</div>
  412. </div>
  413. <div v-if="activeName == 'goodsNotice'" class="listItem">
  414. <div class="itemName">商品数量</div>
  415. <div class="itemValue">{{ skuCount }}</div>
  416. </div>
  417. <div v-if="deliveryType == '1' && data.freightType == '0'" class="listItem">
  418. <div class="itemName">快递费</div>
  419. <div class="itemValue red">+180 积分</div>
  420. </div>
  421. <div class="listItem">
  422. <div class="itemName">兑换方式</div>
  423. <div class="itemValue">{{ deliveryTypeName }}</div>
  424. </div>
  425. <div v-if="deliveryType == '0'" class="listItem">
  426. <div class="itemName">领取地点</div>
  427. <div class="itemValue">{{ reclaimAddrName }}</div>
  428. </div>
  429. <div v-if="activeName == 'goodsNotice'" class="listItem">
  430. <div class="itemName">合计</div>
  431. <div class="itemValue">{{ money ? userInfo.surplusIntegral : total }}<span style="color: red;"
  432. v-if="money">+{{ money }}元</span></div>
  433. </div>
  434. </div>
  435. <span slot="footer" class="dialog-footer">
  436. <el-button @click="dialogVisible = false">取 消</el-button>
  437. <el-button type="primary" @click="handleClickExchange">确 定</el-button>
  438. </span>
  439. </el-dialog>
  440. <el-dialog title="物品详情" :visible.sync="dialogVisibleGoods" width="40%">
  441. <div v-html="data.skuDesc"></div>
  442. </el-dialog>
  443. <el-dialog title="扫码充值" :visible.sync="recharge" width="30%" :before-close="beforeClose">
  444. <div class="payBox-way">
  445. <div class="way-item">
  446. <div class="item-left">
  447. <div id="expCode" ref="expCodeRef"></div>
  448. </div>
  449. <div class="item-right">
  450. <div class="up">
  451. <div>应付金额</div>
  452. <div style="color: #fe2c55;margin-left: 8px;">¥ {{ money }}</div>
  453. </div>
  454. <div class="down">
  455. <img style="height: 18px;" src="../../assets/icon/weixinPay.png" alt="weixinpay">
  456. <div class="textStyle">微信扫码支付</div>
  457. </div>
  458. <!-- <div class="down">
  459. <div>扫码支付代表已阅读并同意</div>
  460. <div style="color: #04498d;cursor: pointer;">《充值协议》</div>
  461. </div> -->
  462. </div>
  463. </div>
  464. </div>
  465. </el-dialog>
  466. </div>
  467. </template>
  468. <script>
  469. import { mapGetters } from 'vuex'
  470. import QRCode from 'qrcodejs2';
  471. import { getWxPayCode, queryWxPayStatus } from "@/api/pay";
  472. import { integralInfo, start, kill, couponList, notice } from "@/api/allApi";
  473. import { regionData, codeToText, } from "element-china-area-data";
  474. import { setTab } from "@/utils/auth";
  475. import { debounce } from "@/utils/index";
  476. export default {
  477. data() {
  478. var validPhone = (rule, value, callback) => {
  479. if (value === "") {
  480. callback(new Error("请输入手机号"));
  481. } else {
  482. const reg_tel =
  483. /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
  484. const isCheckPhone = reg_tel.test(value);
  485. if (!isCheckPhone) {
  486. callback(new Error("请输入正确手机号"));
  487. }
  488. callback();
  489. }
  490. };
  491. return {
  492. noticeContent: '',
  493. activeIndex: 0,
  494. imageList: [
  495. // "https://yanxuan-item.nosdn.127.net/d917c92e663c5ed0bb577c7ded73e4ec.png",
  496. // "https://yanxuan-item.nosdn.127.net/e801b9572f0b0c02a52952b01adab967.jpg",
  497. // "https://yanxuan-item.nosdn.127.net/b52c447ad472d51adbdde1a83f550ac2.jpg",
  498. // "https://yanxuan-item.nosdn.127.net/f93243224dc37674dfca5874fe089c60.jpg",
  499. // "https://yanxuan-item.nosdn.127.net/f881cfe7de9a576aaeea6ee0d1d24823.jpg"
  500. ],
  501. timerPayWxQRcode: null,
  502. timer: null,
  503. //充值二维码
  504. payUrl: 'www.baidu.com',
  505. //充值弹窗
  506. recharge: false,
  507. //充值金额
  508. money: undefined,
  509. couponName: '',
  510. voucher: '',
  511. couponList: [],
  512. skuDesc: '',
  513. dialogVisibleGoods: false,
  514. dialogVisible: false,
  515. options: regionData,
  516. reclaimAddr: "",
  517. reclaimAddrName: "",
  518. reclaimAddrList: [],
  519. phoneNumber: "",
  520. deliveryTypeList: [],
  521. deliveryType: "",
  522. deliveryTypeName: "",
  523. contactInfo: {},
  524. activeName: this.$route.query.name,
  525. activeType: this.$route.query.type,
  526. name: "",
  527. phone: "",
  528. addressArr: [],
  529. addressStr: "",
  530. street: "",
  531. address: "",
  532. disabled: true,
  533. skuCount: 1,
  534. total: undefined,
  535. data: {},
  536. imgUrls: [],
  537. dialogFormOrderInfo: false,
  538. dialogFormPhoneNumber: false,
  539. addressDetail: false,
  540. dialogFormVisible: false,
  541. dialogMsgVisible: false,
  542. dataFormPhoneNumber: {
  543. phoneNumber: "",
  544. },
  545. dataForm: {
  546. name: "",
  547. phone: "",
  548. addressArr: [],
  549. addressStr: "",
  550. street: "",
  551. address: "",
  552. },
  553. rules: {
  554. name: [
  555. { required: true, message: "请输入联系姓名", trigger: "blur" },
  556. {
  557. min: 1,
  558. max: 25,
  559. message: "长度在 1 到 25 个字符",
  560. trigger: "blur",
  561. },
  562. ],
  563. phone: [{ required: true, validator: validPhone, trigger: "blur" }],
  564. addressArr: [
  565. { required: true, message: "请选择省市区", trigger: "blur" },
  566. ],
  567. street: [
  568. { required: true, message: "请输入街道", trigger: "blur" },
  569. {
  570. min: 1,
  571. max: 120,
  572. message: "长度在 1 到 120 个字符",
  573. trigger: "blur",
  574. },
  575. ],
  576. address: [
  577. {
  578. required: true,
  579. message: "请输入小区楼栋/乡村名称",
  580. trigger: "blur",
  581. },
  582. {
  583. min: 1,
  584. max: 120,
  585. message: "长度在 1 到 120 个字符",
  586. trigger: "blur",
  587. },
  588. ],
  589. phoneNumber: [
  590. { required: true, validator: validPhone, trigger: "blur" },
  591. ],
  592. },
  593. formLabelWidth: "80px",
  594. };
  595. },
  596. computed: {
  597. // 将 getter 映射到当前组件的计算属性
  598. ...mapGetters(['userInfo'])
  599. },
  600. watch: {
  601. total(val) {
  602. let surplusIntegral = this.$store.getters.userInfo.surplusIntegral;
  603. let money = (val - surplusIntegral) / 10;
  604. if (money >= 0) {
  605. this.money = money
  606. } else {
  607. this.money = 0
  608. }
  609. console.log(this.money);
  610. }
  611. },
  612. created() {
  613. const skuId = this.$route.query.id;
  614. this.dataForm.skuId = skuId;
  615. this.getInfo(skuId);
  616. this.getCouponList(skuId);
  617. this.getNotice('goodsNotice');
  618. },
  619. methods: {
  620. getNotice(val) {
  621. notice({ noticeType: val }).then(response => {
  622. console.log(response.data.data);
  623. this.noticeContent = response.data.data.content
  624. })
  625. },
  626. enterhandler(i) {
  627. this.activeIndex = i;
  628. },
  629. beforeClose(done) {
  630. clearInterval(this.timer);
  631. clearInterval(this.timerPayWxQRcode);
  632. done();
  633. },
  634. handlePayWxQRcode() { // 获取微信支付二维码
  635. getWxPayCode({ // 这里根据不同的后端接口去修改
  636. integral: this.money * 10,
  637. totalFee: this.money,
  638. }).then(res => {
  639. let data = res.data.data;
  640. this.qrcode(data.payUrl); // 例如:data.payUrl 的值为 "weixin://wxpay/bizpayurl?pr=......",根据这个值生成相对应的微信支付二维码
  641. this.timer = setInterval(() => { // 通过定时器每间隔一会去请求查询微信支付状态(具体参数根据项目需要而定)
  642. this.handleQueryWxPayStatus(data.orderNo);
  643. }, 1000);
  644. this.timerPayWxQRcode = setInterval(() => { // 刷新微信支付二维码
  645. console.log('刷新微信支付二维码');
  646. clearInterval(this.timer); // 清除定时器;
  647. clearInterval(this.timerPayWxQRcode);
  648. this.handlePayWxQRcode();
  649. }, 60000);
  650. })
  651. },
  652. handleQueryWxPayStatus(orderNo) { // 查询微信支付状态
  653. queryWxPayStatus({ // 这里根据不同的后端接口去修改
  654. orderNo: orderNo,
  655. }).then(res => {
  656. let data = res.data.data;
  657. if (data == '支付成功') { // 当查询到支付成功时
  658. this.$store.dispatch('GetUserInfo');
  659. this.$message({
  660. type: 'success',
  661. message: '支付成功!'
  662. });
  663. this.money = 0;
  664. this.recharge = false;
  665. clearInterval(this.timer); // 清除定时器;
  666. clearInterval(this.timerPayWxQRcode);
  667. }
  668. }).catch(err => {
  669. console.log(err)
  670. })
  671. },
  672. // 清空二维码,避免生成多个二维码
  673. delQrcode() {
  674. this.$refs.expCodeRef.innerHTML = ""
  675. },
  676. // 前端根据 payUrl 生成微信支付二维码
  677. qrcode(payUrl) {
  678. this.delQrcode();
  679. return new QRCode('expCode', {
  680. width: 150,
  681. height: 150,
  682. text: payUrl,
  683. colorDark: '#000',
  684. colorLight: '#fff'
  685. });
  686. },
  687. changeCouponList(val) {
  688. this.couponName = this.couponList.find(item => item.voucher == val).couponName;
  689. },
  690. getCouponList(id) {
  691. couponList({ actId: this.activeType, skuId: id })
  692. .then((response) => {
  693. this.couponList = response.data.data;
  694. });
  695. },
  696. handleClickGood(val) {
  697. this.skuDesc = val;
  698. if (this.skuDesc) {
  699. this.dialogVisibleGoods = true;
  700. }
  701. },
  702. handleClick() {
  703. if (this.activeName == 'giftNotice') {
  704. if (!this.voucher) {
  705. this.$message({
  706. message: '请选择兑换卷',
  707. type: 'warning'
  708. });
  709. } else {
  710. this.dialogVisible = true;
  711. }
  712. } else {
  713. if (this.money) {
  714. this.$confirm('积分不足,差额部分可用现金补齐,是否购买积分?', {
  715. confirmButtonText: '确定',
  716. cancelButtonText: '取消',
  717. type: 'warning'
  718. }).then(() => {
  719. this.recharge = true;
  720. this.$nextTick(function () {
  721. this.handlePayWxQRcode();
  722. // this.qrcode(this.payUrl);
  723. })
  724. }).catch(() => { });
  725. } else {
  726. this.dialogVisible = true;
  727. }
  728. }
  729. },
  730. handleChange(value) {
  731. console.log(value);
  732. var loc = "";
  733. for (let i = 0; i < value.length; i++) {
  734. loc += codeToText[value[i]];
  735. }
  736. console.log(loc); //打印区域码所对应的属性值即中文地址
  737. this.dataForm.addressStr = loc;
  738. },
  739. handleClickOrderInfo() {
  740. this.dialogFormOrderInfo = false;
  741. },
  742. changeReclaimAddr(val) {
  743. this.disabled = true;
  744. if (val) {
  745. this.disabled = false;
  746. }
  747. this.reclaimAddrName = this.reclaimAddrList.find(item => item.dictValue == val).dictLabel;
  748. },
  749. changeDeliveryType(val) {
  750. this.reclaimAddr = '';
  751. this.disabled = true;
  752. if (val == "0" || val == "") {
  753. this.total = this.data.price;
  754. this.skuCount = 1;
  755. }
  756. if (val == "1") {
  757. debugger;
  758. if (this.data.freightType == "0") {
  759. this.total = this.data.price * this.skuCount + 180;
  760. this.dialogFormOrderInfo = true;
  761. }
  762. if (this.address) {
  763. this.addressDetail = true;
  764. this.disabled = false;
  765. }
  766. }
  767. if (val == "2" || val == "3") {
  768. this.total = this.data.price;
  769. this.skuCount = 1;
  770. this.disabled = false;
  771. }
  772. if (val == "4") {
  773. this.total = this.data.price;
  774. this.skuCount = 1;
  775. if (this.phoneNumber) {
  776. this.disabled = false;
  777. }
  778. }
  779. this.deliveryTypeName = this.deliveryTypeList.find(item => item.dictValue == val).dictLabel;
  780. },
  781. changeDeliveryTypeGift(val) {
  782. this.reclaimAddr = '';
  783. this.disabled = true;
  784. if (val == "0" || val == "") {
  785. this.total = this.data.price;
  786. this.skuCount = 1;
  787. }
  788. if (val == "1") {
  789. if (this.address) {
  790. this.addressDetail = true;
  791. this.disabled = false;
  792. }
  793. }
  794. if (val == "2" || val == "3") {
  795. this.total = this.data.price;
  796. this.skuCount = 1;
  797. this.disabled = false;
  798. }
  799. if (val == "4") {
  800. this.total = this.data.price;
  801. this.skuCount = 1;
  802. if (this.phoneNumber) {
  803. this.disabled = false;
  804. }
  805. }
  806. this.deliveryTypeName = this.deliveryTypeList.find(item => item.dictValue == val).dictLabel;
  807. },
  808. setTab() {
  809. setTab("exchange");
  810. },
  811. changeCount(val) {
  812. this.total = this.data.price * val;
  813. if (
  814. this.deliveryType == "1" &&
  815. this.data.freightType == "0"
  816. ) {
  817. this.total = this.data.price * val + 180;
  818. }
  819. },
  820. handleClose() {
  821. this.dialogMsgVisible = false;
  822. this.$router.push({
  823. path: "/home/pointsMall",
  824. });
  825. },
  826. getInfo(skuId) {
  827. integralInfo({ skuId: skuId })
  828. .then((response) => {
  829. this.data = response.data.data;
  830. this.deliveryTypeList = response.data.data.dictDataList;
  831. this.reclaimAddrList = response.data.data.reclaimAddrList;
  832. this.contactInfo = response.data.data.contactInfo;
  833. if (this.contactInfo) {
  834. this.name = this.contactInfo.contact;
  835. this.phone = this.contactInfo.contactPhone;
  836. this.addressArr = this.contactInfo.addressArr;
  837. this.addressStr = this.contactInfo.addressStr;
  838. this.street = this.contactInfo.street;
  839. this.address = this.contactInfo.contactAddr;
  840. }
  841. this.total = response.data.data.price;
  842. let imgs = response.data.data.imgs;
  843. if (imgs) {
  844. imgs.forEach(element => {
  845. this.imgUrls.push(element.url);
  846. this.imageList.push(element.url);
  847. });
  848. }
  849. })
  850. .catch(() => { });
  851. },
  852. handleClickPhoneNumber() {
  853. this.dialogFormPhoneNumber = true;
  854. this.dataFormPhoneNumber.phoneNumber = this.phoneNumber;
  855. },
  856. handleClickAddress() {
  857. this.dialogFormVisible = true;
  858. this.dataForm.name = this.name;
  859. this.dataForm.phone = this.phone;
  860. this.dataForm.addressArr = this.addressArr;
  861. this.dataForm.addressStr = this.addressStr;
  862. this.dataForm.street = this.street;
  863. this.dataForm.address = this.address;
  864. },
  865. submitFormPhoneNumber(formName) {
  866. this.$refs[formName].validate((valid) => {
  867. if (valid) {
  868. (this.phoneNumber = this.dataFormPhoneNumber.phoneNumber),
  869. (this.dialogFormPhoneNumber = false);
  870. this.disabled = false;
  871. } else {
  872. console.log("error submit!!");
  873. return false;
  874. }
  875. });
  876. },
  877. submitForm(formName) {
  878. this.$refs[formName].validate((valid) => {
  879. if (valid) {
  880. // alert('submit!');
  881. (this.name = this.dataForm.name),
  882. (this.phone = this.dataForm.phone),
  883. (this.addressArr = this.dataForm.addressArr),
  884. (this.addressStr = this.dataForm.addressStr),
  885. (this.street = this.dataForm.street),
  886. (this.address = this.dataForm.address),
  887. (this.addressDetail = true);
  888. this.dialogFormVisible = false;
  889. this.disabled = false;
  890. } else {
  891. console.log("error submit!!");
  892. return false;
  893. }
  894. });
  895. },
  896. submit() {
  897. this.dialogVisible = false;
  898. if (this.deliveryType == "1") {
  899. var params = {
  900. actId: this.activeType,
  901. voucher: this.voucher,
  902. skuId: this.data.skuId,
  903. skuCount: this.skuCount,
  904. price: this.data.price,
  905. deliveryType: this.deliveryType,
  906. contact: this.name,
  907. contactPhone: this.phone,
  908. addressArr: this.addressArr,
  909. addressStr: this.addressStr,
  910. street: this.street,
  911. contactAddr: this.address,
  912. skuType: this.data.skuType,
  913. welfareId: this.data.welfareId,
  914. };
  915. } else if (this.deliveryType == "4") {
  916. var params = {
  917. actId: this.activeType,
  918. voucher: this.voucher,
  919. skuId: this.data.skuId,
  920. skuCount: this.skuCount,
  921. price: this.data.price,
  922. deliveryType: this.deliveryType,
  923. contactPhone: this.phoneNumber,
  924. skuType: this.data.skuType,
  925. welfareId: this.data.welfareId,
  926. };
  927. } else {
  928. var params = {
  929. actId: this.activeType,
  930. voucher: this.voucher,
  931. skuId: this.data.skuId,
  932. skuCount: this.skuCount,
  933. price: this.data.price,
  934. deliveryType: this.deliveryType,
  935. reclaimAddr: this.reclaimAddr,
  936. skuType: this.data.skuType,
  937. welfareId: this.data.welfareId,
  938. };
  939. }
  940. if (this.activeName == "goodsNotice") {
  941. start(params)
  942. .then((response) => {
  943. console.log(response.data.data);
  944. this.$store.dispatch("GetUserInfo");
  945. this.dialogMsgVisible = true;
  946. })
  947. .catch(() => { });
  948. } else {
  949. kill(params)
  950. .then((response) => {
  951. console.log(response.data.data);
  952. this.$store.dispatch("GetUserInfo");
  953. this.dialogMsgVisible = true;
  954. })
  955. .catch(() => { });
  956. }
  957. },
  958. handleClickExchange: debounce(
  959. function () {
  960. this.submit();
  961. },
  962. 2000,
  963. true
  964. ),
  965. },
  966. };
  967. </script>
  968. <style scoped>
  969. ::v-deep .el-card__body {
  970. padding: 20px !important;
  971. }
  972. .red {
  973. color: red;
  974. }
  975. /* .checklist{
  976. } */
  977. .listItem {
  978. display: flex;
  979. justify-content: space-between;
  980. align-content: center;
  981. padding: 5px 0;
  982. }
  983. /* .itemName{
  984. } */
  985. /* .itemValue{
  986. } */
  987. .clearfix:before,
  988. .clearfix:after {
  989. display: table;
  990. content: "";
  991. }
  992. .clearfix:after {
  993. clear: both;
  994. }
  995. .box-card {
  996. width: 100%;
  997. }
  998. /* .label:first-child {
  999. margin-top: 0;
  1000. } */
  1001. .label {
  1002. font-size: 16px;
  1003. line-height: 24px;
  1004. margin: 16px 0 24px;
  1005. }
  1006. .address-container {
  1007. padding: 16px;
  1008. min-height: 112px;
  1009. background-color: #f7f8fa;
  1010. box-sizing: border-box;
  1011. border-radius: 4px;
  1012. width: 320px;
  1013. border: 1px solid #abcdff;
  1014. }
  1015. .address-container .header {
  1016. font-weight: 500;
  1017. font-size: 14px;
  1018. line-height: 24px;
  1019. color: #252933;
  1020. display: flex;
  1021. justify-content: space-between;
  1022. margin: 0 0 8px;
  1023. }
  1024. .address-container .header .left {
  1025. display: flex;
  1026. justify-content: center;
  1027. align-items: center;
  1028. }
  1029. .address-container .btn {
  1030. flex: none;
  1031. color: #1e80ff;
  1032. cursor: pointer;
  1033. font-weight: 400;
  1034. margin-left: 1em;
  1035. }
  1036. .address-container .address,
  1037. .address-container .phone {
  1038. margin: 0;
  1039. font-size: 14px;
  1040. line-height: 24px;
  1041. color: #515767;
  1042. }
  1043. .address-container.new {
  1044. border: 1px dashed #e4e6eb;
  1045. width: 100%;
  1046. display: flex;
  1047. align-items: center;
  1048. justify-content: center;
  1049. cursor: pointer;
  1050. flex-flow: column nowrap;
  1051. }
  1052. .address-container {
  1053. padding: 16px;
  1054. min-height: 112px;
  1055. background-color: #f7f8fa;
  1056. box-sizing: border-box;
  1057. border-radius: 4px;
  1058. width: 320px;
  1059. border: 1px solid #abcdff;
  1060. }
  1061. .address-container.new .add-icon {
  1062. font-size: 16px;
  1063. color: #515767;
  1064. }
  1065. .byte-icon {
  1066. width: 1em;
  1067. height: 1em;
  1068. display: inline-block;
  1069. vertical-align: middle;
  1070. line-height: 1;
  1071. }
  1072. svg:not(:root) {
  1073. overflow-clip-margin: content-box;
  1074. overflow: hidden;
  1075. }
  1076. .byte-icon svg {
  1077. width: 100%;
  1078. height: 100%;
  1079. fill: currentColor;
  1080. pointer-events: none;
  1081. }
  1082. .address-container.new .add-label {
  1083. font-size: 14px;
  1084. line-height: 24px;
  1085. color: #8a919f;
  1086. margin: 18px 0 0;
  1087. }
  1088. .table {
  1089. border-collapse: collapse;
  1090. border: 1px solid #e4e6eb;
  1091. box-sizing: border-box;
  1092. border-radius: 2px;
  1093. width: 100%;
  1094. text-align: left;
  1095. font-size: 14px;
  1096. line-height: 24px;
  1097. border-collapse: separate;
  1098. border-spacing: 0;
  1099. border-radius: 4px;
  1100. }
  1101. .table tr {
  1102. border: 1px solid #e4e6eb;
  1103. }
  1104. .table th {
  1105. padding: 12px 16px;
  1106. background-color: #f7f8fa;
  1107. font-weight: 500;
  1108. color: #282f38;
  1109. }
  1110. .table td {
  1111. padding: 16px;
  1112. vertical-align: middle;
  1113. color: #515767;
  1114. }
  1115. .table .prize-info {
  1116. display: flex;
  1117. }
  1118. .table .prize-img-container {
  1119. display: flex;
  1120. align-items: center;
  1121. justify-content: center;
  1122. background: #f7f8fa;
  1123. max-width: 80px;
  1124. height: 80px;
  1125. }
  1126. .table .prize-detail-info {
  1127. margin-left: 16px;
  1128. display: flex;
  1129. flex-flow: column;
  1130. align-items: flex-start;
  1131. justify-content: center;
  1132. }
  1133. .table .prize-img-container .prize-img {
  1134. max-height: 64px;
  1135. }
  1136. .lazy {
  1137. position: relative;
  1138. -o-object-fit: cover;
  1139. object-fit: cover;
  1140. }
  1141. img {
  1142. border-style: none;
  1143. }
  1144. .table .prize-detail-info {
  1145. margin-left: 16px;
  1146. display: flex;
  1147. flex-flow: column;
  1148. align-items: flex-start;
  1149. justify-content: center;
  1150. }
  1151. .table .prize-detail-info .title {
  1152. cursor: pointer;
  1153. font-weight: 400;
  1154. font-size: 14px;
  1155. line-height: 24px;
  1156. color: #1d2129;
  1157. margin: 0 0 3px;
  1158. }
  1159. .table .prize-detail-info .desc {
  1160. margin: 0;
  1161. line-height: 18px;
  1162. height: 18px;
  1163. }
  1164. .table .prize-detail-info .desc span {
  1165. font-size: 12px;
  1166. line-height: 14px;
  1167. color: #ff7d00;
  1168. background: #fff7e8;
  1169. padding: 2px 4px;
  1170. }
  1171. .table .finlly-price {
  1172. font-weight: 500;
  1173. font-size: 14px;
  1174. line-height: 24px;
  1175. color: #1e80ff;
  1176. }
  1177. .footer {
  1178. margin-top: 16px;
  1179. /* display: flex;
  1180. justify-content: space-between; */
  1181. }
  1182. .footer .left-info {
  1183. box-sizing: border-box;
  1184. width: 550px;
  1185. height: -webkit-fit-content;
  1186. height: -moz-fit-content;
  1187. height: fit-content;
  1188. background-color: #e8f3ff;
  1189. border-radius: 4px;
  1190. padding: 16px;
  1191. }
  1192. .footer .left-info .info-title {
  1193. font-size: 16px;
  1194. line-height: 24px;
  1195. color: #282f38;
  1196. display: flex;
  1197. align-items: center;
  1198. }
  1199. .footer .left-info .info-icon {
  1200. margin-right: 8px;
  1201. }
  1202. .footer .left-info .info-content {
  1203. margin: 4px 0 4px 2em;
  1204. white-space: pre-line;
  1205. font-size: 12px;
  1206. line-height: 20px;
  1207. color: #8a919f;
  1208. }
  1209. .footer .right {
  1210. font-size: 14px;
  1211. line-height: 24px;
  1212. color: #282f38;
  1213. }
  1214. .footer .right .remark-line {
  1215. display: flex;
  1216. position: relative;
  1217. }
  1218. .footer .right .remark {
  1219. width: 400px;
  1220. }
  1221. .footer .right .btn-line {
  1222. margin-top: 16px;
  1223. text-align: right;
  1224. margin-bottom: 20px;
  1225. }
  1226. .addButton-address {
  1227. background: #1e80ff;
  1228. border-color: #1e80ff;
  1229. color: #fff;
  1230. width: 160px;
  1231. height: 48px;
  1232. border-radius: 50px;
  1233. line-height: 46px;
  1234. padding: 0;
  1235. font-size: 16px;
  1236. border: 1px solid transparent;
  1237. }
  1238. .wrapper .icon {
  1239. height: 88px;
  1240. margin-bottom: 24px;
  1241. max-width: 300px;
  1242. }
  1243. .payBox-way {
  1244. margin-top: 16px;
  1245. }
  1246. .way-item {
  1247. display: flex;
  1248. background-color: #f7f7f9;
  1249. border-radius: 6px;
  1250. padding: 12px;
  1251. }
  1252. .item-left {
  1253. position: relative;
  1254. width: 150px;
  1255. height: 150px;
  1256. background-color: #fff;
  1257. border-radius: 6px;
  1258. padding: 7px;
  1259. }
  1260. .item-right {
  1261. margin-left: 12px;
  1262. }
  1263. .up {
  1264. display: flex;
  1265. align-items: flex-end;
  1266. font-size: 18px;
  1267. font-weight: 600;
  1268. height: 60px;
  1269. }
  1270. .center {
  1271. display: flex;
  1272. align-items: center;
  1273. margin-top: 6px;
  1274. }
  1275. .textStyle {
  1276. font-size: 16px;
  1277. font-weight: 400;
  1278. margin-left: 4px;
  1279. color: rgba(22, 24, 35, .34);
  1280. }
  1281. .down {
  1282. font-size: 16px;
  1283. color: rgba(22, 24, 35, .34);
  1284. margin-top: 16px;
  1285. display: flex;
  1286. -moz-box-align: center;
  1287. -ms-flex-align: center;
  1288. align-items: center;
  1289. }
  1290. .goodDetail {
  1291. display: flex;
  1292. height: 485px;
  1293. }
  1294. .goods-image {
  1295. width: 400px;
  1296. height: 480px;
  1297. position: relative;
  1298. display: flex;
  1299. flex-direction: column;
  1300. }
  1301. .goods-image .middle {
  1302. width: 400px;
  1303. height: 400px;
  1304. background: #f5f5f5;
  1305. }
  1306. .goods-image .small {
  1307. height: 80px;
  1308. display: flex;
  1309. /* justify-content: space-between; */
  1310. }
  1311. .goods-image .small li {
  1312. width: 68px;
  1313. height: 68px;
  1314. margin-right: 12px;
  1315. margin-top: 15px;
  1316. cursor: pointer;
  1317. }
  1318. .goods-image .small li:hover {
  1319. border: 2px solid red;
  1320. }
  1321. .active {
  1322. border: 2px solid red;
  1323. }
  1324. .goods-content {
  1325. flex: 1;
  1326. margin-left: 10px;
  1327. height: 100%;
  1328. scrollbar-width: none; /* firefox */
  1329. -ms-overflow-style: none; /* IE 10+ */
  1330. overflow-x: hidden;
  1331. overflow-y: auto;
  1332. }
  1333. .goods-content::-webkit-scrollbar {
  1334. display: none; /* Chrome Safari */
  1335. }
  1336. .goods-content .goods-name{
  1337. font-size: 18px;
  1338. font-weight: bold;
  1339. line-height: 36px;
  1340. }
  1341. .goods-content .goods-price{
  1342. font-size: 16px;
  1343. line-height: 32px;
  1344. }
  1345. </style>