yfx
2026-03-19 f958247d2c9a8615bef24c503c8b91d5c5535e0e
pages/quanyi/index.vue
@@ -1,12 +1,20 @@
<script>
import textBox from "@/components/textBox/index.vue";
export default {
  components: {
    textBox
  },
  async  created() {
    const _this = this;
    await uni.request({
      url: _this.$webHost+'/api/v2/auth/qxgIosUnionLogin?phone='+_this.$util.getUserInfo().phone,
      data:{
        customerId: uni.getStorageSync('qxgLogin').customerId,
        appId: uni.getStorageSync('qxgLogin').appId
      },
      success: function (res) {
        _this.qxgLogin = res.data.data;
        uni.setStorageSync('qxgLogin',_this.qxgLogin)
@@ -31,6 +39,10 @@
          success:function (info){
            _this.memberPeriodConfigInfo = info.data.data;
            uni.setStorageSync('memberPeriodConfigInfo',_this.memberPeriodConfigInfo)
            _this.showTextBox = true;
            _this.$nextTick(() => {
              _this.$refs.textBox && _this.$refs.textBox.open()
            })
          }
        })
      }
@@ -55,6 +67,7 @@
      qxgLogin:{},
      protocolChecked: [0],
      isAgree: false,
      showTextBox: false,
      tm: null,
      time:null,
      text:10,
@@ -64,6 +77,7 @@
      }
    }
  },
  methods: {
    goHome(){
      uni.switchTab({
@@ -185,6 +199,7 @@
      </view>
    </view>
    <textBox v-if="showTextBox" ref="textBox" :code="memberPeriodConfigInfo.protocolCode" :title="memberPeriodConfigInfo.protocolName"></textBox>
  </view>
</template>
@@ -300,6 +315,6 @@
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: #FFF4FA;
  min-height: 100%;
  min-height: 100vh;
}
</style>