Commit 846dcdb0 by 张立顺

Merge branch 'dev_v4.24.0' into 'develop'

Dev v4.24.0

See merge request !20
2 parents 053518b5 3228b9d5
......@@ -10,7 +10,7 @@
* 2测试
* 3生产环境
*/
let index = 1
let index = 2
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
......@@ -312,7 +312,7 @@ Page({
timeStamp: row.timeStamp,
signType: 'MD5',
success: function (res) {
// console.log(res)
console.log(res)
// 查询订单信息
// util.showLoading('加载中...')
wx.setNavigationBarTitle({
......@@ -324,6 +324,7 @@ Page({
// showOrderInfo: data ? true : false,
// orderInfoList
})
_this.getOrderScreenShot()
// 银盛接口取消调用(太慢没意义)
// _this.successInfo()
},
......@@ -350,7 +351,6 @@ Page({
// this.setData({
// orderCode: data.orderCode
// })
// this.getOrderScreenShot()
// }
// },
// rej => {
......@@ -360,8 +360,9 @@ Page({
// )
// },
getOrderScreenShot() {
let { merchantName, dataTime, outTradeNo } = this.data
let params = JSON.stringify({ merchantName, formatAccountDate: dataTime, selectPayType: 1, outTradeNo, payMoney })
let { merchantName,shopMerchantName, dataTime, outTradeNo,payMoney,isYqType } = this.data
let params = JSON.stringify({ merchantName:isYqType?merchantName:shopMerchantName, formatAccountDate: dataTime, selectPayType: 1, outTradeNo, payMoney })
console.log(params,'params');
api
.orderScreenShot({ url: orderPosterImgUrl + 'orderInfo=' + params })
.then(result => {
......
......@@ -74,7 +74,11 @@
<!-- <view>支付成功</view> -->
<view class="success-Container">
<view class="poster">
<image class="posetrimg" mode="widthFix" src="{{posterUrl}}" />
<image
class="posetrimg"
show-menu-by-longpress="true"
mode="widthFix"
src="{{posterUrl}}" />
</view>
<!-- <view class="amountOfMoney">¥ {{payMoney}}</view>
<view class="success-tips">
......
......@@ -2,13 +2,19 @@
<!-- wx:if="{{orderInfo}}" -->
<block wx:if="{{paySuccess}}">
<view class="poster">
<image class="posetrimg" mode="widthFix" src="{{posterUrl}}" />
<image
show-menu-by-longpress="true"
class="posetrimg"
mode="widthFix"
src="{{posterUrl}}" />
</view>
<view class="footerCon">
<view class="wxTips">长按识别扫码领取质保卡</view>
<image bindlongpress="navWarrantyCard" class="wxqrCon" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/minizhibaoka.png" />
<view class="footerCon" wx:if="{{sceneType}}">
<view class="wxTips" >长按识别扫码领取质保卡</view>
<image bindlongpress="navWarrantyCard"
class="wxqrCon"
src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/minizhibaoka.png" />
<image class="logoIcon" src="../../../images/djLogin.png" />
</view>
</block>
<auth-setting auth='{{authToast}}' type='{{authType}}' />
<!-- <auth-setting auth='{{authToast}}' type='{{authType}}' /> -->
......@@ -4,7 +4,7 @@ Page({
* 页面的初始数据
*/
data: {
webpageUrl: ''
webpageUrl: 'http://lexiangla.com/staff?company_from=f61c3d0c101f11ebb06e5254002f1020'
},
/**
......@@ -15,7 +15,7 @@ Page({
console.log(accountInfo, 'accountInfo')
this.setData({
// webpageUrl: accountInfo.miniProgram.envVersion == 'release' ? 'https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/' : 'http://192.168.1.178:8080/#/detail?cardCode=211027-2201AAA01'
webpageUrl: accountInfo.miniProgram.envVersion == 'release' ? 'https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/' : 'https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/'
// webpageUrl: accountInfo.miniProgram.envVersion == 'release' ? 'https://dj.glsx.com.cn/dj-car-boutique-work-wechat/#/' : 'https://frontend.test.glsx.com.cn/dj-car-boutique-work-wechat/#/'
})
},
......
......@@ -3,7 +3,8 @@ import api from './request.js'
module.exports = {
/** 获取订单数据*/
GETORDERINFO: function (oParams, success, fail) {
restapi.req('/web-dj-weapp/smartcarlife/goodsOrder/createWxPayOrder', oParams, {}, 'GET', 'json', 'text', success, fail)
restapi.req('/web-dj-weapp/smartcarlife/goodsOrder/createWxPayOrderWithNotLogin', oParams, {}, 'GET', 'json', 'text', success, fail)
// restapi.req('/web-dj-weapp/smartcarlife/goodsOrder/createWxPayOrder', oParams, {}, 'GET', 'json', 'text', success, fail)
},
/** 精品交付单订单详情列表 */
// getBoutiqueOrderDetail(data, success, fail) {
......@@ -118,5 +119,9 @@ module.exports = {
/** 订单截图 */
orderScreenShot(data) {
return api.post('dj.api.smartcarlife.common.screenShot', data)
},
/** 新订单详情 */
getOrderDetail(data) {
return api.post('dj.api.smartcarlife.order.detail', data)
}
}
......@@ -40,7 +40,8 @@
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
"ignoreUploadUnusedFiles": true,
"condition": false
},
"compileType": "miniprogram",
"libVersion": "2.8.3",
......
{
"setting": {
"compileHotReLoad": true,
"urlCheck": true
"urlCheck": false
},
"condition": {
"miniprogram": {
......
/**
*
0本地
1开发
2测试
3生产环境
4预发布环境
*/
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo);
// console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false
const release = false
// /**
// *
// 0本地
// 1开发
// 2测试
// 3生产环境
// 4预发布环境
// */
// const accountInfo = wx.getAccountInfoSync()
// const systemInfo = wx.getSystemInfoSync()
// // console.log(systemInfo);
// // console.log(accountInfo.miniProgram.envVersion)
// //手动控制体验版环境的请求 true就依据下面index false就默认为2
// const manual = false
// const release = false
let index =1
// let index =1
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// trial:体验版
// release:正式版
// console.log( systemInfo.platform);
// console.log(accountInfo.miniProgram.envVersion);
if (systemInfo.platform != 'devtools') {
switch (accountInfo.miniProgram.envVersion) {
case 'develop':
// this.globalData.url = 'http://192.168.0.252:3000/api'; //
break
case 'trial':
index = manual ? index : 2
break
case 'release':
index = release ? index : 3
break
default:
index = 3
break
}
}
// // 判断小程序环境
// // develop:开发版(正常开发工具,测试时)
// // trial:体验版
// // release:正式版
// // console.log( systemInfo.platform);
// // console.log(accountInfo.miniProgram.envVersion);
// if (systemInfo.platform != 'devtools') {
// switch (accountInfo.miniProgram.envVersion) {
// case 'develop':
// // this.globalData.url = 'http://192.168.0.252:3000/api'; //
// break
// case 'trial':
// index = manual ? index : 2
// break
// case 'release':
// index = release ? index : 3
// break
// default:
// index = 3
// break
// }
// }
import { envIndex } from '~/config'
let index = envIndex
const domain_items = {
ip: 'http://192.168.3.181:9182',
dev: 'https://dj.dev.glsx.com.cn',
......@@ -49,7 +51,6 @@ const domain_items = {
const domain= domain_items[target[index]]
const app = getApp()
/**
* 通用请求
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!