remove currencies

This commit is contained in:
saparatayev 2022-01-26 17:57:57 +05:00
parent bbefa2455c
commit 991a930f8d
10 changed files with 368401 additions and 25 deletions

View File

@ -79,9 +79,9 @@ class RequestController extends Controller
case 200:
// check user balance
$fee = $input['totalPrice'];
if($input['currency'] == 'USD') {
$fee = $fee * settings('local_price') / settings('int_price'); // fee - converted to TMT price
}
// if($input['currency'] == 'USD') {
// $fee = $fee * settings('local_price') / settings('int_price'); // fee - converted to TMT price
// }
if($loginResponse['user']['user_balance'] - $fee < 0) {
return response()->json([
'status' => 300, // 300

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -984,13 +984,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
},
computed: {
currency: function currency() {
return this.countryCode === "993" ? "TMT" : "USD";
return "TMT";
},
price: function price() {
var _this$$page$props = this.$page.props,
local_price = _this$$page$props.local_price,
int_price = _this$$page$props.int_price;
return this.countryCode === "993" ? local_price : int_price;
var local_price = this.$page.props.local_price;
return local_price;
},
totalPrice: function totalPrice() {
return this.selectedItems.length * this.price;

View File

@ -984,13 +984,11 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
},
computed: {
currency: function currency() {
return this.countryCode === "993" ? "TMT" : "USD";
return "TMT";
},
price: function price() {
var _this$$page$props = this.$page.props,
local_price = _this$$page$props.local_price,
int_price = _this$$page$props.int_price;
return this.countryCode === "993" ? local_price : int_price;
var local_price = this.$page.props.local_price;
return local_price;
},
totalPrice: function totalPrice() {
return this.selectedItems.length * this.price;

View File

@ -296,7 +296,7 @@ render._withStripped = true
/***/ ((module) => {
"use strict";
module.exports = JSON.parse('[{"key":"id","dataIndex":"id","title":"№","width":50,"scopedSlots":{"customRender":"id"}},{"dataIndex":"name","key":"name","title":"Name"},{"dataIndex":"phone","key":"phone","title":"Phone","width":220},{"dataIndex":"email","key":"email","title":"Email","width":220},{"dataIndex":"created_at","key":"created_at","title":"Created date","width":220},{"key":"actions","scopedSlots":{"customRender":"actions"},"width":170}]');
module.exports = JSON.parse('[{"key":"id","dataIndex":"id","title":"№","width":50,"scopedSlots":{"customRender":"id"}},{"dataIndex":"name","key":"name","title":"Name"},{"dataIndex":"phone","key":"phone","title":"Phone","width":220},{"dataIndex":"email","key":"email","title":"Email","width":220},{"dataIndex":"org_type","key":"org_type","title":"Organization type","width":220},{"dataIndex":"created_at","key":"created_at","title":"Created date","width":220},{"key":"actions","scopedSlots":{"customRender":"actions"},"width":170}]');
/***/ })

View File

@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=9b3e2b4a91df67c5c81a",
"/css/app.css": "/css/app.css?id=325e37fae0fdf8bf428a",
"/css/antd.css": "/css/antd.css?id=f9f05916bb7adbb86b7d"
"/js/app.js": "/js/app.js",
"/css/app.css": "/css/app.css",
"/css/antd.css": "/css/antd.css"
}

View File

@ -197,12 +197,12 @@ export default {
computed: {
currency() {
return this.countryCode === "993" ? "TMT" : "USD";
return "TMT";
},
price() {
const { local_price, int_price } = this.$page.props;
return this.countryCode === "993" ? local_price : int_price;
const { local_price } = this.$page.props;
return local_price;
},
totalPrice() {

View File

@ -25,6 +25,12 @@
"title": "Email",
"width": 220
},
{
"dataIndex": "org_type",
"key": "org_type",
"title": "Organization type",
"width": 220
},
{
"dataIndex": "created_at",
"key": "created_at",