diff --git a/api/modifyAddress/modifyAddress.js b/api/modifyAddress/modifyAddress.js index c26d6ee..2c444e5 100644 --- a/api/modifyAddress/modifyAddress.js +++ b/api/modifyAddress/modifyAddress.js @@ -1,13 +1,14 @@ import request from "../request.js" + // 根据被护理人id查询基本信息 -export function goodPatientInfo(patientId){ +export function goodPatientInfo(patientId) { return request({ url: `/nurseApplet/nursingStationGoods/goodPatientInfo?patientId=${patientId}`, method: 'GET' }) } // 新增基本信息 -export function addnursingStation(data){ +export function addnursingStation(data) { return request({ url: '/nurseApplet/nursingStationGoods/add', method: 'POST', @@ -17,7 +18,7 @@ export function addnursingStation(data){ // 修改基本信息 -export function updatenursingStation(data){ +export function updatenursingStation(data) { return request({ url: '/nurseApplet/nursingStationGoods/edit', method: 'POST', @@ -25,7 +26,7 @@ export function updatenursingStation(data){ }) } // 修改反显 -export function nursingStationGoodsinfo(id){ +export function nursingStationGoodsinfo(id) { return request({ url: '/nurseApplet/nursingStationGoods/' + id, method: 'GET' @@ -34,24 +35,36 @@ export function nursingStationGoodsinfo(id){ // 删除 export function delnursingStation(id) { - return request({ - url: '/nurseApplet/nursingStationGoods/' + id, - method: 'delete' - }) + return request({ + url: '/nurseApplet/nursingStationGoods/' + id, + method: 'delete' + }) } // 查询 -export function getSubordinate(areaCode){ +export function getSubordinate(areaCode) { return request({ url: `/nurseApplet/nursingStationGoods/getSubordinateRegions?areaCode=${areaCode}`, method: 'GET' }) } -//区街道list +// //区街道list +// export function getSubordinateRegions(areaCode) { +// return request({ +// url: `/nurseApplet/nursingStationGoods/getSubordinateRegions?areaCode=${areaCode}`, +// method: 'GET' +// }) +// } +//省list export function getSubordinateRegions(areaCode) { return request({ - url: `/nurseApplet/login/getRegionAndStreetInfo?areaCode=${areaCode}`, + url: `/nurseApplet/login/getProvinceInfo?areaCode=${areaCode}`, + method: 'GET' + }) +} +//市区街道list +export function getSubordinateInfo(id) { + return request({ + url: `/nurseApplet/login/getSubordinateInfo?areaCode=${id}`, method: 'GET' }) } - - diff --git a/api/order/index.js b/api/order/index.js new file mode 100644 index 0000000..7bbe944 --- /dev/null +++ b/api/order/index.js @@ -0,0 +1,9 @@ +import request from "../request.js" + +export function orderCount(patientId) { + return request({ + url: `/nurseApp/login/orderCount?patientId=${patientId}`, + method: 'GET' + }) +} + diff --git a/pages.json b/pages.json index 3ed115e..3e59949 100644 --- a/pages.json +++ b/pages.json @@ -9,6 +9,13 @@ "navigationBarTitleText": "", "navigationStyle": "custom" } + }, { + "path": "pages/information/information", + "style": { + "navigationBarTitleText": "完善个人信息", + "navigationBarBackgroundColor": "#ffffff", //背景颜色 + "enablePullDownRefresh": false + } }, { "path": "pages/forgotPassword/forgotPassword", @@ -70,13 +77,6 @@ "enablePullDownRefresh": false, "navigationBarBackgroundColor": "#ffffff" //背景颜色 } - }, { - "path": "pages/information/information", - "style": { - "navigationBarTitleText": "完善个人信息", - "navigationBarBackgroundColor": "#ffffff", //背景颜色 - "enablePullDownRefresh": false - } }, { "path": "pages/appointmenttime/appointmenttime", "style": { @@ -154,7 +154,7 @@ "path": "pages/login/login", "style": { "navigationBarTitleText": "登录", - // "navigationStyle": "custom" + "navigationStyle": "custom", "enablePullDownRefresh": false } }, diff --git a/pages/CommodityDetails/CommodityDetails.vue b/pages/CommodityDetails/CommodityDetails.vue index 425c260..4ae65c5 100644 --- a/pages/CommodityDetails/CommodityDetails.vue +++ b/pages/CommodityDetails/CommodityDetails.vue @@ -1,10 +1,13 @@ @@ -66,7 +75,7 @@ //跳转详情页 goCommodityDetails(item) { uni.navigateTo({ - url: `/pages/CommodityDetails/CommodityDetails?goodsPrice=${item.goodsPrice}&goodsInfoId=${item.goodsInfoId}&buySource=${'SHOPPING_MALL'}` + url: `/pages/CommodityDetails/CommodityDetails?goodsPrice=${item.goodsPrice}&goodsInfoId=${item.goodsInfoId}&buySource=${'SHOPPING_MALL'}&goodsAttributeId=${item.goodsAttributeId}` }) }, }, @@ -98,6 +107,21 @@ .app { padding: 0; + .noorder { + view { + text-align: center; + font-size: 40rpx; + color: #BFBFBF; + } + + image { + display: block; + margin: 20% auto 50rpx; + width: 160rpx; + height: 200rpx; + } + } + .inputs { box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); border: 1px solid #f0f0f0; @@ -134,7 +158,7 @@ .productlist { width: 100%; margin: 0 auto; - padding: 40rpx 0 0 0; + padding: 20rpx 0 0 0; display: flex; flex-wrap: wrap; justify-content: space-evenly; @@ -147,18 +171,32 @@ box-shadow: 0px 4rpx 8rpx 4rpx rgba(199, 200, 202, 0.8); margin-bottom: 40rpx; + .price { - font-size: 42rpx; + font-size: 36rpx; color: #D43953; line-height: 79rpx; - padding-left: 20rpx; + padding-left: 15rpx; + } + + .text { + font-size: 24rpx; + padding: 0 15rpx; + // text-overflow: ellipsis; + // overflow: hidden; + // white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; } .title { - font-size: 39rpx; + font-size: 36rpx; color: #000000; line-height: 69rpx; - padding-left: 20rpx; + padding-left: 15rpx; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; @@ -167,6 +205,7 @@ image { width: 100%; height: 340rpx; + border-radius: 25rpx 25rpx 0 0; } } } diff --git a/pages/appointmenttime/appointmenttime.vue b/pages/appointmenttime/appointmenttime.vue index ed06ea7..c46b327 100644 --- a/pages/appointmenttime/appointmenttime.vue +++ b/pages/appointmenttime/appointmenttime.vue @@ -45,7 +45,7 @@ 耗材包详情: ¥{{consumableTotalPrice}} - + diff --git a/pages/information/information.scss b/pages/information/information.scss index f4e3270..f762e6a 100644 --- a/pages/information/information.scss +++ b/pages/information/information.scss @@ -174,6 +174,7 @@ display: inline-block; height: 120rpx; line-height: 120rpx; + overflow: hidden;text-overflow: ellipsis;white-space: nowrap; } span { diff --git a/pages/information/information.vue b/pages/information/information.vue index 33323c1..d424ec6 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -15,7 +15,7 @@ 身份证号: - + 所属区域: {{address}} @@ -31,8 +31,11 @@ - + + + + @@ -91,10 +94,15 @@ getNurseType, information } from '@/api/information/index.js' + import { + getSubordinateRegions, + } from '@/api/modifyAddress/modifyAddress.js'; import contenttext from './text.vue' + import gkcity from "../m-city/m-city.vue"; export default { components: { - contenttext + contenttext, + "m-city": gkcity }, data() { return { @@ -116,41 +124,54 @@ nurseTypeIdList: [], diseaseInfoList: [], patientId: '', - } + }, + addresslength: null, + list: [{ + id: "", + localName: "请选择", + children: [], + }, ], }; }, methods: { //提交信息 informationinfo() { let that = this - try { - const value = uni.getStorageSync('phone'); - if (value) { - that.query.phone = value - information(that.query).then(res => { - if (res.code == 200) { - that.$refs.uToast.show({ - title: '完善信息成功', - type: 'success', - duration: '1500' - }) - if (that.timer) { - clearTimeout(that.timer) - } - that.timer = setTimeout(e => { - uni.navigateBack({ - delta: 1 + if (this.addresslength.length > 2) { + try { + const value = uni.getStorageSync('phone'); + if (value) { + that.query.phone = value + information(that.query).then(res => { + if (res.code == 200) { + that.$refs.uToast.show({ + title: '完善信息成功', + type: 'success', + duration: '1500' }) - }, 1500) - } else if (res.code == 500) { - that.$refs.uToast.show({ - title: res.msg, - type: 'error', - }) - } - }) - } - } catch (e) {} + if (that.timer) { + clearTimeout(that.timer) + } + that.timer = setTimeout(e => { + uni.navigateBack({ + delta: 1 + }) + }, 1500) + } else if (res.code == 500) { + that.$refs.uToast.show({ + title: res.msg, + type: 'error', + }) + } + }) + } + } catch (e) {} + } else { + that.$refs.uToast.show({ + title: '地址不完整,请选择到区级', + type: 'error' + }) + } }, //获取所在位置 getAddress() { @@ -173,21 +194,33 @@ }, //区街道 areaInfo() { - getRegionAndStreetInfo().then(res => { - //区下无街道添加一个空街道 - res.data.forEach(e => { - if (e.children.length == 0) { - e.children.push({ - areaCode: "", - areaName: "暂无街道", - children: null, - id: '', - }) - } - }) - this.arealist = res.data; + getSubordinateRegions().then(res => { + this.list = res.data; }) }, + // 三级地址联动回调 + getpickerParentValue(e) { + this.addresslength = e + if (e.length == 4) { + this.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + '-' + e[3] + .localName + this.query.areaCode = e[3].id + } else if (e.length == 3) { + this.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + this.query.areaCode = e[2].id + } else if (e.length == 2) { + this.address = e[0].localName + '-' + e[1].localName + this.query.areaCode = e[1].id + } else if (e.length == 1) { + this.address = e[0].localName + this.query.areaCode = e[0].id + } + }, + // 显示三级地址联动 + showPicker() { + this.areashow = true + this.$refs.cityPicker.show(); + }, //区街道选择 areaconfirm(e) { this.query.areaCode = e[e.length - 1].value diff --git a/pages/m-city/m-city.vue b/pages/m-city/m-city.vue new file mode 100644 index 0000000..110c29b --- /dev/null +++ b/pages/m-city/m-city.vue @@ -0,0 +1,369 @@ + + + + + diff --git a/pages/modify/modify.vue b/pages/modify/modify.vue index e8ea989..162004c 100644 --- a/pages/modify/modify.vue +++ b/pages/modify/modify.vue @@ -20,7 +20,7 @@ - + 所属区域: {{address}} @@ -31,7 +31,8 @@ 所在位置: - {{chooseLocation}} + {{chooseLocation}} + 疾病类型: @@ -51,8 +52,8 @@ style="color: #000000;border-bottom: 1rpx solid #000000;">《用户协议》 - + 完成 @@ -73,6 +74,11 @@ + + + + @@ -85,9 +91,17 @@ } from '@/api/information/index.js' import contenttext from '../information/text.vue' import baseurl from '@/api/baseurl.js' + import gkcity from "../m-city/m-city.vue"; + import { + getSubordinateRegions, + } from '@/api/modifyAddress/modifyAddress.js'; + import { + appPersonal, + } from '@/api/user/user.js'; export default { components: { - contenttext + contenttext, + "m-city": gkcity }, data() { return { @@ -95,9 +109,12 @@ timer: null, baseurl: '', address: '', - arealist: [], - areashow: false, - maskshow:false,//用户协议 + list: [{ + id: "", + localName: "请选择", + children: [], + }, ], + maskshow: false, //用户协议 chooseLocation: '', img: null, image: null, @@ -115,25 +132,64 @@ locationName: '', }, patientDiseaseInfoList: [], //获取个人信息 + addresslength: null, } }, onLoad(options) { + var that = this this.areaInfo(); this.baseurl = baseurl - this.appPersonallist = JSON.parse(options.appPersonallist) - this.img = baseurl + this.appPersonallist.headPictureUrl - if (this.appPersonallist.regionName && this.appPersonallist.streetName) { - this.address = this.appPersonallist.regionName + '-' + this.appPersonallist.streetName - } - this.patientDiseaseInfoList = this.appPersonallist.patientDiseaseInfoList - this.patientDiseaseInfoList.forEach(e => { - e.id = e.diseaseId - }) - if (this.appPersonallist.locationName) { - this.chooseLocation = this.appPersonallist.locationName - } + const value = uni.getStorageSync('patientId'); + if (value) { + appPersonal(value).then(Response => { + if (Response.code == 200) { + that.appPersonallist = Response.data + that.appPersonallist.homeLatitude = Number(that.appPersonallist.homeLatitude) + that.appPersonallist.homeLongitude = Number(that.appPersonallist.homeLongitude) + that.img = baseurl + that.appPersonallist.headPictureUrl + if (that.appPersonallist.streetName) { + that.address = that.appPersonallist.provinceName + '-' + that.appPersonallist + .cityName + '-' + that.appPersonallist.regionName + '-' + that.appPersonallist + .streetName + } else { + that.address = that.appPersonallist.provinceName + '-' + that.appPersonallist + .cityName + '-' + that.appPersonallist.regionName + } + that.patientDiseaseInfoList = that.appPersonallist.patientDiseaseInfoList + that.patientDiseaseInfoList.forEach(e => { + e.id = e.diseaseId + }) + if (that.appPersonallist.locationName) { + that.chooseLocation = that.appPersonallist.locationName + } + } else if (Response.code == 9999) {} else {} + }) + } else {} + }, methods: { + // 三级地址联动回调 + getpickerParentValue(e) { + this.addresslength = e + if (e.length == 4) { + this.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + '-' + e[3] + .localName + this.appPersonallist.areaCode = e[3].id + } else if (e.length == 3) { + this.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + this.appPersonallist.areaCode = e[2].id + } else if (e.length == 2) { + this.address = e[0].localName + '-' + e[1].localName + this.appPersonallist.areaCode = e[1].id + } else if (e.length == 1) { + this.address = e[0].localName + this.appPersonallist.areaCode = e[0].id + } + }, + // 显示三级地址联动 + showPicker() { + this.$refs.cityPicker.show(); + }, //上传图片+提交信息 informationinfo() { //上传图片 @@ -253,19 +309,8 @@ }, //区街道 areaInfo() { - getRegionAndStreetInfo().then(res => { - //区下无街道添加一个空街道 - res.data.forEach(e => { - if (e.children.length == 0) { - e.children.push({ - areaCode: "", - areaName: "暂无街道", - children: null, - id: '', - }) - } - }) - this.arealist = res.data; + getSubordinateRegions().then(res => { + this.list = res.data; }) }, //跳转疾病选择 diff --git a/pages/modifyAddress/modifyAddress.scss b/pages/modifyAddress/modifyAddress.scss index d32fe3a..05c9032 100644 --- a/pages/modifyAddress/modifyAddress.scss +++ b/pages/modifyAddress/modifyAddress.scss @@ -3,9 +3,12 @@ background-color: #F4F5F7; width: 100%; position: relative; + height: 100%; padding: 4%; padding-bottom: 100rpx; - font-size: 32rpx; + /deep/ .u-drawer{ + z-index: 0 !important; + } .address { width: 99%; background: #FFFFFF; @@ -13,19 +16,20 @@ border-radius: 20rpx; margin: 0 auto 20rpx; padding-bottom: 10rpx; + .item { width: 90%; height: 101rpx; + font-size: 36rpx; color: #000000; line-height: 100rpx; margin: 0 auto; - view{ - } } .detail { border-bottom: 5rpx solid #F4F5F7; height:100%; + font-size: 32rpx; line-height: 50rpx; padding-bottom: 20rpx; word-break:break-all; @@ -44,6 +48,7 @@ background: #FFFFFF; border: 1rpx solid #969394; border-radius: 26rpx; + font-size: 31rpx; color: #969394; } @@ -58,6 +63,7 @@ line-height: 80rpx; background: #4C7BC9; border-radius: 26rpx; + font-size: 34rpx; color: #FFFFFF; text-align: center; position: fixed; @@ -75,10 +81,11 @@ } } - // 弹框 + // 弹框支付 .payment { width: 90%; height: 110rpx; + font-size: 36rpx; color: #000000; line-height: 110rpx; text-align: center; @@ -100,6 +107,7 @@ background: #4C7BC9; border-radius: 26rpx; text-align: center; + font-size: 34rpx; color: #FFFFFF; margin: 0 auto; margin-top: 10%; @@ -116,6 +124,7 @@ } .items { + font-size: 32rpx; color: #030001; line-height: 40rpx; } diff --git a/pages/modifyAddress/modifyAddress.vue b/pages/modifyAddress/modifyAddress.vue index 0a32f59..1405ed0 100644 --- a/pages/modifyAddress/modifyAddress.vue +++ b/pages/modifyAddress/modifyAddress.vue @@ -26,8 +26,8 @@ - - + + {{shipAddress}} @@ -37,12 +37,12 @@ - - + + + - @@ -52,9 +52,14 @@ - + + + + + @@ -69,42 +74,84 @@ getSubordinate } from '@/api/modifyAddress/modifyAddress.js'; import baseurl from '@/api/baseurl.js' + import gkcity from "../m-city/m-city.vue"; export default { + components: { + "m-city": gkcity + }, data() { return { - timer:null, + timer: null, isedit: true, //标识 delshow: false, //删除弹框 content: '确认要删除信息吗?', show: false, //弹框 - areashow: false, //经纬度开关 - arealist: [], //区街道list + address: null, + // areashow: false, //经纬度开关 + // arealist: [], //区街道list areaCode: '', shipAddress: '添加地址', infolist: { receiveName: '', receivePhone: '', receiveAddress: '', - areaCode: '', + areaCode: null, patientId: '', - address: '', //页面所属区域 + address: null, //页面所属区域 }, goodPatient: [], // 查询地址信息 patientId: null, + url: '', updata: [], + list: [{ + id: "", + localName: "请选择", + children: [], + }, ], + cityPickershow: false, + addresslength: null, } }, + onShow() { + this.goodsList() + this.areaInfo() + }, onLoad(options) { let that = this this.updata = JSON.parse(options.updata) - //获取传值 - this.goodsList() - this.areaInfo() }, methods: { + // 三级地址联动回调 + getpickerParentValue(e) { + console.log(e) + this.addresslength = e + if (e.length == 4) { + this.infolist.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + '-' + e[3] + .localName + this.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + '-' + e[3] + .localName + this.infolist.areaCode = e[3].id + } else if (e.length == 3) { + this.infolist.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + this.address = e[0].localName + '-' + e[1].localName + '-' + e[2].localName + this.infolist.areaCode = e[2].id + } else if (e.length == 2) { + this.infolist.address = e[0].localName + '-' + e[1].localName + this.address = e[0].localName + '-' + e[1].localName + this.infolist.areaCode = e[1].id + } else if (e.length == 1) { + this.infolist.address = e[0].localName + this.address = e[0].localName + this.infolist.areaCode = e[0].id + } + }, + // 显示三级地址联动 + showPicker() { + this.cityPickershow = true + this.$refs.cityPicker.show(); + }, //将信息携带至订单页面 goorder(item) { - // if (this.url == "appointmenttime") { uni.$emit('updata', { updata: JSON.stringify(this.updata), useritem: JSON.stringify(item) @@ -112,14 +159,6 @@ uni.navigateBack({ delta: 1 }); - // uni.navigateTo({ - // url: `/pages/appointmenttime/appointmenttime?updata=${JSON.stringify(this.updata)}&useritem=${JSON.stringify(item)}` - // }) - // } else { - // uni.navigateTo({ - // url: `/pages/confirmOrder/confirmOrder?updata=${JSON.stringify(this.updata)}&useritem=${JSON.stringify(item)}` - // }) - // } }, // 查询地址信息 goodsList() { @@ -128,7 +167,6 @@ const value = uni.getStorageSync('patientId'); if (value) { that.patientId = value - that.infolist.patientId = value goodPatientInfo(that.patientId).then(res => { res.data.forEach(e => { e.address = e.provinceName + e.cityName + e.regionName + e @@ -148,67 +186,89 @@ uni.navigateBack({ delta: 2 }) + }, 1500) } } catch (e) {} - // uni.getStorage({ - // key: 'patientId', - // success: function(res) { - // that.patientId = res.data - // that.infolist.patientId = res.data - // goodPatientInfo(that.patientId).then(res => { - // res.data.forEach(e => { - // e.address = e.provinceName + e.cityName + e.regionName + e - // .streetName + e.receiveAddress - // }) - // that.goodPatient = res.data - // }) - // } - // }); }, // 保存按钮 submit() { let that = this - if (that.isedit == true) { - addnursingStation(that.infolist).then(res => { - if (res.code == 200) { - uni.showToast({ - title: '新增成功', - duration: 1000 - }); - that.show = false; - setTimeout(e => { - that.goodsList() - }, 1000) - } - }) + if (this.addresslength.length > 2) { + if (that.isedit == true) { + addnursingStation(that.infolist).then(res => { + if (res.code == 200) { + that.$refs.uToast.show({ + title: '新增成功', + type: 'success' + }) + that.cencel(); + setTimeout(e => { + that.goodsList() + }, 1000) + } + }) + } else { + updatenursingStation(that.infolist).then(res => { + if (res.code == 200) { + that.$refs.uToast.show({ + title: '修改成功', + type: 'success' + }) + that.cencel(); + setTimeout(e => { + that.goodsList() + }, 1000) + } else { + that.$refs.uToast.show({ + title: res.msg, + type: 'error' + }) + } + }) + } } else { - updatenursingStation(that.infolist).then(res => { - uni.showToast({ - title: '修改成功', - duration: 1000 - }); - that.show = false; - setTimeout(e => { - that.goodsList() - }, 1000) + that.$refs.uToast.show({ + title: '地址不完整,请选择到区级', + type: 'error' }) } + }, // 修改按钮 updataxg(item) { + this.cityPickershow = true this.shipAddress = '修改地址' this.isedit = false nursingStationGoodsinfo(item.id).then(res => { this.infolist = res.data getSubordinate(res.data.areaCode).then(res => { - this.infolist.address = res.data.regionName + '-' + res.data.streetName + if (res.data.streetName) { + this.infolist.address = res.data.provinceName + '-' + res.data.cityName + + '-' + + res + .data.regionName + '-' + res.data.streetName + this.address = res.data.provinceName + '-' + res.data.cityName + + '-' + + res + .data.regionName + '-' + res.data.streetName + } else { + this.infolist.address = res.data.provinceName + '-' + res.data.cityName + + '-' + + res + .data.regionName + this.address = res.data.provinceName + '-' + res.data.cityName + + '-' + + res + .data.regionName + } this.show = true }) }) }, // 新增 add() { + this.cityPickershow = true this.infolist = { receiveName: '', receivePhone: '', @@ -227,16 +287,23 @@ content: '确认要删除信息吗', success: function(res) { if (res.confirm) { - delnursingStation(item.id).then(res => { - uni.showToast({ - title: '删除成功', - duration: 1000, - }); - setTimeout(e => { - that.goodsList() - }, 1000) - that.delshow = false; - }) + if (that.goodPatient.length == 1) { + that.$refs.uToast.show({ + title: '最少保留一条地址信息', + type: 'error' + }) + } else { + delnursingStation(item.id).then(res => { + that.$refs.uToast.show({ + title: '删除成功', + type: 'success' + }) + setTimeout(e => { + that.goodsList() + }, 1000) + that.delshow = false; + }) + } } else if (res.cancel) {} } }); @@ -244,34 +311,44 @@ // 取消 cencel() { this.show = false - this.infolist = {} - // this.address="" + this.cityPickershow = false }, // 选择区街道 areaInfo() { - getSubordinateRegions(this.areaCode).then(res => { + getSubordinateRegions().then(res => { //区下无街道添加一个空街道 - res.data.forEach(e => { - if (e.children.length == 0) { - e.children.push({ - areaCode: "", - areaName: "暂无街道", - children: null, - id: '', - }) - } - }) - this.arealist = res.data; + this.list = res.data; }) }, + // 选择区街道 + // areaInfo() { + // getSubordinateRegions(this.areaCode).then(res => { + // //区下无街道添加一个空街道 + // res.data.forEach(e => { + // if (e.children.length == 0) { + // e.children.push({ + // areaCode: "", + // areaName: "暂无街道", + // children: null, + // id: '', + // }) + // } + // }) + // this.arealist = res.data; + // }) + // }, //区街道选择 areaconfirm(e) { this.infolist.areaCode = e[e.length - 1].value - // this.address = e[0].label + '-' + e[1].label this.infolist.address = e[0].label + '-' + e[1].label - }, - } + }, + onPullDownRefresh() { //下拉刷新 + this.goodsList() + setTimeout(function() { + uni.stopPullDownRefresh(); + }, 1000); + }, } diff --git a/pages/order/order.vue b/pages/order/order.vue index b812c28..6a4beda 100644 --- a/pages/order/order.vue +++ b/pages/order/order.vue @@ -4,22 +4,46 @@ 商品订单 - + 待付款 + + {{list.waitPayCount}} + + + 99+ + 待收货 - - - - 待评价 + + {{list.waitReceivedGoodsCount}} + + + 99+ + + + 待评价 + + {{list.receivedGoodsCount}} + + + 99+ + + + 已完成 + @@ -29,22 +53,37 @@ + @@ -128,14 +173,31 @@ justify-content: space-around; image { - width: 83rpx; - height: 72rpx; + width: 100rpx; + height: 80rpx; margin-left: 50%; transform: translateX(-50%); } .OrderStatus { - margin-top: 8%; + padding-top: 50rpx; + position: relative; + + .orderCount { + background-color: red; + color: #FFFFFF; + border-radius: 50%; + text-align: center; + // padding: 0 5rpx ; + line-height: 40rpx; + width: 40rpx; + height: 40rpx; + font-size: 20rpx; + // display: inline-block; + position: absolute; + top: 30rpx; + right: -20rpx; + } } } diff --git a/pages/orderDetails/orderDetails.scss b/pages/orderDetails/orderDetails.scss index ce6e344..92d848f 100644 --- a/pages/orderDetails/orderDetails.scss +++ b/pages/orderDetails/orderDetails.scss @@ -1,19 +1,87 @@ .app { padding: 0; + .submits { + width: 501rpx; + height: 71rpx; + background: #4C7BC9; + border-radius: 26rpx; + text-align: center; + line-height: 71rpx; + color: #ffffff; + font-size: 34rpx; + margin-top: 5%; + margin-left: 15%; + } + + // 弹框确认收货 + .chat { + .word { + font-size: 26rpx; + color: #010000; + line-height: 36rpx; + width: 70%; + margin: 50rpx auto; + text-align: center; + } + + .image { + position: relative; + + .blackground { + width: 183rpx; + height: 69rpx; + background: #030303; + opacity: 0.5; + color: #ffffff; + font-size: 36rpx; + text-align: center; + line-height: 69rpx; + position: absolute; + bottom: 0%; + left: 50%; + transform: translateX(-50%); + } + + image { + width: 182rpx; + display: block; + margin: 0 auto; + height: 182rpx; + } + } + + } + .payment { + width: 100%; + font-size: 42rpx; + color: #000000; + line-height: 120rpx; + text-align: center; + + span {} + + image { + width: 31rpx; + height: 31rpx; + position: absolute; + right: 5%; + top: 5%; + } + } .time{ height: 80rpx; width: 95%; text-align: center; line-height: 80rpx; background-color: #fff; - margin: 0 auto 10rpx; + margin: 30rpx auto 0; border-radius: 20rpx; } .OrderStatus{ text-align: center; width: 300rpx; height: 70rpx; - margin: 0 auto; + margin: 30rpx auto 0; line-height: 70rpx; background-color:#4C7BC9 ; border-radius: 50rpx; @@ -27,7 +95,21 @@ bottom: 0; height: 100rpx; width: 100%; - + .logistics{ + width: 216rpx; + height: 68rpx; + text-align: center; + color: #ffffff; + border-radius: 26rpx; + font-size: 36rpx; + line-height: 68rpx; + position: absolute; + right: 260rpx; + top: 50%; + background: #E1AE3C; + transform: translateY(-50%); + z-index: 999; + } .pay { width: 216rpx; height: 68rpx; @@ -164,8 +246,7 @@ font-size: 30rpx; color: #020000; - span { - display: block; + view { line-height: 65rpx; margin-left: 20rpx; diff --git a/pages/orderDetails/orderDetails.vue b/pages/orderDetails/orderDetails.vue index 3fd66af..c8fe743 100644 --- a/pages/orderDetails/orderDetails.vue +++ b/pages/orderDetails/orderDetails.vue @@ -5,9 +5,6 @@ - - 订单已关闭 - 订单已关闭 @@ -52,14 +49,14 @@ - - 收货人:{{order.receiver}} - 联系电话:{{order.phone}} - 收货地址:{{order.receiveAddress}} - 订单编号:{{order.goOrderNo}} + + 收货人:{{order.receiver}} + 联系电话:{{order.phone}} + 收货地址:{{order.receiveAddress}} + 订单编号:{{order.goOrderNo}} - 下单时间:{{order.orderTime}} - 退款时间:{{order.updateTime}} + 下单时间:{{order.orderTime}} + 退款时间:{{order.updateTime}} diff --git a/pages/user/user.scss b/pages/user/user.scss index 3189b01..179e3e0 100644 --- a/pages/user/user.scss +++ b/pages/user/user.scss @@ -57,6 +57,16 @@ padding:0 0 0 0; overflow: hidden; font-size: 32rpx; + .addressitem { + box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); + // height: 110rpx; + line-height: 80rpx; + border-bottom: 1rpx solid #D8D4D4; + background: #FFFFFF; + .address{ + line-height: 50rpx;font-size: 28rpx;width: 90%;margin: 0 auto; + } + } .disease{ box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03); line-height: 60rpx; diff --git a/pages/user/user.vue b/pages/user/user.vue index 5d41154..136e8fc 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -37,18 +37,39 @@ 身份证: - - 区域:{{appPersonallist.regionName}}-{{appPersonallist.streetName}} + + + 区域: + + + {{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}}-{{appPersonallist.streetName}} + - - 区域: + + + 区域: + + + {{appPersonallist.provinceName}}-{{appPersonallist.cityName}}-{{appPersonallist.regionName}} + - - 地址: - {{appPersonallist.address}} + + + 区域: + + + + + 地址: + + + {{appPersonallist.address}} + - 地址: + + 地址: +