RedeemView.vue 58 KB

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