修改小问题
This commit is contained in:
parent
026957ad31
commit
e0b7985e2b
|
@ -7,6 +7,7 @@ export const mark= (code) => {
|
|||
return http({
|
||||
url:"/api/wxLogin",
|
||||
data:{
|
||||
|
||||
code,
|
||||
},
|
||||
method:"POST"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<view class="cardbox">
|
||||
<view class="cardbox-top" @click="getInfo">
|
||||
<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 class="cardbox-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 ab = "/static/image/imgerr.png";
|
||||
const errorImg = () => {
|
||||
info.cover = "/static/image/imgerr.png";
|
||||
info.cover;
|
||||
};
|
||||
const aaa = ref("name");
|
||||
const props = defineProps({
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
<view class="list-itme" v-for="(item, index) in caseList" :key="index">
|
||||
<CaseBox v-bind="item" @ClickLike="ClickLike" @ClickCollection="ClickCollection"></CaseBox>
|
||||
</view>
|
||||
<view v-if="isLoading" class="loading">
|
||||
<!-- <view v-if="isLoading" class="loading">
|
||||
<up-loadmore :status="status" />
|
||||
</view>
|
||||
</view> -->
|
||||
</scroll-view>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -3,12 +3,14 @@
|
|||
<view class="updata-user" >
|
||||
<UpdateUserBox @updata="updata"></UpdateUserBox>
|
||||
</view>
|
||||
|
||||
</up-popup>
|
||||
<view class="main">
|
||||
|
||||
<view class="top-back">
|
||||
|
||||
<text class="page-title">我的</text>
|
||||
|
||||
<view class="info-box" @click="gologin">
|
||||
<image :src="user.profilePicture||'/static/icon/tx.png'" mode="scaleToFill"></image>
|
||||
<view class="text-box">
|
||||
|
@ -20,6 +22,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<button v-if="!islogin" @click="clickLogin">登录</button>
|
||||
</view>
|
||||
|
||||
<view class="list-box">
|
||||
|
@ -73,6 +76,7 @@
|
|||
// },
|
||||
])
|
||||
const show=ref(false);
|
||||
const islogin=ref(false);
|
||||
const user = ref({
|
||||
avatar: "/static/icon/tx.png",
|
||||
nickName: "点击登录"
|
||||
|
@ -83,12 +87,17 @@
|
|||
const open=()=>{
|
||||
show.value=true;
|
||||
}
|
||||
const clickLogin=()=>{
|
||||
gologin();
|
||||
}
|
||||
async function gologin(){
|
||||
if(isLogin()){
|
||||
islogin.value=true;
|
||||
return
|
||||
}
|
||||
let res=await userUtils.value.login();
|
||||
if(res.code==200){
|
||||
islogin.value=true;
|
||||
getUserInfo();
|
||||
}else{
|
||||
uni.showToast({
|
||||
|
@ -100,6 +109,7 @@
|
|||
async function getUserInfo(){
|
||||
const resp = await userInfo()
|
||||
user.value = resp.data
|
||||
islogin.value=true;
|
||||
}
|
||||
const updata=()=>{
|
||||
getUserInfo();
|
||||
|
|
|
@ -10158,7 +10158,7 @@ const createHook = (lifecycle) => (hook, target = getCurrentInstance()) => {
|
|||
};
|
||||
const onShow = /* @__PURE__ */ createHook(ON_SHOW);
|
||||
const onLoad = /* @__PURE__ */ createHook(ON_LOAD);
|
||||
const props$n = {
|
||||
const props$m = {
|
||||
props: {
|
||||
// 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
|
||||
list: {
|
||||
|
@ -10283,7 +10283,7 @@ const props$n = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$m = {
|
||||
const props$l = {
|
||||
props: {
|
||||
// 宫格的name
|
||||
name: {
|
||||
|
@ -10297,7 +10297,7 @@ const props$m = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$l = {
|
||||
const props$k = {
|
||||
props: {
|
||||
// 分成几列
|
||||
col: {
|
||||
|
@ -10316,7 +10316,7 @@ const props$l = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$k = {
|
||||
const props$j = {
|
||||
props: {
|
||||
// 主题颜色
|
||||
type: {
|
||||
|
@ -10538,7 +10538,7 @@ const openType = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$j = {
|
||||
const props$i = {
|
||||
props: {
|
||||
// 是否展示弹窗
|
||||
show: {
|
||||
|
@ -10617,7 +10617,7 @@ const props$j = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$i = {
|
||||
const props$h = {
|
||||
props: {
|
||||
// 头像图片路径(不能为相对路径)
|
||||
src: {
|
||||
|
@ -10695,7 +10695,7 @@ const props$i = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$h = {
|
||||
const props$g = {
|
||||
props: {
|
||||
// 标题
|
||||
title: {
|
||||
|
@ -10805,7 +10805,7 @@ const props$h = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$g = {
|
||||
const props$f = {
|
||||
props: {
|
||||
// 用于滚动到指定item
|
||||
anchor: {
|
||||
|
@ -10814,7 +10814,7 @@ const props$g = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$f = {
|
||||
const props$e = {
|
||||
props: {
|
||||
// 控制是否出现滚动条,仅nvue有效
|
||||
showScrollbar: {
|
||||
|
@ -10913,7 +10913,7 @@ const props$f = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$e = {
|
||||
const props$d = {
|
||||
props: {
|
||||
// 绑定的值
|
||||
modelValue: {
|
||||
|
@ -11099,7 +11099,7 @@ const props$e = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$d = {
|
||||
const props$c = {
|
||||
props: {
|
||||
// 是否细边框
|
||||
hairline: {
|
||||
|
@ -11369,7 +11369,7 @@ const mixinUp = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$c = {
|
||||
const props$b = {
|
||||
props: {
|
||||
// 接受的文件类型, 可选值为all media image file video
|
||||
accept: {
|
||||
|
@ -11493,7 +11493,7 @@ const props$c = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$b = {
|
||||
const props$a = {
|
||||
props: {
|
||||
// 到顶部的距离
|
||||
top: {
|
||||
|
@ -11542,7 +11542,7 @@ const props$b = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$a = {
|
||||
const props$9 = {
|
||||
props: {
|
||||
// tab的数据
|
||||
list: {
|
||||
|
@ -11805,7 +11805,7 @@ const icons = {
|
|||
"uicon-zh": "",
|
||||
"uicon-en": ""
|
||||
};
|
||||
const props$9 = {
|
||||
const props$8 = {
|
||||
props: {
|
||||
// 图标类名
|
||||
name: {
|
||||
|
@ -11894,7 +11894,7 @@ const props$9 = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$8 = {
|
||||
const props$7 = {
|
||||
props: {
|
||||
// 是否显示组件
|
||||
show: {
|
||||
|
@ -11953,7 +11953,7 @@ const props$8 = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$7 = {
|
||||
const props$6 = {
|
||||
props: {
|
||||
// 轮播的长度
|
||||
length: {
|
||||
|
@ -11982,7 +11982,7 @@ const props$7 = {
|
|||
}
|
||||
}
|
||||
};
|
||||
const props$6 = {
|
||||
const props$5 = {
|
||||
props: {
|
||||
// 文字颜色
|
||||
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 = {
|
||||
props: {
|
||||
// 是否显示遮罩
|
||||
|
@ -12294,30 +12200,29 @@ exports.onMounted = onMounted;
|
|||
exports.onShow = onShow;
|
||||
exports.openType = openType;
|
||||
exports.p = p;
|
||||
exports.props = props$n;
|
||||
exports.props$1 = props$m;
|
||||
exports.props$10 = props$d;
|
||||
exports.props$11 = props$c;
|
||||
exports.props$12 = props$b;
|
||||
exports.props$13 = props$a;
|
||||
exports.props$14 = props$9;
|
||||
exports.props$15 = props$8;
|
||||
exports.props$16 = props$7;
|
||||
exports.props$17 = props$6;
|
||||
exports.props$18 = props$5;
|
||||
exports.props$19 = props$4;
|
||||
exports.props$2 = props$l;
|
||||
exports.props$20 = props$3;
|
||||
exports.props$21 = props$2;
|
||||
exports.props$22 = props$1;
|
||||
exports.props$23 = props;
|
||||
exports.props$3 = props$k;
|
||||
exports.props$4 = props$j;
|
||||
exports.props$5 = props$i;
|
||||
exports.props$6 = props$h;
|
||||
exports.props$7 = props$g;
|
||||
exports.props$8 = props$f;
|
||||
exports.props$9 = props$e;
|
||||
exports.props = props$m;
|
||||
exports.props$1 = props$l;
|
||||
exports.props$10 = props$c;
|
||||
exports.props$11 = props$b;
|
||||
exports.props$12 = props$a;
|
||||
exports.props$13 = props$9;
|
||||
exports.props$14 = props$8;
|
||||
exports.props$15 = props$7;
|
||||
exports.props$16 = props$6;
|
||||
exports.props$17 = props$5;
|
||||
exports.props$18 = props$4;
|
||||
exports.props$19 = props$3;
|
||||
exports.props$2 = props$k;
|
||||
exports.props$20 = props$2;
|
||||
exports.props$21 = props$1;
|
||||
exports.props$22 = props;
|
||||
exports.props$3 = props$j;
|
||||
exports.props$4 = props$i;
|
||||
exports.props$5 = props$h;
|
||||
exports.props$6 = props$g;
|
||||
exports.props$7 = props$f;
|
||||
exports.props$8 = props$e;
|
||||
exports.props$9 = props$d;
|
||||
exports.random = random;
|
||||
exports.reactive = reactive;
|
||||
exports.ref = ref;
|
||||
|
|
|
@ -74,7 +74,7 @@ const _sfc_main = {
|
|||
setup(__props, { emit: __emit }) {
|
||||
const emit = __emit;
|
||||
const errorImg = () => {
|
||||
info.cover = "/static/image/imgerr.png";
|
||||
info.cover;
|
||||
};
|
||||
common_vendor.ref("name");
|
||||
const props = __props;
|
||||
|
@ -150,7 +150,7 @@ const _sfc_main = {
|
|||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: info.cover,
|
||||
a: props.cover,
|
||||
b: common_vendor.o(errorImg),
|
||||
c: common_vendor.p({
|
||||
lines: 1,
|
||||
|
|
|
@ -8,13 +8,11 @@ require("../../utils/http.js");
|
|||
require("../../utils/Auth.js");
|
||||
if (!Array) {
|
||||
const _easycom_CaseBox2 = common_vendor.resolveComponent("CaseBox");
|
||||
const _easycom_up_loadmore2 = common_vendor.resolveComponent("up-loadmore");
|
||||
(_easycom_CaseBox2 + _easycom_up_loadmore2)();
|
||||
_easycom_CaseBox2();
|
||||
}
|
||||
const _easycom_CaseBox = () => "../CaseBox/CaseBox.js";
|
||||
const _easycom_up_loadmore = () => "../../node-modules/uview-plus/components/u-loadmore/u-loadmore.js";
|
||||
if (!Math) {
|
||||
(_easycom_CaseBox + _easycom_up_loadmore)();
|
||||
_easycom_CaseBox();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "CaseList",
|
||||
|
@ -127,7 +125,7 @@ const _sfc_main = {
|
|||
getCaseLists();
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
return {
|
||||
a: common_vendor.f(caseList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.o(ClickLike, index),
|
||||
|
@ -139,14 +137,8 @@ const _sfc_main = {
|
|||
e: index
|
||||
};
|
||||
}),
|
||||
b: isLoading.value
|
||||
}, isLoading.value ? {
|
||||
c: common_vendor.p({
|
||||
status: status.value
|
||||
})
|
||||
} : {}, {
|
||||
d: common_vendor.o(loadMore)
|
||||
});
|
||||
b: common_vendor.o(loadMore)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"case-box": "../CaseBox/CaseBox",
|
||||
"up-loadmore": "../../node-modules/uview-plus/components/u-loadmore/u-loadmore"
|
||||
"case-box": "../CaseBox/CaseBox"
|
||||
}
|
||||
}
|
|
@ -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>
|
|
@ -2,7 +2,7 @@
|
|||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
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: {
|
||||
lineStyle() {
|
||||
const style = {};
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
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: {
|
||||
overlayStyle() {
|
||||
const style = {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
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() {
|
||||
return {
|
||||
safeAreaBottomHeight: 0,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
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() {
|
||||
return {};
|
||||
},
|
||||
|
|
|
@ -33,7 +33,7 @@ const _sfc_main = {
|
|||
}
|
||||
},
|
||||
// 将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: {
|
||||
show: {
|
||||
handler(newVal) {
|
||||
|
|
|
@ -49,6 +49,7 @@ const _sfc_main = {
|
|||
// },
|
||||
]);
|
||||
const show = common_vendor.ref(false);
|
||||
const islogin = common_vendor.ref(false);
|
||||
const user = common_vendor.ref({
|
||||
avatar: "/static/icon/tx.png",
|
||||
nickName: "点击登录"
|
||||
|
@ -59,12 +60,17 @@ const _sfc_main = {
|
|||
const open = () => {
|
||||
show.value = true;
|
||||
};
|
||||
const clickLogin = () => {
|
||||
gologin();
|
||||
};
|
||||
async function gologin() {
|
||||
if (utils_Auth.isLogin()) {
|
||||
islogin.value = true;
|
||||
return;
|
||||
}
|
||||
let res = await userUtils.value.login();
|
||||
if (res.code == 200) {
|
||||
islogin.value = true;
|
||||
getUserInfo();
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
|
@ -76,6 +82,7 @@ const _sfc_main = {
|
|||
async function getUserInfo() {
|
||||
const resp = await comm_api.userInfo();
|
||||
user.value = resp.data;
|
||||
islogin.value = true;
|
||||
}
|
||||
const updata = () => {
|
||||
getUserInfo();
|
||||
|
@ -104,7 +111,7 @@ const _sfc_main = {
|
|||
common_vendor.onLoad(() => {
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o(updata),
|
||||
b: common_vendor.o(close),
|
||||
c: common_vendor.o(open),
|
||||
|
@ -118,7 +125,11 @@ const _sfc_main = {
|
|||
f: common_vendor.t(user.value.username),
|
||||
g: common_vendor.t(user.value.phoneNumber),
|
||||
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 {
|
||||
a: "0f7520f0-5-" + i0 + "," + ("0f7520f0-4-" + i0),
|
||||
b: common_vendor.p({
|
||||
|
@ -136,10 +147,10 @@ const _sfc_main = {
|
|||
g: "0f7520f0-3-" + i0 + ",0f7520f0-2"
|
||||
};
|
||||
}),
|
||||
j: common_vendor.p({
|
||||
l: common_vendor.p({
|
||||
scrollable: false
|
||||
})
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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>
|
|
@ -20,7 +20,7 @@
|
|||
"outputPath": ""
|
||||
},
|
||||
"condition": false,
|
||||
"ignoreUploadUnusedFiles": true
|
||||
"ignoreUploadUnusedFiles": false
|
||||
},
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
"projectname": "gree_leran",
|
||||
"setting": {
|
||||
"compileHotReLoad": true,
|
||||
"urlCheck": false
|
||||
"urlCheck": true
|
||||
}
|
||||
}
|
|
@ -3,6 +3,7 @@ const common_vendor = require("../common/vendor.js");
|
|||
const apis_user = require("../apis/user.js");
|
||||
class userUtils {
|
||||
constructor() {
|
||||
this.login();
|
||||
}
|
||||
//获取用户code的同步封装
|
||||
getCode() {
|
||||
|
|
|
@ -5,6 +5,7 @@ import {
|
|||
export const baseUrl = "https://9miao.fun/prod-api"
|
||||
// export const baseUrl="http://127.0.0.1:8080"
|
||||
|
||||
|
||||
export const http = (option) => {
|
||||
if (!option instanceof Object) {
|
||||
throw "参数非法"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import{mark,bind,unbind,updatePassword} from'@/apis/user.js'
|
||||
class userUtils{
|
||||
constructor(){
|
||||
// this.login();
|
||||
this.login();
|
||||
// this.getImage();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue