male.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view class="content">
  3. <view class="box">
  4. <view class="title" style="margin-top: 0;">{{$t('foo.yhzzyz')}}</view>
  5. <view class="detail">
  6. <view class="detail-spe">
  7. {{$t('foo.zsxm')}}:{{ name }}
  8. </view>
  9. <view class="detail-spe">
  10. {{$t('foo.yhylsjh')}}:{{ phone }}
  11. <view class="copyband" @click="copy(yhylsjh)">{{$t('foo.fzsjh')}}</view>
  12. </view>
  13. <view class="detail-item">
  14. {{$t('foo.yhzh')}}:{{ bank_card_no }}
  15. <view class="copy" @click="copy(bank_card_no)">{{$t('foo.fzzh')}}</view>
  16. </view>
  17. <view class="detail-spe">
  18. {{$t('foo.khh')}}:{{ bank_of_deposit }}
  19. <view class="copyband" @click="copy(bank_of_deposit)">{{$t('foo.fzkhh')}}</view>
  20. </view>
  21. </view>
  22. <view class="title" v-if="ali != ''">{{$t('foo.zfbsmyz')}}</view>
  23. <view v-if="ali != ''" class="erweima"><image :src="ali" mode="widthFix"></image></view>
  24. <view v-if="wechat != ''" class="title">{{$t('foo.wxsmyz')}}</view>
  25. <view v-if="wechat != ''" class="erweima" ><image :src="wechat" mode="widthFix"></image></view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import { mapState, mapMutations } from 'vuex';
  31. export default {
  32. computed: {
  33. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  34. },
  35. data(){
  36. return {
  37. ali:'',
  38. wechat:'',
  39. bank_card_no:'',
  40. bank_of_deposit:'',
  41. name:'',
  42. phone:'',
  43. }
  44. },
  45. onLoad(option) {
  46. console.log(option)
  47. if(option.ali != ''){
  48. this.ali = option.ali
  49. }
  50. if(option.wei != ''){
  51. this.wechat = option.wei
  52. }
  53. if(option.bank != ''){
  54. this.bank_of_deposit = option.bank
  55. }
  56. if(option.info != ''){
  57. this.bank_card_no = option.info
  58. }
  59. if(option.name != ''){
  60. this.name = option.name
  61. }
  62. if(option.phone != ''){
  63. this.phone = option.phone
  64. }
  65. uni.setNavigationBarTitle({
  66. title:this.$t('foo.xq')
  67. })
  68. },
  69. methods: {
  70. copy(text) {
  71. uni.setClipboardData({
  72. data: text,
  73. success: e => {
  74. uni.showToast({
  75. title: this.$t('foo.fzcg')
  76. });
  77. },
  78. fail(e) {
  79. uni.showToast({
  80. title: this.$t('foo.fzcg.fzsb'),
  81. icon: false
  82. });
  83. console.log(e);
  84. }
  85. });
  86. }
  87. }
  88. };
  89. </script>
  90. <style lang="scss">
  91. body,
  92. page {
  93. height: 100%;
  94. background-color: #000;
  95. }
  96. .content {
  97. background-color: #000;
  98. line-height: 1;
  99. padding-top: 25rpx;
  100. padding: 24rpx 24rpx 90rpx;
  101. .cross {
  102. margin-left: 6rpx;
  103. height: 76rpx;
  104. line-height: 76rpx;
  105. color: #444444;
  106. border-bottom: 1rpx solid #cccccc;
  107. }
  108. .image {
  109. margin-top: 44rpx;
  110. margin-bottom: 48rpx;
  111. height: 404rpx;
  112. width: 100%;
  113. image {
  114. width: 100%;
  115. height: 100%;
  116. }
  117. }
  118. .box {
  119. padding: 20rpx 0 24rpx;
  120. color: #fff;
  121. .title {
  122. margin-top: 60rpx;
  123. font-size: 28rpx;
  124. font-family: PingFang SC;
  125. font-weight: bold;
  126. }
  127. .detail {
  128. padding-top: 10rpx;
  129. font-size: 28rpx;
  130. line-height: 40rpx;
  131. .detail-spe {
  132. margin-top: 10rpx;
  133. line-height: 46rpx;
  134. overflow: hidden;
  135. text-overflow: ellipsis;
  136. display: -webkit-box; //必须结合的属性,将对象作为弹性伸缩盒子模型显示
  137. -webkit-line-clamp: 2; //控制文本的行数
  138. -webkit-box-orient: vertical; //必须结合的属性,设置或检索伸缩盒对象的子元素的排列方式
  139. .copyband {
  140. display: flex;
  141. float: right;
  142. // float: right;
  143. justify-content: center;
  144. border-radius: 10rpx;
  145. line-height: 34rpx;
  146. font-size: 24rpx;
  147. color: #fff;
  148. // padding: 0 24rpx;
  149. width: 168rpx;
  150. height: 34rpx;
  151. margin-top: 8rpx;
  152. }
  153. }
  154. .detail-item {
  155. display: flex;
  156. justify-content: space-between;
  157. align-items: center;
  158. // height: 40rpx;
  159. line-height: 46rpx;
  160. color: #fff;
  161. margin-top: 10rpx;
  162. .copy {
  163. width: 168rpx;
  164. display: flex;
  165. justify-content: center;
  166. background-color: #f1f1f1;
  167. border-radius: 10rpx;
  168. line-height: 34rpx;
  169. font-size: 24rpx;
  170. color: #333;
  171. padding: 0 24rpx;
  172. // width: 144rpx;
  173. height: 34rpx;
  174. }
  175. }
  176. }
  177. .erweima {
  178. width: 362rpx;
  179. margin: 26rpx auto;
  180. image {
  181. width: 100%;
  182. }
  183. }
  184. .zfb {
  185. font-size: 30rpx;
  186. font-family: PingFang SC;
  187. font-weight: bold;
  188. color: #0b9edd;
  189. margin-top: 36rpx;
  190. text-align: center;
  191. }
  192. .weixin {
  193. font-size: 30rpx;
  194. font-family: PingFang SC;
  195. font-weight: bold;
  196. color: #02974a;
  197. margin-top: 36rpx;
  198. text-align: center;
  199. }
  200. }
  201. }
  202. </style>