| | |
| | | if (userInfo) { |
| | | await this.login(userInfo); |
| | | this.$request('/api/Member/checkNum', 'POST').then(res => { |
| | | userInfo.num = res.data.num // 更新数量 |
| | | console.log(res,"checkNumres") |
| | | userInfo.num = res.data.num+res.data.pay_num // 更新数量 |
| | | this.syncUserInfo(userInfo) |
| | | }) |
| | | } |
| | |
| | | <view v-for="(item,index) in arr" :key="index" :id="'message' + item.message_id"> |
| | | <view class="body_l" v-if="item.role == 'assistant'"> |
| | | <view class="body_lpic a"> |
| | | <image :src="`${now_model.icon}`" mode=""></image> |
| | | <u--image :src="`${setting_data.base_url+now_model.icon}`" mode=""></u--image> |
| | | </view> |
| | | <view class="body_box"> |
| | | <view class="body_jt"></view> |
| | |
| | | |
| | | <view class="body_l" v-if="loading" id="loading"> |
| | | <view class="body_lpic a"> |
| | | <image :src="`${now_model.icon}`" mode=""></image> |
| | | <u--image :src="`${setting_data.base_url+now_model.icon}`" mode=""></u--image> |
| | | </view> |
| | | <view class="body_box"> |
| | | <view class="body_lcon pdg border_radius_l" style="display:flex; overflow-x: hidden;"> |
| | |
| | | <view class="tool_list"> |
| | | <view class="group_tool_wrap" v-for="item in models" :key="item.assistant_id" @click="handleJump(item)"> |
| | | <view class="tool_wrap"> |
| | | <u--image :showLoading="true" :src="`${item.icon}`" width="112rpx" height="112rpx" class="tool_icon"></u--image> |
| | | <u--image :showLoading="true" :src="`${setting_data.base_url+item.icon}`" width="112rpx" height="112rpx" class="tool_icon"></u--image> |
| | | <view class="tool_info"> |
| | | <view class="tool_name"> |
| | | <view class="tool_name_l"> |
| | |
| | | ...mapState(['models','tabbar','userInfo']) |
| | | }, |
| | | async onLoad() { |
| | | console.log(this.models,"assisstent") |
| | | this.setting_data = setting |
| | | this.getTabIndex() |
| | | // await recognition() |
| | | // const flag = await handleTime() |
| | | // const value = uni.getStorageSync('config'); |
| | | // const that = this |
| | | // if (value && flag) { |
| | | // const { |
| | | // admin |
| | | // } = value |
| | | // that.admin = admin |
| | | // const data = { |
| | | // pageIndex: 1, |
| | | // pageSize: 12 |
| | | // } |
| | | // await this.handlegetAppla(data) |
| | | // return |
| | | // } |
| | | // uni.login({ |
| | | // provider: "weixin", |
| | | // success(res) { |
| | | // uni.showLoading({ |
| | | // title: '加载中', |
| | | // mask: true |
| | | // }) |
| | | // that.handlefig(res.code) |
| | | // } |
| | | // }) |
| | | |
| | | }, |
| | | onShareAppMessage: function() { |
| | | return { |
| | |
| | | this.$request('/api/Member/checkNum', 'POST',{ |
| | | comb_id: this.rechargeOptions[this.current].comb_id |
| | | }).then(re => { |
| | | console.log(re,"checkNumre") |
| | | this.data_content3 = re |
| | | // 更新数量 |
| | | this.$store.commit('syncUserNum',re.data.num) |
| | | this.$store.commit('syncUserNum',re.data.num+re.data.pay_num) |
| | | }) |
| | | } |
| | | }, (er) => { |
| | |
| | | this.$request('/api/Member/checkNum', 'POST',{ |
| | | comb_id: this.rechargeOptions[this.current].comb_id |
| | | }).then(re => { |
| | | console.log(re,"checkNumre22222") |
| | | // 更新数量 |
| | | this.$store.commit('syncUserNum',re.data.num) |
| | | this.$store.commit('syncUserNum',re.data.num+re.data.pay_num) |
| | | }) |
| | | } |
| | | // #endif |