Commit 442cdc95 authored by youjie's avatar youjie

去积分商城绑定

parent 7042c04a
...@@ -70,6 +70,9 @@ ...@@ -70,6 +70,9 @@
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin" : {
"appid": "wxcf0727a7c78b501e", "appid": "wxcf0727a7c78b501e",
"navigateToMiniProgramAppIdList": [
"wxacd9f8cc3480d29e"
],
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : true,
"minified" : false "minified" : false
......
...@@ -38,15 +38,21 @@ ...@@ -38,15 +38,21 @@
{{mall_UserInfo.Name}} {{mall_UserInfo.Name}}
</text> </text>
<!-- v-if="CustomerIntegral&&CustomerIntegral.saleList&&CustomerIntegral.saleList.length>0" --> <!-- v-if="CustomerIntegral&&CustomerIntegral.saleList&&CustomerIntegral.saleList.length>0" -->
<text class="userHeadPicR_text" @click="goTisp"> <view class="row">
积分规则 <div class="userHeadPicR_text flex-1 row col" @click="goExchange">
<!-- #ifdef MP-DI --> <text>积分商场</text>
<!-- 销售:{{ b2b_user_info.salesBaseInfo.emName }} --> <u-icon name="arrow" :size="26" color="#61462E" style=""></u-icon>
<!-- #endif --> </div>
<!-- #ifdef MP-AG --> <text class="userHeadPicR_text" @click="goTisp" style="color: #a4bb7a;">
<!-- 销售:{{ CustomerIntegral.saleList[0].saleName }}<template v-if="CustomerIntegral.saleList.length>0">{{CustomerIntegral.saleList.length}}</template> --> 积分规则
<!-- #endif --> <!-- #ifdef MP-DI -->
</text> <!-- 销售:{{ b2b_user_info.salesBaseInfo.emName }} -->
<!-- #endif -->
<!-- #ifdef MP-AG -->
<!-- 销售:{{ CustomerIntegral.saleList[0].saleName }}<template v-if="CustomerIntegral.saleList.length>0">{{CustomerIntegral.saleList.length}}</template> -->
<!-- #endif -->
</text>
</view>
</view> </view>
</view> </view>
<view class="userHeadPasBox"> <view class="userHeadPasBox">
...@@ -224,6 +230,27 @@ ...@@ -224,6 +230,27 @@
}, },
methods: { methods: {
goExchange(){
console.log(uni.getStorageSync('mall_UserInfo').OpenId,'积分商场')
uni.navigateToMiniProgram({
appId: 'wxacd9f8cc3480d29e',
path: `pages/index/index?jzTravelOpenId=${uni.getStorageSync('mall_UserInfo').OpenId}`, // 目标页面路径(可选)
extraData: { // 传递给目标小程序的数据(可选)
},
envVersion: 'rel ease', // 目标版本(可选,默认 release;可选值:develop/trial/release)
success(res) {
console.log('跳转成功', res);
},
fail(err) {
console.error('跳转失败', err);
// 常见错误:-4(appId未声明)、-5(参数错误)、-100(用户拒绝)
},
complete() {
console.log('跳转流程结束');
}
});
},
goTisp(){ goTisp(){
this.showTisp = true this.showTisp = true
this.scrollTop = 500 this.scrollTop = 500
......
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