Commit 442cdc95 authored by youjie's avatar youjie

去积分商城绑定

parent 7042c04a
......@@ -70,6 +70,9 @@
/* 小程序特有相关 */
"mp-weixin" : {
"appid": "wxcf0727a7c78b501e",
"navigateToMiniProgramAppIdList": [
"wxacd9f8cc3480d29e"
],
"setting" : {
"urlCheck" : true,
"minified" : false
......
......@@ -38,7 +38,12 @@
{{mall_UserInfo.Name}}
</text>
<!-- 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">
<text>积分商场</text>
<u-icon name="arrow" :size="26" color="#61462E" style=""></u-icon>
</div>
<text class="userHeadPicR_text" @click="goTisp" style="color: #a4bb7a;">
积分规则
<!-- #ifdef MP-DI -->
<!-- 销售:{{ b2b_user_info.salesBaseInfo.emName }} -->
......@@ -49,6 +54,7 @@
</text>
</view>
</view>
</view>
<view class="userHeadPasBox">
<view class="userHeadPNumBox row-sb-n">
<view class="userHeadPNum">
......@@ -224,6 +230,27 @@
},
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(){
this.showTisp = true
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