skm_fn.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <template>
  2. <view class="container">
  3. <view class="header">
  4. <image src="../../static/images/skm_fn_bg.png" mode="aspectFill" class="bg-img"></image>
  5. <view class="info-block flex-row-between">
  6. <view class="info">
  7. <view class="title">收款码{{$test.$test}}</view>
  8. <view class="desc">{{$test.$desc}}</view>
  9. </view>
  10. <view class="btn">浏览</view>
  11. </view>
  12. </view>
  13. <view class="main">
  14. <view class="cell">
  15. <view class="name">中转页标题</view>
  16. <view class="content">
  17. <input type="text" placeholder="请填写中转页标题" />
  18. </view>
  19. </view>
  20. <view class="cell">
  21. <view class="name">{{$test.$test}}链接</view>
  22. <view class="content">
  23. <input type="text" :placeholder="'请填写'+$test.$test+'链接'" />
  24. </view>
  25. </view>
  26. <view class="cell">
  27. <view class="name">广告引导页</view>
  28. <view class="content arr-icon">
  29. <input type="text" placeholder="默认引导页" />
  30. </view>
  31. </view>
  32. <view class="add-block flex-row-between">
  33. <view class="item">
  34. <image src="../../static/images/banner_1.png" mode="aspectFill" class="img" v-if="false"></image>
  35. <view class="add-def flex-column-center">
  36. <view class="title">+ 添加</view>
  37. <view class="desc">添加收款码图片</view>
  38. </view>
  39. </view>
  40. <view class="item">
  41. <image src="../../static/images/banner_1.png" mode="aspectFill" class="img" v-if="false"></image>
  42. <view class="add-def flex-column-center">
  43. <view class="title">+ 添加</view>
  44. <view class="desc">添加引导页图片</view>
  45. </view>
  46. </view>
  47. </view>
  48. <block v-if="type == 2">
  49. <image src="../../static/images/code.png" mode="aspectFit" class="code-img"></image>
  50. <view class="btm-btn2">生成二维码</view>
  51. </block>
  52. </view>
  53. <view class="btm-btn-block" v-if="type == 1">
  54. <view class="content flex-column">
  55. <view class="btn btn1">绑定二维码</view>
  56. <view class="btn btn2">生成二维码</view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. $test:this.$test.$test,
  66. type: 2
  67. }
  68. },
  69. onLoad(e) {
  70. uni.setNavigationBarTitle({
  71. title: `收款码${this.$test.$test}`
  72. })
  73. },
  74. methods: {
  75. }
  76. }
  77. </script>
  78. <style>
  79. .header {
  80. width: 100%;
  81. height: 198rpx;
  82. position: relative;
  83. }
  84. .header .bg-img {
  85. display: block;
  86. position: absolute;
  87. left: 0;
  88. top: 0;
  89. z-index: -1;
  90. width: 100%;
  91. height: 198rpx;
  92. }
  93. .header .info-block {
  94. padding: 0 40rpx 0 48rpx;
  95. height: 198rpx;
  96. }
  97. .header .info-block .title {
  98. font-size: 36rpx;
  99. color: #fff;
  100. font-weight: 500;
  101. line-height: 50rpx;
  102. }
  103. .header .info-block .desc {
  104. font-size: 28rpx;
  105. font-weight: 500;
  106. color: #fff;
  107. line-height: 40rpx;
  108. margin-top: 8rpx;
  109. }
  110. .header .info-block .btn {
  111. width: 120rpx;
  112. height: 56rpx;
  113. border: 2rpx solid #fff;
  114. border-radius: 28rpx;
  115. background-color: rgba(255, 255, 255, 0.2);
  116. text-align: center;
  117. line-height: 52rpx;
  118. font-size: 28rpx;
  119. font-weight: 500;
  120. color: #fff;
  121. }
  122. .main {
  123. background-color: #fff;
  124. border-radius: 20rpx 20rpx 0 0;
  125. margin-top: -20rpx;
  126. padding: 20rpx 40rpx 0;
  127. min-height: calc(100vh - 198rpx - var(--window-top));
  128. position: relative;
  129. }
  130. .main .cell {
  131. border-bottom: 2rpx solid #f5f5f5;
  132. display: flex;
  133. flex-flow: row nowrap;
  134. justify-content: space-between;
  135. align-items: center;
  136. padding: 30rpx 0;
  137. }
  138. .main .cell .name {
  139. flex: none;
  140. padding-right: 40rpx;
  141. font-size: 32rpx;
  142. color: #333;
  143. font-weight: 500;
  144. }
  145. .main .cell .content {
  146. flex: auto;
  147. display: flex;
  148. flex-flow: row nowrap;
  149. justify-content: flex-end;
  150. align-items: center;
  151. }
  152. .main .cell .content.arr-icon::after {
  153. content: "";
  154. display: block;
  155. width: 16rpx;
  156. height: 16rpx;
  157. border-top: 2rpx solid #999;
  158. border-right: 2rpx solid #999;
  159. transform: rotate(45deg);
  160. }
  161. .main .cell .content input {
  162. height: 40rpx;
  163. line-height: 40rpx;
  164. font-size: 28rpx;
  165. text-align: right;
  166. }
  167. .main .add-block {
  168. width: 670rpx;
  169. padding: 40rpx 0;
  170. }
  171. .main .add-block .item {
  172. flex: none;
  173. width: 315rpx;
  174. height: 210rpx;
  175. border-radius: 15rpx;
  176. overflow: hidden;
  177. }
  178. .main .add-block .img {
  179. flex: none;
  180. display: block;
  181. width: 100%;
  182. height: 100%;
  183. }
  184. .main .add-block .add-def {
  185. width: 100%;
  186. height: 100%;
  187. background-color: #eaf3ff;
  188. }
  189. .main .add-block .add-def .title {
  190. font-size: 40rpx;
  191. line-height: 56rpx;
  192. color: #3387FF;
  193. }
  194. .main .add-block .add-def .desc {
  195. font-size: 28rpx;
  196. line-height: 40rpx;
  197. color: #7e7e7e;
  198. margin-top: 7rpx;
  199. }
  200. .main .code-img {
  201. display: block;
  202. width: 400rpx;
  203. height: 400rpx;
  204. margin: 90rpx auto;
  205. }
  206. .btm-btn2 {
  207. width: 670rpx;
  208. height: 98rpx;
  209. background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
  210. border-radius: 8rpx;
  211. box-shadow: 0px 0px 8rpx 0px rgba(51, 135, 255, 0.2);
  212. font-size: 32rpx;
  213. font-weight: 500;
  214. text-align: center;
  215. color: #fff;
  216. line-height: 98rpx;
  217. margin-bottom: 90rpx;
  218. }
  219. /* */
  220. .btm-btn-block .content {
  221. height: 280rpx;
  222. width: 100%;
  223. position: absolute;
  224. left: 0;
  225. bottom: 0;
  226. justify-content: flex-start;
  227. }
  228. .btm-btn-block .content .btn {
  229. width: 670rpx;
  230. height: 98rpx;
  231. border-radius: 8rpx;
  232. text-align: center;
  233. line-height: 98rpx;
  234. font-size: 32rpx;
  235. font-weight: 500;
  236. }
  237. .btm-btn-block .content .btn1 {
  238. background: linear-gradient(315deg, #3387ff 2%, #569bff 99%);
  239. box-shadow: 0 0 8rpx 0 rgba(51, 135, 255, 0.2);
  240. color: #fff;
  241. }
  242. .btm-btn-block .content .btn2 {
  243. box-shadow: 0px 0px 8px 0px rgba(207, 219, 234, 0.4);
  244. color: #3387FF;
  245. margin-top: 32rpx;
  246. background-color: #fff;
  247. }
  248. </style>