management.vue 5.8 KB

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