diff --git a/apis/interfaces/coupon.js b/apis/interfaces/coupon.js new file mode 100644 index 0000000..2520e5a --- /dev/null +++ b/apis/interfaces/coupon.js @@ -0,0 +1,83 @@ +/** + * Web-zdx + * moduleName: 优惠券相关 + */ + +import request from '../request.js' + +// 我的优惠券 +const myCoupon = (data) => { + return request({ + url: 'coupons/user/coupons', + method: 'get', + data: data + }) +} + +// 优惠券分组列表 +const getCouponsListById = (id,data) => { + return request({ + url: 'coupons/user/coupons/'+id+'/list', + data:data + }) +} + +// 根据优惠券id获取优惠券的详情信息 +const getCouponsInfoById = (id) => { + return request({ + url: 'coupons/user/coupons/'+id, + }) +} + + +// 根据企业id获取企业首页的轮播图列表 +const couponsByCompanyId = (data) => { + return request({ + url: 'coupons', + method: 'get', + data: data + }) +} + +// 领取优惠券 +const couponsGrant = (id) => { + return request({ + url: 'coupons/'+id+'/grant', + method: 'POST' + }) +} +// 获取优惠券可使用商品 +const getGoodsByGrantId = (data) => { + return request({ + url: 'user/coupons/goods', + data: data + }) +} + +// 使用提货券兑换商品 +const exchangeGoods = (data) => { + return request({ + url: 'user/coupons/exchange', + method: 'POST', + data: data + }) +} + +// 获取核销二维码 +const getQrcodeByGrantId = (data) => { + return request({ + url: 'coupons/user/coupons/qrcode', + data: data + }) +} + +export { + myCoupon, + couponsByCompanyId, + couponsGrant, + getGoodsByGrantId, + exchangeGoods, + getCouponsListById, + getCouponsInfoById, + getQrcodeByGrantId +} diff --git a/apis/interfaces/employees.js b/apis/interfaces/employees.js index 938e23a..f35fbc3 100644 --- a/apis/interfaces/employees.js +++ b/apis/interfaces/employees.js @@ -55,11 +55,19 @@ const employeesPut = (id, data) => { }) } +// 员工管理工具 手太欠 +const employeesTool = () => { + return request({ + url: 'companies/employees/permission' + }) +} + export { employees, employeesConfig, addEmployees, employeesInfo, employeesDelete, - employeesPut + employeesPut, + employeesTool } diff --git a/apis/interfaces/goods.js b/apis/interfaces/goods.js index e7bc977..80381a4 100644 --- a/apis/interfaces/goods.js +++ b/apis/interfaces/goods.js @@ -125,6 +125,35 @@ const managesGoodsEdit = id => { url: 'manages/goods/' + id }) } + +// 区块链证书 +const managesChain = (id) => { + return request({ + url: 'mall/goods/'+ id + '/chain' + }) +} + +// 商品认证 +const managesAttestation = (id) => { + return request({ + url: 'mall/goods/'+ id +'/message' + }) +} + +// 商品溯源 +const managesTracedTo = (id) => { + return request({ + url: 'mall/goods/'+ id +'/trace' + }) +} + +// 领取优惠券 +const managesCoupons = (id) => { + return request({ + url: 'coupons/'+ id +'/grant', + method: 'POST' + }) +} export { mall, @@ -138,8 +167,12 @@ export { managesGoodsCreateBefore, managesGoodsCreate, managesCategory, - managesCreate, managesGoodsAuth, managesGoodsDelete, - managesGoodsEdit + managesGoodsEdit, + managesCreate, + managesChain, + managesAttestation, + managesTracedTo, + managesCoupons } diff --git a/apis/interfaces/numberWeight.js b/apis/interfaces/numberWeight.js new file mode 100644 index 0000000..da795d3 --- /dev/null +++ b/apis/interfaces/numberWeight.js @@ -0,0 +1,140 @@ +/** + * Web-zdx + * moduleName: 我的数权 + */ + +import request from '../request.js' + +// 我的数权 +const mallWarrants = (data) => { + return request({ + url: 'mall/warrants', + method: 'GET', + data: data + }) +} +// 我的数权Id获取数权详情 +const mallWarrantsList = (symbol) => { + return request({ + url: 'mall/warrants/exchange', + method: 'GET', + data: { + symbol:symbol + } + }) + } +// 确认提货 +const mallWarrantsSure = (data) => { + return request({ + url: 'mall/warrants/exchange', + method: 'POST', + data: data + }) +} +// 我的邮寄订单,我的提货单 +const mallShipmentsPostShop = (apiUrl,data) => { + return request({ + url: apiUrl, + method: 'GET', + data: data + }) +} +// 根据提货单的no 获取提货单的详情 +const mallShipmentsInfo = (no) => { + return request({ + url: 'mall/shipments/'+no, + method: 'GET' + }) +} +// 取消提货单 +const mallShipmentsCancel = (shipmentNo) => { + return request({ + url: 'mall/shipments/'+ shipmentNo+'/cancel', + method: 'POST' + }) +} + +// 签收提货单 +const mallShipmentsSign = (shipmentNo) => { + return request({ + url: 'mall/shipments/'+ shipmentNo+'/sign', + method: 'POST' + }) +} + +// 退货单申请退货 +const mallShipmentsRefund = (data) => { + return request({ + url: 'mall/shipments/'+ data.shipment_no+'/refund', + method: 'POST', + data:data + }) +} + +// 退货单申请退货前置条件 +const mallShipmentsRefundInfo = (shipmentNo) => { + return request({ + url: 'mall/shipments/'+ shipmentNo+'/refund', + method: 'GET' + }) +} + +// 查看物流接口 +const mallShipmentsLogistic = (shipmentNo) => { + return request({ + url: 'mall/shipments/'+ shipmentNo+'/logistic', + method: 'GET' + }) +} + +// 我的退货单 mall/refunds +const mallRefunds = (data) => { + return request({ + url: 'mall/refunds', + method: 'GET', + data: data + }) +} + +//退货单详情页 +const mallRefundsInfo = (no) => { + return request({ + url: 'mall/refunds/'+no, + method: 'GET' + }) +} +// 确认退货mall/refunds/{refund}/deliver +const mallRefundsDeliver = (data) => { + return request({ + url: 'mall/refunds/'+data.refund+'/deliver', + method: 'POST', + data:data + }) +} + +// 提货单或者服务单生成提货二维码 +const mallWarrantsQrcode = (data) => { + return request({ + url: 'mall/warrants/qrcode', + method: 'GET', + data:data + }) +} + + +export { + mallWarrants, + mallWarrantsList, + mallWarrantsSure, + mallShipmentsPostShop, + mallShipmentsInfo, + mallShipmentsCancel, + mallShipmentsSign, + mallShipmentsRefund, + mallShipmentsRefundInfo, + mallShipmentsLogistic, + mallRefunds, + mallRefundsInfo, + mallRefundsDeliver, + mallWarrantsQrcode +} diff --git a/components/coupon-template/coupon-template-1.vue b/components/coupon-template/coupon-template-1.vue new file mode 100644 index 0000000..b08367f --- /dev/null +++ b/components/coupon-template/coupon-template-1.vue @@ -0,0 +1,240 @@ + + + + + diff --git a/components/goods-template/goods-template.vue b/components/goods-template/goods-template.vue new file mode 100644 index 0000000..c9cf843 --- /dev/null +++ b/components/goods-template/goods-template.vue @@ -0,0 +1,173 @@ + + + + + diff --git a/components/mall-refunds-template/mall-refunds-template.vue b/components/mall-refunds-template/mall-refunds-template.vue new file mode 100644 index 0000000..9b623c2 --- /dev/null +++ b/components/mall-refunds-template/mall-refunds-template.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/components/mall-shipments-template/mall-shipments-template.vue b/components/mall-shipments-template/mall-shipments-template.vue new file mode 100644 index 0000000..d8cfe95 --- /dev/null +++ b/components/mall-shipments-template/mall-shipments-template.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/components/number-weight-template/number-weight-template.vue b/components/number-weight-template/number-weight-template.vue new file mode 100644 index 0000000..892dc99 --- /dev/null +++ b/components/number-weight-template/number-weight-template.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/components/store-staff/store-staff.vue b/components/store-staff/store-staff.vue index 33e6b85..d9e3fc7 100644 --- a/components/store-staff/store-staff.vue +++ b/components/store-staff/store-staff.vue @@ -1,6 +1,61 @@ @@ -8,46 +63,12 @@ export default { name:"store-staff", props:{ - // 店铺统计 - top: { - type: Object, - default: ()=> { - return { - barter_total: 0, - trading_day : 0, - eb_in : 0, - cash_in : 0 - } - } - }, - // 店铺概况 - middle: { - type: Object, - default: ()=> { - return { - visitors : 0, - clinch : 0, - employees: 0, - sale : 0, - hold : 0, - transfer : 0 - } - } - }, - // 店铺订单 - order: { - type: Object, - default: ()=> { - return { - not_shipped : 0, - already_shipped : 0, - not_pick : 0, - already_pick : 0, - after_sale : 0 - } - } - } - } + // 员工数据 + toolList: {}, + }, + created() { + // console.log(this.$props.toolList) + } } @@ -57,7 +78,7 @@ .statistical{ display: flex; background: $text-price; - padding: $padding ($padding/2) $padding*5; + padding: $padding ($padding/2) $padding*2; flex-wrap: wrap; justify-content: space-between; .item{ @@ -76,15 +97,15 @@ } // 店铺概况 .general{ - margin: -$margin*4 $margin 0 $margin; + margin: -$margin*2 $margin 0 $margin; .general-box{ background-color: white; border-radius: $radius/2; display: flex; - padding: $padding $padding/2; + padding: $padding - 20 $padding/2; flex-wrap: wrap; .general-item{ - width: 33.33%; + width: 50%; text-align: center; padding: $padding/2; box-sizing: border-box; @@ -103,27 +124,34 @@ } // 店铺工具 .tool-flex{ - background: white; - border-radius: $radius/2; - padding: $padding/2; - margin: $margin; - display: flex; - flex-wrap: wrap; + margin: $margin*2 $margin $margin; .store-item{ - padding: $padding/2; - text-align: center; - width: 25%; + background: white; + border-radius: $radius/2; + padding: $padding/2; box-sizing: border-box; + margin-bottom: $margin; + display: flex; + position: relative; .icon{ - width: 68rpx; - height: 68rpx; + width: 54rpx; + height: 54rpx; + margin-right: $margin - 15; vertical-align: top; } .title{ - font-size: $title-size-sm; + line-height: 58rpx; + font-size: $title-size-m; color: $text-gray; - padding-top: $padding/3; } + .arrow { + width: 38rpx; + height: 38rpx; + filter: brightness(.9); + position: absolute; + right: $padding - 20; + top: $padding - 6; + } } .order-item{ position: relative; diff --git a/pages.json b/pages.json index 8a34f2a..bc9fb9c 100644 --- a/pages.json +++ b/pages.json @@ -1,334 +1,421 @@ { "pages": [{ - "path": "pages/equity/index", - "name": "Equity", - "style": { - "navigationStyle": "custom", - "navigationBarTextStyle": "white" - } - }, { - "path": "pages/market/index", - "name": "Market", - "style": { - "navigationBarTitleText": "转让市场", - "titleNView": { - "backgroundColor": "#FFFFFF", - "buttons": [{ - "text": "成交历史", - "fontSize": "14", - "width": "80", - "color": "#555555" - }] + "path": "pages/equity/index", + "name": "Equity", + "style": { + "navigationStyle": "custom", + "navigationBarTextStyle": "white" } - } - }, { - "path": "pages/store/index", - "name": "Store", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "企业工具", - "navigationBarTextStyle": "white", - "navigationBarBackgroundColor": "#e93340" - } - }, { - "path": "pages/property/index", - "name": "Property", - "style": { - "navigationBarTitleText": "", - "navigationStyle": "custom", - "navigationBarTextStyle": "white" - } - }, { - "path": "pages/property/address/list", - "name": "AddressList", - "style": { - "navigationBarTitleText": "地址管理", - "navigationBarTextStyle": "white", - "navigationBarBackgroundColor": "#e93340" - } - }, { - "path": "pages/property/address/create", - "name": "AddressCreate", - "style": { - "navigationBarTitleText": "地址新增", - "navigationBarTextStyle": "white", - "navigationBarBackgroundColor": "#e93340" - } - }, { - "path": "pages/goods/details", - "name": "goodsDetails", - "style": { - "navigationBarTitleText": "", - "titleNView": { - "backgroundColor": "#FFFFFF", - "type": "transparent", - "buttons": [{ - "text": "分享", - "fontSize": "12", - "color": "#555555" - }] - } - } - }, { - "path": "pages/login/login", - "name": "Login", - "style": { - "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#FFFFFF", - "disableScroll": true - } - }, { - "path": "pages/company/registered", - "name": "Registered", - "style": { - "navigationBarTitleText": "" - } - }, { - "path": "pages/company/prompt", - "name": "Prompt", - "style": { - "navigationBarTitleText": "", - "navigationBarBackgroundColor": "#FFFFFF", - "disableScroll": true, - "titleNView": { - "backgroundColor": "#FFFFFF", - "buttons": [{ - "text": "先逛一逛", - "fontSize": "14", - "width": "80", - "color": "#555555" - }] - } - } - }, { - "path": "pages/vip/index", - "name": "Vip", - "style": { - "navigationBarTitleText": "会员", - "navigationBarBackgroundColor": "#1f1b1c", - "navigationBarTextStyle": "white", - "backgroundColor": "#fefaef" - } - }, { - "path": "pages/equity/search", - "name": "Search", - "style": { - "navigationBarTitleText": "搜索" - } - }, { - "path": "pages/market/logs", - "name": "marketLogs", - "style": { - "navigationBarTitleText": "成交历史" - } - }, { - "path": "pages/order/buy", - "name": "Buy", - "style": { - "navigationBarTitleText": "确认订单", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/order/index", - "name": "Order", - "style": { - "navigationBarTitleText": "订单管理" - } - }, { - "path": "pages/order/details", - "name": "OrderDetails", - "style": { - "navigationBarTitleText": "订单详情" - } - }, { - "path": "pages/order/sales", - "name": "Sales", - "style": { - "navigationBarTitleText": "售后" - } - }, { - "path": "pages/goods/lists", - "name": "goodsList", - "style": { - "navigationBarTitleText": "商品列表", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/company/approve", - "name": "Approve", - "style": { - "navigationBarTitleText": "" - } - }, { - "path": "pages/store/visitors", - "name": "Visitors", - "style": { - "navigationBarTitleText": "访客统计", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/store/customer", - "name": "Customer", - "style": { - "navigationBarTitleText": "成交客户", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/store/basics", - "name": "Basics", - "style": { - "navigationBarTitleText": "基础信息", - "app-plus": { + }, { + "path": "pages/market/index", + "name": "Market", + "style": { + "navigationBarTitleText": "转让市场", "titleNView": { "backgroundColor": "#FFFFFF", "buttons": [{ - "text": "保存", - "fontSize": "16", + "text": "成交历史", + "fontSize": "14", "width": "80", - "color": "#e93340" + "color": "#555555" }] } } - } - }, { - "path": "pages/employees/list", - "name": "Employees", - "style": { - "navigationBarTitleText": "员工", - "app-plus": { - "bounce": "none", + }, { + "path": "pages/store/index", + "name": "Store", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "企业工具", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/index", + "name": "Property", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + } + }, { + "path": "pages/property/address/list", + "name": "AddressList", + "style": { + "navigationBarTitleText": "地址管理", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/address/create", + "name": "AddressCreate", + "style": { + "navigationBarTitleText": "地址新增", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/order/numberWeight", + "name": "NumberWeight", + "style": { + "navigationBarTitleText": "我的权证", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, + { + "path": "pages/property/order/numberWeightInfo", + "name": "NumberWeightInfo", + "style": { + "navigationBarTitleText": "权证详情", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/order/mallShipments", + "name": "MallShipments", + "style": { + "navigationBarTitleText": "已经提货", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/order/logistics", + "name": "Orderlogistics", + "style": { + "navigationBarTitleText": "查看物流", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/order/mallShipmentsInfo", + "name": "MallShipmentsInfo", + "style": { + "navigationBarTitleText": "提货单详情页面", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/order/mallRefundsInfo", + "name": "MallRefundsInfo", + "style": { + "navigationBarTitleText": "退货单详情", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, { + "path": "pages/property/order/mallShipmentsRefund", + "name": "MallShipmentsRefund", + "style": { + "navigationBarTitleText": "申请退货", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340" + } + }, + { + "path": "pages/property/coupon/coupon", + "name": "CouponList", + "style": { + "enablePullDownRefresh": true, + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340", + "navigationBarTitleText": "我的优惠券" + } + }, { + "path": "pages/property/coupon/couponMore", + "name": "CouponMoreList", + "style": { + "enablePullDownRefresh": true, + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340", + "navigationBarTitleText": "优惠券列表" + } + }, { + "path": "pages/property/coupon/detail", + "name": "CouponDetail", + "style": { + "enablePullDownRefresh": true, + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#e93340", + "navigationBarTitleText": "优惠券详情" + } + }, + { + "path": "pages/goods/details", + "name": "goodsDetails", + "style": { + "navigationBarTitleText": "", + "titleNView": { + "backgroundColor": "#FFFFFF", + "type": "transparent", + "buttons": [{ + "text": "分享", + "fontSize": "12", + "color": "#555555" + }] + } + } + }, { + "path": "pages/login/login", + "name": "Login", + "style": { + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#FFFFFF", + "disableScroll": true + } + }, { + "path": "pages/company/registered", + "name": "Registered", + "style": { + "navigationBarTitleText": "" + } + }, { + "path": "pages/company/prompt", + "name": "Prompt", + "style": { + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#FFFFFF", + "disableScroll": true, "titleNView": { "backgroundColor": "#FFFFFF", "buttons": [{ - "text": "添加", + "text": "先逛一逛", + "fontSize": "14", + "width": "80", + "color": "#555555" + }] + } + } + }, { + "path": "pages/vip/index", + "name": "Vip", + "style": { + "navigationBarTitleText": "会员", + "navigationBarBackgroundColor": "#1f1b1c", + "navigationBarTextStyle": "white", + "backgroundColor": "#fefaef" + } + }, { + "path": "pages/equity/search", + "name": "Search", + "style": { + "navigationBarTitleText": "搜索" + } + }, { + "path": "pages/market/logs", + "name": "marketLogs", + "style": { + "navigationBarTitleText": "成交历史" + } + }, { + "path": "pages/order/buy", + "name": "Buy", + "style": { + "navigationBarTitleText": "确认订单", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/order/index", + "name": "Order", + "style": { + "navigationBarTitleText": "订单管理" + } + }, { + "path": "pages/order/details", + "name": "OrderDetails", + "style": { + "navigationBarTitleText": "订单详情" + } + }, { + "path": "pages/order/sales", + "name": "Sales", + "style": { + "navigationBarTitleText": "售后" + } + }, { + "path": "pages/goods/lists", + "name": "goodsList", + "style": { + "navigationBarTitleText": "商品列表", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/company/approve", + "name": "Approve", + "style": { + "navigationBarTitleText": "" + } + }, { + "path": "pages/store/visitors", + "name": "Visitors", + "style": { + "navigationBarTitleText": "访客统计", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/store/customer", + "name": "Customer", + "style": { + "navigationBarTitleText": "成交客户", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/store/basics", + "name": "Basics", + "style": { + "navigationBarTitleText": "基础信息", + "app-plus": { + "titleNView": { + "backgroundColor": "#FFFFFF", + "buttons": [{ + "text": "保存", + "fontSize": "16", + "width": "80", + "color": "#e93340" + }] + } + } + } + }, { + "path": "pages/employees/list", + "name": "Employees", + "style": { + "navigationBarTitleText": "员工", + "app-plus": { + "bounce": "none", + "titleNView": { + "backgroundColor": "#FFFFFF", + "buttons": [{ + "text": "添加", + "fontSize": "14", + "width": "80", + "color": "#e93340" + }] + } + } + } + }, { + "path": "pages/employees/add", + "name": "addEmployees", + "style": { + "navigationBarTitleText": "添加员工", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/goods/management", + "name": "GoodsMag", + "style": { + "navigationBarTitleText": "产品权证", + "app-plus": { + "titleNView": { + "backgroundColor": "#FFFFFF", + "buttons": [{ + "text": "发布", + "fontSize": "16", + "width": "80", + "color": "#e93340" + }] + } + } + } + }, { + "path": "pages/goods/addClassify", + "name": "addClassify", + "style": { + "navigationBarTitleText": "选择权证分类", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/goods/add", + "name": "GoodsMagAdd", + "style": { + "navigationBarTitleText": "发布权证", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/coupons/index", + "name": "Coupons", + "style": { + "navigationBarTitleText": "优惠券" + } + }, { + "path": "pages/coupons/management", + "name": "CouponsMag", + "style": { + "navigationBarTitleText": "优惠券管理", + "titleNView": { + "backgroundColor": "#FFFFFF", + "buttons": [{ + "text": "发布", "fontSize": "14", "width": "80", "color": "#e93340" }] } } - } - }, { - "path": "pages/employees/add", - "name": "addEmployees", - "style": { - "navigationBarTitleText": "添加员工", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/goods/management", - "name": "GoodsMag", - "style": { - "navigationBarTitleText": "产品权证", - "app-plus": { + }, { + "path": "pages/coupons/add", + "name": "couponsAdd", + "style": { + "navigationBarTitleText": "发布优惠券", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/coupons/selectGoods", + "name": "selectGoods", + "style": { + "navigationBarTitleText": "选择产品", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/coupons/magDetails", + "name": "magDetails", + "style": { + "navigationBarTitleText": "优惠券详情" + } + }, { + "path": "pages/verification/index", + "name": "Verification", + "style": { + "navigationBarTitleText": "扫码验证" + } + }, { + "path": "pages/verification/details", + "name": "VerificationDetails", + "style": { + "navigationBarTitleText": "核销券详情" + } + }, { + "path": "pages/shop/lists", + "name": "shopLists", + "style": { + "navigationBarTitleText": "部门/门店", + "navigationBarBackgroundColor": "#FFFFFF", "titleNView": { - "backgroundColor": "#FFFFFF", "buttons": [{ - "text": "发布", - "fontSize": "16", + "text": "创建", + "fontSize": "14", "width": "80", "color": "#e93340" }] } } - } - }, { - "path": "pages/goods/addClassify", - "name": "addClassify", - "style": { - "navigationBarTitleText": "选择权证分类", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/goods/add", - "name": "GoodsMagAdd", - "style": { - "navigationBarTitleText": "发布权证", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/coupons/index", - "name": "Coupons", - "style": { - "navigationBarTitleText": "优惠券" - } - }, { - "path": "pages/coupons/management", - "name": "CouponsMag", - "style": { - "navigationBarTitleText": "优惠券管理", - "titleNView": { - "backgroundColor": "#FFFFFF", - "buttons": [{ - "text": "发布", - "fontSize": "14", - "width": "80", - "color": "#e93340" - }] + }, { + "path": "pages/shop/create", + "name": "shopCreate", + "style": { + "navigationBarTitleText": "创建门店/部门", + "navigationBarBackgroundColor": "#FFFFFF" + } + }, { + "path": "pages/goods/goodsAuth", + "name": "goodsAuth", + "style": { + "navigationBarTitleText": "商品认证信息", + "navigationBarBackgroundColor": "#FFFFFF" } } - }, { - "path": "pages/coupons/add", - "name": "couponsAdd", - "style": { - "navigationBarTitleText": "发布优惠券", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/coupons/selectGoods", - "name": "selectGoods", - "style": { - "navigationBarTitleText": "选择产品", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/coupons/magDetails", - "name": "magDetails", - "style": { - "navigationBarTitleText": "优惠券详情" - } - }, { - "path": "pages/verification/index", - "name": "Verification", - "style": { - "navigationBarTitleText": "扫码验证" - } - }, { - "path": "pages/verification/details", - "name": "VerificationDetails", - "style": { - "navigationBarTitleText": "核销券详情" - } - }, { - "path": "pages/shop/lists", - "name": "shopLists", - "style": { - "navigationBarTitleText": "部门/门店", - "navigationBarBackgroundColor": "#FFFFFF", - "titleNView": { - "buttons": [{ - "text": "创建", - "fontSize": "14", - "width": "80", - "color": "#e93340" - }] - } - } - }, { - "path": "pages/shop/create", - "name": "shopCreate", - "style": { - "navigationBarTitleText": "创建门店/部门", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { - "path": "pages/goods/goodsAuth", - "name": "goodsAuth", - "style": { - "navigationBarTitleText": "商品认证信息", - "navigationBarBackgroundColor": "#FFFFFF" - } - }], + ], "tabBar": { "color": "#bababa", "selectedColor": "#e93340", diff --git a/pages/goods/attestation.vue b/pages/goods/attestation.vue new file mode 100644 index 0000000..c427093 --- /dev/null +++ b/pages/goods/attestation.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/pages/goods/chain.vue b/pages/goods/chain.vue new file mode 100644 index 0000000..ae76393 --- /dev/null +++ b/pages/goods/chain.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/pages/goods/details.vue b/pages/goods/details.vue index 59d0a93..a465b69 100644 --- a/pages/goods/details.vue +++ b/pages/goods/details.vue @@ -17,7 +17,7 @@ {{goodsObj.price.show}} 累计易货{{goodsObj.sales}}次 - + {{item.title}} @@ -28,47 +28,54 @@ 热卖{{goodsObj.name}} - - + + - - {{goodsObj.shop.name}} - - - - 进店 - + + {{goodsObj.shop.name}} + + + + 进店 + - + 区块链证书 + - + 商品认证 + - + 商品溯源 + - + - + {{goodsObj.skus[0].goods_name}} - + 特价商品不可与优惠券叠加使用 - 易货严选自营・30天无忧退换・不可用券・国内部分地区不可配送 + + + {{item.name}} + + @@ -82,11 +89,84 @@ + + + + + + 优惠券 + + + + + 可领取的优惠券 + + + + + 服务券 + 代金券 + 提货券 + + + + {{item.price}} + + + 满{{item.full}}可用 + + + + + 提货券 + + + + + {{item.title}} + + + {{item.time.interval}} + + + + 领取 + + + + + 确定 + + + + + + + + + 保障 + + + + + + {{item.name}} + + + {{item.content}} + + + + + 确定 + + + @@ -205,8 +312,8 @@ font-size: 24rpx; border-radius: 50rpx; padding: 0 10rpx; - height: 38rpx; - line-height: 38rpx; + height: 34rpx; + line-height: 36rpx; margin: 6rpx 10rpx 0 0; } } @@ -242,46 +349,70 @@ background-color: #fef2f2; color: #e1293f; border-radius: 8rpx; - border: 2rpx solid #e7e2df; - padding: $padding - 10; + border: 1rpx solid #ffe5e5; + padding: $padding - 15; box-sizing: border-box; display: flex; position: relative; margin-bottom: $margin - 10; .coupon-list { - font-size: 24rpx; + font-size: 22rpx; .coupon-label { display: inline-block; - border: 2rpx solid #e1293f; + border: 1rpx solid #e998a1; border-radius: 50rpx; - padding: 4rpx 15rpx; + padding: 0 15rpx; + height: 34rpx; + line-height: 34rpx; margin-right: $margin - 10; } } .coupon-btn { position: absolute; - right: $padding - 10; - top: $padding - 10; - font-size: 28rpx; + right: $padding - 20; + top: 0; + line-height: 60rpx; + font-size: 24rpx; display: flex; font-weight: 700; .coupon-btn-img { - width: 30rpx; - height: 30rpx; - margin-top: 6rpx; + width: 22rpx; + height: 22rpx; + margin: 20rpx 0 0 4rpx; } } } } + + // 新增服务 + .goods-serve { + display: flex; + .goods-serve-img { + width: 36rpx; + height: 36rpx; + margin-top: 24rpx; + } + .goods-serve-name { + margin: 0 30rpx 0 20rpx; + width: calc(100% - 122rpx); + text { + padding-right: $padding; + position: relative; + &:last-child { + padding-right: 0; + } + } + } + } + // 店铺 .store{ position: relative; margin: 0 $margin; - // background: #F8F8F8; - background: #999; + background: #F8F8F8; border-radius: $radius/2; padding: $padding; - min-height: 160rpx; + min-height: 220rpx; .logo{ position: absolute; left: $margin; @@ -311,8 +442,8 @@ background-color: #fd683e; border-radius: 8rpx 4rpx 4rpx 6rpx; color: #FFFFFF; - height: 52rpx; - line-height: 52rpx; + height: 48rpx; + line-height: 48rpx; padding: 0 $padding - 15; box-sizing: border-box; display: inline-block; @@ -351,25 +482,44 @@ &:first-child::before { border-color: #fae2b9; } + .tooSee-label-img { + position: absolute; + right: -34rpx; + top: 12rpx; + width: 28rpx; + height: 28rpx; + z-index: 9; + } + &:first-child .tooSee-label-img { + filter: brightness(.2) + } } } - .title{ + .store-title{ font-size: $title-size-lg; font-weight: bold; line-height: 60rpx; color: $text-color; + margin-bottom: 10rpx; } // rate .openbtn{ position: absolute; - right: $margin; - top: $margin * 3; + right: $margin - 10; + top: $margin * 3.5; color: #848484; height: 60rpx; line-height: 60rpx; text-align: center; font-size: $title-size-m; margin-top: -30rpx; + display: flex; + .openbtn-img { + width: 32rpx; + height: 32rpx; + filter: brightness(.5); + margin-top: 14rpx; + } } } // 产品规格 @@ -379,7 +529,7 @@ border-bottom: solid 20rpx #F8F8F8; .size-item{ position: relative; - padding: 0 $padding 0 ($padding + 150); + padding: 0 $padding 0 ($padding + 100); line-height: 90rpx; font-size: $title-size-m; &::after{ @@ -435,4 +585,131 @@ margin-bottom: calc(constant(safe-area-inset-bottom) / 2); } } + + // 优惠券弹出样式 + .coupons-popup { + background-color: #FFFFFF; + border-radius: 40rpx 40rpx 0 0; + padding: $padding; + box-sizing: border-box; + .coupons-header { + text-align: center; + position: relative; + margin-bottom: $margin*1.5; + .title { + font-weight: 700; + } + .close { + position: absolute; + right: 0; + top: 0; + z-index: 2; + width: 38rpx; + height: 38rpx; + } + } + .coupons-cont { + .coupons-name { + color: #616065; + font-size: 30rpx; + } + .coupons-list { + border: 2rpx solid #d6b9be; + border-radius: 10rpx; + overflow: hidden; + position: relative; + margin-top: $margin; + .coupons-tips { + background-color: #211e17; + color: #efe8d8; + position: absolute; + border-radius: 0 0 20rpx 0; + padding: 0 8rpx; + height: 34rpx; + line-height: 34rpx; + left: 0; + top: 0; + .coupons-tips-text { + font-size: 24rpx; + transform:scale(.85); + display: block; + } + } + .coupons-left { + background-color: #fdedee; + color: #e1293f; + width: 190rpx; + text-align: center; + padding: $padding - 10 0; + border-right: 2rpx dashed #eccdd4; + .coupons-number { + font-size: 40rpx; + font-weight: 600; + text { + font-size: 24rpx; + } + &.coupons-small { + font-size: 32rpx; + padding: 20rpx 0; + } + } + .coupons-full { + font-size: 24rpx; + } + } + .coupons-center { + position: absolute; + width: 100%; + left: 0; + top: 0; + padding: $padding - 10 130rpx 0 220rpx; + box-sizing: border-box; + font-size: 28rpx; + .coupons-time { + font-size: 24rpx; + margin-top: 10rpx; + color: #514c51; + } + } + .coupons-right { + position: absolute; + right: 20rpx; + top: 36rpx; + width: 110rpx; + text-align: center; + background-color: #e1293f; + color: #FFFFFF; + border-radius: 80rpx; + font-size: 24rpx; + line-height: 52rpx; + } + } + } + .coupons-true { + background-image: linear-gradient(to right, #e1293f, #fd275d); + color: #FFFFFF; + border-radius: 80rpx; + line-height: 84rpx; + text-align: center; + margin-top: $margin*5; + } + } + + // 新增服务保障样式 + .serve-label { + margin-top: $margin + 10; + font-size: 28rpx; + .serve-label-name { + font-weight: 700; + margin-bottom: $margin - 10; + } + .serve-label-text { + line-height: 44rpx; + } + } + + .serve-cont { + height: 40vh; + overflow-y: scroll; + } diff --git a/pages/goods/tracedTo.vue b/pages/goods/tracedTo.vue new file mode 100644 index 0000000..75e3311 --- /dev/null +++ b/pages/goods/tracedTo.vue @@ -0,0 +1,199 @@ + + + + + \ No newline at end of file diff --git a/pages/login/login.vue b/pages/login/login.vue index 4e85958..5d02017 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -47,7 +47,6 @@ mobileNo: this.phone, code : this.code }).then(res => { - console.log(res) this.$store.commit('setToken', res.token_type + ' ' + res.access_token) if(!res.is_company){ this.$Router.replace({name: "Registered"}) diff --git a/pages/property/coupon/coupon.vue b/pages/property/coupon/coupon.vue new file mode 100644 index 0000000..f2cf61a --- /dev/null +++ b/pages/property/coupon/coupon.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/pages/property/coupon/couponMore.vue b/pages/property/coupon/couponMore.vue new file mode 100644 index 0000000..286ebe2 --- /dev/null +++ b/pages/property/coupon/couponMore.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/pages/property/coupon/detail.vue b/pages/property/coupon/detail.vue new file mode 100644 index 0000000..946afd8 --- /dev/null +++ b/pages/property/coupon/detail.vue @@ -0,0 +1,370 @@ + + + + + diff --git a/pages/property/coupon/index.vue b/pages/property/coupon/index.vue new file mode 100644 index 0000000..9815da1 --- /dev/null +++ b/pages/property/coupon/index.vue @@ -0,0 +1,885 @@ + + + + + diff --git a/pages/property/index.vue b/pages/property/index.vue index eb5072c..74958f5 100644 --- a/pages/property/index.vue +++ b/pages/property/index.vue @@ -58,23 +58,23 @@ - + 我的权证 - + 0 权证持有 - + 0 权证转让 - + 0 已使用 - + 0 已提货 @@ -91,7 +91,7 @@ 关注企业 - + 我的优惠券 @@ -144,6 +144,11 @@ 推广海报 + + + + 临时退出 + 易品新境 beta 1.0.0 diff --git a/pages/property/order/logistics.vue b/pages/property/order/logistics.vue new file mode 100644 index 0000000..67b4833 --- /dev/null +++ b/pages/property/order/logistics.vue @@ -0,0 +1,174 @@ + + + + diff --git a/pages/property/order/mallRefund.vue b/pages/property/order/mallRefund.vue new file mode 100644 index 0000000..654ef8c --- /dev/null +++ b/pages/property/order/mallRefund.vue @@ -0,0 +1,326 @@ + + + + + diff --git a/pages/property/order/mallRefundsInfo.vue b/pages/property/order/mallRefundsInfo.vue new file mode 100644 index 0000000..5155638 --- /dev/null +++ b/pages/property/order/mallRefundsInfo.vue @@ -0,0 +1,720 @@ + + + + + diff --git a/pages/property/order/mallShipments.vue b/pages/property/order/mallShipments.vue new file mode 100644 index 0000000..de7e733 --- /dev/null +++ b/pages/property/order/mallShipments.vue @@ -0,0 +1,486 @@ + + + + + diff --git a/pages/property/order/mallShipmentsInfo.vue b/pages/property/order/mallShipmentsInfo.vue new file mode 100644 index 0000000..e90e231 --- /dev/null +++ b/pages/property/order/mallShipmentsInfo.vue @@ -0,0 +1,667 @@ + + + + + diff --git a/pages/property/order/mallShipmentsRefund.vue b/pages/property/order/mallShipmentsRefund.vue new file mode 100644 index 0000000..0a5cafe --- /dev/null +++ b/pages/property/order/mallShipmentsRefund.vue @@ -0,0 +1,338 @@ + + + + + diff --git a/pages/property/order/numberWeight.vue b/pages/property/order/numberWeight.vue new file mode 100644 index 0000000..a5e26ac --- /dev/null +++ b/pages/property/order/numberWeight.vue @@ -0,0 +1,186 @@ + + + + + diff --git a/pages/property/order/numberWeightInfo.vue b/pages/property/order/numberWeightInfo.vue new file mode 100644 index 0000000..447efe0 --- /dev/null +++ b/pages/property/order/numberWeightInfo.vue @@ -0,0 +1,788 @@ + + + + + diff --git a/pages/store/index.vue b/pages/store/index.vue index 5cc4d16..0f63f2c 100644 --- a/pages/store/index.vue +++ b/pages/store/index.vue @@ -40,7 +40,7 @@ - + @@ -60,6 +60,7 @@