| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <view class="">
- <web-view :src="src"></web-view>
- </view>
- </template>
- <script>
- export default {
- name: '',
- data() {
- return {
- src: ''
- };
- },
- onLoad(options) {
- this.queryCmccPoint(options.mobile)
- },
- methods: {
- //查询移动积分
- async queryCmccPoint(mobile) {
- let params = {
- mobile
- }
- let res = (await this.$api.CMCC.queryCmccPoint(this.$u.queryParams(params))).data.data
- if (res.resultCode == '0001') {
- //跳转到移动授权页
- this.src = res.data
- this.$forceUpdate()
- } else if (res.resultCode == '0000') {
- //授权成功
- let data = JSON.parse(res.data)
- console.log(data);
- } else {
- console.log("授权失败");
- }
- },
- }
- };
- </script>
- <style lang="scss" scoped>
- </style>
|