修改小问题

This commit is contained in:
虾壳 2024-06-22 22:19:10 +08:00
parent 026957ad31
commit e0b7985e2b
21 changed files with 91 additions and 171 deletions

View File

@ -7,6 +7,7 @@ export const mark= (code) => {
return http({ return http({
url:"/api/wxLogin", url:"/api/wxLogin",
data:{ data:{
code, code,
}, },
method:"POST" method:"POST"

View File

@ -2,7 +2,7 @@
<view class="cardbox"> <view class="cardbox">
<view class="cardbox-top" @click="getInfo"> <view class="cardbox-top" @click="getInfo">
<view class="cardbox-img"> <view class="cardbox-img">
<img class="cardbox-img-min" :src="info.cover" alt="加载" @error="errorImg" /> <img class="cardbox-img-min" :src="props.cover" alt="加载" @error="errorImg" />
</view> </view>
<view class="cardbox-text"> <view class="cardbox-text">
<up-text :lines="1" :text="info.title" :bold="true" size="30rpx" ></up-text> <up-text :lines="1" :text="info.title" :bold="true" size="30rpx" ></up-text>
@ -28,7 +28,7 @@ import { onMounted, reactive, ref, defineProps, defineEmits,watch } from "vue";
const emit = defineEmits(["ClickCollection", "ClickLike"]); const emit = defineEmits(["ClickCollection", "ClickLike"]);
const ab = "/static/image/imgerr.png"; const ab = "/static/image/imgerr.png";
const errorImg = () => { const errorImg = () => {
info.cover = "/static/image/imgerr.png"; info.cover;
}; };
const aaa = ref("name"); const aaa = ref("name");
const props = defineProps({ const props = defineProps({

View File

@ -8,9 +8,9 @@
<view class="list-itme" v-for="(item, index) in caseList" :key="index"> <view class="list-itme" v-for="(item, index) in caseList" :key="index">
<CaseBox v-bind="item" @ClickLike="ClickLike" @ClickCollection="ClickCollection"></CaseBox> <CaseBox v-bind="item" @ClickLike="ClickLike" @ClickCollection="ClickCollection"></CaseBox>
</view> </view>
<view v-if="isLoading" class="loading"> <!-- <view v-if="isLoading" class="loading">
<up-loadmore :status="status" /> <up-loadmore :status="status" />
</view> </view> -->
</scroll-view> </scroll-view>
</template> </template>

View File

@ -3,12 +3,14 @@
<view class="updata-user" > <view class="updata-user" >
<UpdateUserBox @updata="updata"></UpdateUserBox> <UpdateUserBox @updata="updata"></UpdateUserBox>
</view> </view>
</up-popup> </up-popup>
<view class="main"> <view class="main">
<view class="top-back"> <view class="top-back">
<text class="page-title">我的</text> <text class="page-title">我的</text>
<view class="info-box" @click="gologin"> <view class="info-box" @click="gologin">
<image :src="user.profilePicture||'/static/icon/tx.png'" mode="scaleToFill"></image> <image :src="user.profilePicture||'/static/icon/tx.png'" mode="scaleToFill"></image>
<view class="text-box"> <view class="text-box">
@ -20,6 +22,7 @@
</view> </view>
</view> </view>
</view> </view>
<button v-if="!islogin" @click="clickLogin">登录</button>
</view> </view>
<view class="list-box"> <view class="list-box">
@ -73,6 +76,7 @@
// }, // },
]) ])
const show=ref(false); const show=ref(false);
const islogin=ref(false);
const user = ref({ const user = ref({
avatar: "/static/icon/tx.png", avatar: "/static/icon/tx.png",
nickName: "点击登录" nickName: "点击登录"
@ -83,12 +87,17 @@
const open=()=>{ const open=()=>{
show.value=true; show.value=true;
} }
const clickLogin=()=>{
gologin();
}
async function gologin(){ async function gologin(){
if(isLogin()){ if(isLogin()){
islogin.value=true;
return return
} }
let res=await userUtils.value.login(); let res=await userUtils.value.login();
if(res.code==200){ if(res.code==200){
islogin.value=true;
getUserInfo(); getUserInfo();
}else{ }else{
uni.showToast({ uni.showToast({
@ -100,6 +109,7 @@
async function getUserInfo(){ async function getUserInfo(){
const resp = await userInfo() const resp = await userInfo()
user.value = resp.data user.value = resp.data
islogin.value=true;
} }
const updata=()=>{ const updata=()=>{
getUserInfo(); getUserInfo();

View File

@ -10158,7 +10158,7 @@ const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => {
}; };
const onShow = /* @__PURE__ */ createHook(ON_SHOW); const onShow = /* @__PURE__ */ createHook(ON_SHOW);
const onLoad = /* @__PURE__ */ createHook(ON_LOAD); const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
const props$n = { const props$m = {
props: { props: {
// 列表数组元素可为字符串如为对象可通过keyName指定目标属性名 // 列表数组元素可为字符串如为对象可通过keyName指定目标属性名
list: { list: {
@ -10283,7 +10283,7 @@ const props$n = {
} }
} }
}; };
const props$m = { const props$l = {
props: { props: {
// 宫格的name // 宫格的name
name: { name: {
@ -10297,7 +10297,7 @@ const props$m = {
} }
} }
}; };
const props$l = { const props$k = {
props: { props: {
// 分成几列 // 分成几列
col: { col: {
@ -10316,7 +10316,7 @@ const props$l = {
} }
} }
}; };
const props$k = { const props$j = {
props: { props: {
// 主题颜色 // 主题颜色
type: { type: {
@ -10538,7 +10538,7 @@ const openType = {
} }
} }
}; };
const props$j = { const props$i = {
props: { props: {
// 是否展示弹窗 // 是否展示弹窗
show: { show: {
@ -10617,7 +10617,7 @@ const props$j = {
} }
} }
}; };
const props$i = { const props$h = {
props: { props: {
// 头像图片路径(不能为相对路径) // 头像图片路径(不能为相对路径)
src: { src: {
@ -10695,7 +10695,7 @@ const props$i = {
} }
} }
}; };
const props$h = { const props$g = {
props: { props: {
// 标题 // 标题
title: { title: {
@ -10805,7 +10805,7 @@ const props$h = {
} }
} }
}; };
const props$g = { const props$f = {
props: { props: {
// 用于滚动到指定item // 用于滚动到指定item
anchor: { anchor: {
@ -10814,7 +10814,7 @@ const props$g = {
} }
} }
}; };
const props$f = { const props$e = {
props: { props: {
// 控制是否出现滚动条仅nvue有效 // 控制是否出现滚动条仅nvue有效
showScrollbar: { showScrollbar: {
@ -10913,7 +10913,7 @@ const props$f = {
} }
} }
}; };
const props$e = { const props$d = {
props: { props: {
// 绑定的值 // 绑定的值
modelValue: { modelValue: {
@ -11099,7 +11099,7 @@ const props$e = {
} }
} }
}; };
const props$d = { const props$c = {
props: { props: {
// 是否细边框 // 是否细边框
hairline: { hairline: {
@ -11369,7 +11369,7 @@ const mixinUp = {
} }
} }
}; };
const props$c = { const props$b = {
props: { props: {
// 接受的文件类型, 可选值为all media image file video // 接受的文件类型, 可选值为all media image file video
accept: { accept: {
@ -11493,7 +11493,7 @@ const props$c = {
} }
} }
}; };
const props$b = { const props$a = {
props: { props: {
// 到顶部的距离 // 到顶部的距离
top: { top: {
@ -11542,7 +11542,7 @@ const props$b = {
} }
} }
}; };
const props$a = { const props$9 = {
props: { props: {
// tab的数据 // tab的数据
list: { list: {
@ -11805,7 +11805,7 @@ const icons = {
"uicon-zh": "", "uicon-zh": "",
"uicon-en": "" "uicon-en": ""
}; };
const props$9 = { const props$8 = {
props: { props: {
// 图标类名 // 图标类名
name: { name: {
@ -11894,7 +11894,7 @@ const props$9 = {
} }
} }
}; };
const props$8 = { const props$7 = {
props: { props: {
// 是否显示组件 // 是否显示组件
show: { show: {
@ -11953,7 +11953,7 @@ const props$8 = {
} }
} }
}; };
const props$7 = { const props$6 = {
props: { props: {
// 轮播的长度 // 轮播的长度
length: { length: {
@ -11982,7 +11982,7 @@ const props$7 = {
} }
} }
}; };
const props$6 = { const props$5 = {
props: { props: {
// 文字颜色 // 文字颜色
color: { color: {
@ -12021,100 +12021,6 @@ const props$6 = {
} }
} }
}; };
const props$5 = {
props: {
// 组件状态loadmore-加载前的状态loading-加载中的状态nomore-没有更多的状态
status: {
type: String,
default: () => defProps.loadmore.status
},
// 组件背景色
bgColor: {
type: String,
default: () => defProps.loadmore.bgColor
},
// 是否显示加载中的图标
icon: {
type: Boolean,
default: () => defProps.loadmore.icon
},
// 字体大小
fontSize: {
type: [String, Number],
default: () => defProps.loadmore.fontSize
},
// 图标大小
iconSize: {
type: [String, Number],
default: () => defProps.loadmore.iconSize
},
// 字体颜色
color: {
type: String,
default: () => defProps.loadmore.color
},
// 加载中状态的图标spinner-花朵状图标circle-圆圈状semicircle-半圆
loadingIcon: {
type: String,
default: () => defProps.loadmore.loadingIcon
},
// 加载前的提示语
loadmoreText: {
type: String,
default: () => defProps.loadmore.loadmoreText
},
// 加载中提示语
loadingText: {
type: String,
default: () => defProps.loadmore.loadingText
},
// 没有更多的提示语
nomoreText: {
type: String,
default: () => defProps.loadmore.nomoreText
},
// 在“没有更多”状态下,是否显示粗点
isDot: {
type: Boolean,
default: () => defProps.loadmore.isDot
},
// 加载中图标的颜色
iconColor: {
type: String,
default: () => defProps.loadmore.iconColor
},
// 上边距
marginTop: {
type: [String, Number],
default: () => defProps.loadmore.marginTop
},
// 下边距
marginBottom: {
type: [String, Number],
default: () => defProps.loadmore.marginBottom
},
// 高度单位px
height: {
type: [String, Number],
default: () => defProps.loadmore.height
},
// 是否显示左边分割线
line: {
type: Boolean,
default: () => defProps.loadmore.line
},
// 线条颜色
lineColor: {
type: String,
default: () => defProps.loadmore.lineColor
},
// 是否虚线true-虚线false-实线
dashed: {
type: Boolean,
default: () => defProps.loadmore.dashed
}
}
};
const props$4 = { const props$4 = {
props: { props: {
// 是否显示遮罩 // 是否显示遮罩
@ -12294,30 +12200,29 @@ exports.onMounted = onMounted;
exports.onShow = onShow; exports.onShow = onShow;
exports.openType = openType; exports.openType = openType;
exports.p = p; exports.p = p;
exports.props = props$n; exports.props = props$m;
exports.props$1 = props$m; exports.props$1 = props$l;
exports.props$10 = props$d; exports.props$10 = props$c;
exports.props$11 = props$c; exports.props$11 = props$b;
exports.props$12 = props$b; exports.props$12 = props$a;
exports.props$13 = props$a; exports.props$13 = props$9;
exports.props$14 = props$9; exports.props$14 = props$8;
exports.props$15 = props$8; exports.props$15 = props$7;
exports.props$16 = props$7; exports.props$16 = props$6;
exports.props$17 = props$6; exports.props$17 = props$5;
exports.props$18 = props$5; exports.props$18 = props$4;
exports.props$19 = props$4; exports.props$19 = props$3;
exports.props$2 = props$l; exports.props$2 = props$k;
exports.props$20 = props$3; exports.props$20 = props$2;
exports.props$21 = props$2; exports.props$21 = props$1;
exports.props$22 = props$1; exports.props$22 = props;
exports.props$23 = props; exports.props$3 = props$j;
exports.props$3 = props$k; exports.props$4 = props$i;
exports.props$4 = props$j; exports.props$5 = props$h;
exports.props$5 = props$i; exports.props$6 = props$g;
exports.props$6 = props$h; exports.props$7 = props$f;
exports.props$7 = props$g; exports.props$8 = props$e;
exports.props$8 = props$f; exports.props$9 = props$d;
exports.props$9 = props$e;
exports.random = random; exports.random = random;
exports.reactive = reactive; exports.reactive = reactive;
exports.ref = ref; exports.ref = ref;

View File

@ -74,7 +74,7 @@ const _sfc_main = {
setup(__props, { emit: __emit }) { setup(__props, { emit: __emit }) {
const emit = __emit; const emit = __emit;
const errorImg = () => { const errorImg = () => {
info.cover = "/static/image/imgerr.png"; info.cover;
}; };
common_vendor.ref("name"); common_vendor.ref("name");
const props = __props; const props = __props;
@ -150,7 +150,7 @@ const _sfc_main = {
}); });
return (_ctx, _cache) => { return (_ctx, _cache) => {
return common_vendor.e({ return common_vendor.e({
a: info.cover, a: props.cover,
b: common_vendor.o(errorImg), b: common_vendor.o(errorImg),
c: common_vendor.p({ c: common_vendor.p({
lines: 1, lines: 1,

View File

@ -8,13 +8,11 @@ require("../../utils/http.js");
require("../../utils/Auth.js"); require("../../utils/Auth.js");
if (!Array) { if (!Array) {
const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox"); const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox");
const _easycom_up_loadmore2 = common_vendor.resolveComponent("up-loadmore"); _easycom_CaseBox2();
(_easycom_CaseBox2 + _easycom_up_loadmore2)();
} }
const _easycom_CaseBox = () => "../CaseBox/CaseBox.js"; const _easycom_CaseBox = () => "../CaseBox/CaseBox.js";
const _easycom_up_loadmore = () => "../../node-modules/uview-plus/components/u-loadmore/u-loadmore.js";
if (!Math) { if (!Math) {
(_easycom_CaseBox + _easycom_up_loadmore)(); _easycom_CaseBox();
} }
const _sfc_main = { const _sfc_main = {
__name: "CaseList", __name: "CaseList",
@ -127,7 +125,7 @@ const _sfc_main = {
getCaseLists(); getCaseLists();
}); });
return (_ctx, _cache) => { return (_ctx, _cache) => {
return common_vendor.e({ return {
a: common_vendor.f(caseList.value, (item, index, i0) => { a: common_vendor.f(caseList.value, (item, index, i0) => {
return { return {
a: common_vendor.o(ClickLike, index), a: common_vendor.o(ClickLike, index),
@ -139,14 +137,8 @@ const _sfc_main = {
e: index e: index
}; };
}), }),
b: isLoading.value b: common_vendor.o(loadMore)
}, isLoading.value ? { };
c: common_vendor.p({
status: status.value
})
} : {}, {
d: common_vendor.o(loadMore)
});
}; };
} }
}; };

View File

@ -1,7 +1,6 @@
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"case-box": "../CaseBox/CaseBox", "case-box": "../CaseBox/CaseBox"
"up-loadmore": "../../node-modules/uview-plus/components/u-loadmore/u-loadmore"
} }
} }

View File

@ -1 +1 @@
<scroll-view scroll-y bindscrolltolower="{{d}}" class="case-list"><view wx:for="{{a}}" wx:for-item="item" wx:key="e" class="list-itme"><case-box wx:if="{{item.d}}" bindClickLike="{{item.a}}" bindClickCollection="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></case-box></view><view wx:if="{{b}}" class="loading"><up-loadmore wx:if="{{c}}" u-i="9b52d2ce-1" bind:__l="__l" u-p="{{c}}"/></view></scroll-view> <scroll-view scroll-y bindscrolltolower="{{b}}" class="case-list"><view wx:for="{{a}}" wx:for-item="item" wx:key="e" class="list-itme"><case-box wx:if="{{item.d}}" bindClickLike="{{item.a}}" bindClickCollection="{{item.b}}" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></case-box></view></scroll-view>

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js"); const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = { const _sfc_main = {
name: "u-line", name: "u-line",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$23], mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$22],
computed: { computed: {
lineStyle() { lineStyle() {
const style = {}; const style = {};

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js"); const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = { const _sfc_main = {
name: "u-overlay", name: "u-overlay",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$19], mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$18],
computed: { computed: {
overlayStyle() { overlayStyle() {
const style = { const style = {

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js"); const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = { const _sfc_main = {
name: "u-safe-bottom", name: "u-safe-bottom",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$21], mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20],
data() { data() {
return { return {
safeAreaBottomHeight: 0, safeAreaBottomHeight: 0,

View File

@ -2,7 +2,7 @@
const common_vendor = require("../../../../common/vendor.js"); const common_vendor = require("../../../../common/vendor.js");
const _sfc_main = { const _sfc_main = {
name: "u-status-bar", name: "u-status-bar",
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$20], mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.props$19],
data() { data() {
return {}; return {};
}, },

View File

@ -33,7 +33,7 @@ const _sfc_main = {
} }
}, },
// 将mixin挂在到组件中实际上为一个vue格式对象。 // 将mixin挂在到组件中实际上为一个vue格式对象。
mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$22], mixins: [common_vendor.mpMixin, common_vendor.mixin, common_vendor.transition, common_vendor.props$21],
watch: { watch: {
show: { show: {
handler(newVal) { handler(newVal) {

View File

@ -49,6 +49,7 @@ const _sfc_main = {
// }, // },
]); ]);
const show = common_vendor.ref(false); const show = common_vendor.ref(false);
const islogin = common_vendor.ref(false);
const user = common_vendor.ref({ const user = common_vendor.ref({
avatar: "/static/icon/tx.png", avatar: "/static/icon/tx.png",
nickName: "点击登录" nickName: "点击登录"
@ -59,12 +60,17 @@ const _sfc_main = {
const open = () => { const open = () => {
show.value = true; show.value = true;
}; };
const clickLogin = () => {
gologin();
};
async function gologin() { async function gologin() {
if (utils_Auth.isLogin()) { if (utils_Auth.isLogin()) {
islogin.value = true;
return; return;
} }
let res = await userUtils.value.login(); let res = await userUtils.value.login();
if (res.code == 200) { if (res.code == 200) {
islogin.value = true;
getUserInfo(); getUserInfo();
} else { } else {
common_vendor.index.showToast({ common_vendor.index.showToast({
@ -76,6 +82,7 @@ const _sfc_main = {
async function getUserInfo() { async function getUserInfo() {
const resp = await comm_api.userInfo(); const resp = await comm_api.userInfo();
user.value = resp.data; user.value = resp.data;
islogin.value = true;
} }
const updata = () => { const updata = () => {
getUserInfo(); getUserInfo();
@ -104,7 +111,7 @@ const _sfc_main = {
common_vendor.onLoad(() => { common_vendor.onLoad(() => {
}); });
return (_ctx, _cache) => { return (_ctx, _cache) => {
return { return common_vendor.e({
a: common_vendor.o(updata), a: common_vendor.o(updata),
b: common_vendor.o(close), b: common_vendor.o(close),
c: common_vendor.o(open), c: common_vendor.o(open),
@ -118,7 +125,11 @@ const _sfc_main = {
f: common_vendor.t(user.value.username), f: common_vendor.t(user.value.username),
g: common_vendor.t(user.value.phoneNumber), g: common_vendor.t(user.value.phoneNumber),
h: common_vendor.o(gologin), h: common_vendor.o(gologin),
i: common_vendor.f(serviceList, (item, index, i0) => { i: !islogin.value
}, !islogin.value ? {
j: common_vendor.o(clickLogin)
} : {}, {
k: common_vendor.f(serviceList, (item, index, i0) => {
return { return {
a: "0f7520f0-5-" + i0 + "," + ("0f7520f0-4-" + i0), a: "0f7520f0-5-" + i0 + "," + ("0f7520f0-4-" + i0),
b: common_vendor.p({ b: common_vendor.p({
@ -136,10 +147,10 @@ const _sfc_main = {
g: "0f7520f0-3-" + i0 + ",0f7520f0-2" g: "0f7520f0-3-" + i0 + ",0f7520f0-2"
}; };
}), }),
j: common_vendor.p({ l: common_vendor.p({
scrollable: false scrollable: false
}) })
}; });
}; };
} }
}; };

View File

@ -1 +1 @@
<up-popup wx:if="{{d}}" class="data-v-0f7520f0" u-s="{{['d']}}" bindclose="{{b}}" bindopen="{{c}}" u-i="0f7520f0-0" bind:__l="__l" u-p="{{d}}"><view class="updata-user data-v-0f7520f0"><update-user-box class="data-v-0f7520f0" bindupdata="{{a}}" u-i="0f7520f0-1,0f7520f0-0" bind:__l="__l"></update-user-box></view></up-popup><view class="main data-v-0f7520f0"><view class="top-back data-v-0f7520f0"><text class="page-title data-v-0f7520f0">我的</text><view class="info-box data-v-0f7520f0" bindtap="{{h}}"><image class="data-v-0f7520f0" src="{{e}}" mode="scaleToFill"></image><view class="text-box data-v-0f7520f0"><text class="nick-name data-v-0f7520f0">{{f}}</text><view class="tag data-v-0f7520f0">{{g}}</view></view></view></view><view class="list-box data-v-0f7520f0"><up-list wx:if="{{j}}" class="data-v-0f7520f0" u-s="{{['d']}}" u-i="0f7520f0-2" bind:__l="__l" u-p="{{j}}"><up-list-item wx:for="{{i}}" wx:for-item="item" wx:key="f" class="data-v-0f7520f0" u-s="{{['d']}}" u-i="{{item.g}}" bind:__l="__l"><up-cell wx:if="{{item.e}}" class="data-v-0f7520f0" u-s="{{['icon']}}" bindclick="{{item.c}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"><up-avatar class="data-v-0f7520f0" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}" slot="icon"></up-avatar></up-cell></up-list-item></up-list></view></view> <up-popup wx:if="{{d}}" class="data-v-0f7520f0" u-s="{{['d']}}" bindclose="{{b}}" bindopen="{{c}}" u-i="0f7520f0-0" bind:__l="__l" u-p="{{d}}"><view class="updata-user data-v-0f7520f0"><update-user-box class="data-v-0f7520f0" bindupdata="{{a}}" u-i="0f7520f0-1,0f7520f0-0" bind:__l="__l"></update-user-box></view></up-popup><view class="main data-v-0f7520f0"><view class="top-back data-v-0f7520f0"><text class="page-title data-v-0f7520f0">我的</text><view class="info-box data-v-0f7520f0" bindtap="{{h}}"><image class="data-v-0f7520f0" src="{{e}}" mode="scaleToFill"></image><view class="text-box data-v-0f7520f0"><text class="nick-name data-v-0f7520f0">{{f}}</text><view class="tag data-v-0f7520f0">{{g}}</view></view></view><button wx:if="{{i}}" class="data-v-0f7520f0" bindtap="{{j}}">登录</button></view><view class="list-box data-v-0f7520f0"><up-list wx:if="{{l}}" class="data-v-0f7520f0" u-s="{{['d']}}" u-i="0f7520f0-2" bind:__l="__l" u-p="{{l}}"><up-list-item wx:for="{{k}}" wx:for-item="item" wx:key="f" class="data-v-0f7520f0" u-s="{{['d']}}" u-i="{{item.g}}" bind:__l="__l"><up-cell wx:if="{{item.e}}" class="data-v-0f7520f0" u-s="{{['icon']}}" bindclick="{{item.c}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"><up-avatar class="data-v-0f7520f0" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}" slot="icon"></up-avatar></up-cell></up-list-item></up-list></view></view>

View File

@ -20,7 +20,7 @@
"outputPath": "" "outputPath": ""
}, },
"condition": false, "condition": false,
"ignoreUploadUnusedFiles": true "ignoreUploadUnusedFiles": false
}, },
"condition": {}, "condition": {},
"editorSetting": { "editorSetting": {

View File

@ -3,6 +3,6 @@
"projectname": "gree_leran", "projectname": "gree_leran",
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": false "urlCheck": true
} }
} }

View File

@ -3,6 +3,7 @@ const common_vendor = require("../common/vendor.js");
const apis_user = require("../apis/user.js"); const apis_user = require("../apis/user.js");
class userUtils { class userUtils {
constructor() { constructor() {
this.login();
} }
//获取用户code的同步封装 //获取用户code的同步封装
getCode() { getCode() {

View File

@ -5,6 +5,7 @@ import {
export const baseUrl = "https://9miao.fun/prod-api" export const baseUrl = "https://9miao.fun/prod-api"
// export const baseUrl="http://127.0.0.1:8080" // export const baseUrl="http://127.0.0.1:8080"
export const http = (option) => { export const http = (option) => {
if (!option instanceof Object) { if (!option instanceof Object) {
throw "参数非法" throw "参数非法"

View File

@ -1,7 +1,7 @@
import{mark,bind,unbind,updatePassword} from'@/apis/user.js' import{mark,bind,unbind,updatePassword} from'@/apis/user.js'
class userUtils{ class userUtils{
constructor(){ constructor(){
// this.login(); this.login();
// this.getImage(); // this.getImage();
} }