Commit 50d411b4 authored by Morson's avatar Morson

feat(login,order): 登录页面和派单页面搭建

parent 51847eed
......@@ -35,3 +35,7 @@ display:none;
width: 460rpx;
}
}
.u-border-bottom {
border-bottom: 2rpx solid #F4F5F7;
}
......@@ -41,12 +41,57 @@
{
"path": "pages/login/index",
"style": {
// "navigationBarTitleText": "授权登录",
"navigationBarTitleText": "授权登录",
"navigationBarBackgroundColor":"#FFFFFF",
"navigationStyle": "custom",
"disableScroll": true
}
}
],
,{
"path" : "pages/login/agreement",
"style" :
{
"navigationBarTitleText": "用户注册协议",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
}
,{
"path" : "pages/login/policy",
"style" :
{
"navigationBarTitleText": "隐私政策",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
}
,{
"path" : "pages/login/selectRole",
"style" :
{
"navigationBarTitleText": "选择角色",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
}
,{
"path" : "pages/login/BindWeChat",
"style" :
{
"navigationBarTitleText": "绑定微信",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
}
],
"subPackages": [
{
"root": "pages/exam",
......@@ -341,7 +386,27 @@
"disableScroll": true
}
}
]
,{
"path" : "allocationPool",
"style" :
{
"navigationBarTitleText": "派单池",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"disableScroll": true
}
}
,{
"path" : "allocation",
"style" :
{
"navigationBarTitleText": "派单页",
"enablePullDownRefresh": false,
"navigationStyle": "custom",
"disableScroll": true
}
}
]
},
{
"root": "pages/photo",
......
<template>
<view class="wrap">
<w-navbar title="绑定微信"></w-navbar>
<view class="avatar">
<open-data type="userAvatarUrl"></open-data>
</view>
<view class="nickname">
<text>微信号:</text>
<open-data type="userNickName"></open-data>
</view>
<view class="tips">绑定微信号后,可接收企微号消息通知</view>
<view class="bottom">
<button class="bind-btn" @click="bindWechat">绑定</button>
<button class="cancel-btn" @click="cancelBind">取消</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
wechatCode: ''
}
},
methods: {
bindWechat() {
},
cancelBind() {
this.$u.route({type: 'back'})
},
}
}
</script>
<style lang="scss" scoped>
.wrap {
width: 750rpx;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
.avatar {
margin-top: 200rpx;
width: 200rpx;
height: 200rpx;
border-radius: 52rpx;
}
.nickname {
font-size: 32rpx;
color: #333333;
line-height: 120rpx;
}
.tips {
font-size: 28rpx;
color: #999999;
}
.bottom {
position: absolute;
bottom: 0;
padding-bottom: 68rpx;
display: flex;
flex-direction: column;
align-items: center;
}
}
.bind-btn {
background-color: #2272FF;
border-radius: 52rpx;
color: #FFFFFF;
width: 480rpx;
}
.cancel-btn {
background-color: transparent;
border-radius: 52rpx;
color: #999999;
width: 480rpx;
}
.cancel-btn::after {
border: unset;
}
</style>
This diff is collapsed.
This diff is collapsed.
<template>
<view class="page-content">
<w-navbar title="隐私政策" :background="{ background: '#ffffff' }"></w-navbar>
<u-parse :html="content" :tag-style="style"></u-parse>
</view>
</template>
<script>
export default {
data() {
return {
content:`<p>
本应用(扳手)尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务,本应用会按照本隐私权政策的规定使用和披露您的个人信息。但本应用将以高度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,本应用不会将这些信息对外披露或向第三方提供。本应用会不时更新本隐私权政策。
您在同意本应用服务使用协议之时,即视为您已经同意本隐私权政策全部内容。本隐私权政策属于本应用服务使用协议不可分割的一部分。
</p> <b>1、适用范围</b>
<p>(a) 在您注册本应用帐号时,您根据本应用要求提供的个人注册信息;</p>
<p>(b) 在您使用本应用网络服务,或访问本应用平台网页时,本应用自动接收并记录的您的浏览器和计算机上的信息,包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据;</p>
<p>(c) 本应用通过合法途径从商业伙伴处取得的用户个人数据。</p>
<p>您了解并同意,以下信息不适用本隐私权政策:</p>
<p>(a) 您在使用本应用平台提供的搜索服务时输入的关键字信息;</p>
<p>(b) 本应用收集到的您在本应用发布的有关信息数据,包括但不限于参与活动、成交信息及评价详情;</p>
<p>(c) 违反法律规定或违反本应用规则行为及本应用已对您采取的措施。</p> <b>2、信息使用</b>
<p>(a)本应用不会向任何无关第三方提供、出售、出租、分享或交易您的个人信息,除非事先得到您的许可,或该第三方和本应用(含本应用关联公司)单独或共同为您提供服务,且在该服务结束后,其将被禁止访问包括其以前能够访问的所有这些资料。
</p>
<p>(b) 本应用亦不允许任何第三方以任何手段收集、编辑、出售或者无偿传播您的个人信息。任何本应用平台用户如从事上述活动,一经发现,本应用有权立即终止与该用户的服务协议。</p>
<p>(c) 为服务用户的目的,本应用可能通过使用您的个人信息,向您提供您感兴趣的信息,包括但不限于向您发出产品和服务信息,或者与本应用合作伙伴共享信息以便他们向您发送有关其产品和服务的信息(后者需要您的事先同意)。</p>
<b>3、信息披露</b>
<p>在如下情况下,本应用将依据您的个人意愿或法律的规定全部或部分的披露您的个人信息:</p>
<p>(a) 经您事先同意,向第三方披露;</p>
<p>(b)为提供您所要求的产品和服务,而必须和第三方分享您的个人信息;</p>
<p>(c) 根据法律的有关规定,或者行政或司法机构的要求,向第三方或者行政、司法机构披露;</p>
<p>(d) 如您出现违反中国有关法律、法规或者本应用服务协议或相关规则的情况,需要向第三方披露;</p>
<p>(e) 如您是适格的知识产权投诉人并已提起投诉,应被投诉人要求,向被投诉人披露,以便双方处理可能的权利纠纷;</p>
<p>(f) 在本应用平台上创建的某一交易中,如交易任何一方履行或部分履行了交易义务并提出信息披露请求的,本应用有权决定向该用户提供其交易对方的联络方式等必要信息,以促成交易的完成或纠纷的解决。</p>
<p>(g) 其它本应用根据法律、法规或者网站政策认为合适的披露。</p> <b>4、信息存储和交换</b>
<p>本应用收集的有关您的信息和资料将保存在本应用及(或)其关联公司的服务器上,这些信息和资料可能传送至您所在国家、地区或本应用收集信息和资料所在地的境外并在境外被访问、存储和展示。</p> <b>5、Cookie的使用</b>
<p>(a) 在您未拒绝接受cookies的情况下,本应用会在您的计算机上设定或取用cookies
,以便您能登录或使用依赖于cookies的本应用平台服务或功能。本应用使用cookies可为您提供更加周到的个性化服务,包括推广服务。</p>
<p>(b) 您有权选择接受或拒绝接受cookies。您可以通过修改浏览器设置的方式拒绝接受cookies。但如果您选择拒绝接受cookies,则您可能无法登录或使用依赖于cookies的本应用网络服务或功能。</p>
<p>(c) 通过本应用所设cookies所取得的有关信息,将适用本政策。</p> <b>6、信息安全</b>
<p>(a) 本应用帐号均有安全保护功能,请妥善保管您的用户名及密码信息。本应用将通过对用户密码进行加密等安全措施确保您的信息不丢失,不被滥用和变造。尽管有前述安全措施,但同时也请您注意在信息网络上不存在“完善的安全措施”。</p>
<p>(b) 在使用本应用网络服务进行网上交易时,您不可避免的要向交易对方或潜在的交易对</p> <b>7、本隐私政策的更改</b>
<p>(a)如果决定更改隐私政策,我们会在本政策中、本公司网站中以及我们认为适当的位置发布这些更改,以便您了解我们如何收集、使用您的个人信息,哪些人可以访问这些信息,以及在什么情况下我们会透露这些信息。</p>
<p>(b)本公司保留随时修改本政策的权利,因此请经常查看。如对本政策作出重大更改,本公司会通过网站通知的形式告知。</p>
<p>方披露自己的个人信息,如联络方式或者邮政地址。请您妥善保护自己的个人信息,仅在必要的情形下向他人提供。如您发现自己的个人信息泄密,尤其是本应用用户名及密码发生泄露,请您立即联络本应用客服,以便本应用采取相应措施。</p>`,
style: {
// 字符串的形式
p: `line-height: 52rpx; padding-bottom: 20rpx;`,
b: `line-height: 52rpx; padding-bottom: 20rpx;`,
}
}
},
methods: {
}
}
</script>
<style lang="scss">
.page-content {
padding: 30rpx;
font-size: 32rpx;
height: 100vh;
overflow-y: auto;
}
</style>
<template>
<view class="wrap">
<w-navbar></w-navbar>
<u-image class="logo" :src="qnFile('logo.png')" width="200" height="200">
<view slot="error" style="font-size: 24rpx;">加载失败</view>
</u-image>
<button class="role-btn" @click="adminRole">网点/管理员身份</button>
<button class="role-btn" @click="workerRole">师傅身份</button>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
qnFile(src) {
return process.uniEnv.qn_base_url + src
},
adminRole() {
},
workerRole() {
},
}
}
</script>
<style lang="scss" scoped>
.wrap {
width: 750rpx;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
.logo {
margin: 80rpx 0;
}
.role-btn {
background-color: #2272FF;
border-radius: 52rpx;
color: #FFFFFF;
width: 480rpx;
margin: 20rpx;
}
}
</style>
<template>
<view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
<template>
<view class="wrap">
<u-navbar back-icon-name="" back-text="退出" title="工单池" :title-bold="true" @custom-back="logout" :border-bottom="false"></u-navbar>
<view class="tabs-box">
<u-tabs ref="tabs" :list="list" active-color="#2979ff" inactive-color="#606266" font-size="30" :current="current" @change="tabsChange"></u-tabs>
</view>
<view class="content">
<NoOrder v-if="noMore" type="black" :customStyle="noOrderCustomStyle" />
<template v-else>
<view v-for="(item, index) in orderList" :key="item.orderId">
<OrderCell :orderData="item" :type="orderType" :location="dataValue" @click="handleClick" @action="handleClick"></OrderCell>
</view>
<u-loadmore v-show="(pageNumber == 1 && loaded) || pageNumber > 2" :status="loadStatus" bgColor="#F4F5F7"></u-loadmore>
</template>
</view>
</view>
</template>
<script>
import OrderCell from '@/components/order/index.vue';
import NoOrder from '@/components/order/noOrder.vue';
export default {
components: {
OrderCell,
NoOrder
},
data() {
return {
list: [
{
name: '海尔-深圳',
count: 22
},
{
name: '海尔-广州',
count: 6
},
{
name: '海尔-东莞',
count: 17
},
{
name: '海尔-珠海',
count: 34
},
{
name: '海尔-湛江',
count: 2
}
],
current: 0,
pageNumber: 0,
pageSize: 100,
orderList: []
};
},
onShow() {
this.pageNumber = 0;
this.getOrderCount();
this.getOrderList(this.currentIndex);
},
computed: {
noMore() {
return this.orderList.length == 0 && this.loaded;
},
noOrderCustomStyle() {
return this.curNow == 0 ? 'margin-top: 100rpx;background-color: #F4F5F7' : 'margin-top: 200rpx;background-color: #F4F5F7';
}
},
methods: {
// tabs通知swiper切换
tabsChange(index) {
this.current = index;
},
// scroll-view到底部加载更多
onreachBottom() {},
getOrderCount() {},
getOrderList() {
this.orderList = [
{
orderBusinessTypeText: '订单池',
auditResults: [
{
fieldName: 'minim nisi ex',
isPass: 'officia occaecat ullamco',
remark: 'nulla quis sit incididunt'
},
{
fieldName: 'in dolore consequat',
isPass: 'proident eu sit consequat ut',
remark: 'officia ut enim ut deserunt'
},
{
fieldName: 'Lorem in',
isPass: 'sint eiusmod aliqua',
remark: 'nostrud labore'
},
{
fieldName: 'sed dolor ut quis voluptate',
isPass: 'enim tempor dolor nisi',
remark: 'sunt'
},
{
fieldName: 'ea do in ut officia',
isPass: 'deserunt do',
remark: 'non'
}
],
currentWillOverTime: 43229753.27153155,
currentOverTime: 1619341311,
appointmentDatetime: null,
auditDatetime: 1991,
isFirstOrder: false,
partnerCompanyId: '79550af260555cc20afb34156c94b32c',
maintainStep: 'enim veniam',
contactCityText: null,
contactStreetText: null,
contactAddressLongitud: '39.91917',
categoryName: '充电桩',
contactCommunityText: null,
brandName: ' 沃尔沃',
orderServiceType: '安装',
contactProvince: null,
contactId: null,
orderNumber: 'OR2021041809827',
contactAddressLatitud: '116.3896',
contactStreet: null,
lianbaoBrandId: '28ee4e3e6063f2880d8956a013293a7f',
contactAddress: '湾街道荔枝花园D座125号',
contactName: '郭小清',
contactPhone: '13631612077',
orderBusinessType: null,
serviceContent: '服务描述',
contactCity: null,
categoryId: '79550af260555cc20afb34146966a2c4',
orderStatus: 51,
orderProductCount: '10',
contactCommunity: null,
orderId: '123456',
contactProvinceText: null
},
{
orderBusinessTypeText: '订单池',
auditResults: [
{
fieldName: 'aliquip est ex cillum id',
isPass: 'aute deserunt',
remark: 'tempor ut qui dolor eu'
},
{
fieldName: 'velit voluptate aliquip in',
isPass: 'ad',
remark: 'aliqua esse exercitation'
}
],
currentWillOverTime: -53540257.09187935,
currentOverTime: 1619341311,
appointmentDatetime: null,
auditDatetime: 1975,
isFirstOrder: false,
partnerCompanyId: '79550af260555cc20afb34156c94b32c',
maintainStep: 'reprehenderit labore officia sit',
contactId: null,
contactName: '郭小清',
contactAddress: '湾街道荔枝花园D座125号',
brandName: ' 沃尔沃',
orderNumber: 'OR2021041809827',
contactStreetText: null,
orderId: '123456',
orderBusinessType: null,
categoryId: '79550af260555cc20afb34146966a2c4',
orderProductCount: '10',
categoryName: '充电桩',
serviceContent: '服务描述',
contactCommunity: null,
lianbaoBrandId: '28ee4e3e6063f2880d8956a013293a7f',
contactPhone: '13631612077',
contactCommunityText: null,
contactAddressLongitud: '39.91917',
contactCityText: null,
contactStreet: null,
contactProvinceText: null,
contactAddressLatitud: '116.3896',
orderServiceType: '安装',
contactProvince: null,
orderStatus: 51,
contactCity: null
},
{
orderBusinessTypeText: '订单池',
auditResults: [
{
fieldName: 'dolore veniam est officia',
isPass: 'dolore elit aute',
remark: 'enim consectetur nulla culpa deserunt'
},
{
fieldName: 'commodo non cupidatat sit',
isPass: 'in in minim',
remark: 'do in'
}
],
currentWillOverTime: 60554344.05873975,
currentOverTime: 1619341311,
appointmentDatetime: null,
auditDatetime: 2009,
isFirstOrder: false,
partnerCompanyId: '79550af260555cc20afb34156c94b32c',
maintainStep: 'laborum dolore',
contactCityText: null,
contactPhone: '13631612077',
contactCity: null,
orderNumber: 'OR2021041809827',
orderProductCount: '10',
contactAddressLongitud: '39.91917',
orderId: '123456',
brandName: ' 沃尔沃',
contactProvince: null,
contactStreet: null,
contactCommunityText: null,
categoryId: '79550af260555cc20afb34146966a2c4',
categoryName: '充电桩',
contactAddress: '湾街道荔枝花园D座125号',
contactId: null,
orderServiceType: '安装',
contactStreetText: null,
orderStatus: 51,
lianbaoBrandId: '28ee4e3e6063f2880d8956a013293a7f',
orderBusinessType: null,
serviceContent: '服务描述',
contactProvinceText: null,
contactName: '郭小清',
contactAddressLatitud: '116.3896',
contactCommunity: null
}
];
},
// 退出登录
logout() {
// 退出登录
this.$u.route({ type: 'back' });
}
}
};
</script>
<style lang="scss" scoped>
.wrap {
width: 750rpx;
height: 100vh;
background-color: #ffffff;
.tabs-box {
width: 750rpx;
}
.content {
padding: 30rpx;
height: 100%;
overflow-y: auto;
background-color: #f4f5f7;
.item {
height: 400rpx;
}
}
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment