fuint-uniapp-master/pages/user/code.vue
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<template>
<view class="container">
<view class="info-list">
<view class="info-item">
<view class="contacts">
<text class="name"><text class="iconfont icon-bangzhu"></text> 向商家展示会员码</text>
</view>
</view>
</view>
<view class="info-code">
<view class="code-text">NO:{{ userInfo.userNo }}</view>
<image class="qrcode" :src="qrCode"></image>
</view>
<!-- 底部操作按钮 -->
<view class="footer-fixed">
<view class="btn-wrapper">
<view class="btn-item btn-item-main" @click="goBack()">返回</view>
</view>
</view>
</view>
</template>
<script>
import * as UserApi from '@/api/user'
import store from '@/store'
export default {
data() {
return {
//当前页面参数
options: {},
// 正在加载
isLoading: true,
userInfo: {},
qrCode: ""
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// 当前页面参数
this.options = options
this.getUserInfo()
},
methods: {
/**
* 用户信息
* */
getUserInfo() {
const app = this
app.isLoading = true
UserApi.qrCode()
.then(result => {
app.userInfo = result.data.userInfo
app.qrCode = result.data.qrCode
后面还有 79 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。