提交 5218159c 编写于 作者: study夏羽's avatar study夏羽

uni-id-pages分包

上级 b9b943ae
<template>
<view @click="onClick" :style="{width,height}" style="justify-content: center;">
<image v-if="cSrc" :style="{width,height}" :src="cSrc" :mode="mode"></image>
</view>
</template>
<script>
/**
* cloud-image
* @description 兼容普通资源和unicloud图片资源渲染的组件
* @property {String} mode 图片裁剪、缩放的模式。默认为widthFix,支持所有image组件的mode值
* @property {String} src 资源完了链接或uniCloud云存储资源的fileid
* @property {String} width 图片的宽,默认为:100rpx
* @property {String} height 图片的高,默认为:100rpx
* @event {Function} click 点击 cloud-image 触发事件
*/
export default {
name: "cloud-image",
emits:['click'],
props: {
mode: {
type:String,
default () {
return 'widthFix'
}
},
src: {
// type:String,
default () {
return ""
}
},
width: {
type:String,
default () {
return '100rpx'
}
},
height: {
type:String,
default () {
return '100rpx'
}
}
},
watch: {
src:{
handler(src) {
if (src&&src.substring(0, 8) == "cloud://") {
uniCloud.getTempFileURL({
fileList: [src]
}).then(res=>{
this.cSrc = res.fileList[0].tempFileURL
})
}else{
this.cSrc = src
}
},
immediate: true
}
},
methods:{
onClick(){
this.$emit('click')
}
},
data() {
return {
cSrc:false
};
}
}
</script>
\ No newline at end of file
{ {
"name": "", "name" : "uni-starter",
"appid": "", "appid" : "",
"description": "云端一体应用快速开发基本项目模版", "description" : "云端一体应用快速开发基本项目模版",
"versionName": "", "versionName" : "1.0.0",
"versionCode": "100", "versionCode" : "100",
"transformPx": false, "transformPx" : false,
"app-plus": { "app-plus" : {
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
"modules": { "modules" : {},
"distribute" : {
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios" : {},
"sdkConfigs" : {
"push" : {
"unipush" : null
}
}
}
}, },
"distribute": { "quickapp" : {},
"android": { "mp-weixin" : {
"permissions": [ "appid" : "",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "setting" : {
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "urlCheck" : false
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", },
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "usingComponents" : true,
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "optimization" : {
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "subPackages" : true
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios": {
},
"sdkConfigs": {
"push": {
"unipush": null
} }
}
}
},
"quickapp": {
},
"mp-weixin": {
"appid": "",
"setting": {
"urlCheck": false
}, },
"usingComponents": true "mp-alipay" : {
}, "usingComponents" : true
"mp-alipay": { },
"usingComponents": true "mp-baidu" : {
}, "usingComponents" : true
"mp-baidu": { },
"usingComponents": true "mp-toutiao" : {
}, "usingComponents" : true
"mp-toutiao": { },
"usingComponents": true "uniStatistics" : {
}, "enable" : false
"uniStatistics": { },
"enable": false "vueVersion" : "2"
}, }
"vueVersion": "2"
}
\ No newline at end of file
...@@ -45,8 +45,29 @@ ...@@ -45,8 +45,29 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
// #ifdef APP-PLUS
{ {
"path": "pages/uni-agree/uni-agree",
"style": {
"navigationStyle": "custom",
"app-plus": {
"popGesture": "none"
}
}
}, {
"path": "pages/ucenter/settings/settings",
"style": {
"navigationBarTitleText": "设置"
}
},
{
"path": "pages/ucenter/read-news-log/read-news-log",
"style": {
"navigationBarTitleText": "阅读记录",
"enablePullDownRefresh": true
}
}
// #ifdef APP-PLUS
, {
"path": "pages/ucenter/about/about", "path": "pages/ucenter/about/about",
"style": { "style": {
"navigationBarTitleText": "关于", "navigationBarTitleText": "关于",
...@@ -81,123 +102,108 @@ ...@@ -81,123 +102,108 @@
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, }
{
"path": "uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",
"style": {
"navigationBarTitleText": "注销账号"
}
},
// #endif // #endif
// #ifdef H5 ],
{ "subPackages": [{
"path": "uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage", "root": "uni_modules/uni-feedback",
"style": { "pages": [{
"navigationBarTitleText": "" "path": "pages/opendb-feedback/opendb-feedback",
} "style": {
}, "navigationBarTitleText": "意见反馈",
{ "enablePullDownRefresh": false
"path": "uni_modules/uni-id-pages/pages/register/register-admin",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": "注册管理员账号"
}
},
// #endif
{
"path": "pages/uni-agree/uni-agree",
"style": {
"navigationStyle": "custom",
"app-plus": {
"popGesture": "none"
} }
} }]
}, {
"path": "pages/ucenter/settings/settings",
"style": {
"navigationBarTitleText": "设置"
}
},
{
"path": "pages/ucenter/read-news-log/read-news-log",
"style": {
"navigationBarTitleText": "阅读记录",
"enablePullDownRefresh": true
}
}, },
{ {
"path": "uni_modules/uni-feedback/pages/opendb-feedback/opendb-feedback", "root": "uni_modules/uni-id-pages",
"style": { "pages": [{
"navigationBarTitleText": "意见反馈", "path": "pages/userinfo/userinfo",
"enablePullDownRefresh": false "style": {
} "navigationBarTitleText": "个人资料"
}, }
{ },
"path": "uni_modules/uni-id-pages/pages/userinfo/userinfo", {
"style": { "path": "pages/login/login-withoutpwd"
"navigationBarTitleText": "个人资料" },
} {
}, { "path": "pages/login/login-withpwd"
"path": "uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile", },
"style": { {
"navigationBarTitleText": "绑定手机号码" "path": "pages/userinfo/deactivate/deactivate",
} "style": {
}, { "navigationBarTitleText": "注销账号"
"path": "uni_modules/uni-id-pages/pages/login/login-withoutpwd", }
"style": { },
"navigationBarTitleText": "" {
} "path": "pages/userinfo/bind-mobile/bind-mobile",
}, { "style": {
"path": "uni_modules/uni-id-pages/pages/login/login-withpwd", "navigationBarTitleText": "绑定手机号码"
"style": { }
"navigationBarTitleText": "" },
} {
}, { "path": "pages/login/login-smscode",
"path": "uni_modules/uni-id-pages/pages/login/login-smscode", "style": {
"style": { "navigationBarTitleText": "手机验证码登录"
"navigationBarTitleText": "手机验证码登录" }
} },
}, { {
"path": "uni_modules/uni-id-pages/pages/register/register", "path": "pages/register/register",
"style": { "style": {
"navigationBarTitleText": "注册" "navigationBarTitleText": "注册"
} }
}, { },
"path": "uni_modules/uni-id-pages/pages/retrieve/retrieve", {
"style": { "path": "pages/retrieve/retrieve",
"navigationBarTitleText": "重置密码" "style": {
} "navigationBarTitleText": "重置密码"
}, { }
"path": "uni_modules/uni-id-pages/pages/common/webview/webview", }, {
"style": { "path": "pages/common/webview/webview",
"enablePullDownRefresh": false, "style": {
"navigationBarTitleText": "" "enablePullDownRefresh": false,
} "navigationBarTitleText": ""
}, { }
"path": "uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd", }, {
"style": { "path": "pages/userinfo/change_pwd/change_pwd",
"enablePullDownRefresh": false, "style": {
"navigationBarTitleText": "修改密码" "enablePullDownRefresh": false,
} "navigationBarTitleText": "修改密码"
}, { }
"path": "uni_modules/uni-id-pages/pages/register/register-by-email", }, {
"style": { "path": "pages/register/register-by-email",
"navigationBarTitleText": "邮箱验证码注册" "style": {
} "navigationBarTitleText": "邮箱验证码注册"
}, { }
"path": "uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email", }, {
"style": { "path": "pages/retrieve/retrieve-by-email",
"navigationBarTitleText": "通过邮箱重置密码" "style": {
} "navigationBarTitleText": "通过邮箱重置密码"
}, }
{ },
"path": "uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd", {
"style": { "path": "pages/userinfo/set-pwd/set-pwd",
"enablePullDownRefresh": false, "style": {
"navigationBarTitleText": "设置密码" "enablePullDownRefresh": false,
} "navigationBarTitleText": "设置密码"
} }
], }
// #ifdef H5
,
{
"path": "pages/userinfo/cropImage/cropImage"
},
{
"path": "pages/register/register-admin",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": "注册管理员账号"
}
}
// #endif
]
}
],
"globalStyle": { "globalStyle": {
// #ifdef H5 // #ifdef H5
"h5": { "h5": {
......
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
.defaultAvatarUrl{ .defaultAvatarUrl{
width: 150rpx; width: 150rpx;
height: 150rpx; height: 150rpx;
background-color: rgb(0, 122, 255); background-color: #007aff;
border-radius: 100%; border-radius: 100%;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册