Commit be778b81 by luyt

fix;授权名称,local本地数据合并

1 parent 9097b7ba
......@@ -68,3 +68,14 @@
}
}
}
/* 用户授权 */
.user-profile {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
background-color: transparent;
}
......@@ -34,3 +34,5 @@
<view class="btom" bindtap="modelcloseFn">取消</view>
</view>
</view>
<!-- 授权昵称 -->
<view wx:if="{{!hasUserInfo}}" class="user-profile" bindtap="getUserProfile"></view>
......@@ -166,16 +166,18 @@ Component({
},
// 获取用户信息
getUserInfo({ detail }) {
console.log(detail);
// console.log(detail);
if (!detail.code) return;
// this.setBtnLoading()
USERAPI.getUserProfile(this.loginToken, detail)
.then((result) => {
// console.log(result)
let userInfo = wx.$storage.get('wx_user_info')
// console.log('userInfo: ', userInfo);
let { phone } = result;
// let {
wx.$storage.set('wx_user_info', result);
// console.log('phone: ', phone);
wx.$storage.set('wx_user_info', {...userInfo,phone});
// }
this.triggerEvent("authorized", {
phone,
......
......@@ -17,7 +17,7 @@
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="sale" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}}&nbsp;<text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].changeSale || senceData[actNum]['productList'][activeNavIdx].sale}}</text>
</text>
<text class="earnings" decode="{{true}}">{{stickyTop}}预估收益&nbsp;<text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
<text class="earnings" decode="{{true}}">预估收益&nbsp;<text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</view>
<view class="share-btn" wx:if="{{!isShare}}" bindtap="onShareFn">
......
......@@ -14,9 +14,9 @@ var senceData = [
{
img: 'product-img1',
proName: '数字无忧权益卡',
price: '1500',
price: '100',
// profit: '92.4万',
profit: '120万',
profit: '1200000',
type: 'service',
productType: 'benefitCard',
path: 'equity',
......@@ -63,8 +63,8 @@ var senceData = [
{
img: 'product-img2',
proName: '汽车太阳膜',
price: '1500',
profit: '1008万',
price: '100',
profit: '10080000',
type: 'membrane',
productType: 'sunMembrane',
path: 'solarFilm',
......@@ -96,8 +96,8 @@ var senceData = [
{
img: 'product-img3',
proName: '漆面保护膜',
price: '12000',
profit: '216万',
price: '100',
profit: '2160000',
type: 'membrane',
productType: 'protectMembrane',
path: 'paintProtect',
......@@ -110,8 +110,8 @@ var senceData = [
{
img: 'product-img4',
proName: '改色膜',
price: '5000',
profit: '30万',
price: '100',
profit: '300000',
type: 'membrane',
productType: 'colorMembrane',
path: 'changingFilm',
......@@ -136,8 +136,8 @@ var senceData = [
{
img: 'product-img5',
proName: '数字化美容',
price: '300',
profit: '36万',
price: '100',
profit: '72000',
type: 'beauty',
productType: 'digitBeauty',
path: 'carBeauty',
......@@ -150,8 +150,8 @@ var senceData = [
{
img: 'product-img6',
proName: '座椅通风',
price: '1500',
profit: '1008万',
price: '10000',
profit: '232200',
type: 'light',
productType: 'chair',
path: 'seatVentilate',
......@@ -164,8 +164,8 @@ var senceData = [
{
img: 'product-img7',
proName: 'AR导航',
price: '1680',
profit: '22.68万',
price: '10000',
profit: '226800',
type: 'light',
productType: 'ar',
path: 'arNavigation',
......@@ -178,8 +178,8 @@ var senceData = [
{
img: 'product-img8',
proName: '氛围灯',
price: '2680',
profit: '36.18万',
price: '10000',
profit: '361800',
type: 'light',
productType: 'lamp',
path: 'ambientLighting',
......@@ -192,8 +192,8 @@ var senceData = [
{
img: 'product-img9',
proName: '360全景导航',
price: '2880',
profit: '38.88万',
price: '10000',
profit: '388800',
type: 'service',
productType: 'navigation',
path: 'navigationArround',
......
......@@ -350,7 +350,7 @@ Page({
}
console.log(profit.length);
console.log(productType, sales, flow, profit);
if (profit.length > 8) {
if (profit.length > 9) {
return (profit / 10000).toFixed(0) + "万";
} else {
return profit;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!