anchor.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <template>
  2. <view class="content">
  3. <view class="main">
  4. <view class="tilte">
  5. 开通智播播主网店
  6. </view>
  7. <scroll-view scroll-y="true" class="img-box">
  8. <image class="img" v-for="item in imgList" :src="item" mode="widthFix"></image>
  9. <image class="qm" :src="name" mode="aspectFit"></image>
  10. </scroll-view>
  11. <!-- @click="navTo('/pages/freeShop/success')" -->
  12. <!-- <view class="btn1" v-if="shop_lv >= 2">
  13. 已有创业网店
  14. </view> -->
  15. <view class="btn-box">
  16. <view class="btn1" v-if="istrue" >
  17. 已签约
  18. </view>
  19. <view class="btn" v-else @click="submit" >
  20. 确认申请
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import { getSign, setSign, uploadSign } from '@/api/contract.js';
  28. import { mapState, mapMutations } from 'vuex';
  29. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  30. import { apply } from '@/api/apply.js';
  31. export default{
  32. compontents: {
  33. uniPopup
  34. },
  35. computed: {
  36. ...mapState(['userInfo']),
  37. shop_lv(){
  38. if(this.userInfo.store_info){
  39. return this.userInfo.store_info.type;
  40. }
  41. else{
  42. return 0;
  43. }
  44. }
  45. },
  46. data(){
  47. return{
  48. istrue: false,
  49. name: '',
  50. imgList: [],
  51. payType: 1,
  52. payName: 'weixin',
  53. to_phone: '',
  54. }
  55. },
  56. onLoad() {
  57. this.loadData()
  58. },
  59. methods:{
  60. async loadData(){
  61. const obj = this;
  62. getSign({},2).then(({data})=>{
  63. console.log('获取合同内容',data)
  64. this.imgList = data.pictures
  65. this.id = data.id
  66. });
  67. getSign({},2,this.userInfo.uid)
  68. .then(src => {
  69. console.log("1111111",src);
  70. if(src.data.user_info){
  71. if(src.data.user_info.sign){
  72. obj.istrue = true;
  73. obj.name = src.data.user_info.sign;
  74. }
  75. }
  76. })
  77. .catch(err => {
  78. console.log(err);
  79. })
  80. },
  81. submit(){
  82. let obj = this
  83. if(obj.userInfo.level != 3){
  84. console.log(obj.userInfo.level);
  85. uni.showModal({
  86. title: '友情提示',
  87. content: '您当前不是主播选品,是否前往开通',
  88. success: e => {
  89. if (e.confirm) {
  90. uni.navigateTo({
  91. url: "/pages/anchor/anchorSelection"
  92. })
  93. } else if (e.cancel) {
  94. }
  95. },
  96. fail: e => {
  97. console.log(e);
  98. }
  99. });
  100. }
  101. else{
  102. uni.navigateTo({
  103. url: "/pages/contract/contract?type=2"
  104. })
  105. }
  106. // this.$refs.popup.open();
  107. },
  108. // qx(){
  109. // this.$refs.tiaozhuan.close();
  110. // },
  111. // nav(){
  112. // uni.navigateTo({
  113. // url: "/pages/anchor/dredge"
  114. // })
  115. // },
  116. }
  117. }
  118. </script>
  119. <style lang="scss">
  120. page, .content{
  121. background-color: #FFFFFF;
  122. width: 100%;
  123. height: 100%;
  124. }
  125. .img-box{
  126. margin-top: 30rpx;
  127. width: 100%;
  128. display: flex;
  129. flex-direction: column;
  130. position: relative;
  131. .img{
  132. width: 100%;
  133. height: 1035rpx;
  134. }
  135. }
  136. .tilte{
  137. font-size: 34rpx;
  138. font-weight: 400;
  139. color: #333333;
  140. line-height: 40rpx;
  141. text-align: center;
  142. padding: 16rpx 0 0;
  143. }
  144. .qm {
  145. width: 310rpx;
  146. height: 128rpx;
  147. position: absolute;
  148. bottom: 200rpx;
  149. left: 239rpx;
  150. z-index: 999;
  151. }
  152. // .details{
  153. // padding: 12rpx 24rpx 24rpx;
  154. // text-indent: 44rpx;
  155. // font-size: 26rpx;
  156. // line-height: 40rpx;
  157. // }
  158. .btn-box{
  159. padding-bottom: 30rpx;
  160. .btn{
  161. width: 674rpx;
  162. height: 88rpx;
  163. background: linear-gradient(180deg, #FD4646, #FF3535);
  164. border-radius: 44rpx;
  165. display: flex;
  166. justify-content: center;
  167. align-items: center;
  168. color: #FFFFFF;
  169. margin: 0rpx auto;
  170. margin-top: 180rpx;
  171. font-size: 36rpx;
  172. }
  173. .btn1{
  174. width: 674rpx;
  175. height: 88rpx;
  176. background: #b1b1b1;
  177. border-radius: 44rpx;
  178. display: flex;
  179. justify-content: center;
  180. align-items: center;
  181. color: #FFFFFF;
  182. margin: 0rpx auto;
  183. margin-top: 180rpx;
  184. font-size: 36rpx;
  185. }
  186. }
  187. .popup-box {
  188. width: 100%;
  189. height: 403rpx;
  190. background: #FFFFFF;
  191. }
  192. .popup-pay {
  193. justify-content: space-between;
  194. padding: 38rpx 25rpx 32rpx 25rpx;
  195. .type {
  196. font-size: 28rpx;
  197. font-family: PingFang SC;
  198. font-weight: bold;
  199. color: #333333;
  200. }
  201. .zftype {
  202. margin-top: 54rpx;
  203. .img {
  204. width: 41rpx;
  205. height: 41rpx;
  206. }
  207. .zf {
  208. font-size: 28rpx;
  209. font-family: PingFang SC;
  210. font-weight: 400;
  211. color: #3F454B;
  212. }
  213. }
  214. .right{
  215. display: flex;
  216. flex-direction: column;
  217. justify-content: space-between;
  218. align-items: center;
  219. .x {
  220. height: 15rpx;
  221. width: 15rpx;
  222. }
  223. .radio{
  224. margin-top: 61rpx;
  225. }
  226. }
  227. }
  228. .buttom {
  229. width: 100%;
  230. height: 113rpx;
  231. padding-top: 20rpx;
  232. align-items: center;
  233. .heji {
  234. height: 100%;
  235. width: 50%;
  236. padding-left: 23rpx;
  237. padding-top: 20rpx;
  238. font-size: 28rpx;
  239. font-family: PingFang SC;
  240. font-weight: 400;
  241. color: #3F454B;
  242. text {
  243. font-size: 24rpx;
  244. font-family: PingFang SC;
  245. font-weight: bold;
  246. color: #FF0000;
  247. .money {
  248. font-size: 36rpx;
  249. }
  250. }
  251. }
  252. .zhifu {
  253. width: 50%;
  254. height: 92rpx;
  255. background: linear-gradient(180deg, #FD4646, #FF3535);
  256. text-align: center;
  257. line-height: 92rpx;
  258. font-size: 32rpx;
  259. font-family: PingFang SC;
  260. font-weight: bold;
  261. color: #FFFFFF;
  262. }
  263. }
  264. .right .checkalls.checked {
  265. color: #FD4343;
  266. background:#FFFFFF;
  267. }
  268. // .ts{
  269. // // margin-top: 108rpx;
  270. // height: 440rpx;
  271. // border-radius: 25rpx;
  272. // width: 100%;
  273. // padding: 24rpx;
  274. // background-color: #f8f8f8;
  275. // z-index: 999;
  276. // .title {
  277. // text-align: center;
  278. // color: #E63931;
  279. // font-size: 32rpx;
  280. // padding-left: 4rpx;
  281. // padding-bottom: 16rpx;
  282. // }
  283. // .cancel {
  284. // color: #E63931;
  285. // font-size: 32rpx;
  286. // padding-left: 4rpx;
  287. // padding-bottom: 16rpx;
  288. // }
  289. // .btn {
  290. // display: flex;
  291. // justify-content: space-between;
  292. // width: 100%;
  293. // background: #FFFFFF;
  294. // .btnItem {
  295. // background-color: #E63931;
  296. // margin: 0 20rpx;
  297. // padding:10rpx 30rpx;
  298. // border-radius: 25rpx;
  299. // }
  300. // }
  301. // }
  302. </style>