diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index d551fa1..a11e06f 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -234,7 +234,8 @@ settlementPrice: trial ? 0 : '', // 结算价 settlementPriceUnit: e.settlementPrice || 0, // 结算单价 serviceFee: 0, // 平台服务费(前端计算后展示,不入库) - mallNonAssociatedLinks: e.mallNonAssociatedLinks // 产品链接 + mallNonAssociatedLinks: e.mallNonAssociatedLinks, // 产品链接 + typeName: e.typeName } }, // 判断是否为客户已有的课程 diff --git a/order/curClient/curClient.vue b/order/curClient/curClient.vue index 79a81ab..e551c43 100644 --- a/order/curClient/curClient.vue +++ b/order/curClient/curClient.vue @@ -134,6 +134,11 @@ this.customerId = options.customerId this.customerName = options.name this.initList() + // 清除订单缓存 + try { + uni.removeStorageSync('courses') + uni.removeStorageSync('orderEdited') + } catch (e) {} }, methods: { getList() { diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue index 0729853..a288054 100644 --- a/order/editCourse/editCourse.vue +++ b/order/editCourse/editCourse.vue @@ -1,79 +1,81 @@ - + @@ -136,7 +138,7 @@ 成交价 - {{ item.finalPrice }} + {{ item.finalPrice }} 元 @@ -149,33 +151,40 @@ - - - - 添加产品 + + @@ -242,6 +251,7 @@ isEdit: 0, // 编辑 isHandle: 0, // 处理 isRenew: 0, // 续费 + edited: false, orderId: '', orderTypes: [{ text: '正式', @@ -328,6 +338,7 @@ this.isEdit = action === 'edit' this.isHandle = action === 'handle' this.isRenew = action === 'renew' + this.edited = uni.getStorageSync('orderEdited') const store = uni.getStorageSync('courses') this.getTeam(!store) if (store) { @@ -1060,13 +1071,16 @@ .line { display: flex; justify-content: space-between; - padding: 12rpx 0; - margin: 5px 0; + padding: 28rpx 0; font-size: 12px; + border-bottom: 1px solid #E6E8ED; + &:last-child { + border-bottom: 0; + } } .label { font-size: 28rpx; - color: #999; + color: #333; } .ph { font-size: 28rpx; @@ -1097,26 +1111,33 @@ background-color: #fff; box-shadow: 0 -2px 2px #f5f5f5; box-sizing: border-box; -} -.add-wrap { - padding: 16rpx 24rpx 40rpx; - background-color: #f5f5f5; -} -/deep/.add-btn { - display: flex; - justify-content: center; - align-items: center; - font-size: 28rpx; - line-height: 88rpx; - color: #007EFF; - background-color: #fff; - border: 1px solid #007EFF; - border-radius: 16rpx; - .icon { - margin-right: 10rpx; + .add-wrap { + padding: 16rpx 24rpx 40rpx; + background-color: #f5f5f5; } - .uni-icons { - font-size: 38rpx !important; + .next-wrap { + padding: 24rpx 24rpx 0; + } + /deep/.lg-btn { + display: flex; + justify-content: center; + align-items: center; + font-size: 28rpx; + line-height: 88rpx; + color: #007EFF; + background-color: #fff; + border: 1px solid #007EFF; + border-radius: 16rpx; + .icon { + margin-right: 10rpx; + } + .uni-icons { + font-size: 38rpx !important; + } + &.next { + color: #fff; + background-color: #007EFF; + } } } .product { @@ -1221,12 +1242,6 @@ margin-left: 10rpx; } } -.period { - flex: none; - width: 100rpx; - font-size: 28rpx; - text-align: center; -} .ship-info { height: 400rpx; padding: 30rpx; diff --git a/order/orders/orders.vue b/order/orders/orders.vue index 76cbd9c..dac4b6c 100644 --- a/order/orders/orders.vue +++ b/order/orders/orders.vue @@ -145,9 +145,10 @@ } }, onShow() { - // 清除产品缓存 + // 清除订单缓存 try { uni.removeStorageSync('courses') + uni.removeStorageSync('orderEdited') } catch (e) {} this.initList() }, diff --git a/team/qrcode/qrcode.vue b/team/qrcode/qrcode.vue index bc1bcae..0877d10 100644 --- a/team/qrcode/qrcode.vue +++ b/team/qrcode/qrcode.vue @@ -59,8 +59,8 @@ generateInvitationCode(accountId).then(({ expireTime }) => { const date = new Date(Date.now() + expireTime * 1000) // 返回的秒,要*1000 this.expireTime = `${date.getFullYear()}-${this.$util.preZero(date.getMonth() + 1)}-${this.$util.preZero(date.getDate())} ${this.$util.preZero(date.getHours())}:${this.$util.preZero(date.getMinutes())}:${this.$util.preZero(date.getMinutes())}` - this.link = `https://huorantech.cn/#/join?accountId=${accountId}&id=${this.id}&isTeam=1` - // this.link = `http://121.37.12.51/backstage/#/join?accountId=${accountId}&id=${this.id}&isTeam=1` + // this.link = `https://huorantech.cn/#/join?accountId=${accountId}&id=${this.id}&isTeam=1` + this.link = `http://121.37.12.51/backstage/#/join?accountId=${accountId}&id=${this.id}&isTeam=1` }).catch(e => {}) }, // 二维码组件生成完成钩子。生成后把图片导出给image组件,image组件才可以长按二维码转发