Ver a proveniência

[广东版 merge到dev]

tags/同保楼3.3.1
meo há 6 anos
ascendente
cometimento
4098cb8c7f
12 ficheiros alterados com 47 adições e 68 eliminações
  1. +3
    -3
      config/config.js
  2. +0
    -9
      pages/cardListDetail/cardListDetail.js
  3. +0
    -19
      pages/cardListDetail/cardListDetail.wxml
  4. +25
    -25
      pages/cardorder/index/index.js
  5. +0
    -2
      pages/coupon/detail/index.wxml
  6. +2
    -1
      pages/czdetail/czdetail.wxml
  7. +4
    -2
      pages/czdetail/czdetail.wxss
  8. +1
    -1
      pages/order/detail/index.wxss
  9. +1
    -1
      pages/passCar/passCar.js
  10. +9
    -3
      pages/scanPay/scanPay.js
  11. +1
    -1
      pages/user/index.wxml
  12. +1
    -1
      utils/util.js

+ 3
- 3
config/config.js Ver ficheiro

@@ -2,8 +2,8 @@ var extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
var appId = extConfig.appId;
var config = {
// url: "https://ciformall.youlane.cn/C/api",
// url:"https://c.malls.iformall.com/C/api",
url:'https://ctest.malls.iformall.com/C/api',
url:"https://c.malls.iformall.com/C/api",
// url:'https://ctest.malls.iformall.com/C/api',
// url:'http://10.100.33.68:7000/C/api',
// url: 'http://202.165.179.86:4000/C/api',
api: {
@@ -203,7 +203,7 @@ var config = {
},

weapp: {
AppId: "wx649b3be73c1afe47"
AppId: "wx30caec1cc16c4634"
},
ErrorCode: {


+ 0
- 9
pages/cardListDetail/cardListDetail.js Ver ficheiro

@@ -234,15 +234,6 @@ Page({
that.countdown(res.data.endTime);
//当前时间与优惠券下架时间做计算
var endTime = util.formatTime(res.data.endTime, "yyyy-MM-dd hh:mm:ss");
if (util.timechuo(endTime).indexOf('-') == 0) {
that.setData({
endtime: "活动已结束",
});
} else {
that.setData({
endtime: util.timechuo(endTime)
});
}
}
wx.hideLoading();
that.setData({


+ 0
- 19
pages/cardListDetail/cardListDetail.wxml Ver ficheiro

@@ -1,5 +1,4 @@
<view wx:if="{{showPage}}">
<!-- 券的详情页面 -->
<view class='coupons'>
<view class="coupons-body">
<view class='banner'>
@@ -11,24 +10,6 @@
<button class='share user-motto' data-id='{{data.id}}' data-couponId='{{data.couponId}}' data-title='{{data.title}}' id="shareBtn" open-type="share" hover-class="other-button-hover"></button>
</view>
<view>
<view class='distance' wx:if="{{data.targetAd==2&&data.endTime!=undefined&&data.type!=5}}">
<view style='text-align:center;display:inline-block;'>
<image class='clock' src='{{clockUrl}}' mode='widthFix'></image>
<text class="qiang">距结束还剩 :</text>
</view>
<view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'>
<text>{{day}}</text>天
<text>{{hour}}</text>:
<text>{{min}}</text>:
<text>{{sec}}</text>
</view>
<view wx:if="{{clock!='已经截止'&&data.remainInventory!=0}}" class='times'>
<text>{{day}}</text>天
<text>{{hour}}</text>:
<text>{{min}}</text>:
<text>{{sec}}</text>
</view>
</view>
<text class='title'>{{data.title}}</text>
<text class="subTitle">{{data.subTitle}}</text>
<view class='salePriceStr clearfix'>


+ 25
- 25
pages/cardorder/index/index.js Ver ficheiro

@@ -54,34 +54,34 @@ Page({
let that = this;
wx.scanCode({
success: (res) => {
console.log(res.result)
Http.get({
url: config.api.findByCode,
data: {
merchantCode: res.result,
}
})
.then(res => {
console.log(res);
if (res.code == 200) {
let merChantDetail = JSON.stringify(res.data);
if (merChantDetail && e.currentTarget.dataset.cardid && e.currentTarget.dataset.remainingamount) {
wx.navigateTo({
url: `/pages/scanPay/scanPay?merChant=${merChantDetail}&cardid=${e.currentTarget.dataset.cardid}&remainingAmount=${e.currentTarget.dataset.remainingamount}`,
})
} else {
wx.showToast({
title: "未识别到商户二维码",
icon: "none",
mask: false
})
}
console.log(res.result.indexOf('merchant_id_scan'))
if(res.result.indexOf('merchant_id_scan')!=-1){
Http.get({
url: config.api.findByCode,
data: {
merchantCode: JSON.parse(res.result).merchant_id_scan,
}
})
.catch(err => {
console.log(err)
.then(res => {
if (res.code == 200) {
let merChantDetail = JSON.stringify(res.data);
if (merChantDetail && e.currentTarget.dataset.cardid && e.currentTarget.dataset.remainingamount) {
wx.navigateTo({
url: `/pages/scanPay/scanPay?merChant=${merChantDetail}&cardid=${e.currentTarget.dataset.cardid}&remainingAmount=${e.currentTarget.dataset.remainingamount}`,
})
}
}
})
.catch(err => {
console.log(err)
})
}else{
wx.showToast({
title: "未识别到商户二维码",
icon: "none",
mask: false
})
}
},
fail: (res) => {
console.log(res);


+ 0
- 2
pages/coupon/detail/index.wxml Ver ficheiro

@@ -17,13 +17,11 @@
<text class="qiang">距结束还剩 :</text>
</view>
<view wx:if="{{clock=='已经截止'||data.remainInventory==0||data.status==1}}" class='times'>
<text>{{day}}</text>天
<text>{{hour}}</text>:
<text>{{min}}</text>:
<text>{{sec}}</text>
</view>
<view wx:if="{{clock!='已经截止'&&data.remainInventory!=0}}" class='times'>
<text>{{day}}</text>天
<text>{{hour}}</text>:
<text>{{min}}</text>:
<text>{{sec}}</text>


+ 2
- 1
pages/czdetail/czdetail.wxml Ver ficheiro

@@ -20,7 +20,8 @@
<text>{{item.createDate}}</text>
</view>
<view class='fr'>
<text wx:if="{{item.scoreAmount>0}}">+{{item.scoreAmount}}分</text>
<text wx:if="{{item.scoreAmount>0&&item.scoreType==8}}">重置为{{item.scoreAmount}}分</text>
<text wx:if="{{item.scoreAmount>0&&item.scoreType!=8}}">+{{item.scoreAmount}}分</text>
<text wx:if="{{0>=item.scoreAmount}}">{{item.scoreAmount}}分</text>
</view>
</view>


+ 4
- 2
pages/czdetail/czdetail.wxss Ver ficheiro

@@ -78,14 +78,16 @@

.content>view:nth-of-type(2n+1) {
float: left;
width: 68%;
width: 60%;
height: 145rpx;
overflow: hidden;
}

.content>view:nth-of-type(2n) {
width: 30%;
width: 38%;
float: right;
text-align: right;
height: 145rpx;
line-height: 145rpx;
overflow: hidden;
}


+ 1
- 1
pages/order/detail/index.wxss Ver ficheiro

@@ -25,7 +25,7 @@ page {
}

.merchantName {
color: #999;
color: #666!important;
}

.tips text:nth-child(2) {


+ 1
- 1
pages/passCar/passCar.js Ver ficheiro

@@ -550,7 +550,7 @@ Page({
syncId: res.data.orderId,
payType: 6, // 小程序支付
CarNumber: carNumber,
returnUrl: "https://admintest.malls.iformall.com/api/carCallback/etcpPaidCallback",
returnUrl: "https://admin.malls.iformall.com/api/carCallback/etcpPaidCallback",
source: "FUMAO-001",
actionId: "1" //操作ID,1:小程序支付
}


+ 9
- 3
pages/scanPay/scanPay.js Ver ficheiro

@@ -55,13 +55,15 @@ Page({
let that = this;
const startSoterAuthentication = () => {
wx.startSoterAuthentication({
requestAuthModes: [AUTH_MODE],
requestAuthModes: ["fingerPrint"],
challenge: 'test',
authContent: '请验证已有的指纹以继续',
success: (res) => {
console.log(res)
that.gotoPay()
},
fail: (err) => {
console.log(err);
wx.hideLoading();
that.setData({
showModel: false,
@@ -69,6 +71,10 @@ Page({
ids: "",
remainingAmount: that.data.remainingAmounts
})
if(err.errCode==90008||err.errCode == 90009){
}else{
that.gotoPay();
}
}
})
}
@@ -94,9 +100,9 @@ Page({
if (res.supportMode == []) {
that.gotoPay();
} else if (res.supportMode == ['fingerPrint']) {
checkIsEnrolled()
checkIsEnrolled();
} else if (res.supportMode = ['fingerPrint', 'facial']) {
checkIsEnrolled()
checkIsEnrolled();
}
},
fail: (err) => {


+ 1
- 1
pages/user/index.wxml Ver ficheiro

@@ -76,7 +76,7 @@
<view class="margin"></view>
<!-- <button bindtap="navigateTo" class="user-out-btn">退出登陆</button> -->
<view bindlongtap='showVersion' class='version'>
<view wx:if="{{flag=='show'}}">版本号:3.2.1</view>
<view wx:if="{{flag=='show'}}">版本号:3.2.2</view>
<view wx:if="{{flag=='hidden'}}"></view>
</view>
</view>


+ 1
- 1
utils/util.js Ver ficheiro

@@ -92,7 +92,7 @@ function timechuo(startTime) {
var minute = Math.floor(runTime / 60);
var runTime = runTime % 60;
var second = runTime;
return (day+"天"+hour+"小时"+minute+"分钟")
return (hour+"小时"+minute+"分钟")
}




Carregando…
Cancelar
Guardar