Quellcode durchsuchen

云币明细更新

liuyao vor 1 Jahr
Ursprung
Commit
dc87cf34b1

+ 20 - 0
api/pages/mst/share.js

@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright(c) 2024 dongke All rights reserved. / Confidential
+ * 类的信息:
+ *		1.程序名称:
+ *		2.功能描述:云币信息
+ * 编辑履历:
+ *		作者				日期					版本				修改内容
+ *		刘尧		  	     2024-7-24       			1.00		       	新建
+ *******************************************************************************/
+module.exports = {
+  shareService: {
+    // 前缀
+    // prefix: 'mdm-server/mst/setting_value/',
+  },
+  routeUrl: {
+    share: {
+      integralDetail: {key: 'item', url: '/package-basic-data/pages/sign-share-detail/integral-detail'}
+    }
+  }
+};

+ 2 - 1
app.js

@@ -77,10 +77,11 @@ const inboundItem = require('./api/pages/ivt/inboundItem.js');
 const accReceiptPayment = require('./api/pages/mac/accReceiptPayment.js');
 const supReceiptPayment = require('./api/pages/mac/supReceiptPayment.js');
 const followPlan = require('./api/pages/mst/followPlan.js');
+const share = require('./api/pages/mst/share.js');
 
 // api服务路由文件
 var apiList = [common, oauth,setting, company, wechatPay,user, staff, staffRight, staffPurview, settingValue, customer, role, roleFun, org, roleSensitive, goodsBrand, goodsCategory, goodsSeries, unit, supplier, warehouse, saleChannel, goodsSku, basicData,customerMst,purchase,account,payment,
-  receiptPayment,inbound,inboundOther,inboundProcessing,inboundPurchaseReturn,outbound,outboundOther,outboundProcessing,outboundSaleReturn,inventory,moneyAccount,intoReturn,intoReturnItem,cusFollow,order,transfer,saleOutBound,inboundReturn,cusReceiptPayment,menuFrequency,userMenuFrequency,comMenu,saleOutBoundReturn,activity,check,freeze,otherReceivable,otherPayable,inventoryAdjustment,report,saleReport,printLayout,exportPage,inboundItem,accReceiptPayment,supReceiptPayment,followPlan]
+  receiptPayment,inbound,inboundOther,inboundProcessing,inboundPurchaseReturn,outbound,outboundOther,outboundProcessing,outboundSaleReturn,inventory,moneyAccount,intoReturn,intoReturnItem,cusFollow,order,transfer,saleOutBound,inboundReturn,cusReceiptPayment,menuFrequency,userMenuFrequency,comMenu,saleOutBoundReturn,activity,check,freeze,otherReceivable,otherPayable,inventoryAdjustment,report,saleReport,printLayout,exportPage,inboundItem,accReceiptPayment,supReceiptPayment,followPlan,share]
 
 const util = require('./utils/util.js')
 const baseMethod = require('./api/pages/baseMethod.js')

+ 2 - 0
mixins/index.js

@@ -335,6 +335,8 @@ module.exports = {
     if (!name) {
       name = 'add'
     }
+    console.log('name', name);
+    console.log('this.data.route', this.data.route);
     let routeUrl = this.data.route[name];
     if (!routeUrl) return;
     this._openValidData(item, name, routeUrl.valid).then(res => {

+ 1 - 1
package-basic-data/pages/share/share.js

@@ -8,7 +8,7 @@ Page({
      * 页面的初始数据
      */
     data: {
-
+      routeObjName: 'share',
     },
 
     /**

+ 7 - 1
package-basic-data/pages/share/share.wxml

@@ -18,7 +18,7 @@
     <view class="integral-info">
       <view class="integral-item">
         <view class="item">
-          公司云币:<view class="number">10,000</view>个
+          公司云币:<view class="number" data-name="integralDetail" bind:tap="open">10,000</view>个
         </view>
         <view class="item">
           优惠券:<view class="number">1</view>张
@@ -58,6 +58,9 @@
     </view>
   </view>
   <view class="activity-card">
+    <view class="activity-title">
+    助力拿福利
+    </view>
     <view class="card-item">
       <view class="discount-view">
         <view class="number">5</view>
@@ -86,6 +89,9 @@
   </view>
 
   <view class="activity-card">
+    <view class="activity-title">
+    邀请注册拿云币
+    </view>
     <view class="card-item">
       <view class="integral-view">
         <view class="number">100</view>

+ 1 - 1
package-basic-data/pages/share/share.wxss

@@ -131,7 +131,7 @@ page {
   margin-top: 30rpx;
   padding: 20rpx;
   box-shadow: 0px 10px 20px 0px #E1E5EE99;
-  border: 1px solid #CE9965;
+  /* border: 1px solid #CE9965; */
   box-shadow: 0px 10px 20px 0px #0000000D;
   box-shadow: 0px -6px 20px 0px #0000000D;
   background: radial-gradient(66.18% 65.3% at 6.12% 18.49%, #FFF9EC 0%, #FFFFFF 100%);

+ 2 - 1
package-basic-data/pages/sign-share-detail/integral-detail.json

@@ -1,3 +1,4 @@
 {
-    "usingComponents": {}
+    "usingComponents": {},
+    "navigationBarTitleText": "云币明细f"
 }

+ 37 - 1
package-basic-data/pages/sign-share-detail/integral-detail.wxml

@@ -1,2 +1,38 @@
 <!--package-basic-data/pages/sign-share-detail/integral-detail.wxml-->
-<text>package-basic-data/pages/sign-share-detail/integral-detail.wxml</text>
+<view class="content">
+  <view class="user-card">
+    <view class="user-card-info">
+      <view class="info-title">
+        <view class="cp-avatar">
+          <image fit="fill" src="{{imageUrl+'/order_billing_detail_01.png'}}"></image>
+        </view>
+        <view class="title-info">
+          <view class="cp-info">沈阳东科软件有限公司<view class="version-card">标准版</view>
+          </view>
+          <view class="user-info">张总经理 | 156 4055 6650</view>
+        </view>
+      </view>
+      <view class="info-item"></view>
+    </view>
+    <view class="integral-info">
+      <view class="integral-item">
+        <view class="item">
+          公司云币:<view class="number" data-name="integralDetail" bind:tap="open">10,000</view>个
+        </view>
+        <view class="item" style="color: #95A8CB;text-decoration-line:underline;">
+          历史邀请记录
+        </view>
+      </view>
+      <view class="rearmk-view">
+        <view class="title">云币说明:
+          <span class="info">完成签到、分享、邀请可获得云币,云币可完全抵扣续费、购买授权、购买功能包等费用。
+            <span style="color: #3F5CF4;text-decoration:underline;">查看云币具体规则;</span>
+          </span>
+        </view>
+      </view>
+    </view>
+    <view class="user-card-backgorund">
+      <image class="scan-image" fit="fill" src="{{imageUrl+'/detail_sale_order.png'}}"></image>
+    </view>
+  </view>
+</view>

+ 123 - 1
package-basic-data/pages/sign-share-detail/integral-detail.wxss

@@ -1 +1,123 @@
-/* package-basic-data/pages/sign-share-detail/integral-detail.wxss */
+page {
+  background: #F8F9FD;
+}
+.content{
+  padding: 20rpx 10px 0rpx 10px;
+}
+
+.user-card{
+  width: auto;
+  border: 1px solid #F3FBFF;
+  padding: 50rpx 35rpx 0rpx 35rpx;
+  border-radius: 30rpx;
+  background-color: #FFFF;
+  background: radial-gradient(65.52% 61.17% at 6.12% 18.49%, #CDD8FF 0%, #F3FAFF 100%);
+}
+
+.user-card-backgorund{
+  width: auto;
+  position: relative;
+  bottom: 0;
+}
+
+.user-card-backgorund .scan-image{
+  width: 200rpx;
+  height: 200rpx;
+  position: absolute;
+  bottom: 0;
+  right: 0;
+}
+
+.user-card-info{
+  width: 100%;
+  display: flex;
+}
+
+.user-card-info .info-title{
+  width: 100%;
+  display: flex;
+}
+
+.user-card-info .title-info .cp-info{
+  display: flex;
+  font-size: 35rpx;
+  justify-content: center;
+  align-items: center;
+}
+
+.user-card-info .info-title .version-card{
+  font-weight: 500;
+  font-size: 20rpx;
+  height: 2vh;
+  align-items: center;
+  display: flex;
+  border-top-left-radius: 20rpx;
+  border-bottom-right-radius: 20rpx;
+  padding: 0rpx 10rpx;
+  justify-items: center;
+  margin-left: 15rpx;
+  background: linear-gradient(0deg, #CFC9C0, #CFC9C0),
+  conic-gradient(from 154.5deg at 29.17% -8.33%, #FFE8BA -0.56deg, rgba(255, 230, 165, 0) 0.26deg, rgba(227, 184, 73, 0.34) 17.37deg, rgba(240, 187, 253, 0.23) 347.83deg, rgba(186, 234, 255, 0.38) 353.78deg, #FFE8BA 359.44deg, rgba(255, 230, 165, 0) 360.26deg);
+}
+
+.user-card-info .info-title .version-card span{
+  color: #51370F;
+  box-shadow: 0px 0.56px 0px 0px #FFFB9E;
+}
+
+.cp-avatar image{
+  width: 80rpx;
+  height: 80rpx;
+}
+
+.title-info{
+  font-weight: bolder;
+  margin-left: 25rpx;
+}
+
+.title-info .user-info{
+  margin-top: 25rpx;
+}
+
+.integral-info{
+  display: flex;
+  flex-direction: column;
+  margin-bottom: 20rpx;
+}
+
+.integral-item{
+  display: flex;
+  justify-content: space-between;
+  align-items: flex-end;
+  margin-top: 20rpx;
+}
+
+.integral-item .item{
+  display: flex;
+  color: #1B365D;
+  font-weight: 600;
+  font-size: 35rpx;
+  align-items: center;
+}
+
+.integral-item .number{
+  color: #FF7B1A;
+  font-size: 40rpx;
+  text-decoration-line:underline;
+}
+
+.integral-info .rearmk-view{
+  margin-top: 15rpx;
+  font-size: 25rpx;
+}
+
+.integral-info .rearmk-view .title{
+  font-weight: 600;
+  color: #1B365D;
+}
+
+.integral-info .rearmk-view .info{
+  color: #95A8CB;
+  margin-left: 15rpx;
+  font-weight: 500;
+}