management.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <!-- 我的经营品牌 -->
  3. <view class="whole">
  4. <view class="head">
  5. <view class="behind"></view>
  6. <view class="below">
  7. <view class="nothing" v-if="judge==true">
  8. <u-empty mode="page" text="暂无数据"></u-empty>
  9. </view>
  10. <view class="content" v-else v-for="(item, index) in supplier_s" :key="index">
  11. <view class="content_s">
  12. <view class="title">
  13. <view class="strip"></view>
  14. <h3>{{item.brand}}</h3>
  15. <view :class="
  16. item.status==='已拒绝'? 'state1':
  17. item.status==='审核通过'? 'state2':'state'"
  18. >
  19. <view>{{item.status}}</view>
  20. <view class="triangle"></view>
  21. </view>
  22. </view>
  23. <view class="information_E">
  24. <u-form-item>
  25. <u-icon name="manager-o" custom-prefix="van-icon" />
  26. <u-input v-model="item.agentName" :disabled="true"/>
  27. </u-form-item>
  28. <u-form-item>
  29. <u-icon name="orders-o" custom-prefix="van-icon" />
  30. <u-input v-model="item.signCount" :disabled="true"/>
  31. </u-form-item>
  32. <u-form-item label="原因:" v-if="item.cause != null"><u-input v-model="item.cause" :disabled="true"/></u-form-item>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. import {
  42. request
  43. } from '../../common/request/request'
  44. require("promise.prototype.finally").shim()
  45. export default {
  46. data() {
  47. return {
  48. judge: true,
  49. supplier_s: [] //经销商信息
  50. }
  51. },
  52. created() {
  53. uni.showLoading({
  54. title: '加载中...'
  55. });
  56. setTimeout(function() {
  57. uni.hideLoading();
  58. }, 1000);
  59. this.supplier()
  60. },
  61. methods: {
  62. supplier() {
  63. uni.getNetworkType({
  64. success: function(res) {
  65. let none = res.networkType
  66. if (none == 'none') {
  67. uni.showToast({
  68. icon: 'none',
  69. title: '无网络,请连接网络后再试~',
  70. position: "bottom"
  71. })
  72. }
  73. }
  74. });
  75. request({
  76. url: '/app/appAgent/getBrandAgent',
  77. method: 'get',
  78. params: {
  79. storeId: this.$store.state.storeInfo.storeId,
  80. // userId: this.$store.state.storeInfo.userId
  81. }
  82. }).then(res => {
  83. if (res.data.code == 0) {
  84. this.supplier_s = res.data.data.data
  85. this.judge = false
  86. } else if (res.data.code == 500) {
  87. uni.showToast({
  88. icon: 'none',
  89. title: '出错了,请稍后再试',
  90. position: "bottom"
  91. })
  92. }
  93. }).catch(err => {
  94. uni.showToast({
  95. icon: 'none',
  96. title: '出错了,请稍后再试',
  97. position: "bottom"
  98. })
  99. }).finally(() => {
  100. // Loading.close()
  101. })
  102. }
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. .behind {
  108. width: 750rpx;
  109. height: 462rpx;
  110. background: url(../../static/sailun/behind.png) no-repeat;
  111. background-size: 100% 100%;
  112. background-repeat: no-repeat;
  113. margin-top: -150rpx;
  114. padding-top: 100px;
  115. }
  116. .below {
  117. margin-top: -270rpx;
  118. }
  119. .nothing {
  120. width: 96%;
  121. height: 800rpx;
  122. background-color: #FFFFFF;
  123. margin: 0 auto;
  124. margin-top: 20rpx;
  125. border-radius: 20rpx;
  126. box-shadow: 0 0 24rpx 0 rgba(101, 176, 249, 0.41);
  127. }
  128. .state {
  129. width: 200rpx;
  130. height: 60rpx;
  131. background-color: #F6CF19;
  132. float: right;
  133. margin-top: -60rpx;
  134. margin-right: -47rpx;
  135. border-top-left-radius: 60rpx;
  136. border-bottom-left-radius: 60rpx;
  137. text-align: center;
  138. line-height:60rpx;
  139. color: #FFFFFF;
  140. .triangle {
  141. width: 0px;
  142. height: 0px;
  143. margin-top: 0rpx;
  144. margin-right: 0rpx;
  145. border: 10rpx solid;
  146. transform: rotate(270deg);
  147. float: right;
  148. border-color: #B89804 #B89804 transparent transparent;
  149. }
  150. }
  151. .state1{
  152. width: 200rpx;
  153. height: 60rpx;
  154. background-color: #FC1E1E;
  155. float: right;
  156. margin-top: -60rpx;
  157. margin-right: -47rpx;
  158. border-top-left-radius: 60rpx;
  159. border-bottom-left-radius: 60rpx;
  160. text-align: center;
  161. line-height:60rpx;
  162. color: #FFFFFF;
  163. .triangle {
  164. width: 0px;
  165. height: 0px;
  166. margin-top: 0rpx;
  167. margin-right: 0rpx;
  168. border: 10rpx solid;
  169. transform: rotate(270deg);
  170. float: right;
  171. border-color: #960000 #960000 transparent transparent;
  172. }
  173. }
  174. .state2{
  175. width: 200rpx;
  176. height: 60rpx;
  177. background-color: #0094FE;
  178. float: right;
  179. margin-top: -60rpx;
  180. margin-right: -47rpx;
  181. border-top-left-radius: 60rpx;
  182. border-bottom-left-radius: 60rpx;
  183. text-align: center;
  184. line-height:60rpx;
  185. color: #FFFFFF;
  186. .triangle {
  187. width: 0px;
  188. height: 0px;
  189. margin-top: 0rpx;
  190. margin-right: 0rpx;
  191. border: 10rpx solid;
  192. transform: rotate(270deg);
  193. float: right;
  194. border-color: #0F519C #0F519C transparent transparent;
  195. }
  196. }
  197. .content {
  198. width: 667rpx;
  199. height: auto;
  200. background: #FFFFFF;
  201. box-shadow: 0px 10rpx 30rpx 0px rgba(223, 223, 223, 0.51);
  202. border-radius: 18px;
  203. margin: 0 auto;
  204. padding-top: 30rpx;
  205. margin-top: 20rpx;
  206. padding-bottom: 40rpx;
  207. .content_s {
  208. width: 92%;
  209. // height: 330rpx;
  210. height: auto;
  211. margin: 0 auto;
  212. margin-top: 10rpx;
  213. .information {
  214. margin-top: 10rpx;
  215. }
  216. .information_E {
  217. // display: flex;
  218. width: 100%;
  219. flex-flow: wrap;
  220. justify-content: space-around;
  221. align-items: center;
  222. }
  223. .title {
  224. border-bottom: 1rpx solid #EBEBEB;
  225. padding-bottom: 15rpx;
  226. }
  227. .strip {
  228. width: 4px;
  229. height: 20px;
  230. background: #0292FD;
  231. float: left;
  232. margin-right: 10rpx;
  233. margin-top: 5rpx;
  234. }
  235. }
  236. }
  237. </style>