jump("11", params) | jump("11", params) | ||||
} else { | } else { | ||||
// #ifdef MP-WEIXIN | // #ifdef MP-WEIXIN | ||||
navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}&isValueCard=${orderInfo.isValueCard}&vehicleId=${orderInfo.vehicleId}`); | |||||
// navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}&isValueCard=${orderInfo.isValueCard}&vehicleId=${orderInfo.vehicleId}`); | |||||
navTo(`/subpackage/orders/product-detail?orderId=${orderInfo.orderId}&&clientFee=${getItem("clientFee")}&&id=${getItem("productId")}&&isValueCard=${getItem("isValueCard")}&&vehicleId=${orderInfo.vehicleId}`); | |||||
// #endif | // #endif | ||||
// #ifdef MP-ALIPAY | // #ifdef MP-ALIPAY | ||||
navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}&isValueCard=${orderInfo.isValueCard}&vehicleId=${orderInfo.vehicleId}`); | navTo(`/subpackage/orders/order_payment?orderId=${orderInfo.orderId}&isValueCard=${orderInfo.isValueCard}&vehicleId=${orderInfo.vehicleId}`); |
"root": "subpackage/carPark", | "root": "subpackage/carPark", | ||||
"plugins": { | "plugins": { | ||||
"issuer-plugin": { | "issuer-plugin": { | ||||
"version": "dev-5d954bb916bb210d6c17397439d90f07", | |||||
// "version": "1.0.2", | |||||
// "version": "dev-5d954bb916bb210d6c17397439d90f07", | |||||
"version": "1.0.2", | |||||
"provider": "wxa2d9acdd1054e69b" | "provider": "wxa2d9acdd1054e69b" | ||||
} | } | ||||
}, | }, |
const downAuthD = (item) => { | const downAuthD = (item) => { | ||||
console.log('=======123',item) | console.log('=======123',item) | ||||
console.log("uni.env.USER_DATA_PATH '", uni.env.USER_DATA_PATH + '/' + '产品协议.docx') | console.log("uni.env.USER_DATA_PATH '", uni.env.USER_DATA_PATH + '/' + '产品协议.docx') | ||||
// 文件后缀截取 | |||||
var index = item.url .lastIndexOf("\."); | |||||
let fileType = item.url .substring(index + 1, item.url .length); | |||||
console.log("fileType",fileType) | |||||
uni.downloadFile({ | uni.downloadFile({ | ||||
url: item.url, | url: item.url, | ||||
filePath: uni.env.USER_DATA_PATH + '/' +item.name+ '.docx', | |||||
filePath: uni.env.USER_DATA_PATH + '/' +item.name+ '.'+fileType, | |||||
success(res) { | success(res) { | ||||
const filePath = res.filePath | const filePath = res.filePath | ||||
console.log("filePath",filePath) | |||||
uni.openDocument({ | uni.openDocument({ | ||||
filePath: filePath, | filePath: filePath, | ||||
fileType: 'docx', | |||||
fileType: fileType, | |||||
showMenu: true, //关键点 | showMenu: true, //关键点 | ||||
success: function (res) { | success: function (res) { | ||||
}, | }, |
</view> | </view> | ||||
</view> | </view> | ||||
<view class="as-layout-horizontal agreement"> | |||||
<!-- <view class="as-layout-horizontal agreement"> | |||||
<checkbox-group @change="checkboxChange"> | <checkbox-group @change="checkboxChange"> | ||||
<checkbox :checked="state.checked" style="transform: scale(0.8)" />我已阅读并同意 | <checkbox :checked="state.checked" style="transform: scale(0.8)" />我已阅读并同意 | ||||
</checkbox-group> | </checkbox-group> | ||||
<text style="color:#007AFF;text-decoration: underline;" @click="downAuthD()">《代扣协议》</text> | <text style="color:#007AFF;text-decoration: underline;" @click="downAuthD()">《代扣协议》</text> | ||||
</view> | |||||
</view> --> | |||||
<view class="action"> | <view class="action"> | ||||
<button type="default" class="button" @click="savaHandle()"> | <button type="default" class="button" @click="savaHandle()"> | ||||
{{state.channelSing=="0"?'开通服务':'恢复签约'}} | {{state.channelSing=="0"?'开通服务':'恢复签约'}} | ||||
// #endif | // #endif | ||||
} | } | ||||
const savaHandle = () => { | const savaHandle = () => { | ||||
if (!state.checked) { | |||||
msg("请勾选协议!") | |||||
return; | |||||
} | |||||
// if (!state.checked) { | |||||
// msg("请勾选协议!") | |||||
// return; | |||||
// } | |||||
console.log("openid*******", state.openid); | console.log("openid*******", state.openid); | ||||
//如果获取openId成功 | //如果获取openId成功 | ||||
if (state.openid) { | if (state.openid) { |
opId: getItem(StorageKeys.OpenId), | opId: getItem(StorageKeys.OpenId), | ||||
} | } | ||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||||
options.url = envs[process.env.NODE_ENV].baseUrl + '/dev/api/interfaceMidGroundIn' | |||||
options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' | |||||
// options.url = envs[process.env.NODE_ENV].baseUrl + '/dev/api/interfaceMidGroundIn' | |||||
//默认json数据格式提交` | //默认json数据格式提交` | ||||
let contentType = 'application/x-www-form-urlencoded' | let contentType = 'application/x-www-form-urlencoded' | ||||