Merge branch 'youmengting-dev' of http://gitea.dctpay.com/yangjie/high-mini into new-dev

master
杨杰 2 years ago
commit 040d02ee1d
  1. 2
      components/goods-list/goods-list.vue
  2. 36
      components/search/search.vue
  3. 2
      pages.json
  4. 24
      physical-merchants/classify/cart/cart.vue
  5. 38
      physical-merchants/classify/goods-search/goods-search.vue
  6. 35
      physical-merchants/classify/order/orderDetail.vue
  7. 4
      physical-merchants/classify/order/paymentResult.vue
  8. 16
      physical-merchants/settleAccounts/settleAccounts.vue

@ -121,7 +121,7 @@
<!-- 购物车 --> <!-- 购物车 -->
<view :class="' gouwuche '+(typeList=='goodsSearch'?' searchCart ':' ') " @click.prevent="goCart"> <view :class="' gouwuche searchCart ' " @click.prevent="goCart">
<!-- cartNum --> <!-- cartNum -->
<uniBadge class="uni-badge-left-margin badgeClass" max-num="99" :text="cartNum+''" type="warning" <uniBadge class="uni-badge-left-margin badgeClass" max-num="99" :text="cartNum+''" type="warning"
size="small" /> size="small" />

@ -5,7 +5,10 @@
<view class="search icon icon-color icon-font"></view> <view class="search icon icon-color icon-font"></view>
</view> </view>
<input type="text" :disabled="disableInput" confirm-type="search" class="round " :placeholder="propPlaceholder" :placeholder-class="propPlaceholderClass" v-model="keywords" @confirm="search_input_event" style="color:#666;background:#ffffff;"> <input type="text" :disabled="disableInput" confirm-type="search" class="round " :placeholder="propPlaceholder" :placeholder-class="propPlaceholderClass" v-model="keywords" @confirm="search_input_event" :style="'color:#666;background:'+inputBg+';'">
<view v-if="isShowdel" class="del-icon search-icon pa" @click="del_input_event">
<view v-if="isDel" class="font15 icon-color font20">×</view>
</view>
</view> </view>
</view> </view>
</template> </template>
@ -16,6 +19,7 @@
data() { data() {
return { return {
keywords:"", keywords:"",
isDel:false,
}; };
}, },
components: {}, components: {},
@ -35,6 +39,14 @@
disableInput:{ disableInput:{
type: Boolean, type: Boolean,
default: false default: false
},
inputBg:{
type: String,
default: '#ffffff'
},
isShowdel:{
type: Boolean,
default: false
} }
}, },
@ -46,6 +58,18 @@
// immediate:true // immediate:true
// } // }
// }, // },
watch:{
keywords:{
handler(n,o){
if(n){
this.isDel = true;
}else{
this.isDel = false;
}
},
immediate:true
}
},
methods: { methods: {
// //
search_input_event() { search_input_event() {
@ -62,6 +86,10 @@
} }
this.$emit('onsearch', this.keywords);// this.$emit('onsearch', this.keywords);//
}, },
del_input_event(){
this.keywords = ""
this.$emit('ondel',this.keywords);//
},
}, },
destroyed() { destroyed() {
@ -70,6 +98,10 @@
}; };
</script> </script>
<style> <style>
.del-icon{
right: 0;
top: 0;
}
.cr-grey{ .cr-grey{
display: flex; display: flex;
@ -109,7 +141,7 @@
.search-content .round { .search-content .round {
font-size: 16px; font-size: 16px;
padding: 0 15px 0 30px; padding: 0 30px;
box-sizing: border-box; box-sizing: border-box;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;

@ -1092,7 +1092,7 @@
{ {
"path": "classify/goods-search/goods-search", "path": "classify/goods-search/goods-search",
"style": { "style": {
"navigationBarTitleText": "搜索", "navigationBarTitleText": "商品列表",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#3da7e7", "navigationBarBackgroundColor": "#3da7e7",
"backgroundColorTop": "#3da7e7", "backgroundColorTop": "#3da7e7",

@ -220,7 +220,7 @@
mask:true, mask:true,
duration:2000 duration:2000
}); });
console.log(20) // console.log(20)
} }
getShoppingCartList().then(res => { getShoppingCartList().then(res => {
if(!status){ if(!status){
@ -498,9 +498,29 @@
}, },
goClassify(){ goClassify(){
uni.reLaunch({ var pages = getCurrentPages();
pages.reverse()
let index = -1;
pages.map((item,ind)=>{
if(item.route == 'pages/tabBar/classify/classify'){
index = ind ;
return
}
})
if(index == -1){
uni.navigateTo({
url:'/pages/tabBar/classify/classify' url:'/pages/tabBar/classify/classify'
}) })
return
}
uni.navigateBack({
delta:index
})
}, },
} }

@ -4,7 +4,7 @@
<!-- 搜索框 --> <!-- 搜索框 -->
<block> <block>
<view class="nav-search jianbian"> <view class="nav-search jianbian">
<component-search @onsearch="search_button_event" :propIsOnEvent="true" :propIsRequired="true" <component-search @onsearch="search_button_event" :propIsRequired="false"
propPlaceholder="输入商品名称搜索"></component-search> propPlaceholder="输入商品名称搜索"></component-search>
</view> </view>
</block> </block>
@ -27,6 +27,8 @@
import { import {
getListGoodsDetail getListGoodsDetail
} from '@/Utils/physicalObject.js' } from '@/Utils/physicalObject.js'
const app = getApp()
export default { export default {
data() { data() {
@ -40,7 +42,20 @@
allData: 0 // allData: 0 //
}, },
companyId :app.globalData.companyId,
goodsLabel:''
}
},
onLoad(options){
console.log(options,"options")
if(options.goodsLabel){
this.goodsLabel = options.goodsLabel
} }
this.search_button_event("")
}, },
components: { components: {
componentSearch, componentSearch,
@ -56,6 +71,7 @@
methods: { methods: {
// //
search_button_event(keywords) { search_button_event(keywords) {
if(keywords==null){keywords=''}
this.keywordsSearh = keywords; this.keywordsSearh = keywords;
this.data_list = []; this.data_list = [];
this.page = { this.page = {
@ -77,21 +93,23 @@
// //
searchData() { searchData() {
if (!this.keywordsSearh) { // if (!this.keywordsSearh) {
uni.showToast({ // uni.showToast({
title: '请输入商品名称', // title: '',
duration: 1000, // duration: 1000,
icon: 'none' // icon: 'none'
}); // });
return // return
} // }
let _this = this let _this = this
let params = { let params = {
title: _this.keywordsSearh, title: _this.keywordsSearh,
pageNum: _this.page.pageStart, pageNum: _this.page.pageStart,
pageSize: _this.page.pageNum, pageSize: _this.page.pageNum,
price: 0 price: 0,
companyId:_this.companyId,
goodsLabel:_this.goodsLabel
} }
// params = JSON.stringify(params) // params = JSON.stringify(params)
// console.log(params) // console.log(params)

@ -87,13 +87,13 @@
<!-- 商品金额 --> <!-- 商品金额 -->
<view class="flex-center-sp pd-tb10"> <view class="flex-center-sp pd-tb10">
<view class="">商品金额</view> <view class="fontsize">商品金额</view>
<view class="fontwig6"><text class="paddtright5">¥</text>{{goodsPrice | numFormat}}</view> <view class="fontwig6"><text class="paddtright5">¥</text>{{goodsPrice | numFormat}}</view>
</view> </view>
<!-- 运费 --> <!-- 运费 -->
<view class="flex-center-sp pd-tb10"> <view class="flex-center-sp pd-tb10">
<view class="">运费 <view class="fontsize">运费
<!-- <text class="icon-ymt question fcor666 font16 paddleft5"></text> --> <!-- <text class="icon-ymt question fcor666 font16 paddleft5"></text> -->
</view> </view>
<view class="fontwig6"> <view class="fontwig6">
@ -106,7 +106,7 @@
<!-- 优惠券 --> <!-- 优惠券 -->
<view class="flex-center-sp pd-tb10"> <view class="flex-center-sp pd-tb10">
<view class="">优惠券</view> <view class="fontsize">优惠券</view>
<view class="fontwig6 fcorred">-<text class="paddtright5">¥</text>{{recinfo.deductionCouponPrice}} <view class="fontwig6 fcorred">-<text class="paddtright5">¥</text>{{recinfo.deductionCouponPrice}}
</view> </view>
</view> </view>
@ -115,13 +115,13 @@
<!-- 积分 --> <!-- 积分 -->
<view class="flex-center-sp pd-tb10"> <view class="flex-center-sp pd-tb10">
<view class="">积分抵扣</view> <view class="fontsize">积分抵扣</view>
<view class="fontwig6 fcorred">-<text class="paddtright5">¥</text>{{(recinfo.payGold / 100).toFixed(2)}} <view class="fontwig6 fcorred">-<text class="paddtright5">¥</text>{{(recinfo.payGold / 100).toFixed(2)}}
</view> </view>
</view> </view>
<!--支付优惠 --> <!--支付优惠 -->
<view class="flex-center-sp pd-tb10"> <view class="flex-center-sp pd-tb10">
<view class="">支付优惠</view> <view class="fontsize">支付优惠</view>
<view class="fontwig6 fcorred">-<text class="paddtright5">¥</text>0</view> <view class="fontwig6 fcorred">-<text class="paddtright5">¥</text>0</view>
</view> </view>
<!-- 价格总额 --> <!-- 价格总额 -->
@ -164,7 +164,7 @@
<!-- 收货信息 --> <!-- 收货信息 -->
<view v-if="recinfo.goodsDeliveryAddress" class="flex-center-sp pd-tb10 bordert"> <view v-if="recinfo.goodsDeliveryAddress" class="flex-center-sp pd-tb10 bordert">
<view class=" align-fs width80px">收货信息</view> <view class="fontsize align-fs width80px">收货信息</view>
<view class="fcor666 flex-1 tr font16"> <view class="fcor666 flex-1 tr font16">
<view class=" "> <view class=" ">
{{recinfo.goodsDeliveryAddress.regionName +' '+recinfo.goodsDeliveryAddress.address}}</view> {{recinfo.goodsDeliveryAddress.regionName +' '+recinfo.goodsDeliveryAddress.address}}</view>
@ -174,14 +174,14 @@
</view> </view>
<!-- 物流信息 --> <!-- 物流信息 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px">物流信息</view> <view class="fontsize width80px">物流信息</view>
<view class="fcor666 font16 " @click="checkWuliu"> <view class="fcor666 font16 " @click="checkWuliu">
查看物流信息<text class="icon-ymt to-right fcor666 font16 paddleft5"></text> 查看物流信息<text class="icon-ymt to-right fcor666 font16 paddleft5"></text>
</view> </view>
</view> </view>
<!-- 订单编号 --> <!-- 订单编号 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px">订单编号</view> <view class="fontsize width80px">订单编号</view>
<view class="fcor666 flex-center-sp font16"> <view class="fcor666 flex-center-sp font16">
<text class="tr flex-1">{{orderId}}</text> <text class="tr flex-1">{{orderId}}</text>
<text class=" margle10 font12 copy-num fcor666" @click="copyText(orderId)">复制</text> <text class=" margle10 font12 copy-num fcor666" @click="copyText(orderId)">复制</text>
@ -189,14 +189,14 @@
</view> </view>
<!-- 下单时间 --> <!-- 下单时间 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px">下单时间</view> <view class="fontsize width80px">下单时间</view>
<view class="font16 fcor666"> <view class="font16 fcor666">
{{recinfo.createTime | formatDate('-')}} {{recinfo.createTime | formatDate('-')}}
</view> </view>
</view> </view>
<!-- 支付方式 --> <!-- 支付方式 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px">支付方式</view> <view class="fontsize width80px">支付方式</view>
<view class="font16 fcor666"> <view class="font16 fcor666">
<view class=" fotrt " v-if="recinfo.payType == 1">支付宝</view> <view class=" fotrt " v-if="recinfo.payType == 1">支付宝</view>
<view class=" fotrt " v-if="recinfo.payType == 2">微信支付</view> <view class=" fotrt " v-if="recinfo.payType == 2">微信支付</view>
@ -207,7 +207,7 @@
</view> </view>
<!-- 备注 --> <!-- 备注 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px">备注</view> <view class="fontsize width80px">备注</view>
<view class="fcor666 font16 "> <view class="fcor666 font16 ">
{{recinfo.remarks || "无"}} {{recinfo.remarks || "无"}}
</view> </view>
@ -218,7 +218,7 @@
<!-- 收货信息 --> <!-- 收货信息 -->
<view v-if="recinfo.goodsDeliveryAddress" class="flex-center-sp pd-tb10 bordert"> <view v-if="recinfo.goodsDeliveryAddress" class="flex-center-sp pd-tb10 bordert">
<view class=" align-fs width80px">收货信息</view> <view class="fontsize align-fs width80px">收货信息</view>
<view class="flex-1 tr fcor666 font16"> <view class="flex-1 tr fcor666 font16">
<view class=" "> <view class=" ">
{{recinfo.goodsDeliveryAddress.regionName +' '+recinfo.goodsDeliveryAddress.address}}</view> {{recinfo.goodsDeliveryAddress.regionName +' '+recinfo.goodsDeliveryAddress.address}}</view>
@ -228,7 +228,7 @@
</view> </view>
<!-- 订单编号 --> <!-- 订单编号 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px">订单编号</view> <view class="fontsize width80px">订单编号</view>
<view class="fcor666 flex-center-sp font16"> <view class="fcor666 flex-center-sp font16">
<text class="tr flex-1">{{orderId}}</text> <text class="tr flex-1">{{orderId}}</text>
<text class=" margle10 font12 copy-num fcor666" @click="copyText(orderId)">复制</text> <text class=" margle10 font12 copy-num fcor666" @click="copyText(orderId)">复制</text>
@ -236,14 +236,14 @@
</view> </view>
<!-- 下单时间 --> <!-- 下单时间 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px ">下单时间</view> <view class="fontsize width80px ">下单时间</view>
<view class="font16 fcor666"> <view class="font16 fcor666">
{{recinfo.createTime | formatDate('-')}} {{recinfo.createTime | formatDate('-')}}
</view> </view>
</view> </view>
<!-- 备注 --> <!-- 备注 -->
<view class="flex-center-sp pd-tb10 "> <view class="flex-center-sp pd-tb10 ">
<view class=" width80px ">备注</view> <view class="fontsize width80px ">备注</view>
<view class="fcor666 font13 font16"> <view class="fcor666 font13 font16">
{{recinfo.remarks || "无"}} {{recinfo.remarks || "无"}}
</view> </view>
@ -567,6 +567,11 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.fontsize{
font-size: 16px;
}
.bottomstu { .bottomstu {
position: fixed; position: fixed;
bottom: 0px; bottom: 0px;

@ -83,8 +83,10 @@
}) })
}, },
orderDetail(){ orderDetail(){
// console.log(this.orderId)
uni.redirectTo({ uni.redirectTo({
url:"/pages/user/order_list/order_list?tbIndex="+'-1' // url:"/pages/user/order_list/order_list?tbIndex="+'-1'
url:"/physical-merchants/classify/order/orderDetail?id="+this.orderId
}) })
}, },
yaoqin(){ yaoqin(){

@ -306,7 +306,7 @@
return 0; return 0;
} }
}, },
//, //
priceSettle() { priceSettle() {
let priceAll = Number(this.priceAll); // let priceAll = Number(this.priceAll); //
let priceOrigin = Number(this.priceOrigin); // let priceOrigin = Number(this.priceOrigin); //
@ -373,6 +373,9 @@
} else { } else {
let num = 0; let num = 0;
this.discountList.map(item => { this.discountList.map(item => {
if(item.useEndTime<(new Date()).getTime()){
}else{
if (item.discountType == 1) { if (item.discountType == 1) {
if (this.priceAll >= item.discountCondition) { if (this.priceAll >= item.discountCondition) {
num += 1; num += 1;
@ -380,6 +383,9 @@
} else if (item.discountType == 2 || item.discountType == 3) { //3220 } else if (item.discountType == 2 || item.discountType == 3) { //3220
num += 1; num += 1;
} }
}
}) })
return num; return num;
@ -747,6 +753,14 @@
return return
} }
//
if(_this.priceSettle ==0){
uni.redirectTo({
url: "/physical-merchants/classify/order/paymentResult?id=" + res.return_data.orderNo
});
return
}
//
uni.redirectTo({ uni.redirectTo({
url: '/physical-merchants/classify/order/pay?obj=' + obj url: '/physical-merchants/classify/order/pay?obj=' + obj

Loading…
Cancel
Save