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

1

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