12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361 |
- <template>
- <view class="container">
- <view class="order-type-info">
- <view class="order-type-title">{{orderType.title}}</view>
- <view class="order-type-text">{{orderType.text}}
- </view>
- </view>
- <view class="address-info-box">
- <view class="address-icon">
- <text class="iconfont icondizhi"></text>
- </view>
- <view class="address-content">
- <text class="address-info">
- <text class="address-name">{{orderData.recName}}</text>
- <text class="address-phone">{{orderData.recMobile}}</text>
- </text>
- <view class="address-detail">{{orderData.address}}</view>
- </view>
- </view>
- <view class="goods-info-box">
- <view class="shop-info" @click.stop="gotoShop()">
- <text class="iconfont icondianpu"></text>
- <text class="shop-name">{{orderData.merchantInfoResVO.supplierName}}</text>
- <text class="iconfont iconfangxiang" v-if="orderData.tenantCode != 'admin'"></text>
- </view>
- <view class="goods-list">
- <view class="goods-row" v-for="(item, index) in orderData.merchantInfoResVO.products" :key="index">
- <image class="goods-img" :src="item.imgUrl" mode="aspectFill"></image>
- <view class="goods-info">
- <view class="goods-name">{{item.productName}}</view>
- <view class="goods-type">
- 类型:{{item.productType == 1 ? '普通商品' : (item.productType == 2 ? '拍卖商品' : (item.productType == 3 ? '自助采摘' : '共享种植'))}}
- </view>
- <view class="plant-area" v-if="item.productType == 4">面积:{{item.areaSize}}㎡</view>
- <view class="goods-price-number">
- <text class="goods-unit">¥</text>
- <text class="goods-price">{{item.bizPrice}}</text>
- <text class="goods-number">x{{item.buyNum}}</text>
- <text class="plant-text" v-if="item.productType == 4">有效期:{{item.term}}天</text>
- </view>
- </view>
- </view>
- </view>
- <view class="order-info">
- <u-cell-group :border="false">
- <u-cell-item title="商品金额" :value="'¥' + orderData.orderSum" :arrow="false" :border-bottom="false"></u-cell-item>
- <u-cell-item title="积分抵扣" :value="'-¥' + orderData.integralAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1 || goodType == 3"></u-cell-item>
- <u-cell-item title="优惠券" :value="'-¥' + orderData.couponDiscountAmount" :arrow="false" :border-bottom="false" v-if="goodType == 1 || goodType == 3"></u-cell-item>
- <u-cell-item title="备注" :value="orderData.notes" :arrow="false" :border-bottom="false"></u-cell-item>
- </u-cell-group>
- </view>
- <view class="pay-info">
- <text class="pay-text">实付款</text>
- <text class="pay-price">¥{{orderData.paySum}}</text>
- </view>
- </view>
- <view class="order-info-box" @click="goToMessage()">
- <view class="info-title-box">
- <view class="info-title">留言板</view>
- <text class="iconfont iconfangxiang"></text>
- </view>
- <view class="info-content-box">
- <view class="message-row" v-for="(item, index1) in orderData.leas" :key="index1">
- <image class="message-head" :src="item.headImg" mode="aspectFill"></image>
- <view class="message-info-box">
- <view class="message-name">{{item.name}}</view>
- <view class="message-date">{{item.leaMsgTime}}</view>
- <view class="message-text">{{item.leaMsgContent}}</view>
- <!-- <view class="message-img-box" v-for="(site, index2) in item.orderLeaImgResVOs" :key="index2">
- <image class="message-img" :src="site.imgUrl" mode="aspectFill"></image>
- </view> -->
- </view>
- </view>
- </view>
- </view>
- <view class="order-info-box">
- <view class="info-title-box">
- <view class="info-title">订单信息</view>
- </view>
- <view class="info-content-box">
- <view class="order-info-row">订单编号:{{orderData.orderCode}}</view>
- <view class="order-info-row">创建时间:{{orderData.addOrderTime}}</view>
- <view class="order-info-row" v-if="orderData.orderStatus > 1 && orderData.orderStatus != 6">支付时间:{{orderData.payTime ? orderData.payTime : orderData.addOrderTime}}</view>
- <view class="order-info-row" v-if="orderData.orderStatus > 2 && orderData.orderStatus != 6 && orderData.orderStatus != 4">发货时间:{{orderData.sendTime ? orderData.sendTime : '-'}}</view>
- <view class="order-info-row" v-if="orderData.orderStatus > 3 && orderData.orderStatus != 6 && orderData.orderStatus != 4">收货时间:{{orderData.confirmTime ? orderData.sendTime : '-'}}</view>
- <view class="order-info-row" v-if="orderData.orderStatus == 6">取消时间:{{orderData.cancelTime}}</view>
- </view>
- </view>
- <view class="order-info-box" v-if="orderData.evaluateResVO && orderData.evaluateResVO.evaluateContent">
- <view class="info-title-box">
- <view class="info-title">评价信息</view>
- </view>
- <view class="info-content-box">
- <view class="assess-row">
- <image class="assess-head" mode="aspectFill" :src="orderData.merchantInfoResVO.headImg"></image>
- <view class="assess-info">
- <view class="assess-name">{{orderData.nickname}}</view>
- <view class="assess-date">{{orderData.evaluateResVO.evaluateTime ? orderData.evaluateResVO.evaluateTime : ''}}</view>
- <view class="assess-sore-box">
- <u-rate v-model="orderData.evaluateResVO.score" active-color="#FFAE21" disabled></u-rate>
- </view>
- <view class="assess-text">{{orderData.evaluateResVO.evaluateContent ? orderData.evaluateResVO.evaluateContent : '暂无评价'}}</view>
- <view class="assess-img-box">
- <image class="img-col" mode="aspectFill" :src="item.imgUrl" v-for="(item,i) in orderData.evaluateResVO.evaluateImgs"
- :key="i" @tap="_previewImage(item.imgUrl,i)"></image>
- </view>
- </view>
- <view class="shop-reply-box" v-if="orderData.evaluateResVO.replyContent">
- <view class="shop-head">
- <view class="iconfont icondianpu"></view>
- <view class="shop-name">店家回复</view>
- </view>
- <view class="shop-reply">{{orderData.evaluateResVO.replyContent}}</view>
- </view>
- </view>
- </view>
- </view>
- <!-- </view> -->
- <uni-goods-nav :fill="true" :options="[]" @click="" @buttonClick="orderHandle" class="order-handle" :buttonGroup="buttonGroup" />
- <u-modal v-model="modalShow" :content="modalContent" @confirm="submitHandle" :async-close="true" :show-cancel-button="true"></u-modal>
- <u-top-tips ref="uTips"></u-top-tips>
- <view class="uni-popup-dialog" :hidden="show_qx">
- <view class="uni-dialog-title">
- <text class="uni-dialog-title-text">提示</text>
- </view>
- <view class="uni-dialog-content">
- <text class="uni-dialog-content-text">请在设置中开启摄像头权限和麦克风权限</text>
- </view>
- <view class="uni-dialog-button-group">
- <button class="uni-dialog-button uni-border-left" open-type="openSetting" @click="closeSetting">
- 设置权限
- </button>
- </view>
- </view>
- <view class="qx_bg" :hidden="show_qx">
- </view>
- </view>
- </template>
- <script>
- const NET = require('@/utils/request')
- const API = require('@/config/api')
- export default {
- components: {},
- data() {
- return {
- show_qx: true,
- orderType: {
- title: '',
- text: '',
- },
- orderData: {
- orderId: '',
- addOrderTime: '',
- recName: '',
- recMobile: '',
- address: '',
- merchantInfoResVO: {
- supplierName: '',
- products: [],
- },
- evaluateResVO: {},
- orderSum: 0,
- integralAmount: 0,
- couponDiscountAmount: 0,
- notes: 'xxxxx',
- paySum: 0,
- leas: [],
- orderCode: '',
- payTime: '',
- sendTime: '',
- confirmTime: '',
- cancelTime: '',
- tenantCode: '',
- evaluateReplyStatus: 1,
- },
- goodType: 1, // 1是普通商品类型;3是包含自助采摘+普通商品的类型;2是拍卖、共享种植
- buttonGroup: [],
- modalShow: false,
- handleType: '',
- modalContent: '',
- }
- },
- onLoad(options) {
- this.userData = uni.getStorageSync("userData")
- NET.request(API.getOrderDetail, {
- flag: 1,
- orderId: options.orderId,
- orderStatus: options.orderStatus,
- }, 'GET').then(res => {
- this.orderData = res.data
- if (this.orderData.addOrderTime) {
- let tempTime = new Date(this.orderData.addOrderTime.replace(/\-/g, '/')).getTime()
- let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
- let addYear = addTempTime.getFullYear()
- let addMonth = addTempTime.getMonth() + 1
- let addDay = addTempTime.getDate()
- let addHours = addTempTime.getHours()
- let addMin = addTempTime.getMinutes()
- let addSeconds = addTempTime.getSeconds()
- this.orderData.overTime = addYear + '年' + addMonth + '月' + addDay + '日' + addHours + ':' + addMin + ':' +
- addSeconds
- // this.orderData.tempTimeArr = this.orderData.addOrderTime.split(' ')
- // let tempDate = new Date(this.orderData.tempTimeArr[0].replace(/-/g, "/"))
- // this.orderData.overTime = new Date(tempDate.setDate(tempDate.getDate() + 1))
- }
- // 1是普通商品类型;3是包含自助采摘+普通商品的类型;2是拍卖、共享种植
- if (this.orderData.merchantInfoResVO.products.length) {
- if (this.orderData.merchantInfoResVO.products.every(v => {
- return (v.productType == 1)
- })) {
- this.goodType = 1
- } else if (this.orderData.merchantInfoResVO.products.some(v => {
- return (v.productType == 3)
- })) {
- this.goodType = 3
- } else if (this.orderData.merchantInfoResVO.products[0].productType == 2 || this.orderData.merchantInfoResVO.products[
- 0].productType == 4) {
- this.goodType = 2
- }
- }
- // if (this.orderData.merchantInfoResVO.products.length && this.orderData.merchantInfoResVO.products[0].productType !=
- // 2 && this.orderData.merchantInfoResVO.products[0].productType != 4) {
- // debugger
- // if (this.orderData.merchantInfoResVO.products.some(v=>{v.productType == 3})) {
- // this.goodType = 3
- // } else {
- // this.goodType = 1
- // }
- // } else {
- // this.goodType = 2
- // }
- switch (JSON.stringify(this.orderData.orderStatus)) {
- case '1':
- if (this.goodType == 3) {
- this.buttonGroup = [{
- text: '取消订单',
- backgroundColor: '#75BD60',
- color: '#fff'
- }, {
- text: '立即支付',
- backgroundColor: '#52A63A',
- color: '#fff'
- }, {
- text: '自助采摘',
- backgroundColor: '#75BD60',
- color: '#fff'
- }]
- } else {
- this.buttonGroup = [{
- text: '取消订单',
- backgroundColor: '#75BD60',
- color: '#fff'
- }, {
- text: '立即支付',
- backgroundColor: '#52A63A',
- color: '#fff'
- }]
- }
- break;
- case '2':
- var someVaule = this.orderData.merchantInfoResVO.products.some(v => {
- Number(v.productType)
- return v.productType == 1
- })
- if (!someVaule) {
- if (this.orderData.merchantInfoResVO.products.every(v => {
- Number(v.productType)
- return v.productType == 3
- })) {
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#75BD60',
- color: '#fff'
- }, {
- text: '自助采摘',
- backgroundColor: '#52A63A',
- color: '#fff'
- }]
- } else {
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#75BD60',
- color: '#fff'
- }]
- }
- } else {
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#75BD60',
- color: '#fff'
- }]
- }
- break;
- case '3':
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#52A63A',
- color: '#fff'
- }, {
- text: '确认收货',
- backgroundColor: '#52A63A',
- color: '#fff'
- }, {
- text: '追踪物流',
- backgroundColor: '#52A63A',
- color: '#fff'
- }]
- break;
- case '4':
- if (this.orderData.merchantInfoResVO.products.every(v => {
- Number(v.productType)
- return v.productType == 4
- })) {
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#75BD60',
- color: '#fff'
- }, {
- text: '我的种植',
- backgroundColor: '#52A63A',
- color: '#fff'
- }]
- } else {
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#75BD60',
- color: '#fff'
- }]
- }
- break;
- default:
- this.buttonGroup = [{
- text: '申请售后',
- backgroundColor: '#52A63A',
- color: '#fff'
- }]
- }
- if (this.orderData.orderStatus == 4 && this.orderData.evaluateReplyStatus == 1) {
- if (this.orderData.orderType != 3 && this.orderData.orderType != 4)
- this.buttonGroup.push({
- text: '评价',
- backgroundColor: '#52A63A',
- color: '#fff'
- })
- }
- this.getOrderType()
- }).catch(error => {
- this.$refs.uTips.show({
- title: error.data.msg,
- type: 'warning',
- })
- })
- // this.getOrderType()
- },
- onShow() {},
- methods: {
- closeSetting: function() {
- this.show_qx = true;
- },
- // 获取订单类型
- getOrderType() {
- if (!this.orderData.auctionStatus) {
- switch (this.orderData.orderStatus) {
- case 1:
- this.orderType = {
- title: '等待买家付款',
- text: '订单将于' + this.orderData.overTime + '关闭',
- date: this.orderData.overTime
- }
- break;
- case 2:
- this.orderType = {
- title: '等待卖家发货',
- text: '您的商品正在打包等待发货',
- }
- break;
- case 3:
- this.orderType = {
- title: '等待商品送达',
- text: '您的商品已发出正在路上,请耐心等待',
- }
- break;
- case 4:
- this.orderType = {
- title: '商品已送达',
- text: '',
- }
- break;
- case 5:
- this.orderType = {
- title: '交易已完成',
- text: '',
- }
- break;
- default:
- this.orderType = {
- title: '交易已取消',
- text: '',
- }
- }
- } else {
- switch (this.orderData.auctionStatus) {
- case 1:
- this.orderType = {
- title: '竞拍中',
- text: '',
- }
- break;
- case 2:
- switch (this.orderData.orderStatus) {
- case 2:
- this.orderType = {
- title: '竞拍成功-等待卖家发货',
- text: '您的商品正在打包等待发货',
- }
- break;
- case 3:
- this.orderType = {
- title: '竞拍成功-等待商品送达',
- text: '您的商品已发出正在路上,请耐心等待',
- }
- break;
- case 4:
- this.orderType = {
- title: '竞拍成功-商品已送达',
- text: '',
- }
- break;
- case 5:
- this.orderType = {
- title: '竞拍成功-交易已完成',
- text: '',
- }
- break;
- }
- break;
- case 3:
- this.orderType = {
- title: '竞拍失败',
- text: '',
- }
- break;
- }
- }
- },
- // 操作
- orderHandle(e) {
- if (this.orderData.orderStatus == 1) {
- if (e.index == 0) {
- // 取消订单
- this.modalContent = '请确定是否取消订单'
- this.handleType = 1
- this.modalShow = true
- } else if (e.index == 1) {
- // 立即支付
- this.modalContent = '请确定是否立即支付'
- this.handleType = 2
- this.modalShow = true
- } else if (e.index == 2) {
- // 跳转自助采摘
- this.goPickVideo()
- }
- } else {
- if (e.index == 0) {
- // 申请售后
- NET.request(API.applyService, {
- tenantCode: this.orderData.tenantCode
- }, 'GET').then(res => {
- uni.makePhoneCall({
- phoneNumber: res.data.contactTel
- });
- }).catch(error => {
- this.$refs.uTips.show({
- title: error.data.msg,
- type: 'warning',
- })
- })
- } else {
- if (this.orderData.orderStatus == 2) {
- // 自助采摘
- this.goPickVideo()
- } else if (this.orderData.orderStatus == 3) {
- if (e.index == 1) {
- // 确认收货
- this.modalContent = '请确定是否确认收货'
- this.handleType = 3
- this.modalShow = true
- } else {
- // 追踪物流
- uni.navigateTo({
- url: '/pagesMain/logisticsDeatil?logisticCode=' + this.orderData.logisticsNum
- });
- }
- } else if (this.orderData.orderStatus == 4) {
- if (e.index == 1 && this.goodType == 2) {
- // 去我的种植
- uni.navigateTo({
- url: '/pagesGood/goodDetails?minePlant=true&goodId=' + this.orderData.merchantInfoResVO.products[0].productId +
- '&orderId=' + this.orderData.orderId
- });
- } else {
- // 评价
- uni.navigateTo({
- url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode +
- '&productIds=' + this.orderData.merchantInfoResVO.products.map(site => {
- return site.productId
- }).join(',')
- });
- }
- } else {
- // 评价
- uni.navigateTo({
- url: '/pagesMain/evaluateForm?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode +
- '&productIds=' + this.orderData.merchantInfoResVO.products.map(site => {
- return site.productId
- }).join(',')
- });
- }
- }
- }
- },
- // 状态流转
- submitHandle() {
- if (this.handleType == 1) {
- // 取消订单
- NET.request(API.cancelOrder, {
- orderId: this.orderData.orderId
- }, 'GET').then(res => {
- this.modalShow = false
- this.$refs.uTips.show({
- title: '取消订单成功',
- type: 'success',
- })
- setTimeout(() => {
- uni.reLaunch({
- url: '/pagesMain/orderList?type=' + 1
- });
- }, 1000)
- }).catch(error => {
- this.modalShow = false
- this.$refs.uTips.show({
- title: error.data.msg,
- type: 'warning',
- })
- })
- } else if (this.handleType == 2) {
- // 立即支付
- NET.request(API.payOrder, {
- mid: uni.getStorageSync("userData").userId,
- orderCode: this.orderData.orderCode,
- orderId: this.orderData.orderId,
- // #ifdef APP-PLUS
- channel: 2
- //#endif
- }, 'POST').then(res => {
- this.modalShow = false
- // #ifdef MP-WEIXIN
- uni.requestPayment({
- provider: 'wxpay',
- timeStamp: res.data.timeStamp,
- nonceStr: res.data.nonceStr,
- package: res.data.packageValue,
- signType: res.data.signType,
- paySign: res.data.paySign,
- success: (payRes) => {
- console.log('success:' + JSON.stringify(payRes));
- // if (this.goodType == 3) {
- // uni.navigateTo({
- // url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId + '&goodType=' + this.goodType + '&tenantCode=' + this.orderData.tenantCode
- // });
- // } else {
- uni.navigateTo({
- url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
- });
- // }
- },
- fail: (error) => {
- console.log('fail:' + JSON.stringify(error));
- this.$refs.uTips.show({
- title: '支付失败',
- type: 'warning',
- })
- }
- })
- //#endif
- // #ifdef APP-PLUS
- uni.requestPayment({
- provider: 'wxpay',
- orderInfo: {
- "package": res.data.packageValue,
- "appid": res.data.appId,
- "sign": res.data.sign,
- "partnerid": res.data.partnerId,
- "prepayid": res.data.prepayId,
- "noncestr": res.data.nonceStr,
- "timestamp": res.data.timeStamp,
- },
- success: (payRes) => {
- console.log('success:' + JSON.stringify(payRes));
- uni.navigateTo({
- url: '/pagesMain/paySuccess?orderId=' + this.orderData.orderId
- });
- },
- fail: (error) => {
- console.log('fail:' + JSON.stringify(error));
- this.$refs.uTips.show({
- title: '支付失败',
- type: 'warning',
- })
- }
- })
- // #endif
- }).catch(error => {
- this.modalShow = false
- this.$refs.uTips.show({
- title: error.data.msg,
- type: 'warning',
- })
- })
- // setTimeout(() => {
- // uni.reLaunch({
- // url: '/pagesMain/orderList?type=' + 3
- // });
- // }, 1000)
- } else if (this.handleType == 3) {
- // 确认收货
- NET.request(API.confirmOrder, {
- orderId: this.orderData.orderId
- }, 'GET').then(res => {
- this.modalShow = false
- this.$refs.uTips.show({
- title: '确认收货成功',
- type: 'success',
- })
- setTimeout(() => {
- uni.reLaunch({
- url: '/pagesMain/orderList?type=' + 5
- });
- }, 1000)
- }).catch(error => {
- this.modalShow = false
- this.$refs.uTips.show({
- title: error.data.msg,
- type: 'warning',
- })
- })
- }
- },
- // 跳转自助采摘直播
- goPickVideo() {
- var that = this;
- if (uni.getStorageSync("firstTimeLiveUser") == "") {
- uni.setStorage({
- key: 'firstTimeLiveUser',
- data: 1
- })
- uni.navigateTo({
- url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
- });
- } else {
- uni.navigateTo({
- url: '/pagesGood/pickVideo?orderId=' + that.orderData.orderId + '&tenantCode=' + that.orderData.tenantCode
- });
- }
- },
- // 跳转留言列表
- goToMessage() {
- uni.navigateTo({
- url: '/pagesMain/messageList?orderId=' + this.orderData.orderId + '&tenantCode=' + this.orderData.tenantCode
- });
- },
- // 跳转商铺
- gotoShop() {
- if (this.orderData.tenantCode != 'admin') {
- if (this.orderData.merchantInfoResVO.products.length) {
- uni.navigateTo({
- url: '/pagesGood/shopDetails?goodId=' + this.orderData.merchantInfoResVO.products[0].productId
- });
- }
- }
- },
- // 图片预览
- _previewImage(image, index) {
- var imgArr = [];
- imgArr.push(image);
- //预览图片
- uni.previewImage({
- urls: imgArr,
- current: imgArr[index]
- });
- }
- }
- }
- </script>
- <style>
- page {
- background-color: #f7f7f7;
- }
- </style>
- <style lang="less" scoped>
- page {
- width: 100%;
- height: 100%;
- }
- .container {
- width: 100%;
- height: 100%;
- float: left;
- background-color: #f7f7f7;
- // box-sizing: border-box;
- padding-bottom: 50px;
- overflow-y: auto;
- .order-type-info {
- width: 100%;
- height: 115px;
- float: left;
- box-sizing: border-box;
- padding: 22px 100px 0 15px;
- background: #52A63A;
- border-radius: 0px 0px 20px 20px;
- background-size: 62px;
- background-position: calc(100% - 48px) 12px;
- background-repeat: no-repeat;
- background-image: url(@/static/images/orderDetail.png);
- .order-type-title {
- width: 100%;
- float: left;
- height: 20px;
- line-height: 20px;
- font-size: 15px;
- font-family: PingFang SC;
- color: #FFFFFF;
- margin-bottom: 4px;
- }
- .order-type-text {
- width: 100%;
- float: left;
- height: 20px;
- line-height: 20px;
- font-size: 12px;
- font-family: PingFang SC;
- color: #FFFFFF;
- }
- }
- .address-info-box {
- width: calc(100% - 30px);
- float: left;
- box-sizing: border-box;
- padding: 16px 18px 16px 16px;
- margin: -34px 15px 10px 15px;
- background: #FFFFFF;
- border-radius: 10px;
- .address-icon {
- width: 36px;
- height: 40px;
- float: left;
- align-items: center;
- display: flex;
- .iconfont {
- color: #52A63A;
- font-size: 36px;
- }
- }
- .address-content {
- width: calc(100% - 56px);
- height: 40px;
- float: left;
- margin: 0 8px 0 12px;
- .address-info {
- height: 20px;
- font-family: PingFang SC;
- line-height: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- .address-name {
- font-size: 16px;
- color: #333333;
- margin-right: 14px;
- }
- .address-phone {
- font-size: 12px;
- color: #666666;
- }
- }
- .address-detail {
- height: 20px;
- font-size: 16px;
- font-family: PingFang SC;
- color: #333333;
- line-height: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- }
- }
- .goods-info-box {
- width: calc(100% - 30px);
- float: left;
- margin: 0 15px 10px 15px;
- background: #FFFFFF;
- border-radius: 10px;
- .shop-info {
- width: 100%;
- height: 48px;
- float: left;
- box-sizing: border-box;
- padding: 13px 15px 12px 15px;
- border-bottom: 1px solid #EEEEEE;
- line-height: 22px;
- .icondianpu {
- font-size: 22px;
- color: #333333;
- }
- .shop-name {
- font-size: 15px;
- font-family: PingFang SC;
- color: #333333;
- margin: 0 8px 0 10px;
- }
- .iconshangjia {
- font-size: 12px;
- color: #999999;
- }
- }
- .goods-list {
- width: 100%;
- float: left;
- box-sizing: border-box;
- padding: 10px 15px 0 15px;
- .goods-row {
- width: 100%;
- height: 90px;
- float: left;
- display: flex;
- margin-bottom: 10px;
- .goods-img {
- width: 90px;
- height: 90px;
- border-radius: 5px;
- object-fit: cover;
- }
- .goods-info {
- width: calc(100% - 106px);
- height: 90px;
- margin-left: 16px;
- .goods-name {
- width: 100%;
- height: 36px;
- float: left;
- font-size: 14px;
- font-family: PingFang SC;
- color: #333333;
- line-height: 18px;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- word-wrap: break-word;
- }
- .goods-type {
- height: 20px;
- float: left;
- background: #F0F0F0;
- border-radius: 4px;
- padding: 0 8px;
- margin: 6px 0;
- font-size: 10px;
- font-family: PingFang SC;
- color: #666666;
- line-height: 20px;
- }
- .plant-area {
- height: 20px;
- float: right;
- margin: 6px 0;
- font-size: 12px;
- font-family: PingFang SC;
- color: #333333;
- }
- .goods-price-number {
- width: 100%;
- height: 20px;
- float: left;
- line-height: 20px;
- font-family: PingFang SC;
- color: #333333;
- .goods-unit {
- font-size: 12px;
- }
- .goods-price {
- font-size: 15px;
- margin-right: 6px;
- }
- .goods-number {
- font-size: 12px;
- }
- }
- .plant-text {
- float: right;
- font-size: 12px;
- font-family: PingFang SC;
- color: #333333;
- }
- }
- }
- }
- .order-info {
- width: 100%;
- float: left;
- /deep/.u-cell {
- padding: 6px 16px;
- }
- }
- .pay-info {
- width: 100%;
- height: 46px;
- float: left;
- box-sizing: border-box;
- border-top: 1px solid #EEEEEE;
- padding-right: 15px;
- line-height: 44px;
- font-family: PingFang SC;
- font-size: 14px;
- text-align: right;
- white-space: nowrap;
- .pay-text {
- float: left;
- color: #333333;
- margin-left: 15px;
- }
- .pay-price {
- color: #52A63A;
- }
- }
- }
- .order-info-box {
- width: calc(100% - 30px);
- float: left;
- margin: 0 15px 10px 15px;
- background: #FFFFFF;
- border-radius: 10px;
- .info-title-box {
- width: 100%;
- height: 48px;
- float: left;
- box-sizing: border-box;
- padding: 15px 15px 14px 15px;
- border-bottom: 1px solid #EEEEEE;
- line-height: 18px;
- white-space: nowrap;
- .info-title {
- height: 18px;
- float: left;
- font-size: 15px;
- font-family: PingFang SC;
- color: #333333;
- margin-right: 8px;
- padding-left: 10px;
- border-left: 2px solid #74BD60;
- }
- .iconfangxiang {
- float: right;
- font-size: 12px;
- color: #999999;
- }
- }
- .info-content-box {
- width: 100%;
- float: left;
- padding: 15px 0;
- .message-row {
- width: 100%;
- float: left;
- box-sizing: border-box;
- padding: 0 15px;
- margin-bottom: 15px;
- .message-head {
- width: 50px;
- height: 50px;
- object-fit: cover;
- float: left;
- border-radius: 50%;
- overflow: hidden;
- }
- .message-info-box {
- width: calc(100% - 75px);
- float: right;
- .message-name {
- width: 50%;
- height: 30px;
- float: left;
- font-size: 15px;
- font-family: PingFang SC;
- color: #333333;
- line-height: 30px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .message-date {
- width: 50%;
- height: 30px;
- float: left;
- font-size: 12px;
- font-family: PingFang SC;
- color: #666666;
- text-align: right;
- line-height: 30px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .message-text {
- width: 100%;
- height: 20px;
- float: left;
- font-size: 12px;
- font-family: PingFang SC;
- color: #666666;
- line-height: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .message-img-box {
- width: 100%;
- float: left;
- .message-img {
- width: 76px;
- height: 76px;
- object-fit: cover;
- float: left;
- margin: 0 10px 10px 0;
- }
- }
- }
- }
- .message-row:last-child {
- margin-bottom: 0;
- }
- .order-info-row {
- width: 100%;
- float: left;
- box-sizing: border-box;
- padding: 0 15px;
- font-size: 12px;
- font-family: PingFang SC;
- color: #333333;
- line-height: 26px;
- word-break: break-all;
- }
- }
- .assess-row {
- width: calc(100% - 30px);
- margin: 0 15px;
- float: left;
- // border-top: 1px solid #F6F6F6;
- padding: 12px 0;
- .assess-head {
- width: 50px;
- height: 50px;
- float: left;
- object-fit: cover;
- border-radius: 50%;
- }
- .assess-info {
- width: calc(100% - 62px);
- margin-left: 12px;
- float: left;
- .assess-name {
- height: 18px;
- float: left;
- line-height: 18px;
- font-size: 15px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #343434;
- }
- .assess-date {
- height: 18px;
- float: right;
- line-height: 18px;
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #666666;
- }
- .assess-sore-box {
- width: 100%;
- height: 16px;
- float: left;
- margin: 6px 0;
- }
- .assess-text {
- width: 100%;
- float: left;
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #666666;
- line-height: 16px;
- margin: 8px 0 10px 0;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- word-wrap: break-word;
- }
- .assess-img-box {
- width: 100%;
- float: left;
- display: flex;
- .img-col {
- height: 60px;
- width: 60px;
- object-fit: cover;
- margin: 0 10px 10px 0;
- }
- }
- }
- .shop-reply-box {
- width: 100%;
- float: left;
- background: #F5F5F5;
- border-radius: 5px;
- margin-top: 10px;
- .shop-head {
- width: 100%;
- height: 36px;
- float: left;
- box-sizing: border-box;
- padding: 10px 12px;
- .icondianpu {
- width: 16px;
- height: 16px;
- float: left;
- color: #52A63A;
- font-size: 20px;
- margin-right: 8px;
- }
- .shop-name {
- height: 16px;
- float: left;
- font-size: 15px;
- font-family: PingFang SC;
- color: #52A63A;
- line-height: 16px;
- }
- }
- .shop-reply {
- width: 100%;
- float: left;
- box-sizing: border-box;
- padding: 0 12px 12px 12px;
- font-size: 12px;
- font-family: PingFang SC;
- color: #666666;
- line-height: 16px;
- }
- }
- }
- }
- .order-handle {
- width: 100%;
- height: 50px;
- float: left;
- border-top: 1px solid #cccccc;
- position: fixed;
- bottom: 0;
- left: 0;
- }
- }
- .uni-popup-dialog {
- width: 80vw;
- border-radius: 15px;
- background-color: #fff;
- position: fixed;
- margin-left: 10vw;
- top: 34vh;
- z-index: 1001;
- }
- .uni-dialog-title {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- padding-top: 15px;
- padding-bottom: 5px;
- }
- .uni-dialog-title-text {
- font-size: 16px;
- font-weight: 500;
- }
- .uni-dialog-content {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- align-items: center;
- padding: 5px 15px 15px 15px;
- text-align: center;
- }
- .uni-dialog-content-text {
- font-size: 14px;
- color: #6e6e6e;
- }
- .uni-dialog-button-group {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- border-top-color: #f5f5f5;
- border-top-style: solid;
- border-top-width: 1px;
- }
- .uni-dialog-button {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- background: rgba(0, 0, 0, 0);
- border: none;
- flex: 1;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 45px;
- }
- .uni-border-left {
- border-left-color: #f0f0f0;
- border-left-style: solid;
- border-left-width: 0px;
- }
- .uni-dialog-button-text {
- font-size: 14px;
- }
- .uni-button-color {
- color: #007aff;
- }
- .uni-dialog-input {
- flex: 1;
- font-size: 14px;
- }
- .uni-popup__success {
- color: #4cd964;
- }
- .uni-popup__warn {
- color: #f0ad4e;
- }
- .uni-popup__error {
- color: #dd524d;
- }
- .uni-popup__info {
- color: #909399;
- }
- .qx_bg {
- width: 100vw;
- height: 100vh;
- background: rgba(0, 0, 0, 0.25);
- position: fixed;
- top: 0px;
- left: 0px;
- z-index: 1000;
- }
- /deep/.uni-tab__cart-button-right {
- border-right: 1px solid #ffffff;
- }
- /deep/.uni-tab__cart-button-right:last-child {
- border-right: none;
- }
- </style>
|