getGlobalParam, | getGlobalParam, | ||||
wechatAppID, | wechatAppID, | ||||
wechatSecret, | wechatSecret, | ||||
getOpenidApi | |||||
getOpenidApi, | |||||
getZfbOpenid | |||||
} from "@/utils/network/api.js"; | } from "@/utils/network/api.js"; | ||||
import { | import { | ||||
msg | msg | ||||
scopes: 'auth_base', | scopes: 'auth_base', | ||||
success: res => { | success: res => { | ||||
console.log("支付宝授权码", res) | console.log("支付宝授权码", res) | ||||
const options = { | |||||
type: 2, | |||||
data: { | |||||
"code": res.authCode | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
request(getZfbOpenid, options).then((res) => { | |||||
const result = stringToJson(res.bizContent); | |||||
console.log("getOpenidApi====", result, result.data, result.userId) | |||||
if (result.data) { | |||||
setItem("zfbOpenId", result.data); | |||||
} else { | |||||
setItem("zfbUserId", result.userId); | |||||
} | |||||
}); | |||||
}, | }, | ||||
}); | }); | ||||
// #endif | // #endif |
} | } | ||||
} | } | ||||
] | ] | ||||
}, | |||||
{ | |||||
//其他服务模块 | |||||
"root": "subpackage/carPark", | |||||
"pages": [{ | |||||
"path": "channelSing/select-car", | |||||
"style": { | |||||
"navigationBarTitleText": "选择车辆" | |||||
} | |||||
} | |||||
] | |||||
} | } | ||||
], | ], | ||||
"tabBar": { | "tabBar": { |
import { | import { | ||||
navTo, | navTo, | ||||
confirm, | confirm, | ||||
msg | |||||
msg, | |||||
noticeUser | |||||
} from "@/utils/utils"; | } from "@/utils/utils"; | ||||
import { | import { | ||||
getCodeName | getCodeName | ||||
quanKeyAction().then((val : any) => { | quanKeyAction().then((val : any) => { | ||||
setItem('key', val.dictTypeAndItem) | setItem('key', val.dictTypeAndItem) | ||||
}) | }) | ||||
// #ifdef MP-ALIPAY | |||||
noticeUser(() => { | |||||
console.log("dingyuele") | |||||
}); | |||||
// #endif | |||||
}) | }) | ||||
} | } | ||||
if (option.payMoney) { | if (option.payMoney) { | ||||
state.payMoney = option.payMoney | state.payMoney = option.payMoney | ||||
setItem("payMoney", option.payMoney) | |||||
} | } | ||||
console.log("传过来的参数", option, routeType.value) | console.log("传过来的参数", option, routeType.value) | ||||
}); | }); | ||||
NFCAPI.remove(() => { | NFCAPI.remove(() => { | ||||
console.log("routeType.value2=======", routeType.value) | console.log("routeType.value2=======", routeType.value) | ||||
//开始扫描设备 | //开始扫描设备 | ||||
// NFCAPI.startScanDeviceNfc(routeType.value, function(res, routeType) { | |||||
// routeType.value = routeType | |||||
const ConRouteType = routeType.value | const ConRouteType = routeType.value | ||||
NFCAPI.startScanDevice((res) => { | NFCAPI.startScanDevice((res) => { | ||||
tools.hideLoadingAlert(); | tools.hideLoadingAlert(); | ||||
return; | return; | ||||
} else { | } else { | ||||
console.log("2222", routeType.value) | console.log("2222", routeType.value) | ||||
NFCAPI.connectDevice(function() { | |||||
NFCAPI.connectDevice(function(res) { | |||||
console.log("resnfc", res) | |||||
// datas.setData("bluLinkStatus", true); | |||||
// datas.setData("connectPrefixName", connectPrefixName.value); | |||||
if (res.code != 0) { | if (res.code != 0) { | ||||
tools.showToastAlert(res.msg); | tools.showToastAlert(res.msg); | ||||
return; | return; | ||||
} else if (getItem('routeType') == | } else if (getItem('routeType') == | ||||
"7") { //7消费明细去修复nfc | "7") { //7消费明细去修复nfc | ||||
tools.toUrl( | tools.toUrl( | ||||
`/subpackage/personal-center/trapping-and-repairing/recharge-two?rechargeMoney=${state.rechargeMoney}&&orderNum=${state.orderNum}&&payMoney=${state.payMoney}&&transWay=nfc` | |||||
`/subpackage/personal-center/trapping-and-repairing/recharge-two?rechargeMoney=${state.rechargeMoney}&&orderNum=${state.orderNum}&&payMoney=${getItem('payMoney')}&&transWay=nfc` | |||||
); //跳转到圈存界面 | ); //跳转到圈存界面 | ||||
} | } | ||||
}) | }) |
//圈存修复COS指令Response信息不足,重新进行修复初始化 | //圈存修复COS指令Response信息不足,重新进行修复初始化 | ||||
if (fixStatus === 3) { | if (fixStatus === 3) { | ||||
let xfcmdArr = value.command.split(","); | let xfcmdArr = value.command.split(","); | ||||
bluetoothUtil.transCmd(xfcmdArr, "10", function (resValueData) { | |||||
console.log("xfcmdArr", xfcmdArr) | |||||
transCmd(xfcmdArr, function (resValueData) { | |||||
var status = resValueData[1].substring( | var status = resValueData[1].substring( | ||||
resValueData[1].length - 4, | resValueData[1].length - 4, | ||||
resValueData[1].length | resValueData[1].length |
*/ | */ | ||||
function transCmd(cmdArr, type, func, callBack = null) { | function transCmd(cmdArr, type, func, callBack = null) { | ||||
var connectPrefixName = datas.getData("connectPrefixName"); | var connectPrefixName = datas.getData("connectPrefixName"); | ||||
console.log('指令执行内容', cmdArr, type) | |||||
console.log('指令执行内容1', datas.getData("connectPrefixName"), cmdArr, type) | |||||
switch (connectPrefixName) { | switch (connectPrefixName) { | ||||
case "WJ": | case "WJ": | ||||
console.log('WJ执行内容====', cmdArr, type) | console.log('WJ执行内容====', cmdArr, type) |
transTimeId = setTimeout(res => { | transTimeId = setTimeout(res => { | ||||
callBack.call(this, { | callBack.call(this, { | ||||
code: config.timeOutCode(), | code: config.timeOutCode(), | ||||
msg: "连接设备蓝牙超时", | |||||
msg: "NFC连接超时", | |||||
data: null | data: null | ||||
}) | }) | ||||
}, timeOut); | }, timeOut); |
deviceId: "", | deviceId: "", | ||||
code: code, | code: code, | ||||
loginSource: getItem("loginSource"), | loginSource: getItem("loginSource"), | ||||
wxOpenid: getItem("QYorder").openid | |||||
wxOpenid: getItem("QYorder").openid, | |||||
zfbOpenId: getItem("zfbOpenId"), | |||||
zfbUserId: getItem("zfbUserId"), | |||||
}, | }, | ||||
method: "POST", | method: "POST", | ||||
showLoading: false, | showLoading: false, |
//圈存修复COS指令Response信息不足,重新进行修复初始化 | //圈存修复COS指令Response信息不足,重新进行修复初始化 | ||||
if (fixStatus === 3) { | if (fixStatus === 3) { | ||||
let xfcmdArr = value.command.split(","); | let xfcmdArr = value.command.split(","); | ||||
bluetoothUtil.transCmd(xfcmdArr, "10", function (resValueData) { | |||||
transCmd(xfcmdArr, function (resValueData) { | |||||
var status = resValueData[1].substring( | var status = resValueData[1].substring( | ||||
resValueData[1].length - 4, | resValueData[1].length - 4, | ||||
resValueData[1].length | resValueData[1].length |
<template> | |||||
<view class="selectCar-box"> | |||||
<view v-if="state.list.length > 0" @click="choose(item)" class="item" v-for="(item, i) in state.list" :key="i"> | |||||
<view class="iten-left"> | |||||
<image :src="`${$imgUrl}che.png`" mode="aspectFill"></image> | |||||
<text>{{ item.vehiclePlate }}</text> | |||||
</view> | |||||
<view class="choose-item"> | |||||
<view class="active" v-if="flag == i"> </view> | |||||
</view> | |||||
</view> | |||||
<view v-else class="flex"> 暂无车辆订单信息 </view> | |||||
</view> | |||||
</template> | |||||
<script lang="ts" setup> | |||||
import { reactive, ref } from "vue"; | |||||
import { navTo } from "@/utils/utils"; | |||||
import { onLoad } from "@dcloudio/uni-app"; | |||||
import { orderList } from "@/utils/network/api.js"; | |||||
import { request } from "@/utils/network/request.js"; | |||||
import { msg } from "@/utils/utils"; | |||||
import { getItem, StorageKeys } from "@/utils/storage"; | |||||
import { stringToJson } from "@/utils/network/encryption"; | |||||
const state = reactive({ | |||||
list: [], | |||||
starts: false | |||||
}); | |||||
onLoad(() => { | |||||
quanCheckActionTrue().then((item : any) => { | |||||
state.list = item.data; | |||||
console.log(item); | |||||
}); | |||||
}); | |||||
const quanCheckActionTrue = () => { | |||||
let source = "" | |||||
// #ifdef MP-ALIPAY | |||||
source = "ALI" | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
source = "WECHAT" | |||||
// #endif | |||||
var data = { | |||||
opId: getItem(StorageKeys.OpenId), | |||||
source: source, | |||||
tabIndex: "0", | |||||
isValueCard: "", | |||||
}; | |||||
const options = { | |||||
type: 2, | |||||
data: data, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
return new Promise(async (resolve, reject) => { | |||||
const res = await request(orderList, options); | |||||
const data = stringToJson(res.bizContent); | |||||
resolve(data); | |||||
}).catch((error) => { | |||||
reject(error); | |||||
}); | |||||
}; | |||||
const flag = ref("0"); | |||||
const choose = (item) => { | |||||
console.log("item", item); | |||||
// #ifdef MP-ALIPAY | |||||
uni.navigateTo({ | |||||
url: `/subpackage/orders/sign-up-ali?orderId=${item.orderId}&&channelSing=1&&vehiclePlate=${item.vehiclePlate}`, | |||||
}); | |||||
// #endif | |||||
// #ifdef MP-WEIXIN | |||||
uni.navigateTo({ | |||||
url: `/subpackage/orders/sign-up?orderId=${item.orderId}&&channelSing=1&&vehiclePlate=${item.vehiclePlate}`, | |||||
}); | |||||
// #endif | |||||
}; | |||||
</script> | |||||
<style> | |||||
page { | |||||
width: 100%; | |||||
height: 100%; | |||||
background-color: #eef7f7; | |||||
} | |||||
</style> | |||||
<style lang="scss" scoped> | |||||
.flex { | |||||
display: flex; | |||||
justify-content: center; | |||||
} | |||||
.selectCar-box { | |||||
// width: 100%; | |||||
height: 100%; | |||||
padding: 30rpx; | |||||
.item { | |||||
padding: 20rpx; | |||||
display: flex; | |||||
justify-content: space-between; | |||||
align-items: center; | |||||
height: 130rpx; | |||||
background: #ffffff; | |||||
box-shadow: 0rpx 2rpx 6rpx 0rpx rgba(223, 223, 223, 0.8); | |||||
border-radius: 20rpx; | |||||
margin-bottom: 30rpx; | |||||
.iten-left { | |||||
display: flex; | |||||
align-items: center; | |||||
image { | |||||
width: 150rpx; | |||||
height: 90rpx; | |||||
} | |||||
text { | |||||
margin-left: 20rpx; | |||||
font-size: 32rpx; | |||||
font-family: Noto Sans S Chinese; | |||||
font-weight: 400; | |||||
color: #333333; | |||||
} | |||||
} | |||||
.choose-item { | |||||
width: 44rpx; | |||||
height: 44rpx; | |||||
background: #ffffff; | |||||
border: 2rpx solid #00b38b; | |||||
border-radius: 50%; | |||||
margin-right: 20rpx; | |||||
display: flex; | |||||
justify-content: center; | |||||
align-items: center; | |||||
box-sizing: content-box; | |||||
} | |||||
.active { | |||||
width: 34rpx; | |||||
height: 34rpx; | |||||
background: #00b38b; | |||||
border-radius: 50%; | |||||
} | |||||
} | |||||
} | |||||
</style> |
</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"?'开通服务':'恢复签约'}} | |||||
</button> | </button> | ||||
</view> | </view> | ||||
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { onLoad, onShow } from "@dcloudio/uni-app"; | import { onLoad, onShow } from "@dcloudio/uni-app"; | ||||
import { reactive } from "vue"; | import { reactive } from "vue"; | ||||
import { etcQYAction } from "@/utils/network/api.js"; | |||||
import { etcQYAction, channelSingQueryApi } from "@/utils/network/api.js"; | |||||
import { request } from "@/utils/network/request.js"; | import { request } from "@/utils/network/request.js"; | ||||
import { stringToJson } from "@/utils/network/encryption"; | import { stringToJson } from "@/utils/network/encryption"; | ||||
clientFee: "", | clientFee: "", | ||||
checked: false, | checked: false, | ||||
agreeURL: "", | agreeURL: "", | ||||
channelSing: "0",//0 正常签约 1恢复签约 | |||||
vehiclePlate: "", | |||||
code: "" | |||||
}); | }); | ||||
onLoad((option : any) => { | onLoad((option : any) => { | ||||
getOpenID(); | getOpenID(); | ||||
state.orderId = option.orderId; | state.orderId = option.orderId; | ||||
if (option.channelSing) { | |||||
state.channelSing = option.channelSing; | |||||
} | |||||
state.vehiclePlate = option.vehiclePlate; | |||||
getInfo(); | getInfo(); | ||||
}); | }); | ||||
const checkboxChange = (e) => { | const checkboxChange = (e) => { | ||||
provider: "weixin", | provider: "weixin", | ||||
success: function (e) { | success: function (e) { | ||||
console.log(e); | console.log(e); | ||||
state.code = e.code | |||||
getOpenid(e.code); | getOpenid(e.code); | ||||
}, | }, | ||||
}); | }); | ||||
const data = stringToJson(res.bizContent); | const data = stringToJson(res.bizContent); | ||||
console.log("data", data) | console.log("data", data) | ||||
if (data.userState === "UNAUTHORIZED") { | if (data.userState === "UNAUTHORIZED") { | ||||
uni.navigateToMiniProgram({ | |||||
appId: "wxbcad394b3d99dac9", | |||||
path: "pages/route/index", | |||||
extraData: { | |||||
appid: "wxcb1388c809fe25a9", | |||||
sub_appid: "wx008c60533388527a", | |||||
mch_id: "1500877591", | |||||
sub_mch_id: "1622652848", | |||||
nonce_str: data.nonceStr, | |||||
sign_type: "HMAC-SHA256", | |||||
trade_scene: "HIGHWAY", | |||||
plate_number: data.plateNumber, | |||||
sub_openid: data.subOpenId, | |||||
sign: data.sign, | |||||
channel_type: "ETC" | |||||
}, | |||||
success(res) { | |||||
console.log(res); | |||||
}, | |||||
complete(res) { | |||||
console.log(res); | |||||
}, | |||||
fail(res) { | |||||
console.log(res); | |||||
// 未成功跳转到车主小程序 | |||||
}, | |||||
}); | |||||
if (state.channelSing == "0") { | |||||
uni.navigateToMiniProgram({ | |||||
appId: "wxbcad394b3d99dac9", | |||||
path: "pages/route/index", | |||||
extraData: { | |||||
appid: "wxcb1388c809fe25a9", | |||||
sub_appid: "wx008c60533388527a", | |||||
mch_id: "1500877591", | |||||
sub_mch_id: "1622652848", | |||||
nonce_str: data.nonceStr, | |||||
sign_type: "HMAC-SHA256", | |||||
trade_scene: "HIGHWAY", | |||||
plate_number: data.plateNumber, | |||||
sub_openid: data.subOpenId, | |||||
sign: data.sign, | |||||
channel_type: "ETC" | |||||
}, | |||||
success(res) { | |||||
console.log(res); | |||||
}, | |||||
complete(res) { | |||||
console.log(res); | |||||
}, | |||||
fail(res) { | |||||
console.log(res); | |||||
// 未成功跳转到车主小程序 | |||||
}, | |||||
}); | |||||
} else { | |||||
// 恢复签约 | |||||
const optionss = { | |||||
type: 2, | |||||
data: { | |||||
plateNumber: state.vehiclePlate, | |||||
openid: state.openid, | |||||
channelId: '52010188925', | |||||
tradeScene: 'HIGHWAY', | |||||
code: state.code | |||||
}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
request(channelSingQueryApi, optionss) | |||||
.then((res) => { | |||||
let data = stringToJson(res.bizContent) | |||||
uni.navigateToMiniProgram({ | |||||
appId: "wxbcad394b3d99dac9", | |||||
path: "pages/route/index", | |||||
extraData: { | |||||
appid: data.appid, | |||||
sub_appid: data.subAppid, | |||||
mch_id: data.mchId, | |||||
sub_mch_id: data.subMchId, | |||||
nonce_str: data.nonceStr, | |||||
sign_type: data.signType, | |||||
trade_scene: data.tradeScene, | |||||
plate_number: data.plateNumber, | |||||
sub_openid: data.subOpenid, | |||||
sign: data.sign, | |||||
channel_type: data.channelType | |||||
}, | |||||
success(res) { | |||||
}, | |||||
complete(res) { | |||||
console.log(res); | |||||
}, | |||||
fail(res) { | |||||
console.log(res); | |||||
// 未成功跳转到车主小程序 | |||||
}, | |||||
}); | |||||
}) | |||||
.catch((err) => { | |||||
console.log(err); | |||||
}); | |||||
} | |||||
} else if (data.userState === "NORMAL") { | } else if (data.userState === "NORMAL") { | ||||
msg("已开通车主服务"); | msg("已开通车主服务"); | ||||
setTimeout(() => { | setTimeout(() => { |
//圈存修复COS指令Response信息不足,重新进行修复初始化 | //圈存修复COS指令Response信息不足,重新进行修复初始化 | ||||
if (fixStatus === 3) { | if (fixStatus === 3) { | ||||
let xfcmdArr = value.command.split(","); | let xfcmdArr = value.command.split(","); | ||||
bluetoothUtil.transCmd(xfcmdArr, "10", function (resValueData) { | |||||
transCmd(xfcmdArr, function (resValueData) { | |||||
var status = resValueData[1].substring( | var status = resValueData[1].substring( | ||||
resValueData[1].length - 4, | resValueData[1].length - 4, | ||||
resValueData[1].length | resValueData[1].length |
//圈存修复COS指令Response信息不足,重新进行修复初始化 | //圈存修复COS指令Response信息不足,重新进行修复初始化 | ||||
if (fixStatus === 3) { | if (fixStatus === 3) { | ||||
let xfcmdArr = value.command.split(","); | let xfcmdArr = value.command.split(","); | ||||
bluetoothUtil.transCmd(xfcmdArr, "10", function (resValueData) { | |||||
transCmd(xfcmdArr, function (resValueData) { | |||||
var status = resValueData[1].substring( | var status = resValueData[1].substring( | ||||
resValueData[1].length - 4, | resValueData[1].length - 4, | ||||
resValueData[1].length | resValueData[1].length |
卡卷状态:正常 | 卡卷状态:正常 | ||||
</text> | </text> | ||||
<button style="background-color: #4caf50;" class="copy-btn" | <button style="background-color: #4caf50;" class="copy-btn" | ||||
data-code="{{item}}" @click.stop="copyCode(item,'EXPIRED',null)"> | |||||
data-code="{{item}}" | |||||
@click.stop="copyCode(item,'EXPIRED',item['couponInfoItem'])"> | |||||
去使用 | 去使用 | ||||
</button> | </button> | ||||
</view> | </view> | ||||
let alonePurchase = res.data.alonePurchase; | let alonePurchase = res.data.alonePurchase; | ||||
if (newCodes) { | if (newCodes) { | ||||
console.log(res, '111=========', newCodes); | console.log(res, '111=========', newCodes); | ||||
let newCodesNew = [] | |||||
newCodes.forEach(item => { | newCodes.forEach(item => { | ||||
//1 不能领取 0 可以领取 1(不能领取原因 notUseCase) | //1 不能领取 0 可以领取 1(不能领取原因 notUseCase) | ||||
// item.equityInfoItems[0].equityType | // item.equityInfoItems[0].equityType | ||||
.equityInfoItems[0].couponInfoItem.redeemCode | .equityInfoItems[0].couponInfoItem.redeemCode | ||||
item.drawTime = item.equityInfoItems[0].drawTime && item.equityInfoItems[0] | item.drawTime = item.equityInfoItems[0].drawTime && item.equityInfoItems[0] | ||||
.drawTime.split('T')[0] | .drawTime.split('T')[0] | ||||
// item.periodOfValidity = item.equityInfoItems[0].periodOfValidity.replace(/T/g, " "); | |||||
// item.periodOfValidity = item.equityInfoItems[0].periodOfValidity.split('T')[0] | |||||
console.log("item", item.equityInfoItems) | |||||
// 不展示付宝数据 | |||||
for (var k = 0; k < item.equityInfoItems.length; k++) { | |||||
if (item.equityInfoItems[k]['equityType'] != "ZFB") { | |||||
console.log("alonePurchase1111", alonePurchase) | |||||
newCodesNew.push(item) | |||||
} | |||||
} | |||||
}); | }); | ||||
exchangeCodes.value = newCodes | |||||
exchangeCodes.value = newCodesNew | |||||
// 购买的权益产品展示 | // 购买的权益产品展示 | ||||
console.log("exchangeCodes.value", exchangeCodes.value); | console.log("exchangeCodes.value", exchangeCodes.value); | ||||
} | } | ||||
let newAlonePurchase = [] | |||||
if (alonePurchase) { | if (alonePurchase) { | ||||
console.log("alonePurchase", alonePurchase) | console.log("alonePurchase", alonePurchase) | ||||
alonePurchase.forEach(item => { | alonePurchase.forEach(item => { | ||||
console.log("index", item.equityType == "ZFB") | |||||
//1 不能领取 0 可以领取 1(不能领取原因 notUseCase) | //1 不能领取 0 可以领取 1(不能领取原因 notUseCase) | ||||
// item.equityInfoItems[0].equityType | // item.equityInfoItems[0].equityType | ||||
// WAIT_GET | // WAIT_GET | ||||
.couponInfoItem.redeemCode | .couponInfoItem.redeemCode | ||||
item.drawTime = item.drawTime && item | item.drawTime = item.drawTime && item | ||||
.drawTime.split('T')[0] | .drawTime.split('T')[0] | ||||
// 不展示付宝数据 | |||||
if (item.equityType != "ZFB") { | |||||
console.log("alonePurchase1111", alonePurchase) | |||||
newAlonePurchase.push(item) | |||||
} | |||||
}); | }); | ||||
alonePurchaseData.value = alonePurchase | |||||
alonePurchaseData.value = newAlonePurchase | |||||
} | } | ||||
}) | }) | ||||
} | } | ||||
} | } | ||||
function copyCode(e, start, items) { | function copyCode(e, start, items) { | ||||
console.log("items", e, items, e.redeemCode) | |||||
let item = e; | let item = e; | ||||
// // 复制兑换码到剪贴板 | // // 复制兑换码到剪贴板 | ||||
let code = e.redeemCode ? e.redeemCode : items.redeemCode; | let code = e.redeemCode ? e.redeemCode : items.redeemCode; |
export const flowServiceFee = "1a78cda7cace443f9cff63902fb3d35c" // 通行流水服务费批量开票 | export const flowServiceFee = "1a78cda7cace443f9cff63902fb3d35c" // 通行流水服务费批量开票 | ||||
export const silentLoginApi = "abaf0013caa24dafad12b0f571e8ee40" // 无感登录 | export const silentLoginApi = "abaf0013caa24dafad12b0f571e8ee40" // 无感登录 | ||||
export const carMessageApi = "854899f6244049d69b6ff883f28dcb28" // 车辆信息上传带出车辆信息 | |||||
export const carMessageApi = "854899f6244049d69b6ff883f28dcb28" // 车辆信息上传带出车辆信息 | |||||
export const getZfbOpenid = "62f02a3fd5eb462d9541aa21b78bba06" // 获取支付宝Openid支付宝 | |||||
export const channelSingApi = "5c7a7614cf5746aa8db6215c5b46f8f0" | |||||
export const channelSingQueryApi = "0c6d650d94274ee086008652fa0fe41a" | |||||
export const isChannelSingApi = "IF01001202308301001" //是否签约 |
} | } | ||||
// 通知用户消息订阅 | // 通知用户消息订阅 | ||||
export const noticeUser = (callback : Function) => { | export const noticeUser = (callback : Function) => { | ||||
// #ifdef MP-WEIXIN | |||||
uni.requestSubscribeMessage({ | uni.requestSubscribeMessage({ | ||||
tmplIds: ['u7u0yO2dkYBISpox815e1S_fcUyl9B9qyxAK7aBjuho'], | tmplIds: ['u7u0yO2dkYBISpox815e1S_fcUyl9B9qyxAK7aBjuho'], | ||||
complete(res) { | complete(res) { | ||||
callback() | callback() | ||||
} | } | ||||
}) | }) | ||||
// #endif | |||||
// #ifdef MP-ALIPAY | |||||
my.requestSubscribeMessage({ | |||||
entityIds: [ | |||||
'f1f2d14d608e48dca5c4f4775d3d2424' | |||||
], | |||||
complete(res) { | |||||
console.log("通知用户消息订阅", res) | |||||
callback() | |||||
} | |||||
}) | |||||
// #endif | |||||
} | } | ||||
// 压缩图片 | // 压缩图片 | ||||
export const compressImage = (tempFilePaths : any, callback : Function) => { | export const compressImage = (tempFilePaths : any, callback : Function) => { |