Merge branch 'master' of https://gitea.lihaink.cn/mkm/new_shop_app
This commit is contained in:
commit
cb27ebeb6e
@ -341,9 +341,9 @@
|
|||||||
<view class='bnt b-color' @tap='confirmOrder'>确认收货</view>
|
<view class='bnt b-color' @tap='confirmOrder'>确认收货</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-if="orderInfo.status == 2">
|
<block v-if="orderInfo.status == 2">
|
||||||
<view class="bnt cancel" @click="allRefund"
|
<!-- <view class="bnt cancel" @click="allRefund"
|
||||||
v-if="refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch == 1">
|
v-if="refundNum.length != cartInfo.length && orderInfo.refund_status && orderInfo.refund_switch == 1">
|
||||||
批量退款</view>
|
批量退款</view> -->
|
||||||
<navigator v-if="orderInfo.delivery_type == 1 || orderInfo.delivery_type == 4" class='bnt cancel'
|
<navigator v-if="orderInfo.delivery_type == 1 || orderInfo.delivery_type == 4" class='bnt cancel'
|
||||||
hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流
|
hover-class='none' :url="'/pages/users/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流
|
||||||
</navigator>
|
</navigator>
|
||||||
|
@ -1841,10 +1841,25 @@
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//已设置 输入密码
|
//已设置 输入密码
|
||||||
this.$refs.popups.handleOpen();
|
this.$refs.popups.handleOpen();
|
||||||
} else { //无须支付密码
|
} else if (data.pay_type == 'public') { //无须支付密码
|
||||||
|
let that = this;
|
||||||
|
uni.showModal({
|
||||||
|
title: "提示",
|
||||||
|
content: "您确定要使用对公转账的方式付款吗?",
|
||||||
|
success(res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
that.truePayOrder(data);
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: "您已取消!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
this.truePayOrder(data);
|
this.truePayOrder(data);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -190,11 +190,17 @@
|
|||||||
共{{item.total_num || 0}}件商品,总金额
|
共{{item.total_num || 0}}件商品,总金额
|
||||||
<text class='money p-color'>¥{{item.pay_price}}</text>
|
<text class='money p-color'>¥{{item.pay_price}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='bottom acea-row row-right row-middle' v-if="item.pay_type != 10">
|
<view class='bottom acea-row row-right row-middle' v-if="item.pay_type != 10">
|
||||||
<view class='bnt b-color' @click.stop='goPay(item.pay_price,item.group_order_id)'>
|
<view class='bnt b-color' @click.stop='goPay(item.pay_price,item.group_order_id)'>
|
||||||
立即付款</view>
|
立即付款</view>
|
||||||
</view>
|
</view>
|
||||||
<view class='bottom acea-row row-right row-middle' v-else>
|
|
||||||
|
<view class='bottom acea-row row-right row-middle' v-if="item.pay_type == 10">
|
||||||
|
<view class='bnt b-color'
|
||||||
|
style="background-color: #fff;color: #40ae36;border: 2rpx solid #40ae36;"
|
||||||
|
@click.stop='handleCopyAccount(item)'>
|
||||||
|
收款账户</view>
|
||||||
<view class='bnt b-color' @click.stop='uploadEnvidence(item.orderList[0].order_id)'>
|
<view class='bnt b-color' @click.stop='uploadEnvidence(item.orderList[0].order_id)'>
|
||||||
上传凭证</view>
|
上传凭证</view>
|
||||||
</view>
|
</view>
|
||||||
@ -316,12 +322,6 @@
|
|||||||
<view class='bnt b-color' @tap='confirmOrder(item,index)'>确认收货</view>
|
<view class='bnt b-color' @tap='confirmOrder(item,index)'>确认收货</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-if="item.status == 2">
|
<block v-if="item.status == 2">
|
||||||
<!-- <navigator v-if="community_status == 1 && !item.community_id"
|
|
||||||
:url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt'
|
|
||||||
hover-class="none">
|
|
||||||
<text class="iconfont icon-fabu"></text>
|
|
||||||
发布种草
|
|
||||||
</navigator> -->
|
|
||||||
<view class='bnt b-color' @click='goOrderDetails_Evaluation(item.order_id)'>去评价
|
<view class='bnt b-color' @click='goOrderDetails_Evaluation(item.order_id)'>去评价
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
@ -329,12 +329,6 @@
|
|||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'
|
<view class='bnt b-color' @click='goOrderDetails(item.order_id)'
|
||||||
v-if="item.activity_type == 2 || item.activity_type == 3 || item.activity_type == 10">
|
v-if="item.activity_type == 2 || item.activity_type == 3 || item.activity_type == 10">
|
||||||
查看详情</view>
|
查看详情</view>
|
||||||
<!-- <navigator v-if="community_status == 1 && !item.community_id"
|
|
||||||
:url="'/pages/plantGrass/plant_release/index?order_id='+item.order_id" class='bnt colorBnt'
|
|
||||||
hover-class="none">
|
|
||||||
<text class="iconfont icon-fabu"></text>
|
|
||||||
发布种草
|
|
||||||
</navigator> -->
|
|
||||||
<view class='bnt b-color' @click='goOrderDetails(item.order_id)' v-else>再次购买</view>
|
<view class='bnt b-color' @click='goOrderDetails(item.order_id)' v-else>再次购买</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@ -353,9 +347,78 @@
|
|||||||
<payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id"
|
<payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id"
|
||||||
:totalPrice='totalPrice'></payment>
|
:totalPrice='totalPrice'></payment>
|
||||||
<addInvoicing ref="addInvoicing" @changeInvoiceClose="changeInvoiceClose" :invoice='invoice'></addInvoicing>
|
<addInvoicing ref="addInvoicing" @changeInvoiceClose="changeInvoiceClose" :invoice='invoice'></addInvoicing>
|
||||||
|
|
||||||
|
<!-- 用户复制对公账户信息 -->
|
||||||
|
<uni-popup mode="center" ref="popup">
|
||||||
|
<view class="popups">
|
||||||
|
<view class="popups-item">
|
||||||
|
<view class="popups-item-label">公司名称</view>
|
||||||
|
<view class="popups-item-val">{{bankInfo.company_name}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="popups-item">
|
||||||
|
<view class="popups-item-label">对公账户</view>
|
||||||
|
<view class="popups-item-val">{{bankInfo.corporate_account}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="popups-item">
|
||||||
|
<view class="popups-item-label">开户行</view>
|
||||||
|
<view class="popups-item-val">{{bankInfo.corporate_bank}}</view>
|
||||||
|
</view>
|
||||||
|
<view class="popups-item">
|
||||||
|
<view class="popups-item-label">开户行地址</view>
|
||||||
|
<view class="popups-item-val">{{bankInfo.corporate_bank_address}}</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="popups-btn">
|
||||||
|
<!-- #ifndef H5 -->
|
||||||
|
<text class='copy' style="display: block;" @click='handleCopy'>复制</text>
|
||||||
|
<!-- #endif -->
|
||||||
|
|
||||||
|
<!-- #ifdef H5 -->
|
||||||
|
<text class='copy-data' style="display: block;" :data-clipboard-text="h5Copy">复制</text>
|
||||||
|
<!-- #endif -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
<style lang="scss">
|
||||||
|
.popups {
|
||||||
|
width: 600rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 18rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
|
||||||
|
.popups-btn {
|
||||||
|
padding: 16rpx 20rpx;
|
||||||
|
background-color: #40AE36;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popups-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
|
||||||
|
.popups-item-label {
|
||||||
|
width: 240rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #282828;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popups-item-val {
|
||||||
|
color: #868686;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||||||
@ -400,6 +463,7 @@
|
|||||||
import {
|
import {
|
||||||
toLogin
|
toLogin
|
||||||
} from '@/libs/login.js';
|
} from '@/libs/login.js';
|
||||||
|
import ClipboardJS from "@/plugin/clipboard/clipboard.js";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
payment,
|
payment,
|
||||||
@ -409,6 +473,8 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
h5Copy: '',
|
||||||
|
bankInfo: {},
|
||||||
sale_type: 1, //1-普通商品,2-批发商品
|
sale_type: 1, //1-普通商品,2-批发商品
|
||||||
loading: false, //是否加载中
|
loading: false, //是否加载中
|
||||||
loadend: false, //是否加载完毕
|
loadend: false, //是否加载完毕
|
||||||
@ -475,9 +541,7 @@
|
|||||||
...mapGetters(['isLogin', 'viewColor']),
|
...mapGetters(['isLogin', 'viewColor']),
|
||||||
...configMap(['hide_mer_status', 'community_status']),
|
...configMap(['hide_mer_status', 'community_status']),
|
||||||
},
|
},
|
||||||
watch: {
|
|
||||||
|
|
||||||
},
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
if (options.sale_type) this.sale_type = options.sale_type;
|
if (options.sale_type) this.sale_type = options.sale_type;
|
||||||
if (options.status) this.orderStatus = options.status;
|
if (options.status) this.orderStatus = options.status;
|
||||||
@ -497,9 +561,40 @@
|
|||||||
toLogin()
|
toLogin()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReady() {},
|
onReady: function() {
|
||||||
mounted: function() {},
|
// #ifdef H5
|
||||||
|
this.$nextTick(() => {
|
||||||
|
const clipboard = new ClipboardJS(".copy-data");
|
||||||
|
clipboard.on("success", () => {
|
||||||
|
this.$util.Tips({
|
||||||
|
title: '复制成功'
|
||||||
|
}, () => {
|
||||||
|
this.$refs.popup.close();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 赋值银行信息
|
||||||
|
handleCopy() {
|
||||||
|
let that = this;
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: this.h5Copy,
|
||||||
|
success() {
|
||||||
|
that.$refs.popup.close();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 收款账户
|
||||||
|
handleCopyAccount(e) {
|
||||||
|
this.bankInfo = e.orderList[0].order_extend.bank_info;
|
||||||
|
this.h5Copy =
|
||||||
|
`${this.bankInfo.company_name} ${this.bankInfo.corporate_account} ${this.bankInfo.corporate_bank} ${this.bankInfo.corporate_bank_address}`;
|
||||||
|
this.$refs.popup.open();
|
||||||
|
},
|
||||||
|
|
||||||
// 购物车
|
// 购物车
|
||||||
toGwc() {
|
toGwc() {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
@ -24,6 +24,64 @@ import permision from "./permission.js"
|
|||||||
// #endif
|
// #endif
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
|
//复制
|
||||||
|
uniCopy: ({
|
||||||
|
content,
|
||||||
|
success,
|
||||||
|
error
|
||||||
|
}) => {
|
||||||
|
if (!content) return error('复制的内容不能为空 !')
|
||||||
|
content = typeof content === 'string' ? content : content.toString() // 复制内容,必须字符串,数字需要转换为字符串
|
||||||
|
/**
|
||||||
|
* 小程序端 和 app端的复制逻辑
|
||||||
|
*/
|
||||||
|
//#ifndef H5
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: content,
|
||||||
|
success: function() {
|
||||||
|
uni.showToast({
|
||||||
|
title: "复制成功!",
|
||||||
|
icon: "success"
|
||||||
|
})
|
||||||
|
},
|
||||||
|
fail: function() {
|
||||||
|
uni.showToast({
|
||||||
|
title: "复制失败!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* H5端的复制逻辑
|
||||||
|
*/
|
||||||
|
// #ifdef H5
|
||||||
|
if (!document.queryCommandSupported('copy')) { //为了兼容有些浏览器 queryCommandSupported 的判断
|
||||||
|
// 不支持
|
||||||
|
error('浏览器不支持')
|
||||||
|
}
|
||||||
|
let textarea = document.createElement("textarea")
|
||||||
|
textarea.value = content
|
||||||
|
textarea.readOnly = "readOnly"
|
||||||
|
document.body.appendChild(textarea)
|
||||||
|
textarea.select() // 选择对象
|
||||||
|
textarea.setSelectionRange(0, content.length) //核心
|
||||||
|
let result = document.execCommand("copy") // 执行浏览器复制命令
|
||||||
|
if (result) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "复制成功!",
|
||||||
|
icon: "success"
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
uni.showToast({
|
||||||
|
title: "复制失败!",
|
||||||
|
icon: "none"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
textarea.remove()
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
// 是否设置密码
|
// 是否设置密码
|
||||||
checkPassword: async function(e) {
|
checkPassword: async function(e) {
|
||||||
e = e ? e : '';
|
e = e ? e : '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user