RedeemView.vue 55 KB

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