diff --git a/App.vue b/App.vue index 8c0d1ab..b76125b 100644 --- a/App.vue +++ b/App.vue @@ -21,7 +21,7 @@ balance_func_status: 0, //余额开关 recharge_switch: 0, // 充值开关 store_user_min_recharge: 0, //最小充值 - yue_pay_status: 0, //消费券支付开关 + yue_pay_status: 0, //余额支付开关 alipay_open: 0, //支付宝支付开关 integration_pay_open:0,//铸源星兑付开关 routine_logo: '', //首页logo diff --git a/api/store.js b/api/store.js index ede35ab..89960d5 100644 --- a/api/store.js +++ b/api/store.js @@ -458,6 +458,14 @@ export function getApplicationRecordList(data) { export function getGoodsDetails(id) { return request.get('intention/detail/' + id, {}); } +/** + * 获取商户申请详情 + * @param int id + * + */ +export function getIntentionBank(data) { + return request.post('intention/bank', data); +} /** * 修改入驻信息 * @param int id diff --git a/components/PriceChange/index.vue b/components/PriceChange/index.vue index 7efba1b..f65e2d1 100644 --- a/components/PriceChange/index.vue +++ b/components/PriceChange/index.vue @@ -40,7 +40,7 @@ - 铸源星支付(¥) + 铸源星抵扣(¥) {{ orderInfo.integral_price }} diff --git a/components/discountDetails/index.vue b/components/discountDetails/index.vue index 4ff1947..fac1f1a 100644 --- a/components/discountDetails/index.vue +++ b/components/discountDetails/index.vue @@ -16,7 +16,7 @@ - 铸源星支付: + 铸源星抵扣: -¥{{couponData.order_total_integral_price}} diff --git a/components/pay/index.vue b/components/pay/index.vue index a6bf1cb..7217e48 100644 --- a/components/pay/index.vue +++ b/components/pay/index.vue @@ -10,7 +10,7 @@ 请输入支付密码 - 铸源星支付:{{price*integral_cash_time}} + 铸源星抵扣:{{price*integral_cash_time}} 付款{{price}} diff --git a/config/app.js b/config/app.js index e7d76ea..0b23215 100644 --- a/config/app.js +++ b/config/app.js @@ -6,12 +6,12 @@ let VUE_APP_WS_URL = `ws://${location.hostname}?type=user` let openPlantGrass = '-openPlantGrass-' // 网络接口修改此字符 小程序域名要求https -// let httpApi = 'http://192.168.1.107:8080' //测试 -let httpApi = 'https://api.tropjoin.com' //生产 +let httpApi = 'http://192.168.1.107:8080' //测试 +// let httpApi = 'https://api.tropjoin.com' //生产 // 聊天接口修改此字符 小程序聊天要求wss 例如:wss://mer. .net -// let wsApi = 'ws://192.168.1.107:8080' -let wsApi = 'wss://ws.tropjoin.com' +let wsApi = 'ws://192.168.1.107:8080' +// let wsApi = 'wss://ws.tropjoin.com' module.exports = { // 请求域名 格式: https://您的域名 diff --git a/manifest.json b/manifest.json index 769de21..6d74197 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "铸源优品", + "name" : "铸源商城", "appid" : "__UNI__496DF55", "description" : "", "versionName" : "1.0.2", diff --git a/mixins/history.js b/mixins/history.js index cc605ec..7bfdab7 100644 --- a/mixins/history.js +++ b/mixins/history.js @@ -9,9 +9,9 @@ export default { methods: { getHistory() { console.log(this.$util.getNowUrl(),'page') - history({ - page:this.$util.getNowUrl() - }).then(res=>{}) + // history({ + // page:this.$util.getNowUrl() + // }).then(res=>{}) }, } }; \ No newline at end of file diff --git a/pages/admin/orderDetail/index.vue b/pages/admin/orderDetail/index.vue index 4207795..caf97b6 100644 --- a/pages/admin/orderDetail/index.vue +++ b/pages/admin/orderDetail/index.vue @@ -86,7 +86,7 @@ 支付方式: - {{ orderInfo.pay_type == 0 ? "消费券支付" : (orderInfo.pay_type == 1 || orderInfo.pay_type == 2 || orderInfo.pay_type == 3) ? "微信支付" : "支付宝支付" }} + {{ orderInfo.pay_type == 0 ? "余额支付" : (orderInfo.pay_type == 1 || orderInfo.pay_type == 2 || orderInfo.pay_type == 3) ? "微信支付" : "支付宝支付" }} 买家留言: @@ -112,7 +112,7 @@ -¥{{ orderInfo.coupon_price }} - 铸源星支付: + 铸源星抵扣: -¥{{ orderInfo.integral_price }} diff --git a/pages/order_details/index.vue b/pages/order_details/index.vue index ca1cdc4..3528d0c 100644 --- a/pages/order_details/index.vue +++ b/pages/order_details/index.vue @@ -208,7 +208,7 @@ 支付方式: - 消费券支付 + 余额支付 支付宝支付 微信支付 @@ -362,7 +362,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', diff --git a/pages/order_details/stay.vue b/pages/order_details/stay.vue index 7180192..61fb646 100644 --- a/pages/order_details/stay.vue +++ b/pages/order_details/stay.vue @@ -152,7 +152,7 @@ -¥{{orderInfo.coupon_price}} - 铸源星支付: + 铸源星抵扣: -¥{{orderInfo.integral_price}} @@ -221,7 +221,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', diff --git a/pages/points_mall/exchange_record.vue b/pages/points_mall/exchange_record.vue index 467e1cb..c118521 100644 --- a/pages/points_mall/exchange_record.vue +++ b/pages/points_mall/exchange_record.vue @@ -87,7 +87,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', diff --git a/pages/points_mall/integral_order.vue b/pages/points_mall/integral_order.vue index cb88c5a..d0bd1a1 100644 --- a/pages/points_mall/integral_order.vue +++ b/pages/points_mall/integral_order.vue @@ -188,7 +188,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - "name": "消费券支付", + "name": "余额支付", "icon": "icon-icon-test", value: 'balance', title: '可用余额:', diff --git a/pages/points_mall/integral_order_details.vue b/pages/points_mall/integral_order_details.vue index 8098d72..13a09f3 100644 --- a/pages/points_mall/integral_order_details.vue +++ b/pages/points_mall/integral_order_details.vue @@ -172,7 +172,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', diff --git a/pages/store/component/superwei-combox.vue b/pages/store/component/superwei-combox.vue new file mode 100644 index 0000000..9100dd9 --- /dev/null +++ b/pages/store/component/superwei-combox.vue @@ -0,0 +1,379 @@ + + + + + diff --git a/pages/store/settled/index.vue b/pages/store/settled/index.vue index 351e6bb..fd94613 100644 --- a/pages/store/settled/index.vue +++ b/pages/store/settled/index.vue @@ -244,7 +244,7 @@ - + + - + --> + 提示:请填写完整的支行名称(如:中国农业银行天津迎宾支行) + + + 银行名称 + + + + 提示:请核验信息是否正确 + + 联行号 - + 提示:请核验信息是否正确 @@ -156,12 +156,13 @@ import { toLogin } from '@/libs/login.js'; import {queryBankCard,queryCNAPS,getAgreementApi} from '@/api/user.js'; import { configMap,throttle } from "@/utils"; - import {updateGoodsRecord,create,getGoodsDetails} from '@/api/store.js'; - + import {updateGoodsRecord,create,getGoodsDetails,getIntentionBank} from '@/api/store.js'; + import superweiCombox from '../component/superwei-combox.vue' const app = getApp(); export default { components: { areaWindow, + superweiCombox }, data() { return { @@ -189,6 +190,7 @@ tagStyle: { img: 'width:100%;display:block;' }, + candidatesList:[], dataInfo:{}, mer_i_id:'', loading:false, @@ -229,6 +231,17 @@ }, }, methods: { + bankInput(e) { + getIntentionBank({name:e}).then((res)=>{ + this.candidatesList = res.data + console.log(res.data); + }) + }, + bankSelect(e) { + this.shopInfo.bankName = e.name + this.shopInfo.CNAPS = e.code + this.validateBtn() + }, goHome(){ uni.navigateTo({ url:'/pages/store/settled/index' diff --git a/pages/store/shopStreet/index.vue b/pages/store/shopStreet/index.vue index 308e1df..adf71d4 100644 --- a/pages/store/shopStreet/index.vue +++ b/pages/store/shopStreet/index.vue @@ -11,13 +11,13 @@ - + @@ -266,7 +266,7 @@ this.sotreParam.type_id = options.type_id && options.type_id.split(',').toString() || '' this.sotreParam.category_id= options.cate_id && options.cate_id.split(',').toString() || '' this.storeList = []; - if(this.mer_location)this.selfLocation() + // if(this.mer_location)this.selfLocation() setTimeout(()=>{ this.storeMerchantList(); },500) @@ -751,6 +751,10 @@ border: none!important; border-radius: 0!important; } + .txt { + // flex: 1; + max-width: 440rpx; + } .mer-item { margin-bottom: 20rpx; background-color: #fff; @@ -784,9 +788,6 @@ border-radius: 50%; margin-right: 10rpx; } - .txt { - flex: 1; - } } } /deep/.easy-loadimage{ diff --git a/pages/users/login/index.vue b/pages/users/login/index.vue index 6b0aa9d..4159636 100644 --- a/pages/users/login/index.vue +++ b/pages/users/login/index.vue @@ -53,8 +53,7 @@
- 我已同意《隐私政策》 - + 我已同意《用户协议》《隐私政策》
diff --git a/pages/users/order_confirm/index.vue b/pages/users/order_confirm/index.vue index 90e1bbd..388d0af 100644 --- a/pages/users/order_confirm/index.vue +++ b/pages/users/order_confirm/index.vue @@ -402,17 +402,29 @@ -¥{{coupon_price}}
- 铸源星支付: + 铸源星抵扣: 当前铸源星{{userInfo.integral}} 使用了{{integral_count}}个铸源星,抵扣{{integral_price}}元 - + + + 抵扣卷抵扣: + + 当前抵扣卷{{userInfo.now_money}} + 使用了{{use_count}}个抵扣卷,抵扣{{use_amount}}元 + + + + + + 平台优惠券 @@ -557,7 +569,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - "name": "消费券支付", + "name": "余额支付", "icon": "icon-icon-test", value: 'balance', title: '可用余额:', @@ -629,6 +641,7 @@ coupon_price: 0, //优惠券抵扣金额 useIntegral: false, //是否使用铸源星 integral_price: 0, //铸源星抵扣金额 + use_amount: 0, //抵扣卷抵扣金额 integral: 0, status: 0, is_address: false, @@ -640,6 +653,7 @@ animated: false, totalPrice: 0, use_integral: false, + now_integral: false, pagesUrl: "", orderKey: "", offlinePostage: "", @@ -669,6 +683,7 @@ store_coupon_amount: 0, plant_coupon_amount: 0, integral_count: '', + use_count: '', agrementTtile: '发票说明', pics: [], order_model: 2, @@ -793,7 +808,12 @@ this.isAgree = !this.isAgree; }, changeIntegral: function(e) { - this.use_integral = !this.use_integral; + console.log(e); + if(e=='use'){ + this.use_integral = !this.use_integral; + }else{ + this.now_integral = !this.now_integral; + } this.getConfirm(this.addressId); }, showPresellAgree(){ @@ -1065,7 +1085,8 @@ address_id: address_id, takes: that.take, use_coupon: that.subCoupon, - use_integral: that.use_integral + use_integral: that.use_integral, + use_amount:that.now_integral }).then(res => { // 默认选中 that.is_take = false @@ -1102,7 +1123,9 @@ that.$set(that, 'order_type', res.data.order_type); that.$set(that, 'coupon_price', res.data.order_coupon_price); that.$set(that, 'integral_count', res.data.order_total_integral); + that.$set(that, 'use_count', res.data.order_total_amount); that.$set(that, 'integral_price', res.data.order_total_integral_price); + that.$set(that, 'use_amount', res.data.order_total_amount_price); that.$set(that, 'open_integral', res.data.openIntegral); that.$set(that, 'use_integral', res.data.useIntegral); that.$set(that, 'order_extend', (that.order_extend && that.order_extend.length>0) ? that.order_extend : res.data.order_extend); @@ -1681,6 +1704,7 @@ key: this.order_key, takes: this.take, use_integral: this.use_integral, + use_amount:this.now_integral, receipt_data: this.invoiceData, extend: this.extend, post: this.post, diff --git a/pages/users/order_list/index.vue b/pages/users/order_list/index.vue index 2cf20b8..b62c141 100644 --- a/pages/users/order_list/index.vue +++ b/pages/users/order_list/index.vue @@ -307,7 +307,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', @@ -315,7 +315,7 @@ payStatus: this.$store.getters.globalData.yue_pay_status }, { - name: "铸源星支付", + name: "铸源星抵扣", icon: "haiyuefont haiyue-jifenduihuan", value: 'integral', title: '可用铸源星:', diff --git a/pages/users/order_list/search.vue b/pages/users/order_list/search.vue index e0448d1..ae93f8b 100644 --- a/pages/users/order_list/search.vue +++ b/pages/users/order_list/search.vue @@ -255,7 +255,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', diff --git a/pages/users/presell_order_list/index.vue b/pages/users/presell_order_list/index.vue index d6e97b2..7527ad9 100644 --- a/pages/users/presell_order_list/index.vue +++ b/pages/users/presell_order_list/index.vue @@ -107,7 +107,7 @@ payStatus: this.$store.getters.globalData.alipay_open }, { - name: "消费券支付", + name: "余额支付", icon: "icon-yuezhifu", value: 'balance', title: '可用余额:', diff --git a/pages/users/real_name_authentication/index.vue b/pages/users/real_name_authentication/index.vue index 2592825..1146584 100644 --- a/pages/users/real_name_authentication/index.vue +++ b/pages/users/real_name_authentication/index.vue @@ -13,7 +13,7 @@ - + 提交认证 diff --git a/pages/users/user_info/index.vue b/pages/users/user_info/index.vue index 207e66e..db26df0 100644 --- a/pages/users/user_info/index.vue +++ b/pages/users/user_info/index.vue @@ -70,13 +70,13 @@
- + 手机号码 diff --git a/pages/users/user_invoice_order/index.vue b/pages/users/user_invoice_order/index.vue index 33e9a16..499d604 100644 --- a/pages/users/user_invoice_order/index.vue +++ b/pages/users/user_invoice_order/index.vue @@ -81,12 +81,12 @@ ¥{{orderInfo.coupon_price}} - 铸源星支付: + 铸源星抵扣: ¥{{orderInfo.integral_price}} 支付方式: - 消费券支付 + 余额支付 支付宝支付 微信支付