pifa
fanfan 4 months ago
parent e7464a86d5
commit ab10eebc32
  1. 14
      pages/order/detail.vue
  2. 7
      pages/order/index.vue
  3. 42
      pages/order/reviewOrder.vue
  4. 1
      pages/user/index.vue

@ -296,6 +296,8 @@
v-if="(order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_status == ReceiptStatusEnum.NOT_RECEIVED.value)||order.order_status == OrderStatusEnum.CANCELLED.value"> v-if="(order.pay_status == PayStatusEnum.SUCCESS.value && order.delivery_status == ReceiptStatusEnum.NOT_RECEIVED.value)||order.order_status == OrderStatusEnum.CANCELLED.value">
再次购买 再次购买
</view> </view>
<view class="buyAgain" @click="onShenOrder(order.order_id)" v-if="order.is_standard==1">审单
</view>
<view class="buyAgain" @click="onCopyLink(order.jd_link)" v-if="order.jd_link"> <view class="buyAgain" @click="onCopyLink(order.jd_link)" v-if="order.jd_link">
复制链接 复制链接
</view> </view>
@ -418,15 +420,15 @@
menushow: false, menushow: false,
Store: '', Store: '',
userInfo: {}, userInfo: {},
setting: {} setting: {},
dataType: ''
} }
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad({ onLoad({
orderId orderId}) {
}) {
// ID // ID
this.orderId = orderId this.orderId = orderId
// //
@ -470,6 +472,12 @@
} }
}, },
methods: { methods: {
onShenOrder(orderId) {
uni.navigateTo({
url: '/pages/order/reviewOrder?orderId=' + orderId + '&dataType=' + this.dataType + '&type=' +
2
})
},
// 线 // 线
handleContact() { handleContact() {
// //

@ -257,7 +257,7 @@
showQRCodePopup: false, showQRCodePopup: false,
// url () // url ()
qrcodeImage: '', qrcodeImage: '',
standard_status: '' standard_status: '',
} }
}, },
@ -382,7 +382,7 @@
}, },
onShenOrder(orderId) { onShenOrder(orderId) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/order/reviewOrder?orderId=' + orderId url: '/pages/order/reviewOrder?orderId=' + orderId+'&dataType='+this.getTabValue()+'&type='+1
}) })
}, },
onCopyLink(str) { onCopyLink(str) {
@ -554,7 +554,8 @@
// //
goOrderDetail(orderId) { goOrderDetail(orderId) {
this.$navTo('pages/order/detail', { this.$navTo('pages/order/detail', {
orderId orderId,
dataType:this.getTabValue()
}) })
}, },
onCdDia(orderId) { onCdDia(orderId) {

@ -88,8 +88,7 @@
提交审核 提交审核
</view> </view>
<view class="shendanCode" v-if="storeInfo.standard_image"> <view class="shendanCode" v-if="storeInfo.standard_image">
<image <image @click="previewImage(storeInfo.standard_image.preview_url)"
@click="previewImage(storeInfo.standard_image.preview_url)"
:src="storeInfo.standard_image.preview_url" mode=""></image> :src="storeInfo.standard_image.preview_url" mode=""></image>
<view class="name"> <view class="name">
审单疑问 欢迎咨询 审单疑问 欢迎咨询
@ -108,7 +107,7 @@
<view class="poptext"> <view class="poptext">
我们会尽快审核哦! 我们会尽快审核哦!
</view> </view>
<view class="knowBtn" @click="popShow = false"> <view class="knowBtn" @click="onClickYes()">
我知道了 我知道了
</view> </view>
</view> </view>
@ -160,11 +159,15 @@
value_1: '', value_1: '',
value_2: '', value_2: '',
popShow: false, popShow: false,
orderId: '' orderId: '',
dataType: 'all',
laiType: ''
} }
}, },
onLoad(options) { onLoad(options) {
this.orderId = options.orderId this.orderId = options.orderId
this.dataType = options.dataType || 'all'
this.laiType = options.type
this.storeInfo = JSON.parse(uni.getStorageSync("storeInfo")); this.storeInfo = JSON.parse(uni.getStorageSync("storeInfo"));
}, },
onShow() { onShow() {
@ -190,6 +193,29 @@
} }
}, },
methods: { methods: {
onClickYes() {
let that=this
that.popShow = false
const pages = getCurrentPages(); //
const prevPage = pages[pages.length - 2]; //
if (prevPage) {
if (that.laiType == 1) {
prevPage.onLoad({
dataType: that.dataType
}); // onLoad
}
if (that.laiType == 2) {
prevPage.onLoad({
orderId: that.orderId
}); // onLoad
}
}
//
uni.navigateBack({
delta: 1 // delta 1
});
},
previewImage(image_url) { previewImage(image_url) {
// API // API
uni.previewImage({ uni.previewImage({
@ -198,11 +224,9 @@
}); });
}, },
// radio // radio
radioChange_1(e) { radioChange_1(e) {},
},
// radioradio-group // radioradio-group
radioChange_2(e) { radioChange_2(e) {},
},
toTextPage(type) { toTextPage(type) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/news1/text?pageFlag=' + type url: '/pages/news1/text?pageFlag=' + type
@ -210,6 +234,8 @@
}, },
async nextSumbit() { async nextSumbit() {
let that = this let that = this
that.popShow = true
return
if (!that.value_1) { if (!that.value_1) {
uni.showToast({ uni.showToast({
title: "请选择您的这单客户来源", title: "请选择您的这单客户来源",

@ -1175,7 +1175,6 @@
}); });
}, },
goMember(type) { goMember(type) {
console.log('啦啦啦啦啦啦啦啦啦啦啦啦啦啦啦')
if (this.isLogin == false) { if (this.isLogin == false) {
this.goLogin(); this.goLogin();
return; return;

Loading…
Cancel
Save