| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- <template>
- <view class="content">
- <view class="main">
- <view class="tilte">
- 开通智播播主网店
- </view>
- <scroll-view scroll-y="true" class="img-box">
- <image class="img" v-for="item in imgList" :src="item" mode="widthFix"></image>
- <image class="qm" :src="name" mode="aspectFit"></image>
- </scroll-view>
- <!-- @click="navTo('/pages/freeShop/success')" -->
- <!-- <view class="btn1" v-if="shop_lv >= 2">
- 已有创业网店
- </view> -->
- <view class="btn-box">
- <view class="btn1" v-if="istrue" >
- 已签约
- </view>
- <view class="btn" v-else @click="submit" >
- 确认申请
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { getSign, setSign, uploadSign } from '@/api/contract.js';
- import { mapState, mapMutations } from 'vuex';
- import uniPopup from '@/components/uni-popup/uni-popup.vue';
- import { apply } from '@/api/apply.js';
- export default{
- compontents: {
- uniPopup
- },
- computed: {
- ...mapState(['userInfo']),
- shop_lv(){
- if(this.userInfo.store_info){
- return this.userInfo.store_info.type;
- }
- else{
- return 0;
- }
- }
- },
- data(){
- return{
- istrue: false,
- name: '',
- imgList: [],
- payType: 1,
- payName: 'weixin',
- to_phone: '',
- }
- },
- onLoad() {
- this.loadData()
- },
- methods:{
- async loadData(){
- const obj = this;
- getSign({},2).then(({data})=>{
- console.log('获取合同内容',data)
- this.imgList = data.pictures
- this.id = data.id
- });
- getSign({},2,this.userInfo.uid)
- .then(src => {
- console.log("1111111",src);
- if(src.data.user_info){
- if(src.data.user_info.sign){
- obj.istrue = true;
- obj.name = src.data.user_info.sign;
- }
- }
- })
- .catch(err => {
- console.log(err);
- })
- },
- submit(){
- let obj = this
- if(obj.userInfo.level != 3){
- console.log(obj.userInfo.level);
- uni.showModal({
- title: '友情提示',
- content: '您当前不是主播选品,是否前往开通',
- success: e => {
- if (e.confirm) {
- uni.navigateTo({
- url: "/pages/anchor/anchorSelection"
- })
- } else if (e.cancel) {
-
- }
- },
- fail: e => {
- console.log(e);
- }
- });
- }
- else{
- uni.navigateTo({
- url: "/pages/contract/contract?type=2"
- })
- }
- // this.$refs.popup.open();
- },
- // qx(){
- // this.$refs.tiaozhuan.close();
- // },
- // nav(){
- // uni.navigateTo({
- // url: "/pages/anchor/dredge"
- // })
- // },
-
-
- }
- }
- </script>
- <style lang="scss">
- page, .content{
- background-color: #FFFFFF;
- width: 100%;
- height: 100%;
- }
- .img-box{
- margin-top: 30rpx;
- width: 100%;
- display: flex;
- flex-direction: column;
- position: relative;
- .img{
- width: 100%;
- height: 1035rpx;
- }
- }
- .tilte{
- font-size: 34rpx;
- font-weight: 400;
- color: #333333;
- line-height: 40rpx;
- text-align: center;
- padding: 16rpx 0 0;
- }
- .qm {
- width: 310rpx;
- height: 128rpx;
- position: absolute;
- bottom: 200rpx;
- left: 239rpx;
- z-index: 999;
- }
- // .details{
- // padding: 12rpx 24rpx 24rpx;
- // text-indent: 44rpx;
- // font-size: 26rpx;
- // line-height: 40rpx;
- // }
- .btn-box{
- padding-bottom: 30rpx;
- .btn{
- width: 674rpx;
- height: 88rpx;
- background: linear-gradient(180deg, #FD4646, #FF3535);
- border-radius: 44rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #FFFFFF;
- margin: 0rpx auto;
- margin-top: 180rpx;
- font-size: 36rpx;
- }
- .btn1{
- width: 674rpx;
- height: 88rpx;
- background: #b1b1b1;
- border-radius: 44rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #FFFFFF;
- margin: 0rpx auto;
- margin-top: 180rpx;
- font-size: 36rpx;
- }
- }
- .popup-box {
- width: 100%;
- height: 403rpx;
- background: #FFFFFF;
- }
- .popup-pay {
- justify-content: space-between;
- padding: 38rpx 25rpx 32rpx 25rpx;
- .type {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- }
- .zftype {
- margin-top: 54rpx;
- .img {
- width: 41rpx;
- height: 41rpx;
- }
- .zf {
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #3F454B;
- }
- }
- .right{
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: center;
- .x {
- height: 15rpx;
- width: 15rpx;
- }
- .radio{
- margin-top: 61rpx;
- }
- }
- }
- .buttom {
- width: 100%;
- height: 113rpx;
- padding-top: 20rpx;
- align-items: center;
- .heji {
- height: 100%;
- width: 50%;
- padding-left: 23rpx;
- padding-top: 20rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 400;
- color: #3F454B;
- text {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FF0000;
- .money {
- font-size: 36rpx;
- }
- }
- }
- .zhifu {
- width: 50%;
- height: 92rpx;
- background: linear-gradient(180deg, #FD4646, #FF3535);
- text-align: center;
- line-height: 92rpx;
- font-size: 32rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #FFFFFF;
- }
- }
- .right .checkalls.checked {
- color: #FD4343;
- background:#FFFFFF;
- }
-
- // .ts{
- // // margin-top: 108rpx;
- // height: 440rpx;
- // border-radius: 25rpx;
- // width: 100%;
- // padding: 24rpx;
- // background-color: #f8f8f8;
- // z-index: 999;
- // .title {
- // text-align: center;
- // color: #E63931;
- // font-size: 32rpx;
- // padding-left: 4rpx;
- // padding-bottom: 16rpx;
- // }
- // .cancel {
- // color: #E63931;
- // font-size: 32rpx;
- // padding-left: 4rpx;
- // padding-bottom: 16rpx;
- // }
- // .btn {
- // display: flex;
- // justify-content: space-between;
- // width: 100%;
- // background: #FFFFFF;
- // .btnItem {
- // background-color: #E63931;
- // margin: 0 20rpx;
- // padding:10rpx 30rpx;
- // border-radius: 25rpx;
- // }
-
- // }
- // }
- </style>
|