apply.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view class="wrapper">
  3. <view class="top-box" style="height: 135rpx;">
  4. <image src="../../static/img/vip-bg.png" mode=""></image>
  5. </view>
  6. <view class="top">
  7. <view class="top-tit">
  8. 陀罗商城美容院身份
  9. </view>
  10. <view class="top-btm">
  11. <text class="hx"></text><text>购买美容院礼包即可升级为美容院身份</text><text class="hx"></text>
  12. </view>
  13. </view>
  14. <view class="item">
  15. <view class="item-top">特权一</view>
  16. <view class="item-tit">
  17. 享受3.5折拿货价
  18. <view class="line"></view>
  19. </view>
  20. <view class="item-info">
  21. <view class="info-y"></view>
  22. <view class="info">美容院专区商品享受3.5折的拿货价</view>
  23. </view>
  24. </view>
  25. <view class="item">
  26. <view class="item-top">特权二</view>
  27. <view class="item-tit">
  28. 金豆奖励
  29. <view class="line"></view>
  30. </view>
  31. <view class="item-info">
  32. <view class="info-y"></view>
  33. <view class="info">购买美容院产品享受返10%的金豆奖励</view>
  34. </view>
  35. </view>
  36. <!-- <view class="item">
  37. <view class="item-top">特权三</view>
  38. <view class="item-tit">
  39. 开实体店奖励
  40. <view class="line"></view>
  41. </view>
  42. <view class="item-info">
  43. <view class="info-y"></view>
  44. <view class="info">享受伞下全部用户产生的业绩奖励</view>
  45. </view>
  46. </view> -->
  47. <view class="more">
  48. <image src="../../static/icon/i-left.png" mode=""></image>
  49. <view class="more-tit">
  50. 更多店长特权持续开放中,敬请期待
  51. </view>
  52. <image src="../../static/icon/i-right.png" mode=""></image>
  53. </view>
  54. <view class="btn" v-if="userInfo.level == 3" @click="changeStep('/pages/category/fillTable?type=edit')">编辑美容院信息</view>
  55. <view class="btn" v-if="userInfo.level != 3" @click="changeStep('/pages/category/fillTable?type=add')">立即申请成为美容院</view>
  56. </view>
  57. </template>
  58. <script>
  59. import { mapState, mapMutations } from 'vuex';
  60. import { register, verify } from '@/api/login.js';
  61. import { upload ,enter} from '@/api/user.js';
  62. export default {
  63. data() {
  64. return {
  65. };
  66. },
  67. onLoad() {
  68. let obj = this
  69. obj.speed_id = uni.getStorageSync('spread') || '';
  70. if(obj.speed_id == '') {
  71. obj.speed_id = obj.userInfo.spread_uid || ''
  72. }
  73. },
  74. computed: {
  75. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  76. },
  77. methods: {
  78. changeStep(url) {
  79. uni.navigateTo({
  80. url
  81. })
  82. },
  83. }
  84. };
  85. </script>
  86. <style lang="scss" scoped>
  87. .wrapper {
  88. height: 100%;
  89. }
  90. .top {
  91. position: relative;
  92. z-index: 2;
  93. margin: 0 auto 49rpx;
  94. width: 674rpx;
  95. background: linear-gradient(-23deg, #ffe7be, #fed591);
  96. border-radius: 10rpx;
  97. padding-bottom: 40rpx;
  98. .top-tit {
  99. padding-top: 80rpx;
  100. text-align: center;
  101. font-size: 49rpx;
  102. font-family: Source Han Sans CN;
  103. font-weight: 500;
  104. color: #6A4714;
  105. }
  106. .top-btm {
  107. margin-top: 40rpx;
  108. font-size: 19rpx;
  109. font-family: Source Han Sans CN;
  110. font-weight: 400;
  111. color: #6A4714;
  112. text-align: center;
  113. display: flex;
  114. justify-content: center;
  115. align-items: center;
  116. text {
  117. display: inline-block;
  118. padding: 0 4rpx;
  119. }
  120. .hx {
  121. width: 66rpx;
  122. height: 1rpx;
  123. background: #81504A;
  124. }
  125. }
  126. }
  127. .item {
  128. margin: 44rpx auto;
  129. width: 674rpx;
  130. // height: 176rpx;
  131. box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.2);
  132. border-radius: 10rpx;
  133. padding-bottom: 40rpx;
  134. .item-top {
  135. width: 85rpx;
  136. line-height: 36rpx;
  137. background-color: #fed591;
  138. border-radius: 10rpx 18rpx 18rpx 0;
  139. text-align: center;
  140. font-size: 20rpx;
  141. font-family: Source Han Sans CN;
  142. font-weight: 400;
  143. color: #975f4a;
  144. }
  145. .item-tit {
  146. display: inline-block;
  147. padding: 0 10rpx;
  148. font-size: 26rpx;
  149. font-family: Source Han Sans CN;
  150. font-weight: 500;
  151. color: #202020;
  152. margin-left: 68rpx;
  153. margin-top: 20rpx;
  154. .line {
  155. // width: 197rpx;
  156. margin-top: -10rpx;
  157. height: 15rpx;
  158. background: #FFF0C5;
  159. }
  160. }
  161. .item-info {
  162. display: flex;
  163. align-items: flex-start;
  164. padding-left: 68rpx;
  165. padding-top: 15rpx;
  166. // align-items: center;
  167. font-size: 21rpx;
  168. font-family: Source Han Sans CN;
  169. font-weight: 400;
  170. color: #6F6F6F;
  171. line-height: 40rpx;
  172. .info-y {
  173. width: 24rpx;
  174. height: 24rpx;
  175. background: #343238;
  176. border-radius: 50%;
  177. margin-right: 14rpx;
  178. margin-top: 8rpx;
  179. flex-shrink: 0;
  180. }
  181. .info {
  182. padding-right: 20rpx;
  183. }
  184. }
  185. }
  186. .btn {
  187. margin: 133rpx auto;
  188. width: 606rpx;
  189. height: 80rpx;
  190. background: linear-gradient(-23deg, #ffe7be, #fed591);
  191. border-radius: 40rpx;
  192. font-size: 35rpx;
  193. font-family: Source Han Sans CN;
  194. font-weight: 500;
  195. color: #704e1c;
  196. line-height: 80rpx;
  197. text-align: center;
  198. }
  199. .top-box {
  200. position: relative;
  201. z-index: 1;
  202. image {
  203. width: 750rpx;
  204. height: 236rpx;
  205. position: absolute;
  206. top: 0;
  207. }
  208. }
  209. .more {
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. font-size: 21rpx;
  214. font-family: Source Han Sans CN;
  215. font-weight: 400;
  216. color: #6F6F6F;
  217. height: 40rpx;
  218. line-height: 40rpx;
  219. image {
  220. height: 15rpx;
  221. width: 40rpx;
  222. }
  223. view {
  224. padding: 0 8rpx;
  225. }
  226. }
  227. </style>