Commit 1396ad64 authored by 罗超's avatar 罗超

1

parent 8d8ca1f8
{
"name" : "mallapp",
"appid" : "",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"name": "mallapp",
"appid": "",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
/* 5+App特有相关 */
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
"app-plus": {
"usingComponents": true,
"nvueCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
},
/* 模块配置 */
"modules" : {
"Share" : {}
"modules": {
"Share": {}
},
/* 应用发布信息 */
"distribute" : {
"distribute": {
/* android打包配置 */
"android" : {
"permissions" : [
"android": {
"permissions": [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
......@@ -50,73 +50,75 @@
]
},
/* ios打包配置 */
"ios" : {},
"ios": {},
/* SDK配置 */
"sdkConfigs" : {
"share" : {
"weixin" : {
"appid" : "wxbb033190e0ffa5db",
"UniversalLinks" : ""
"sdkConfigs": {
"share": {
"weixin": {
"appid": "wxbb033190e0ffa5db",
"UniversalLinks": ""
}
},
"oauth" : {
"univerify" : {}
"oauth": {
"univerify": {}
}
}
}
},
/* 快应用特有相关 */
"quickapp" : {},
"quickapp": {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxcf0727a7c78b501e",
"setting" : {
"urlCheck" : false,
"minified" : false
"mp-weixin": {
"appid": "wxcf0727a7c78b501e",
"setting": {
"urlCheck": false,
"minified": false
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于小程序位置接口的效果展示"
"usingComponents": true,
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"optimization":{
"subPackages":true
}
"optimization": {
"subPackages": true
}
},
"mp-alipay" : {
"component2" : true,
"usingComponents" : true,
"appid" : "2021002181604459",
"plugins" : {}
"mp-alipay": {
"component2": true,
"usingComponents": true,
"appid": "2021002181604459",
"plugins": {
// 使用到的插件
"subscribeMsg": {
// 订阅消息插件
"version": "*", // 目前只支持设置 * 拉取当前上架最新版本
"provider": "2021001155639035" // 消息订阅插件 appid
}
}
},
// 使用到的插件
// "subscribeMsg" : {
// 订阅消息插件
// "version" : "*", // 目前只支持设置 * 拉取当前上架最新版本
// "provider" : "2021001155639035" // 消息订阅插件 appid
// }
"mp-baidu" : {
"usingComponents" : true
"mp-baidu": {
"usingComponents": true
},
"mp-toutiao" : {
"usingComponents" : true
"mp-toutiao": {
"usingComponents": true
},
"uniStatistics" : {
"enable" : false
"uniStatistics": {
"enable": false
},
"h5" : {
"router" : {
"mode" : "history",
"base" : "/h5/"
"h5": {
"router": {
"mode": "history",
"base": "/h5/"
},
"template" : "h5.html",
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : "ZAPBZ-SVBWR-OAMWM-WC45H-AKFU3-FIBP3"
"template": "h5.html",
"sdkConfigs": {
"maps": {
"qqmap": {
"key": "ZAPBZ-SVBWR-OAMWM-WC45H-AKFU3-FIBP3"
}
}
}
}
}
}
\ No newline at end of file
......@@ -918,8 +918,9 @@
scene="SCE01203509"
icon="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
size="38rpx"
:alipay-card-no="2088 + userId"
:ext-info="appid"
>
<!-- :ext-info="encodeURIComponent({ appId: 2021002181604459 })" -->
</contact-button>
<view style="color: #111111; font-size: 22rpx">客服</view>
</button>
......@@ -960,8 +961,9 @@
scene="SCE01203509"
icon="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/kefu.png"
size="38rpx"
:alipay-card-no="2088 + userId"
:ext-info="appid"
>
<!-- :ext-info="encodeURIComponent({ appId: 2021002181604459 })" -->
</contact-button>
<view style="color: #111111; font-size: 22rpx">客服</view>
</button>
......@@ -1028,6 +1030,8 @@ export default {
finishFirstLoad: false,
showAuth: false,
U: {},
appid: encodeURIComponent(JSON.stringify({ appId: "2021002181604459" })),
userId: uni.getStorageSync("mall_UserInfo").UserId,
};
},
created() {},
......
......@@ -515,10 +515,16 @@
</view>
</view>
</view>
<!-- #ifdef MP-ALIPAY -->
<subscribe-msg />
<!-- #endif -->
</view>
</template>
<script>
// #ifdef MP-ALIPAY
import { SubscribeMsgAli } from "../../plugin/utils";
// #endif
export default {
components: {},
data() {
......
......@@ -555,6 +555,8 @@
scene="SCE01203509"
:icon="item.icon_url"
size="70rpx"
:alipay-card-no="2088 + userId"
:ext-info="appid"
>
</contact-button>
</view>
......@@ -636,6 +638,8 @@ export default {
IsDeposit: 0, //是否开启储蓄卡功能
AppletID: 0, //小程序id 5-8日 判断是否是甲鹤
isAttestationEdu: 0, //学员是否认证了 0否1是
appid: encodeURIComponent(JSON.stringify({ appId: "2021002181604459" })),
userId: uni.getStorageSync("mall_UserInfo").UserId,
};
},
components: {
......
......@@ -39,12 +39,12 @@ function getretailer() {//判断是否是分销商
}
// #ifdef MP-ALIPAY
// 引入消息模板方法
// const { requestSubscribeMessage } = requirePlugin("subscribeMsg");
const { requestSubscribeMessage } = requirePlugin("subscribeMsg");
function SubscribeMsgAli(ids, cb) {//支付宝小程序订阅消息
requestSubscribeMessage({ // 触发消息订阅弹框
entityIds: ids, // 模板消息id,
callback(res) {
cb()
cb(res)
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment