Merge branch 'test' of https://e.coding.net/g-cphe0354/duanju/new_app into ymf
This commit is contained in:
commit
fa809e7b0b
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
//打包时修改env的值即可
|
//打包时修改env的值即可
|
||||||
const env='test' //test , production,local
|
const env='production' //test , production,local
|
||||||
|
|
||||||
export const encryptKey='1234567890123456' // http数据加解密的key
|
export const encryptKey='1234567890123456' // http数据加解密的key
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"name" : "duanju-app-v3",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "2.3.4",
|
"versionName" : "1.2.4",
|
||||||
"versionCode" : 234,
|
"versionCode" : 124,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@
|
||||||
<input v-model="data.userInfo.userName" align="right" placeholder="请输入用户名" />
|
<input v-model="data.userInfo.userName" align="right" placeholder="请输入用户名" />
|
||||||
</template>
|
</template>
|
||||||
</up-cell>
|
</up-cell>
|
||||||
<up-cell title="手机">
|
<!-- <up-cell title="手机">
|
||||||
<template #value>
|
<template #value>
|
||||||
<input :disabled="data.userInfo.phone?true:false" v-model="data.userInfo.phone" align="right" placeholder="请输入联系电话" />
|
<input v-model="data.userInfo.phone" align="right" placeholder="请输入联系电话" />
|
||||||
</template>
|
</template>
|
||||||
</up-cell>
|
</up-cell> -->
|
||||||
</up-cell-group>
|
</up-cell-group>
|
||||||
<view class="save" @click="save">保存</view>
|
<view class="save" @click="save">保存</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -62,7 +62,8 @@
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
// 用户点击了预览当前图片
|
// 用户点击了预览当前图片
|
||||||
// 可以自己实现当前头像链接的读取
|
// 可以自己实现当前头像链接的读取
|
||||||
let url = data.userInfo.avatar;
|
console.log()
|
||||||
|
let url = data.userInfo.avatar||'../../static/default/avatar.png';
|
||||||
let arr = []
|
let arr = []
|
||||||
arr.push(url)
|
arr.push(url)
|
||||||
uni.previewImage({
|
uni.previewImage({
|
||||||
|
|
@ -108,20 +109,20 @@
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!data.userInfo.phone) {
|
// if (!data.userInfo.phone) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: "手机号不能空",
|
// title: "手机号不能空",
|
||||||
icon: "none"
|
// icon: "none"
|
||||||
})
|
// })
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
if (checkPhone(data.userInfo.phone) == false) {
|
// if (checkPhone(data.userInfo.phone) == false) {
|
||||||
uni.showToast({
|
// uni.showToast({
|
||||||
title: "手机号格式不正确",
|
// title: "手机号格式不正确",
|
||||||
icon: "none"
|
// icon: "none"
|
||||||
})
|
// })
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '温馨提示',
|
||||||
|
|
@ -132,7 +133,7 @@
|
||||||
let res = await updateUsers({
|
let res = await updateUsers({
|
||||||
userName: data.userInfo.userName,
|
userName: data.userInfo.userName,
|
||||||
avatar: data.userInfo.avatar,
|
avatar: data.userInfo.avatar,
|
||||||
phone: data.userInfo.phone,
|
// phone: data.userInfo.phone,
|
||||||
})
|
})
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '保存成功',
|
title: '保存成功',
|
||||||
|
|
@ -141,7 +142,7 @@
|
||||||
let userInfo = uni.getStorageSync('userInfo');
|
let userInfo = uni.getStorageSync('userInfo');
|
||||||
userInfo.userName = data.userInfo.userName
|
userInfo.userName = data.userInfo.userName
|
||||||
userInfo.avatar = data.userInfo.avatar
|
userInfo.avatar = data.userInfo.avatar
|
||||||
userInfo.phone = data.userInfo.phone
|
// userInfo.phone = data.userInfo.phone
|
||||||
uni.setStorageSync('userInfo', userInfo);
|
uni.setStorageSync('userInfo', userInfo);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue