diff --git a/src/mindspore/components/privacy-update/privacy-update.js b/src/mindspore/components/privacy-update/privacy-update.js new file mode 100644 index 0000000000000000000000000000000000000000..3258f1a758400b935b00fb45b79c0b887751d26b --- /dev/null +++ b/src/mindspore/components/privacy-update/privacy-update.js @@ -0,0 +1,17 @@ +// components/privacy-update.js +Component({ + /** + * 组件的属性列表 + */ + properties: {}, + + /** + * 组件的初始数据 + */ + data: {}, + + /** + * 组件的方法列表 + */ + methods: {}, +}); diff --git a/src/mindspore/components/privacy-update/privacy-update.json b/src/mindspore/components/privacy-update/privacy-update.json new file mode 100644 index 0000000000000000000000000000000000000000..b18bd46e2a57068d8358871028ca9053d521331a --- /dev/null +++ b/src/mindspore/components/privacy-update/privacy-update.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/src/mindspore/components/privacy-update/privacy-update.wxml b/src/mindspore/components/privacy-update/privacy-update.wxml new file mode 100644 index 0000000000000000000000000000000000000000..ddbb21b6606965bdea528f92be28502e37ae3d7a --- /dev/null +++ b/src/mindspore/components/privacy-update/privacy-update.wxml @@ -0,0 +1,8 @@ +
+ + 版本更新说明 + 请您仔细阅读此次隐私声明的更新内容: + ● “我们将保留多久您的个人信息” 章节中,明确了注销账号后的个人信息处理时间 + ● “如何访问或控制您的个人信息” 章节中,该等权利刷新为上述权利 + +
\ No newline at end of file diff --git a/src/mindspore/components/privacy-update/privacy-update.wxss b/src/mindspore/components/privacy-update/privacy-update.wxss new file mode 100644 index 0000000000000000000000000000000000000000..a850b875c9b80e77c1af54e4b4791991869c8c32 --- /dev/null +++ b/src/mindspore/components/privacy-update/privacy-update.wxss @@ -0,0 +1,24 @@ +/* pages/my/privecy.wxss */ +.container { + display: flex; + box-sizing: border-box; + padding: 0 30rpx 0 30rpx; +} +.privecy-text text { + display: block; + margin: 24rpx 0; + line-height: 56rpx; + font-size: 36rpx; +} +.font-h1 { + font-size: 40rpx; +} +.center { + text-align: center !important; +} +.title { + color: #000000; +} +.content { + color: #6c7279ff; +} diff --git a/src/openeuler/package-events/manage/member-detail.js b/src/openeuler/package-events/manage/member-detail.js new file mode 100644 index 0000000000000000000000000000000000000000..5d137bc39817c093cce2fd7d3dfba3e47b72c937 --- /dev/null +++ b/src/openeuler/package-events/manage/member-detail.js @@ -0,0 +1,129 @@ +// pages/sig/member-detail.js +var appAjax = require('./../../utils/app-ajax'); +let remoteMethods = { + saveMemberGiteeName: function (postData, _callback) { + appAjax.postJson({ + autoShowWait: true, + type: 'PUT', + service: 'ENTERPRISE_SAVE_MEMBER_DETAIL', + otherParams: { + id: postData.id, + }, + data: { + gitee_name: postData.name, + enterprise: postData.enterprise, + telephone: postData.telephone, + email: postData.email, + }, + success: function (ret) { + _callback && _callback(ret); + }, + }); + }, +}; +Page({ + /** + * 页面的初始数据 + */ + data: { + id: '', + avatar: '', + nickname: '', + name: '', + enterprise: '', + telephone: '', + email: '', + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + id: options.id, + avatar: options.avatar, + nickname: options.nickname, + name: options.name, + enterprise: options.enterprise || '', + telephone: options.telephone || '', + email: options.email || '', + }); + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () {}, + confirm: function () { + let that = this; + if (!that.data.name) { + wx.showToast({ + title: '请输入ID', + icon: 'none', + duration: 2000, + }); + return; + } + if (!that.data.enterprise) { + wx.showToast({ + title: '请输入企业名称', + icon: 'none', + duration: 2000, + }); + return; + } + remoteMethods.saveMemberGiteeName( + { + id: that.data.id, + name: that.data.name, + enterprise: that.data.enterprise, + telephone: that.data.telephone, + email: that.data.email, + }, + function (data) { + if (data.code == 400) { + wx.showToast({ + title: data.msg, + icon: 'none', + duration: 2000, + }); + return; + } + if (data.gitee_name) { + wx.showToast({ + title: '操作成功', + icon: 'success', + duration: 2000, + }); + wx.navigateBack(); + } + } + ); + }, + onInput: function (e) { + this.setData({ + name: e.detail.value, + }); + }, + enterpriseOnInput(e) { + this.setData({ + enterprise: e.detail.value, + }); + }, + telephoneOnInput(e) { + this.setData({ + telephone: e.detail.value, + }); + }, + emailOnInput(e) { + this.setData({ + email: e.detail.value, + }); + }, + reset: function () { + this.setData({ + name: '', + enterprise: '', + }); + }, +}); diff --git a/src/openeuler/package-events/manage/member-detail.json b/src/openeuler/package-events/manage/member-detail.json new file mode 100644 index 0000000000000000000000000000000000000000..6f5247b050d616d1d9ab35b9dec4da0b673757b8 --- /dev/null +++ b/src/openeuler/package-events/manage/member-detail.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/openeuler/package-events/manage/member-detail.wxml b/src/openeuler/package-events/manage/member-detail.wxml new file mode 100644 index 0000000000000000000000000000000000000000..e4179a57c231d66555f91bd9b516cca8b55925a5 --- /dev/null +++ b/src/openeuler/package-events/manage/member-detail.wxml @@ -0,0 +1,16 @@ + + + + + + {{name ? name : '未输入ID'}} + {{nickname}} + + + 输入ID + + + + + + \ No newline at end of file diff --git a/src/openeuler/package-events/manage/member-detail.wxss b/src/openeuler/package-events/manage/member-detail.wxss new file mode 100644 index 0000000000000000000000000000000000000000..54b6083c8948066e909fd6768b86a877b27801a1 --- /dev/null +++ b/src/openeuler/package-events/manage/member-detail.wxss @@ -0,0 +1,87 @@ +/* pages/sig/member-detail.wxss */ +.container { + padding: 20rpx 0; + background-color: #f5f7fa; +} + +.container .user-info { + padding-left: 20rpx; + height: 182rpx; + background-color: #fff; + display: flex; + align-items: center; +} + +.container .user-info image { + height: 135rpx; + width: 135rpx; + border-radius: 100%; + border: 1px solid #c7cad0; +} + +.container .user-info view { + display: inline-block; + padding-left: 20rpx; + display: flex; + flex-direction: column; +} + +.container .user-info view .user-id { + font-size: 36rpx; + color: #222; + line-height: 50rpx; + font-weight: 400; + margin-bottom: 20rpx; +} + +.container .user-info view .name { + color: #6d7278; + font-size: 26rpx; + line-height: 37rpx; + font-weight: 400; +} + +.container .input-title { + padding-left: 30rpx; + margin: 30rpx 0; + color: #333; + font-size: 34rpx; + line-height: 48rpx; + font-weight: 400; +} + +.container input { + height: 108rpx; + color: #333; + line-height: 45rpx; + font-size: 32rpx; + font-weight: 400rpx; + padding-left: 30rpx; + background-color: #fff; +} + +.container .btn-wraper { + margin-top: 128rpx; + display: flex; + justify-content: space-between; + padding: 0 30rpx; +} + +.container .btn-wraper button { + width: 320rpx; + height: 90rpx; + font-size: 36rpx; + line-height: 90rpx; + text-align: center; +} + +.container .btn-wraper .confirm { + color: #fff; + background-color: #002fa7; +} + +.container .btn-wraper .reset { + color: #002fa7; + background-color: #fff; + border: 1px solid #002fa7; +} \ No newline at end of file diff --git a/src/openeuler/package-meeting/sig/member-detail.js b/src/openeuler/package-meeting/sig/member-detail.js new file mode 100644 index 0000000000000000000000000000000000000000..350d48ab0a134221fbf349dfd103c1dcb51fc98e --- /dev/null +++ b/src/openeuler/package-meeting/sig/member-detail.js @@ -0,0 +1,93 @@ +// pages/sig/member-detail.js +var appAjax = require('./../../utils/app-ajax'); +let remoteMethods = { + saveMemberGiteeName: function (postData, _callback) { + appAjax.postJson({ + autoShowWait: true, + type: 'PUT', + service: 'SAVE_MEMBER_DETAIL', + otherParams: { + id: postData.id, + }, + data: { + gitee_name: postData.name, + }, + success: function (ret) { + _callback && _callback(ret); + }, + }); + }, +}; +Page({ + /** + * 页面的初始数据 + */ + data: { + id: '', + avatar: '', + nickname: '', + name: '', + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + id: options.id, + avatar: options.avatar, + nickname: options.nickname, + name: options.name, + }); + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () {}, + confirm: function () { + let that = this; + if (!that.data.name) { + wx.showToast({ + title: '请输入ID', + icon: 'none', + duration: 2000, + }); + return; + } + remoteMethods.saveMemberGiteeName( + { + id: that.data.id, + name: that.data.name, + }, + function (data) { + if (data.code == 400) { + wx.showToast({ + title: data.msg, + icon: 'none', + duration: 2000, + }); + return; + } + if (data.gitee_name) { + wx.showToast({ + title: '操作成功', + icon: 'success', + duration: 2000, + }); + wx.navigateBack(); + } + } + ); + }, + onInput: function (e) { + this.setData({ + name: e.detail.value, + }); + }, + reset: function () { + this.setData({ + name: '', + }); + }, +}); diff --git a/src/openeuler/package-meeting/sig/member-detail.json b/src/openeuler/package-meeting/sig/member-detail.json new file mode 100644 index 0000000000000000000000000000000000000000..6f5247b050d616d1d9ab35b9dec4da0b673757b8 --- /dev/null +++ b/src/openeuler/package-meeting/sig/member-detail.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/src/openeuler/package-meeting/sig/member-detail.wxml b/src/openeuler/package-meeting/sig/member-detail.wxml new file mode 100644 index 0000000000000000000000000000000000000000..e4179a57c231d66555f91bd9b516cca8b55925a5 --- /dev/null +++ b/src/openeuler/package-meeting/sig/member-detail.wxml @@ -0,0 +1,16 @@ + + + + + + {{name ? name : '未输入ID'}} + {{nickname}} + + + 输入ID + + + + + + \ No newline at end of file diff --git a/src/openeuler/package-meeting/sig/member-detail.wxss b/src/openeuler/package-meeting/sig/member-detail.wxss new file mode 100644 index 0000000000000000000000000000000000000000..3d0f13dc28dedcd32301b0124da69e0ea4d05aaf --- /dev/null +++ b/src/openeuler/package-meeting/sig/member-detail.wxss @@ -0,0 +1,86 @@ +/* pages/sig/member-detail.wxss */ +.container { + padding: 20rpx 0; +} + +.container .user-info { + padding-left: 20rpx; + height: 182rpx; + background-color: #fff; + display: flex; + align-items: center; +} + +.container .user-info image { + height: 135rpx; + width: 135rpx; + border-radius: 100%; + border: 1px solid #c7cad0; +} + +.container .user-info view { + display: inline-block; + padding-left: 20rpx; + display: flex; + flex-direction: column; +} + +.container .user-info view .user-id { + font-size: 36rpx; + color: #222; + line-height: 50rpx; + font-weight: 400; + margin-bottom: 20rpx; +} + +.container .user-info view .name { + color: #6d7278; + font-size: 26rpx; + line-height: 37rpx; + font-weight: 400; +} + +.container .input-title { + padding-left: 30rpx; + margin: 30rpx 0; + color: #333; + font-size: 34rpx; + line-height: 48rpx; + font-weight: 400; +} + +.container input { + height: 108rpx; + color: #333; + line-height: 45rpx; + font-size: 32rpx; + font-weight: 400rpx; + padding-left: 30rpx; + background-color: #fff; +} + +.container .btn-wraper { + margin-top: 128rpx; + display: flex; + justify-content: space-between; + padding: 0 30rpx; +} + +.container .btn-wraper button { + width: 320rpx; + height: 90rpx; + font-size: 36rpx; + line-height: 90rpx; + text-align: center; +} + +.container .btn-wraper .confirm { + color: #fff; + background-color: #002fa7; +} + +.container .btn-wraper .reset { + color: #002fa7; + background-color: #fff; + border: 1px solid #002fa7; +} \ No newline at end of file