distribution.vue 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. <template>
  2. <view :class="[AppTheme]" class="distribution">
  3. <view class="ff bg-primary">
  4. <view class="b-money">
  5. <view class="b-money-l">
  6. <view class="money">
  7. ¥{{money}}
  8. </view>
  9. <view class="b-keti">
  10. 可提现金额
  11. </view>
  12. </view>
  13. <view class="b-money-r">
  14. <view class="" @click="navTo('/pagesA/pages/mypurse/withdraw/withdraw')">
  15. 提现
  16. </view>
  17. </view>
  18. </view>
  19. <view class="b-yongjin">
  20. <view class="">
  21. <view class="b-yong">
  22. {{bc_money}}
  23. </view>
  24. <view class="b-zi">
  25. 待收佣金
  26. </view>
  27. </view>
  28. <text class="line"></text>
  29. <view class="">
  30. <view class="b-yong">
  31. {{total_yj}}
  32. </view>
  33. <view class="b-zi">
  34. 佣金总额
  35. </view>
  36. </view>
  37. <text class="line"></text>
  38. <view class="">
  39. <view class="b-yong">
  40. {{xxsub}}
  41. </view>
  42. <view class="b-zi">
  43. 团队人数
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="f-n">
  49. <view class="" @click="navTo('/pagesA/pages/mypurse/txinfo/txinfo')">
  50. <u-icon labelSize="13" label="提现明细" labelPos="bottom" :name="settingFile.root_img+'/static/app/imgs/mine/dis/19.png'" :color="primary" size="40">
  51. </u-icon>
  52. </view>
  53. <view class="" @click='goCode'>
  54. <u-icon labelSize="13" label="推广分享" labelPos="bottom" name="share-square" :color="primary" size="40">
  55. </u-icon>
  56. </view>
  57. <view class="" @click='goMyteam()'>
  58. <u-icon labelSize="13" label="我的团队" labelPos="bottom" :name="settingFile.root_img+'/static/app/imgs/mine/dis/20.png'" :color="primary" size="40">
  59. </u-icon>
  60. </view>
  61. </view>
  62. <view class="f-c">
  63. <view class="aui-info aui-margin-t-10 aui-padded-l-10 aui-padded-r-10"
  64. @click="goPolicies('/pagesA/pages/distribution/records/records')">
  65. <view class="aui-info-item">
  66. <image :src="settingFile.root_img+'/static/app/imgs/mine/dis/30.png'" class="aui-img-round" /><text
  67. class="alist">佣金记录</text>
  68. <image :src="settingFile.root_img+'/static/app/imgs/mine/dis/right.png'" class="img_l" alt="" />
  69. </view>
  70. </view>
  71. <view class="aui-info aui-margin-t-10 aui-padded-l-10 aui-padded-r-10"
  72. @click="goPolicies('/pagesA/pages/distribution/policy/policy')">
  73. <view class="aui-info-item">
  74. <image :src="settingFile.root_img+'/static/app/imgs/mine/dis/22.png'" class="aui-img-round" /><text
  75. class="alist">分销政策</text>
  76. <image :src="settingFile.root_img+'/static/app/imgs/mine/dis/right.png'" class="img_l" alt="" />
  77. </view>
  78. </view>
  79. <view class="aui-info aui-margin-t-10 aui-padded-l-10 aui-padded-r-10"
  80. @click="goPolicies('/pagesA/pages/distribution/extension/extension')">
  81. <view class="aui-info-item">
  82. <image :src="settingFile.root_img+'/static/app/imgs/mine/dis/31.png'" class="aui-img-round" /><text
  83. class="alist">推广记录</text>
  84. <image :src="settingFile.root_img+'/static/app/imgs/mine/dis/right.png'" class="img_l" alt="" />
  85. </view>
  86. </view>
  87. </view>
  88. <u-popup :show="show" round="12" mode="center">
  89. <view class="code">
  90. <image :src="code1" mode=""></image>
  91. </view>
  92. </u-popup>
  93. <admyself :opshow="true"></admyself>
  94. <!-- 分享 -->
  95. <sharebox ref="sbox" v-if="sharedata" :data="sharedata"></sharebox>
  96. </view>
  97. </template>
  98. <script>
  99. // App/Fx/tjlog 我的推广
  100. // App/Fx/fxlog 已收佣金
  101. // App/Fx/about 分销政策
  102. import mineApi from '@/api/mine/index';
  103. import tabbar from '@/components/tabbar/tabbar.vue';
  104. export default {
  105. data() {
  106. return {
  107. primary: this.$theme.primary,
  108. settingFile: getApp().globalData.siteinfo,
  109. isShow: false,
  110. uid: '',
  111. token: '',
  112. total_xxyj: 0,
  113. money: 0,
  114. bc_money: 0,
  115. xxsub: 0,
  116. nickname: '',
  117. imgurl: '',
  118. vipid: '',
  119. phone: '15539352763',
  120. show: false,
  121. code1: '',
  122. sharedata: null,
  123. total_yj: 0
  124. };
  125. },
  126. components: {
  127. tabbar
  128. },
  129. methods: {
  130. navTo(url) {
  131. uni.navigateTo({
  132. url
  133. });
  134. },
  135. showOther: function() {
  136. if (this.isShow) {
  137. this.isShow = false;
  138. } else {
  139. this.isShow = true;
  140. }
  141. },
  142. handleCall() {
  143. //客服电话
  144. uni.makePhoneCall({
  145. phoneNumber: this.phone
  146. });
  147. },
  148. goPolicies: function(url) {
  149. //分销策略
  150. uni.navigateTo({
  151. url: url
  152. })
  153. },
  154. goCode: function() {
  155. this.$refs.sbox.opensharebox(this.sharedata);
  156. },
  157. goMyteam: function() {
  158. //一级用户
  159. uni.navigateTo({
  160. url: '/pagesA/pages/distribution/myteam/myteam?totalMoney' + this.total_xxyj
  161. })
  162. },
  163. },
  164. onLoad(options) {
  165. let that = this
  166. that.$bindid.getbindid(options, that.$store);
  167. that.$init_config(1, function(res) {
  168. that.sharedata = res.sharedata
  169. })
  170. },
  171. onShow() {
  172. this.vipid = uni.getStorageSync('userInfo').id
  173. var that = this;
  174. mineApi.fxindex().then(ret => {
  175. that.total_yj = ret.data.total_yj; //佣金总金额
  176. that.money = ret.data.money; //提现金额
  177. that.bc_money = ret.data.bc_money; //待收佣金
  178. that.xxsub = ret.data.xxsub; //人数
  179. that.nickname = ret.data.nickname; //名字
  180. that.imgurl = ret.data.headimgurl; //头像
  181. that.phone = ret.data.phone; //头像
  182. })
  183. },
  184. }
  185. </script>
  186. <style lang="scss">
  187. page {
  188. height: 100%;
  189. width: 100%;
  190. }
  191. .code {
  192. height: 800rpx;
  193. padding: 30rpx 40rpx;
  194. box-sizing: border-box;
  195. background: #fff;
  196. image {
  197. height: 80%;
  198. }
  199. }
  200. .distribution {
  201. width: 100%;
  202. height: 100%;
  203. background: #f1f1f1;
  204. }
  205. .alist {
  206. font-size: 28rpx;
  207. }
  208. .aui-info-item {
  209. display: flex;
  210. align-items: center;
  211. margin-bottom: 15rpx;
  212. overflow: hidden;
  213. padding: 20rpx 0rpx;
  214. border-bottom: 1rpx solid #f1f1f1;
  215. }
  216. .b-money {
  217. width: 100%;
  218. height: 170rpx;
  219. display: flex;
  220. justify-content: space-between;
  221. padding: 0 37rpx;
  222. box-sizing: border-box;
  223. .b-money-l {
  224. width: 100%;
  225. .money {
  226. font-size: 50rpx;
  227. color: #fff;
  228. margin-bottom: 23rpx;
  229. }
  230. .b-keti {
  231. color: #fff;
  232. font-size: 26rpx;
  233. }
  234. }
  235. .b-money-r {
  236. width: 100%;
  237. display: flex;
  238. justify-content: flex-end;
  239. view {
  240. border: 1px solid #fff;
  241. height: 45rpx;
  242. width: 120rpx;
  243. line-height: 45rpx;
  244. padding:10rpx;
  245. display: flex;
  246. align-items: center;
  247. justify-content: center;
  248. border-radius: 50rpx;
  249. margin-top: 30rpx;
  250. margin-left: 34rpx;
  251. color: #fff;
  252. }
  253. }
  254. }
  255. .b-yongjin {
  256. width: calc(100% - 10rpx);
  257. margin: 0 auto;
  258. display: flex;
  259. justify-content: space-between;
  260. text {
  261. display: block;
  262. width: 1rpx;
  263. height: 30rpx;
  264. background-color: #f1f1f1;
  265. margin-top: 30rpx;
  266. }
  267. view {
  268. flex: 1;
  269. text-align: center;
  270. color: #fff;
  271. .b-yong {
  272. margin-bottom: 20rpx;
  273. font-size: 38rpx;
  274. }
  275. .b-zi {
  276. font-size: 22rpx;
  277. }
  278. }
  279. }
  280. .f-n {
  281. width: 100%;
  282. height: 190rpx;
  283. display: flex;
  284. background: #FFFFFF;
  285. align-items: center;
  286. margin-bottom: 15rpx;
  287. >view {
  288. width: 100%;
  289. text-align: center;
  290. .f-zi {
  291. width: 100%;
  292. margin-top: 15rpx;
  293. font-size: 26rpx;
  294. }
  295. .icon {
  296. width: 65rpx !important;
  297. height: 65rpx !important;
  298. margin: 0 auto;
  299. image {
  300. width: 100%;
  301. height: 100%;
  302. }
  303. }
  304. }
  305. }
  306. .aui-bar.aui-bar-nav {
  307. position: fixed;
  308. top: 0;
  309. width: 100%;
  310. background-color: #FE5828;
  311. }
  312. .aui-img-round {
  313. width: 50rpx;
  314. height: 50rpx;
  315. margin-left: 20rpx;
  316. margin-right: 25rpx;
  317. }
  318. .img_l {
  319. width: 45rpx;
  320. height: 45rpx;
  321. position: absolute;
  322. right: 10rpx;
  323. }
  324. .ff {
  325. height: 370rpx;
  326. width: 100%;
  327. padding-top: 80rpx;
  328. box-sizing: border-box;
  329. }
  330. .photo {
  331. padding-top: 80rpx;
  332. font-size: 34rpx;
  333. font-weight: 800;
  334. color: rgb(255, 255, 255);
  335. text-align: center;
  336. }
  337. .photo image {
  338. margin: 0 auto;
  339. margin-top: 50rpx;
  340. width: 108rpx;
  341. height: 108rpx;
  342. border-radius: 50%;
  343. }
  344. .photo .name {
  345. margin-top: 18rpx;
  346. color: white;
  347. }
  348. .ccc {
  349. margin-top: 20rpx;
  350. }
  351. .bg-b {
  352. width: calc(100% - 132rpx);
  353. margin: 0 auto;
  354. margin-top: 10rpx;
  355. /*margin-top: 20px;*/
  356. display: flex;
  357. justify-content: space-between;
  358. }
  359. .bg-b view {
  360. text-align: center;
  361. }
  362. .bg-b view view {
  363. margin-top: 20upx;
  364. font-size: 30rpx;
  365. font-weight: bold;
  366. color: white;
  367. }
  368. .f-c {
  369. background-color: #ffffff;
  370. }
  371. .aui-info text {
  372. font-size: 27rpx;
  373. font-weight: 500;
  374. color: rgba(51, 51, 51, 1);
  375. }
  376. </style>
  377. <!-- 佣金記錄 推广记录 -->