RedeemView.vue 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463
  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-price">兑换积分:{{ data.price }}
  29. <!-- <span style="color: red;margin-left: 150px;">参 考 价:¥{{ data.hisPrice}}</span> -->
  30. </div>
  31. <div class="goods-price">物品类别:{{ data.skuType==0 ? '积分商品' : '活动礼品' }}</div>
  32. <div class="goods-price">兑换方式:{{ data.deliveryTypeName }}</div>
  33. <div class="goods-price">是否包邮:{{ 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.price }} 积分
  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-price">
  177. {{ total }} 积分
  178. <span style="color: red;" v-if="money!='0'"> + {{ totalMoney }} 元</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.price }} 积分
  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">+ {{ totalMoney }}元</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.price }} 积分
  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'">+ {{ totalMoney }}元</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;">¥ {{ totalMoney }}</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. console.log(loc); //打印区域码所对应的属性值即中文地址
  754. this.dataForm.addressStr = loc;
  755. },
  756. handleClickOrderInfo() {
  757. this.dialogFormOrderInfo = false;
  758. },
  759. changeReclaimAddr(val) {
  760. this.disabled = true;
  761. if (val) {
  762. this.disabled = false;
  763. }
  764. this.reclaimAddrName = this.reclaimAddrList.find(item => item.dictValue == val).dictLabel;
  765. },
  766. changeDeliveryType(val) {
  767. this.reclaimAddr = '';
  768. this.disabled = true;
  769. if (val == "0" || val == "") {
  770. this.total = this.data.price;
  771. this.totalMoney = this.money;
  772. this.skuCount = 1;
  773. }
  774. if (val == "1") {
  775. debugger;
  776. if (this.data.freightType == "0") {
  777. this.total = this.data.price * this.skuCount + 180;
  778. this.dialogFormOrderInfo = true;
  779. }
  780. if (this.address) {
  781. this.addressDetail = true;
  782. this.disabled = false;
  783. }
  784. }
  785. if (val == "2" || val == "3") {
  786. this.total = this.data.price;
  787. this.totalMoney = this.money;
  788. this.skuCount = 1;
  789. this.disabled = false;
  790. }
  791. if (val == "4") {
  792. this.total = this.data.price;
  793. this.totalMoney = this.money;
  794. this.skuCount = 1;
  795. if (this.phoneNumber) {
  796. this.disabled = false;
  797. }
  798. }
  799. this.deliveryTypeName = this.deliveryTypeList.find(item => item.dictValue == val).dictLabel;
  800. },
  801. changeDeliveryTypeGift(val) {
  802. this.reclaimAddr = '';
  803. this.disabled = true;
  804. if (val == "0" || val == "") {
  805. this.total = this.data.price;
  806. this.totalMoney = this.money;
  807. this.skuCount = 1;
  808. }
  809. if (val == "1") {
  810. if (this.address) {
  811. this.addressDetail = true;
  812. this.disabled = false;
  813. }
  814. }
  815. if (val == "2" || val == "3") {
  816. this.total = this.data.price;
  817. this.totalMoney = this.money;
  818. this.skuCount = 1;
  819. this.disabled = false;
  820. }
  821. if (val == "4") {
  822. this.total = this.data.price;
  823. this.totalMoney = this.money;
  824. this.skuCount = 1;
  825. if (this.phoneNumber) {
  826. this.disabled = false;
  827. }
  828. }
  829. this.deliveryTypeName = this.deliveryTypeList.find(item => item.dictValue == val).dictLabel;
  830. },
  831. setTab() {
  832. setTab("exchange");
  833. },
  834. changeCount(val) {
  835. if(this.money){
  836. this.totalMoney = ((this.money * 100) * val)/ 100;
  837. }
  838. this.total = this.data.price * val;
  839. if (
  840. this.deliveryType == "1" &&
  841. this.data.freightType == "0"
  842. ) {
  843. this.total = this.data.price * val + 180;
  844. }
  845. },
  846. handleClose() {
  847. this.dialogMsgVisible = false;
  848. this.$router.push({
  849. path: "/home/pointsMall",
  850. });
  851. },
  852. getInfo(skuId) {
  853. integralInfo({ skuId: skuId })
  854. .then((response) => {
  855. this.data = response.data.data;
  856. this.deliveryTypeList = response.data.data.dictDataList;
  857. this.reclaimAddrList = response.data.data.reclaimAddrList;
  858. this.contactInfo = response.data.data.contactInfo;
  859. if (this.contactInfo) {
  860. this.name = this.contactInfo.contact;
  861. this.phone = this.contactInfo.contactPhone;
  862. this.addressArr = this.contactInfo.addressArr;
  863. this.addressStr = this.contactInfo.addressStr;
  864. this.street = this.contactInfo.street;
  865. this.address = this.contactInfo.contactAddr;
  866. }
  867. this.total = response.data.data.price;
  868. this.money = response.data.data.wxPay;
  869. this.totalMoney = response.data.data.wxPay;
  870. let imgs = response.data.data.imgs;
  871. if (imgs) {
  872. imgs.forEach(element => {
  873. this.imgUrls.push(element.url);
  874. this.imageList.push(element.url);
  875. });
  876. }
  877. })
  878. .catch(() => { });
  879. },
  880. handleClickPhoneNumber() {
  881. this.dialogFormPhoneNumber = true;
  882. this.dataFormPhoneNumber.phoneNumber = this.phoneNumber;
  883. },
  884. handleClickAddress() {
  885. this.dialogFormVisible = true;
  886. this.dataForm.name = this.name;
  887. this.dataForm.phone = this.phone;
  888. this.dataForm.addressArr = this.addressArr;
  889. this.dataForm.addressStr = this.addressStr;
  890. this.dataForm.street = this.street;
  891. this.dataForm.address = this.address;
  892. },
  893. submitFormPhoneNumber(formName) {
  894. this.$refs[formName].validate((valid) => {
  895. if (valid) {
  896. (this.phoneNumber = this.dataFormPhoneNumber.phoneNumber),
  897. (this.dialogFormPhoneNumber = false);
  898. this.disabled = false;
  899. } else {
  900. console.log("error submit!!");
  901. return false;
  902. }
  903. });
  904. },
  905. submitForm(formName) {
  906. this.$refs[formName].validate((valid) => {
  907. if (valid) {
  908. // alert('submit!');
  909. (this.name = this.dataForm.name),
  910. (this.phone = this.dataForm.phone),
  911. (this.addressArr = this.dataForm.addressArr),
  912. (this.addressStr = this.dataForm.addressStr),
  913. (this.street = this.dataForm.street),
  914. (this.address = this.dataForm.address),
  915. (this.addressDetail = true);
  916. this.dialogFormVisible = false;
  917. this.disabled = false;
  918. } else {
  919. console.log("error submit!!");
  920. return false;
  921. }
  922. });
  923. },
  924. submit() {
  925. this.dialogVisible = false;
  926. if (this.deliveryType == "1") {
  927. var params = {
  928. actId: this.activeType,
  929. voucher: this.voucher,
  930. skuId: this.data.skuId,
  931. skuCount: this.skuCount,
  932. price: this.data.price,
  933. deliveryType: this.deliveryType,
  934. contact: this.name,
  935. contactPhone: this.phone,
  936. addressArr: this.addressArr,
  937. addressStr: this.addressStr,
  938. street: this.street,
  939. contactAddr: this.address,
  940. skuType: this.data.skuType,
  941. welfareId: this.data.welfareId,
  942. };
  943. } else if (this.deliveryType == "4") {
  944. var params = {
  945. actId: this.activeType,
  946. voucher: this.voucher,
  947. skuId: this.data.skuId,
  948. skuCount: this.skuCount,
  949. price: this.data.price,
  950. deliveryType: this.deliveryType,
  951. contactPhone: this.phoneNumber,
  952. skuType: this.data.skuType,
  953. welfareId: this.data.welfareId,
  954. };
  955. } else {
  956. var params = {
  957. actId: this.activeType,
  958. voucher: this.voucher,
  959. skuId: this.data.skuId,
  960. skuCount: this.skuCount,
  961. price: this.data.price,
  962. deliveryType: this.deliveryType,
  963. reclaimAddr: this.reclaimAddr,
  964. skuType: this.data.skuType,
  965. welfareId: this.data.welfareId,
  966. };
  967. }
  968. if (this.activeName == "goodsNotice") {
  969. start(params)
  970. .then((response) => {
  971. console.log(response.data.data);
  972. if(response.data.data){
  973. this.recharge = true;
  974. this.$nextTick(function () {
  975. let data = response.data.data;
  976. this.qrcode(data.payUrl); // 例如:data.payUrl 的值为 "weixin://wxpay/bizpayurl?pr=......",根据这个值生成相对应的微信支付二维码
  977. this.timer = setInterval(() => { // 通过定时器每间隔一会去请求查询微信支付状态(具体参数根据项目需要而定)
  978. this.handleQueryWxPayStatus(data.orderNo);
  979. }, 1000);
  980. })
  981. }else{
  982. this.$store.dispatch("GetUserInfo");
  983. this.dialogMsgVisible = true;
  984. }
  985. })
  986. .catch(() => { });
  987. } else {
  988. kill(params)
  989. .then((response) => {
  990. console.log(response.data.data);
  991. this.$store.dispatch("GetUserInfo");
  992. this.dialogMsgVisible = true;
  993. })
  994. .catch(() => { });
  995. }
  996. },
  997. handleClickExchange: debounce(
  998. function () {
  999. this.submit();
  1000. },
  1001. 2000,
  1002. true
  1003. ),
  1004. },
  1005. };
  1006. </script>
  1007. <style scoped>
  1008. ::v-deep .el-card__body {
  1009. padding: 20px !important;
  1010. }
  1011. .red {
  1012. color: red;
  1013. }
  1014. /* .checklist{
  1015. } */
  1016. .listItem {
  1017. display: flex;
  1018. justify-content: space-between;
  1019. align-content: center;
  1020. padding: 5px 0;
  1021. }
  1022. /* .itemName{
  1023. } */
  1024. /* .itemValue{
  1025. } */
  1026. .clearfix:before,
  1027. .clearfix:after {
  1028. display: table;
  1029. content: "";
  1030. }
  1031. .clearfix:after {
  1032. clear: both;
  1033. }
  1034. .box-card {
  1035. width: 100%;
  1036. }
  1037. /* .label:first-child {
  1038. margin-top: 0;
  1039. } */
  1040. .label {
  1041. font-size: 16px;
  1042. line-height: 24px;
  1043. margin: 16px 0 24px;
  1044. }
  1045. .address-container {
  1046. padding: 16px;
  1047. min-height: 112px;
  1048. background-color: #f7f8fa;
  1049. box-sizing: border-box;
  1050. border-radius: 4px;
  1051. width: 320px;
  1052. border: 1px solid #abcdff;
  1053. }
  1054. .address-container .header {
  1055. font-weight: 500;
  1056. font-size: 14px;
  1057. line-height: 24px;
  1058. color: #252933;
  1059. display: flex;
  1060. justify-content: space-between;
  1061. margin: 0 0 8px;
  1062. }
  1063. .address-container .header .left {
  1064. display: flex;
  1065. justify-content: center;
  1066. align-items: center;
  1067. }
  1068. .address-container .btn {
  1069. flex: none;
  1070. color: #1e80ff;
  1071. cursor: pointer;
  1072. font-weight: 400;
  1073. margin-left: 1em;
  1074. }
  1075. .address-container .address,
  1076. .address-container .phone {
  1077. margin: 0;
  1078. font-size: 14px;
  1079. line-height: 24px;
  1080. color: #515767;
  1081. }
  1082. .address-container.new {
  1083. border: 1px dashed #e4e6eb;
  1084. width: 100%;
  1085. display: flex;
  1086. align-items: center;
  1087. justify-content: center;
  1088. cursor: pointer;
  1089. flex-flow: column nowrap;
  1090. }
  1091. .address-container {
  1092. padding: 16px;
  1093. min-height: 112px;
  1094. background-color: #f7f8fa;
  1095. box-sizing: border-box;
  1096. border-radius: 4px;
  1097. width: 320px;
  1098. border: 1px solid #abcdff;
  1099. }
  1100. .address-container.new .add-icon {
  1101. font-size: 16px;
  1102. color: #515767;
  1103. }
  1104. .byte-icon {
  1105. width: 1em;
  1106. height: 1em;
  1107. display: inline-block;
  1108. vertical-align: middle;
  1109. line-height: 1;
  1110. }
  1111. svg:not(:root) {
  1112. overflow-clip-margin: content-box;
  1113. overflow: hidden;
  1114. }
  1115. .byte-icon svg {
  1116. width: 100%;
  1117. height: 100%;
  1118. fill: currentColor;
  1119. pointer-events: none;
  1120. }
  1121. .address-container.new .add-label {
  1122. font-size: 14px;
  1123. line-height: 24px;
  1124. color: #8a919f;
  1125. margin: 18px 0 0;
  1126. }
  1127. .table {
  1128. border-collapse: collapse;
  1129. border: 1px solid #e4e6eb;
  1130. box-sizing: border-box;
  1131. border-radius: 2px;
  1132. width: 100%;
  1133. text-align: left;
  1134. font-size: 14px;
  1135. line-height: 24px;
  1136. border-collapse: separate;
  1137. border-spacing: 0;
  1138. border-radius: 4px;
  1139. }
  1140. .table tr {
  1141. border: 1px solid #e4e6eb;
  1142. }
  1143. .table th {
  1144. padding: 12px 16px;
  1145. background-color: #f7f8fa;
  1146. font-weight: 500;
  1147. color: #282f38;
  1148. }
  1149. .table td {
  1150. padding: 16px;
  1151. vertical-align: middle;
  1152. color: #515767;
  1153. }
  1154. .table .prize-info {
  1155. display: flex;
  1156. }
  1157. .table .prize-img-container {
  1158. display: flex;
  1159. align-items: center;
  1160. justify-content: center;
  1161. background: #f7f8fa;
  1162. max-width: 80px;
  1163. height: 80px;
  1164. }
  1165. .table .prize-detail-info {
  1166. margin-left: 16px;
  1167. display: flex;
  1168. flex-flow: column;
  1169. align-items: flex-start;
  1170. justify-content: center;
  1171. }
  1172. .table .prize-img-container .prize-img {
  1173. max-height: 64px;
  1174. }
  1175. .lazy {
  1176. position: relative;
  1177. -o-object-fit: cover;
  1178. object-fit: cover;
  1179. }
  1180. img {
  1181. border-style: none;
  1182. }
  1183. .table .prize-detail-info {
  1184. margin-left: 16px;
  1185. display: flex;
  1186. flex-flow: column;
  1187. align-items: flex-start;
  1188. justify-content: center;
  1189. }
  1190. .table .prize-detail-info .title {
  1191. cursor: pointer;
  1192. font-weight: 400;
  1193. font-size: 14px;
  1194. line-height: 24px;
  1195. color: #1d2129;
  1196. margin: 0 0 3px;
  1197. }
  1198. .table .prize-detail-info .desc {
  1199. margin: 0;
  1200. line-height: 18px;
  1201. height: 18px;
  1202. }
  1203. .table .prize-detail-info .desc span {
  1204. font-size: 12px;
  1205. line-height: 14px;
  1206. color: #ff7d00;
  1207. background: #fff7e8;
  1208. padding: 2px 4px;
  1209. }
  1210. .table .finlly-price {
  1211. font-weight: 500;
  1212. font-size: 14px;
  1213. line-height: 24px;
  1214. color: #1e80ff;
  1215. /* color: red; */
  1216. }
  1217. .footer {
  1218. margin-top: 16px;
  1219. /* display: flex;
  1220. justify-content: space-between; */
  1221. }
  1222. .footer .left-info {
  1223. box-sizing: border-box;
  1224. width: 550px;
  1225. height: -webkit-fit-content;
  1226. height: -moz-fit-content;
  1227. height: fit-content;
  1228. background-color: #e8f3ff;
  1229. border-radius: 4px;
  1230. padding: 16px;
  1231. }
  1232. .footer .left-info .info-title {
  1233. font-size: 16px;
  1234. line-height: 24px;
  1235. color: #282f38;
  1236. display: flex;
  1237. align-items: center;
  1238. }
  1239. .footer .left-info .info-icon {
  1240. margin-right: 8px;
  1241. }
  1242. .footer .left-info .info-content {
  1243. margin: 4px 0 4px 2em;
  1244. white-space: pre-line;
  1245. font-size: 12px;
  1246. line-height: 20px;
  1247. color: #8a919f;
  1248. }
  1249. .footer .right {
  1250. font-size: 14px;
  1251. line-height: 24px;
  1252. color: #282f38;
  1253. }
  1254. .footer .right .remark-line {
  1255. display: flex;
  1256. position: relative;
  1257. }
  1258. .footer .right .remark {
  1259. width: 400px;
  1260. }
  1261. .footer .right .btn-line {
  1262. margin-top: 16px;
  1263. text-align: right;
  1264. margin-bottom: 20px;
  1265. }
  1266. .addButton-address {
  1267. background: #1e80ff;
  1268. border-color: #1e80ff;
  1269. color: #fff;
  1270. width: 160px;
  1271. height: 48px;
  1272. border-radius: 50px;
  1273. line-height: 46px;
  1274. padding: 0;
  1275. font-size: 16px;
  1276. border: 1px solid transparent;
  1277. }
  1278. .wrapper .icon {
  1279. height: 88px;
  1280. margin-bottom: 24px;
  1281. max-width: 300px;
  1282. }
  1283. .payBox-way {
  1284. margin-top: 16px;
  1285. }
  1286. .way-item {
  1287. display: flex;
  1288. background-color: #f7f7f9;
  1289. border-radius: 6px;
  1290. padding: 12px;
  1291. }
  1292. .item-left {
  1293. position: relative;
  1294. width: 150px;
  1295. height: 150px;
  1296. background-color: #fff;
  1297. border-radius: 6px;
  1298. padding: 7px;
  1299. }
  1300. .item-right {
  1301. margin-left: 12px;
  1302. }
  1303. .up {
  1304. display: flex;
  1305. align-items: flex-end;
  1306. font-size: 18px;
  1307. font-weight: 600;
  1308. height: 60px;
  1309. }
  1310. .center {
  1311. display: flex;
  1312. align-items: center;
  1313. margin-top: 6px;
  1314. }
  1315. .textStyle {
  1316. font-size: 16px;
  1317. font-weight: 400;
  1318. margin-left: 4px;
  1319. color: rgba(22, 24, 35, .34);
  1320. }
  1321. .down {
  1322. font-size: 16px;
  1323. color: rgba(22, 24, 35, .34);
  1324. margin-top: 16px;
  1325. display: flex;
  1326. -moz-box-align: center;
  1327. -ms-flex-align: center;
  1328. align-items: center;
  1329. }
  1330. .goodDetail {
  1331. display: flex;
  1332. height: 485px;
  1333. }
  1334. .goods-image {
  1335. width: 400px;
  1336. height: 480px;
  1337. position: relative;
  1338. display: flex;
  1339. flex-direction: column;
  1340. }
  1341. .goods-image .middle {
  1342. width: 400px;
  1343. height: 400px;
  1344. background: #f5f5f5;
  1345. }
  1346. .goods-image .small {
  1347. height: 80px;
  1348. display: flex;
  1349. /* justify-content: space-between; */
  1350. }
  1351. .goods-image .small li {
  1352. width: 68px;
  1353. height: 68px;
  1354. margin-right: 12px;
  1355. margin-top: 15px;
  1356. cursor: pointer;
  1357. }
  1358. .goods-image .small li:hover {
  1359. border: 2px solid red;
  1360. }
  1361. .active {
  1362. border: 2px solid red;
  1363. }
  1364. .goods-content {
  1365. flex: 1;
  1366. margin-left: 10px;
  1367. height: 100%;
  1368. scrollbar-width: none; /* firefox */
  1369. -ms-overflow-style: none; /* IE 10+ */
  1370. overflow-x: hidden;
  1371. overflow-y: auto;
  1372. }
  1373. .goods-content::-webkit-scrollbar {
  1374. display: none; /* Chrome Safari */
  1375. }
  1376. .goods-content .goods-name{
  1377. font-size: 18px;
  1378. font-weight: bold;
  1379. line-height: 36px;
  1380. }
  1381. .goods-content .goods-price{
  1382. font-size: 16px;
  1383. line-height: 32px;
  1384. }
  1385. </style>