diff --git a/rc-busness/ajax/getData.js b/rc-busness/ajax/getData.js index 0c1a5e5d..2efb2607 100644 --- a/rc-busness/ajax/getData.js +++ b/rc-busness/ajax/getData.js @@ -615,3 +615,16 @@ export const getOrderList = (user, status) => { return fetch('/api/getOrderList', data) } + + + //购物车操作 + export const memberAddress = (type,data) => { + return fetch('memberAddress?type='+type, data, 'POST' ) + } + + + //支付宝支付二维码 + export const generateOrderAlipay = (data) => { + return fetch('generateOrderAlipay', data, 'POST' ) + } + \ No newline at end of file diff --git a/rc-busness/assets/css/global.less b/rc-busness/assets/css/global.less index 903d422d..cae698f4 100644 --- a/rc-busness/assets/css/global.less +++ b/rc-busness/assets/css/global.less @@ -596,4 +596,73 @@ img, picture { //margin-right:0; } } -} \ No newline at end of file +} +.rc_contline { + border-bottom: 3px solid #f6f6f6; + height: 0px; + margin: 0; + clear: both; +} + +.page_modules { + padding-top: 60px; +} + +.cont_modules { + margin: 0 auto; + max-width: 1400px; +} + +.inline_right { + display: flex; + justify-content: space-between; + width: 100%; +} + +.inline_mid { + display: flex; + justify-content: space-around; + width: 100%; +} + +.inline_left { + display: flex; + justify-content: space-evenly; + width: 100%; + +} + +.li_inline { + li { + display: inline-block; + vertical-align: middle; + } + +} + +.color_red { + color: #E2001A; +} + +.tc { + text-align: center; +} + +.tr { + text-align: right; +} +.el-dialog{ + width: 90%; + max-width: 440px; +} +#tns2-iw{ height: 90px;} +.rc-carousel:not(.rc-carousel--loaded){visibility:visible!important} +@media screen and (max-width: 768px) { + .el-message-box{ + width: 300px; + } + .el-dialog{ + width: 90%; + } + } + \ No newline at end of file diff --git a/rc-busness/assets/css/openaddress.less b/rc-busness/assets/css/openaddress.less index 08aa9e24..689de33e 100644 --- a/rc-busness/assets/css/openaddress.less +++ b/rc-busness/assets/css/openaddress.less @@ -1,310 +1,11 @@ - - -.rc-margin-bottom--lg{ - margin: 0; -} - - @media screen and (max-width:768px){ - .online{ - width:100%; - background:#d7d7d7; - margin-top:1.5rem; - height:.06rem; - &.bold{ - height:8px; - background:#f6f6f6; - } - } - .useredit{ - display: none; - } - .rc-button{ - display: flex; - align-items: center; - justify-content: center; - width: 375px; -height: 80px; -background: #FFFFFF; -box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1); -opacity: 1; -border-radius: 0px; - } - .rc-footbutton { - width: 164px; -height: 48px; -border: 2px solid #E2001A; -opacity: 1; -border-radius: 30px; -background: #E2001A; -display: flex; -justify-content: center; -align-items: center; -font-size: 16px; -color: #FFFFFF; - - - } -.rc-max-width--xl{ - padding: 24px 20px 24px 20px; - .rc-title { - display: flex; - align-items: center; - color: #333333; - font-size: 14px; - em { - font-style: normal; - font-size: 14px; - } - span { - display: block; - margin-left: 8px; - } - } - .rc-center{ - padding-top: 24px; - } - -} - - .rc-address { - margin-top: 8px; - text-overflow: -o-ellipsis-lastline; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - line-clamp: 2; - -webkit-box-orient: vertical; - font-size: 14px; - color: #333333; - } - .rc-footer { - display: flex; - justify-content: space-between; - align-items: center; - margin-top: 20px; - display: flex; - align-items: center; - .rc-right { - span { - border-bottom: 1px solid #666666; - } - span:first-child { - margin-right: 16px; - } - } - img{ - width: 43px; - } - .rc-foot{ - display: flex; - align-items: center; - color: #333333; - font-size: 14px; - span{ - margin-left: 8px; - } - } - } - } @media screen and (min-width: 769px) - { -.usercontend { - display:inline-block; -} - .usercontshow{ - .rc-button{ - display: none; - } - } - - .usercontend{ - margin-top: 40px; - } - .online{ - display: none; - } - .rc-button{ - display: none; - } - .useredit{ - width: 680px; -height: 164px; -background: #FFFFFF; -border: 1px solid #D7D7D7; -opacity: 1; -border-radius: 3px; -display: flex; -align-items: center; -justify-content: center; -img{ - width: 31px; - height: 31px; -} -span{ - color: #333333; - font-size: 18px; -} - } - .usercontend{ - .useradd{ - width: 680px; -height: 164px; -background: #FFFFFF; -border-radius: 3px; -img{ - width: 31px; - height: 31px; - display: block; -} - } - -} - .rc-max-width--xl{ - - .rc-center{ - margin-top: 24px; - margin-left: 24px; - } - .rc-cat{ - width: 640px; - border: 1px solid #D7D7D7; - border-radius: 3px; - position: relative; - margin-left: 40px; - height: 164px; - } - .rc-title { - display: flex; - align-items: center; - color: #333333; - font-size: 20px; - em { - font-style: normal; - } - span { - display: block; - margin-left: 32px; - font-size: 20px; - } - } - .rc-footer { - display: flex; - justify-content: space-between; - align-items: center; - margin-top: 20px; - display: flex; - align-items: center; - .rc-right { - position: absolute; - right: 24px; - top: 24px; - span { - border-bottom: 1px solid #666666; - } - span:first-child { - margin-right: 16px; - } - } - img{ - width: 43px; - } - .rc-foot{ - display: flex; - align-items: center; - color: #333333; - font-size: 16px; - margin-top: 16px; - span{ - margin-left: 8px; - } - } - } - - } - .rc-max-width--xl{ - - - .rc-button { - height: 80px; - background: #ffffff; - box-shadow: 0px -3px 6px rgba(0, 0, 0, 0.1); - opacity: 1; - display: flex; - align-items: center; - justify-content: center; - display: block; - - .rc-footbutton { - width: 164px; - height: 48px; - border: 2px solid #e2001a; - opacity: 1; - border-radius: 30px; - display: flex; - align-items: center; - background: #e2001a; - span { - display: block; - text-align: center; - color: white; - font-size: 16px; - width: 100%; - } - } - } - .rc-header { - display: flex; - align-items: center; - color: #333333; - em { - font-style: normal; - font-size: 14px; - } - span { - display: block; - margin-left: 8px; - } - } - .rc-address { - margin-top: 16px; - text-overflow: -o-ellipsis-lastline; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-line-clamp: 2; - line-clamp: 2; - -webkit-box-orient: vertical; - font-size: 20px; - color: #333333; - - } - .rc-footer { - display: flex; - justify-content: space-between; - align-items: center; - padding-bottom: 20px; - margin-top: 8px; - .rc-right { - span { - border-bottom: 1px solid #666666; - } - span:first-child { - margin-right: 16px; - } - } - } - - - } - } \ No newline at end of file diff --git a/rc-busness/assets/pay/fail.png b/rc-busness/assets/pay/fail.png new file mode 100644 index 00000000..71821a9b Binary files /dev/null and b/rc-busness/assets/pay/fail.png differ diff --git a/rc-busness/assets/pay/wx.png b/rc-busness/assets/pay/wx.png new file mode 100644 index 00000000..7316a9d7 Binary files /dev/null and b/rc-busness/assets/pay/wx.png differ diff --git a/rc-busness/assets/pay/zfb.png b/rc-busness/assets/pay/zfb.png new file mode 100644 index 00000000..c68db2ab Binary files /dev/null and b/rc-busness/assets/pay/zfb.png differ diff --git a/rc-busness/pages/myorder/userrecord.vue b/rc-busness/pages/myorder/userrecord.vue index 3b1991bb..aefb13d4 100644 --- a/rc-busness/pages/myorder/userrecord.vue +++ b/rc-busness/pages/myorder/userrecord.vue @@ -1,108 +1,101 @@ \ No newline at end of file diff --git a/rc-busness/pages/personal/settlement.less b/rc-busness/pages/personal/settlement.less new file mode 100644 index 00000000..72c8358a --- /dev/null +++ b/rc-busness/pages/personal/settlement.less @@ -0,0 +1,414 @@ +ul li ol li em strong i { + list-style: none; + font-style: normal; +} + +.rc-header { + width: 100%; +} + + + +.settlement { + padding-top: 100px; +} + + +.rc-main { + width: 92%; + margin: 0 auto; + max-width: 1400px; + + .rc-userbottomm { + display: none; + } + + .rc-border { + width: 100%; + border-bottom: 1px solid #d7d7d7; + margin-top: 32px; + } + + .rc-receiving { + width: 100%; + height: 80px; + display: flex; + flex-direction: column; + + em { + font-style: normal; + color: #e1001a; + font-size: 26px; + } + + span { + color: #666666; + font-size: 16px; + display: block; + margin-top: 25px; + } + } + + .delivery { + display: flex; + flex-direction: column; + height: 140px; + display: flex; + justify-content: center; + + .viewdetails { + display: flex; + align-items: center; + justify-content: flex-end; + + span { + color: #444444; + font-size: 18px; + display: block; + margin-right: 8px; + } + + img { + width: 8px; + height: 16px; + } + } + + .to-delivery { + display: flex; + align-items: center; + font-style: normal; + + span { + display: block; + // margin-left: 16px; + font-size: 18px; + color: #333333; + } + + i { + font-style: normal; + margin-left: 8px; + display: block; + font-size: 18px; + color: #999999; + } + } + + .bo-delivery { + span { + font-size: 16px; + color: #666666; + display: block; + margin-top: 16px; + } + } + } + + .address-list { + display: flex; + + .mypersonal { + display: flex; + flex-direction: column; + justify-content: center; + border: 1px solid #808285; + height: 118px; + width: 320px; + padding: 15px; + color: #333333; + margin: 20px 40px 20px 0; + position: relative; + cursor: pointer; + + &.active { + border: 1px solid #E2001A; + } + + .edit { + position: absolute; + top: 5px; + right: 8px; + display: none; + cursor: pointer; + } + + &:hover { + .edit { + display: block; + } + } + + .my-delivery { + display: flex; + align-items: center; + font-style: normal; + + span { + display: block; + margin-left: 3px; + + } + + i { + font-style: normal; + margin-left: 3px; + display: block; + } + } + + .per-delivery { + span { + color: #666666; + display: block; + margin-top: 5px; + } + } + } + } + + + .rc-usermain { + display: flex; + padding: 20px 0; + + .rc-image { + border: 1px solid #d8d8d8; + margin-right: 20px; + + img { + width: 96px; + height: 96px; + display: block; + } + } + + .rc-right { + .rc-usercenter { + display: flex; + justify-content: center; + flex-direction: column; + + h3, + .price { + font-style: normal; + display: block; + font-size: 18px; + font-weight: bold; + margin-top: 17px; + color: #e1001a; + } + } + + display: flex; + justify-content: space-between; + width: 100%; + } + + .rc-userright { + display: flex; + flex-direction: column; + color: #666666; + font-size: 16px; + + span { + display: block; + margin-top: 16px; + font-size: 16px; + } + } + + .rc-userbottom { + display: flex; + width: 60%; + justify-content: space-between; + align-items: center; + + .price { + font-style: normal; + color: #e1001a; + font-size: 20px; + font-weight: bold; + } + + } + } + + .rc-merchandise { + + padding: 15px 0; + + &::after { + display: block; + content: ''; + clear: both; + } + + ul { + width: 25%; + display: flex; + flex-direction: column; + justify-content: space-between; + line-height: 40px; + float: right; + + i { + font-style: normal; + color: #666666; + } + + li { + list-style: none; + font-style: normal; + display: flex; + justify-content: space-between; + + span { + color: #333333; + } + } + + li .red { + color: #e1001a; + font-size: 20px; + font-style: normal; + } + } + } + + .rc-payment { + width: 100%; + margin-top: 80px; + + .u-trackingnumber { + display: flex; + align-items: center; + + i { + font-size: 18px; + font-style: normal; + margin-right: 16px; + } + + img { + width: 8px; + height: 16px; + } + } + + ul { + width: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + line-height: 40px; + font-size: 18px; + + i { + font-style: normal; + color: #666666; + display: block; + } + + li { + list-style: none; + font-style: normal; + display: flex; + justify-content: space-between; + + span { + color: #333333; + } + } + } + } + + .rc-foot { + display: flex; + flex-direction: column; + + .rc-foo { + display: flex; + justify-content: flex-end; + flex-direction: column; + align-items: self-end; + + i { + font-style: normal; + color: #333333; + font-size: 20px; + margin-right: 20px; + } + + em { + font-style: normal; + color: #e1001a; + font-size: 26px; + } + + span { + display: block; + width: 164px; + margin-top: 36px; + background: #e2001a; + line-height: 48px; + text-align: center; + color: white; + font-size: 16px; + + height: 48px; + + border-radius: 30px; + } + } + } +} +.diallog_width{ + width: 100%; + max-width: 440px; +} +.el-dialog{ + width: 100%; +} +//手机端 +@media screen and (max-width: 768px) { + + .diallog_width{ + width: 100%; + + } + .rc-main { + .address-list { + display: contents; + + .mypersonal { + width: 100%; + height: auto; + } + } + .rc-usermain { + .rc-right { display: table} + } + .rc-merchandise{ + padding: 15px 0 120px; + ul{ + float: none; + width: 100%; + } + } + .rc-foot{ + .rc-foo{ + display: flex; + justify-content: space-around; + flex-direction: row; + align-items: self-end; + position: fixed; + bottom: 0; + background: #fff; + width: 100%; + padding: 10px; + } + } + } + +} \ No newline at end of file diff --git a/rc-busness/pages/personal/settlement.vue b/rc-busness/pages/personal/settlement.vue index 878947ec..a6ee2015 100644 --- a/rc-busness/pages/personal/settlement.vue +++ b/rc-busness/pages/personal/settlement.vue @@ -1,168 +1,145 @@ \ No newline at end of file diff --git a/rc-busness/pages/personal/userpay.vue b/rc-busness/pages/personal/userpay.vue index a3070243..6122d45f 100644 --- a/rc-busness/pages/personal/userpay.vue +++ b/rc-busness/pages/personal/userpay.vue @@ -1,578 +1,303 @@ \ No newline at end of file diff --git a/rc-busness/pages/productdetails/productlist.vue b/rc-busness/pages/productdetails/productlist.vue index b5e66b0f..862c457d 100644 --- a/rc-busness/pages/productdetails/productlist.vue +++ b/rc-busness/pages/productdetails/productlist.vue @@ -516,12 +516,12 @@ export default { this.$refs.userstandard[0].style.margin = 0 + "px"; }); this.userst(); - this.activeIndex = stype; - if (stype !== "" && stype !== undefined) { - this.onmessage(stype); - } else { - this.usetmessage(); - } + // this.activeIndex = stype; + // if (stype !== "" && stype !== undefined) { + // this.onmessage(stype); + // } else { + // this.usetmessage(); + // } }, methods: { async usersearch(stype, usertype) { diff --git a/rc-busness/pages/useraddress/openaddress.vue b/rc-busness/pages/useraddress/openaddress.vue index e618473d..7a038389 100644 --- a/rc-busness/pages/useraddress/openaddress.vue +++ b/rc-busness/pages/useraddress/openaddress.vue @@ -1,12 +1,8 @@