management.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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.setNavigationBarTitle({
  55. title: this.$t('brandmanagement.title')
  56. });
  57. uni.showLoading({
  58. title: this.$t('unified.Loading')
  59. });
  60. setTimeout(function() {
  61. uni.hideLoading();
  62. }, 1000);
  63. this.supplier()
  64. },
  65. methods: {
  66. supplier() {
  67. uni.getNetworkType({
  68. success: function(res) {
  69. let none = res.networkType
  70. if (none == 'none') {
  71. uni.showToast({
  72. icon: 'none',
  73. title: this.$t('unified.networkstate'),
  74. position: "bottom"
  75. })
  76. }
  77. }
  78. });
  79. request({
  80. url: '/app/appAgent/getBrandAgent',
  81. method: 'get',
  82. params: {
  83. storeId: this.$store.state.storeInfo.storeId,
  84. // userId: this.$store.state.storeInfo.userId
  85. }
  86. }).then(res => {
  87. if (res.data.code == 0) {
  88. this.supplier_s = res.data.data.data
  89. this.judge = false
  90. } else if (res.data.code == 500) {
  91. uni.showToast({
  92. icon: 'none',
  93. title: this.$t('unified.error1'),
  94. position: "bottom"
  95. })
  96. }
  97. }).catch(err => {
  98. uni.showToast({
  99. icon: 'none',
  100. title: this.$t('unified.networkstate'),
  101. position: "bottom"
  102. })
  103. }).finally(() => {
  104. // Loading.close()
  105. })
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .behind {
  112. width: 750rpx;
  113. height: 462rpx;
  114. background: url(../../static/sailun/behind.png) no-repeat;
  115. background-size: 100% 100%;
  116. background-repeat: no-repeat;
  117. margin-top: -150rpx;
  118. padding-top: 100px;
  119. }
  120. .below {
  121. margin-top: -270rpx;
  122. }
  123. .nothing {
  124. width: 96%;
  125. height: 800rpx;
  126. background-color: #FFFFFF;
  127. margin: 0 auto;
  128. margin-top: 20rpx;
  129. border-radius: 20rpx;
  130. box-shadow: 0 0 24rpx 0 rgba(101, 176, 249, 0.41);
  131. }
  132. .state {
  133. width: 200rpx;
  134. height: 60rpx;
  135. background-color: #F6CF19;
  136. float: right;
  137. margin-top: -60rpx;
  138. margin-right: -47rpx;
  139. border-top-left-radius: 60rpx;
  140. border-bottom-left-radius: 60rpx;
  141. text-align: center;
  142. line-height:60rpx;
  143. color: #FFFFFF;
  144. .triangle {
  145. width: 0px;
  146. height: 0px;
  147. margin-top: 0rpx;
  148. margin-right: 0rpx;
  149. border: 10rpx solid;
  150. transform: rotate(270deg);
  151. float: right;
  152. border-color: #B89804 #B89804 transparent transparent;
  153. }
  154. }
  155. .state1{
  156. width: 200rpx;
  157. height: 60rpx;
  158. background-color: #FC1E1E;
  159. float: right;
  160. margin-top: -60rpx;
  161. margin-right: -47rpx;
  162. border-top-left-radius: 60rpx;
  163. border-bottom-left-radius: 60rpx;
  164. text-align: center;
  165. line-height:60rpx;
  166. color: #FFFFFF;
  167. .triangle {
  168. width: 0px;
  169. height: 0px;
  170. margin-top: 0rpx;
  171. margin-right: 0rpx;
  172. border: 10rpx solid;
  173. transform: rotate(270deg);
  174. float: right;
  175. border-color: #960000 #960000 transparent transparent;
  176. }
  177. }
  178. .state2{
  179. width: 200rpx;
  180. height: 60rpx;
  181. background-color: #0094FE;
  182. float: right;
  183. margin-top: -60rpx;
  184. margin-right: -47rpx;
  185. border-top-left-radius: 60rpx;
  186. border-bottom-left-radius: 60rpx;
  187. text-align: center;
  188. line-height:60rpx;
  189. color: #FFFFFF;
  190. .triangle {
  191. width: 0px;
  192. height: 0px;
  193. margin-top: 0rpx;
  194. margin-right: 0rpx;
  195. border: 10rpx solid;
  196. transform: rotate(270deg);
  197. float: right;
  198. border-color: #0F519C #0F519C transparent transparent;
  199. }
  200. }
  201. .state3{
  202. width: 200rpx;
  203. height: 60rpx;
  204. background-color: #d2d2d2;
  205. float: right;
  206. margin-top: -60rpx;
  207. margin-right: -47rpx;
  208. border-top-left-radius: 60rpx;
  209. border-bottom-left-radius: 60rpx;
  210. text-align: center;
  211. line-height:60rpx;
  212. color: #FFFFFF;
  213. .triangle {
  214. width: 0px;
  215. height: 0px;
  216. margin-top: 0rpx;
  217. margin-right: 0rpx;
  218. border: 10rpx solid;
  219. transform: rotate(270deg);
  220. float: right;
  221. border-color: #848484 #848484 transparent transparent;
  222. }
  223. }
  224. .content {
  225. width: 667rpx;
  226. height: auto;
  227. background: #FFFFFF;
  228. box-shadow: 0px 10rpx 30rpx 0px rgba(223, 223, 223, 0.51);
  229. border-radius: 18px;
  230. margin: 0 auto;
  231. padding-top: 30rpx;
  232. margin-top: 20rpx;
  233. padding-bottom: 40rpx;
  234. .content_s {
  235. width: 92%;
  236. // height: 330rpx;
  237. height: auto;
  238. margin: 0 auto;
  239. margin-top: 10rpx;
  240. .information {
  241. margin-top: 10rpx;
  242. }
  243. .information_E {
  244. // display: flex;
  245. width: 100%;
  246. flex-flow: wrap;
  247. justify-content: space-around;
  248. align-items: center;
  249. }
  250. .title {
  251. border-bottom: 1rpx solid #EBEBEB;
  252. padding-bottom: 15rpx;
  253. }
  254. .strip {
  255. width: 4px;
  256. height: 20px;
  257. background: #0292FD;
  258. float: left;
  259. margin-right: 10rpx;
  260. margin-top: 5rpx;
  261. }
  262. }
  263. }
  264. </style>