更新
This commit is contained in:
@@ -150,7 +150,7 @@ export default {
|
||||
timeHandle(item) {
|
||||
let create = new Date(item.createTime).getTime();
|
||||
let now = new Date().getTime();
|
||||
let diff = create + 1000 * 60 * 10 - now;
|
||||
let diff = create + 1000 * 60 * 5 - now;
|
||||
|
||||
if (diff < 0) return;
|
||||
|
||||
@@ -158,8 +158,12 @@ export default {
|
||||
item["countdown"] = `${minutes}:${seconds}`;
|
||||
|
||||
let instance = setInterval(() => {
|
||||
if (diff < 0) {
|
||||
if (diff <= 0) {
|
||||
clearInterval(instance);
|
||||
|
||||
this.paramter.currentPage = 1;
|
||||
this.isReachBottom = false;
|
||||
this.getCInfoByPage();
|
||||
}
|
||||
diff -= 1000;
|
||||
let { minutes, seconds } = this.$utils.dateTimeHandle(diff);
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<text>¥</text>
|
||||
<input
|
||||
v-model="params.sitePriceAmount"
|
||||
type="number"
|
||||
type="digit"
|
||||
maxlength="4"
|
||||
placeholder="输入金额,实时计算优惠"
|
||||
placeholder-class="placeholder-class"
|
||||
|
||||
@@ -3,7 +3,7 @@ import axiosMiniprogramAdapter from "axios-miniprogram-adapter";
|
||||
import utils from "@/utils/encode";
|
||||
let env;
|
||||
env = "test";
|
||||
// env = "production";
|
||||
env = "production";
|
||||
let testUrl = "http://192.168.110.77:38080";
|
||||
|
||||
let productUrl = "http://uat.xingoil.com/guest-api";
|
||||
@@ -12,7 +12,7 @@ let productUrl = "http://uat.xingoil.com/guest-api";
|
||||
const instance = axios.create({
|
||||
baseURL: env == "production" ? productUrl : testUrl,
|
||||
adapter: axiosMiniprogramAdapter,
|
||||
timeout: 5000,
|
||||
timeout: 10000,
|
||||
});
|
||||
|
||||
instance.interceptors.request.use(
|
||||
|
||||
Reference in New Issue
Block a user