first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/api/http.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/http.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js"),t=require("../utils/fun.js"),o={development:"https://apidjk.jitujt.com",production:"https://apidjk.jitujt.com"};exports.http=({url:n,params:i,method:r})=>new Promise(((a,s)=>{let c=e.index.getStorageSync("Authorization")||"",d={Authorization:c,"Tenant-id":"134"};e.index.request({url:o.production+n,data:i||{},method:r||"POST",header:d,success:o=>{const n=o.data;if(401==n.code||401==o.statusCode)return e.index.removeStorageSync("Authorization"),e.index.removeStorageSync("userInfo"),e.index.showModal({title:"提示",content:(c?"登录失效":"你还未登录")+",是否前往登录?",success:function(t){t.confirm?e.index.navigateTo({url:"/pages/login/login"}):t.cancel&&(e.index.clearStorageSync(),console.log("用户点击取消"))}}),void s(n);0===n.code?a(n.data||null):(t.toast(n.msg),s(n))},fail:e=>{s(e)}})})),exports.proxyObj=o;
|
||||
1
unpackage/dist/build/mp-weixin/api/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./modules/users.js"),s=require("./modules/goods.js"),r=require("./modules/config.js"),i=require("./modules/order.js"),o={...e.api,...s.api,...r.api,...i.api};exports.api=o;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/config.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/config.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const p=require("../http.js"),a={banner:(a={})=>p.http({url:"/app-api/djk/app/banner/page",params:a,method:"GET"}),noticePage:(a={})=>p.http({url:"/app-api/djk/app/notice/page",params:a,method:"GET"}),noticeCatePage:(a={})=>p.http({url:"/app-api/djk/app/notice-category/page",params:a,method:"GET"}),noticeInfo:(a={})=>p.http({url:"/app-api/djk/app/notice/get",params:a,method:"GET"})};exports.api=a;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/goods.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/goods.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const p=require("../http.js"),a={goodsPage:(a={})=>p.http({url:"/app-api/djk/app/goods/page",params:a,method:"GET"}),goodsInfo:(a={})=>p.http({url:"/app-api/djk/app/goods/get",params:a,method:"GET"}),goodsCate:(a={})=>p.http({url:"/app-api/djk/app/goods/category/page",params:a,method:"GET"})};exports.api=a;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/order.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/order.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const p=require("../http.js"),r={orderCreate:(r={})=>p.http({url:"/app-api/djk/app/order/create",params:r,method:"POST"}),orderPage:(r={})=>p.http({url:"/app-api/djk/app/order/page",params:r,method:"GET"}),orderInfo:(r={})=>p.http({url:"/app-api/djk/app/order/get",params:r,method:"GET"})};exports.api=r;
|
||||
1
unpackage/dist/build/mp-weixin/api/modules/users.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/api/modules/users.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../http.js"),p={loginApi:(p={})=>e.http({url:"/app-api/member/auth/login",params:p,method:"POST"}),smsLoginApi:(p={})=>e.http({url:"/app-api/member/auth/sms-login",params:p,method:"POST"}),registerApi:(p={})=>e.http({url:"/app-api/member/auth/register",params:p,method:"POST"}),smsCode:(p={})=>e.http({url:"/app-api/member/auth/send-sms-code",params:p,method:"POST"}),usersGetInfo:(p={})=>e.http({url:"/app-api/member/user/get",params:p,method:"GET"}),usersGetInfoTeam:(p={})=>e.http({url:"/app-api/member/user/getPage",params:p,method:"GET"}),usersUpdate:(p={})=>e.http({url:"/app-api/member/user/update",params:p,method:"PUT"}),addressPage:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/page",params:p,method:"GET"}),addressAdd:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/create",params:p,method:"POST"}),addressUp:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/update",params:p,method:"PUT"}),addressInfo:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/get",params:p,method:"GET"}),addressDel:(p={})=>e.http({url:"/app-api/djk/app/user-receiver/delete?id="+p.id,params:p,method:"DELETE"}),moneyRecord:(p={})=>e.http({url:"/app-api/member/money-record/djk/page",params:p,method:"GET"}),updateMobile:(p={})=>e.http({url:"/app-api/member/user/update-mobile",params:p,method:"PUT"}),rewardReport:(p={})=>e.http({url:"/app-api/member/money-record/djk/rewardReport",params:p,method:"GET"}),getTeamMonthlyPerformanceAward:(p={})=>e.http({url:"/app-api/member/money-record/djk/getTeamMonthlyPerformanceAward",params:p,method:"GET"}),transfer2other:(p={})=>e.http({url:"/app-api/member/user/pay/transfer2other",params:p,method:"POST"})};exports.api=p;
|
||||
1
unpackage/dist/build/mp-weixin/app.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/app.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js"),n=require("./store/index.js"),o=require("./utils/mpShare.js");Math;const t={onLaunch:async function(o){o&&o.query&&(e.index.setStorageSync("inviteCode",o.query.scene),console.log("----",e.index.getStorageSync("inviteCode")));const t=n.Store();await t.usersGetInfo()},onShow:function(n){e.index.setStorageSync("inviteCode",n.query.scene),console.log("App Show")},onHide:function(){console.log("App Hide")}};function r(){const n=e.createSSRApp(t);return n.mixin(o.share),n.use(e.createPinia()),{app:n}}r().app.mount("#app"),exports.createApp=r;
|
||||
64
unpackage/dist/build/mp-weixin/app.json
vendored
Normal file
64
unpackage/dist/build/mp-weixin/app.json
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/index/index",
|
||||
"pages/mine/mine",
|
||||
"pages/cate/cate",
|
||||
"pages/order/order",
|
||||
"pages/login/login",
|
||||
"pages/goods/goods",
|
||||
"pages/team/team",
|
||||
"pages/mine/sett",
|
||||
"pages/equity/equity",
|
||||
"pages/wallet/wallet",
|
||||
"pages/notice/notice",
|
||||
"pages/address/list",
|
||||
"pages/address/add",
|
||||
"pages/order/confirm",
|
||||
"pages/order/success",
|
||||
"pages/goods/prefecture",
|
||||
"pages/wallet/list",
|
||||
"pages/notice/details",
|
||||
"pages/mine/mobile",
|
||||
"pages/protocol/protocol",
|
||||
"pages/wallet/zhaun"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "uni-app",
|
||||
"navigationBarBackgroundColor": "#F8F8F8",
|
||||
"backgroundColor": "#F8F8F8"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#AAA",
|
||||
"selectedColor": "#516E41",
|
||||
"borderStyle": "black",
|
||||
"backgroundColor": "#ffffff",
|
||||
"list": [
|
||||
{
|
||||
"iconPath": "static/tabbar/home.png",
|
||||
"selectedIconPath": "static/tabbar/homes.png",
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "首页"
|
||||
},
|
||||
{
|
||||
"iconPath": "static/tabbar/cate.png",
|
||||
"selectedIconPath": "static/tabbar/cates.png",
|
||||
"pagePath": "pages/cate/cate",
|
||||
"text": "分类"
|
||||
},
|
||||
{
|
||||
"iconPath": "static/tabbar/order.png",
|
||||
"selectedIconPath": "static/tabbar/orders.png",
|
||||
"pagePath": "pages/order/order",
|
||||
"text": "订单"
|
||||
},
|
||||
{
|
||||
"iconPath": "static/tabbar/mine.png",
|
||||
"selectedIconPath": "static/tabbar/mines.png",
|
||||
"pagePath": "pages/mine/mine",
|
||||
"text": "我的"
|
||||
}
|
||||
]
|
||||
},
|
||||
"usingComponents": {}
|
||||
}
|
||||
2
unpackage/dist/build/mp-weixin/app.wxss
vendored
Normal file
2
unpackage/dist/build/mp-weixin/app.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/common/assets.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/common/assets.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";exports._imports_0="/static/homeBanner.png",exports._imports_0$1="/static/y.png",exports._imports_0$2="/static/mineBanner.png",exports._imports_0$3="/static/image/login.png",exports._imports_0$4="/static/icons/fx.png",exports._imports_0$5="/static/team.png",exports._imports_0$6="/static/settbie.png",exports._imports_0$7="/static/equityBei.png",exports._imports_0$8="/static/icons/zhangdan.png",exports._imports_0$9="/static/qianBeiAs.png",exports._imports_1="/static/logo.png",exports._imports_1$1="/static/icons/code.png",exports._imports_1$2="/static/icons/goodkf.png",exports._imports_1$3="/static/icons/yue.png",exports._imports_1$4="/static/icon/icon_img.png",exports._imports_1$5="/static/equity_pack.png",exports._imports_1$6="/static/icons/xia.png",exports._imports_1$7="/static/qianbaoBei.png",exports._imports_2="/static/hui.png",exports._imports_2$1="/static/icons/youh.png",exports._imports_2$2="/static/equity/s1.png",exports._imports_2$3="/static/icons/huazhuan.png",exports._imports_3="/static/yao.png",exports._imports_3$1="/static/equity/s2.png",exports._imports_3$2="/static/icons/wen.png",exports._imports_4="/static/warn.png",exports._imports_4$1="/static/icons/info.png",exports._imports_4$2="/static/equity/s3.png",exports._imports_5="/static/icons/money.png",exports._imports_5$1="/static/icons/kf.png",exports._imports_6="/static/icons/tj.png",exports._imports_6$1="/static/icons/gou.png",exports._imports_7="/static/icons/address.png",exports._imports_9="/static/icons/cha.png";
|
||||
15
unpackage/dist/build/mp-weixin/common/vendor.js
vendored
Normal file
15
unpackage/dist/build/mp-weixin/common/vendor.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/hooks/useNav.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/hooks/useNav.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/vendor.js");require("../store/index.js").Store(),exports.useNav=function(){return{nav:n=>{e.index["nav"!=n.type&&n.type&&"switchTab"==n.type?"switchTab":"navigateTo"]({url:n.path})},navTo:(n,o,t)=>{if(t)return void e.index.makePhoneCall({phoneNumber:"17707569278"});const i=e.index.getStorageSync("Authorization")||"";if(o&&!i)return e.index.showModal({title:"提示",content:"你还未登录,是否前往登录?",success:function(n){n.confirm?e.index.navigateTo({url:"/pages/login/login"}):n.cancel&&console.log("用户点击取消")}});e.index.navigateTo({url:n})}}};
|
||||
1
unpackage/dist/build/mp-weixin/pages/address/add.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/address/add.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-input")+e.resolveComponent("wd-switch"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-input/wd-input.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-switch/wd-switch.js"))();const r=e.defineComponent({__name:"add",setup(r){e.onLoad((e=>{e.id&&a.api.addressInfo({id:e.id}).then((e=>{const a=e||{};a.isDefault=!!a.isDefault;const r=Object.keys(o.value),n={};r.forEach((e=>{a.hasOwnProperty(e)&&(n[e]=a[e])})),Object.assign(o.value,n)}))}));const o=e.ref({receiverName:"",receiverPhone:"",receiverArea:"",receiverAddress:"",isDefault:!0,status:0,id:""}),n=()=>{let r=JSON.parse(JSON.stringify(o.value));r.isDefault=r.isDefault?1:0,r.id?a.api.addressUp(r).then((a=>{e.index.navigateBack()})):a.api.addressAdd(r).then((a=>{e.index.navigateBack()}))},t=()=>{e.index.navigateBack()};return(a,r)=>({a:e.o(t),b:e.p({title:"新增地址",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.o((e=>o.value.receiverName=e)),d:e.p({type:"text","no-border":!0,placeholder:"请输入收货人姓名",modelValue:o.value.receiverName}),e:e.o((e=>o.value.receiverPhone=e)),f:e.p({type:"number","no-border":!0,placeholder:"请输入手机号",modelValue:o.value.receiverPhone}),g:e.o((e=>o.value.receiverArea=e)),h:e.p({type:"text","no-border":!0,placeholder:"请输入省市区",modelValue:o.value.receiverArea}),i:e.o((e=>o.value.receiverAddress=e)),j:e.p({type:"text","no-border":!0,placeholder:"请输入详细地址",modelValue:o.value.receiverAddress}),k:e.o((e=>o.value.isDefault=e)),l:e.p({size:"20px",modelValue:o.value.isDefault}),m:e.o(n)})}}),o=e._export_sfc(r,[["__scopeId","data-v-1285ff06"]]);wx.createPage(o);
|
||||
9
unpackage/dist/build/mp-weixin/pages/address/add.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/address/add.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-input": "../../uni_modules/wot-design-uni/components/wd-input/wd-input",
|
||||
"wd-switch": "../../uni_modules/wot-design-uni/components/wd-switch/wd-switch"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/address/add.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/address/add.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="address-add data-v-1285ff06"><wd-navbar wx:if="{{b}}" class="data-v-1285ff06" bindclickLeft="{{a}}" u-i="1285ff06-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><view class="from-address data-v-1285ff06"><view class="title data-v-1285ff06">收货人</view><view class="content data-v-1285ff06"><wd-input wx:if="{{d}}" class="data-v-1285ff06" u-i="1285ff06-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"/></view></view><view class="from-address data-v-1285ff06"><view class="title data-v-1285ff06">手机号</view><view class="content data-v-1285ff06"><wd-input wx:if="{{f}}" class="data-v-1285ff06" u-i="1285ff06-2" bind:__l="__l" bindupdateModelValue="{{e}}" u-p="{{f}}"/></view></view><view class="from-address data-v-1285ff06"><view class="title data-v-1285ff06">所在地区</view><view class="content data-v-1285ff06"><wd-input wx:if="{{h}}" class="data-v-1285ff06" u-i="1285ff06-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"/></view></view><view class="from-address data-v-1285ff06"><view class="title data-v-1285ff06">详细地址</view><view class="content data-v-1285ff06"><wd-input wx:if="{{j}}" class="data-v-1285ff06" u-i="1285ff06-4" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"/></view></view><view class="from-address data-v-1285ff06" style="margin-top:30rpx;justify-content:space-between"><view class="title data-v-1285ff06" style="width:300rpx">设置为默认地址</view><view class="data-v-1285ff06"><wd-switch wx:if="{{l}}" class="data-v-1285ff06" u-i="1285ff06-5" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"/></view></view><view class="bottom-btn data-v-1285ff06"><view class="button-a data-v-1285ff06" bindtap="{{m}}">保存</view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/address/add.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/address/add.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.address-add.data-v-1285ff06{width:100%;padding:0rpx 0 180rpx}.address-add .from-address.data-v-1285ff06{background-color:#fff;height:110rpx;padding:0rpx 20rpx;display:flex;align-items:center}.address-add .from-address .title.data-v-1285ff06{width:150rpx;font-size:28rpx;font-weight:700;color:#333}.address-add .from-address .content.data-v-1285ff06{flex:1;height:100rpx;display:flex;align-items:center;border-bottom:1rpx solid #f6f6f6}.address-add .bottom-btn.data-v-1285ff06{width:100%;height:150rpx;padding:30rpx;background-color:#fff;position:fixed;bottom:0;left:0;border-radius:20rpx 20rpx 0 0;box-shadow:0 6rpx 16rpx 2rpx rgba(170,170,170,.35);display:flex;align-items:center;justify-content:center}.address-add .bottom-btn .button-a.data-v-1285ff06{width:690rpx;height:90rpx;background:#799675;border-radius:15rpx;text-align:center;font-size:30rpx;color:#fff;line-height:90rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/address/list.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/address/list.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const n=e.defineComponent({__name:"list",setup(n){const o=e.ref(null),r=e.ref(null),i=e.ref([]);e.onLoad((e=>{r.value=e.type})),e.onShow((()=>{o.value.reload()}));const s=(e,n)=>{a.api.addressPage({pageNo:e,pageSize:n}).then((e=>{o.value.complete(e.list)})).catch((e=>{o.value.complete(!1)}))},t=()=>{e.index.navigateBack()},d=a=>{e.index.navigateTo({url:a})};return(n,c)=>({a:e.o(t),b:e.p({title:"地址管理",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.f(i.value,((n,i,s)=>({a:e.t(n.receiverName),b:e.t(n.receiverPhone),c:e.t(n.receiverArea),d:e.t(n.receiverAddress),e:e.o((r=>{return i=n,void e.index.showModal({title:"提示",content:"是否确认删除?",success:e=>{e.confirm&&a.api.addressDel({id:i.id}).then((e=>{o.value.reload()}))}});var i}),i),f:e.o((e=>d(`./add?id=${n.id}`)),i),g:e.o((a=>(a=>{let n=`收货人:${a.receiverName}\n手机号码:${a.receiverPhone}\n所在地区:${a.receiverArea}\n详细地址:${a.receiverAddress}`;e.index.setClipboardData({data:n,success:function(){console.log("success")}})})(n)),i),h:e.o((a=>{return o=n,void(1==r.value&&(e.index.$emit("address",o),e.index.navigateBack()));var o}),i),i:i}))),d:e.sr(o,"a56d4a9a-1",{k:"paging"}),e:e.o(s),f:e.o((e=>i.value=e)),g:e.p({"use-page-scroll":!0,modelValue:i.value}),h:e.o((e=>d("./add")))})}}),o=e._export_sfc(n,[["__scopeId","data-v-a56d4a9a"]]);wx.createPage(o);
|
||||
8
unpackage/dist/build/mp-weixin/pages/address/list.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/address/list.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/address/list.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/address/list.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="address data-v-a56d4a9a"><wd-navbar wx:if="{{b}}" class="data-v-a56d4a9a" bindclickLeft="{{a}}" u-i="a56d4a9a-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><z-paging wx:if="{{g}}" class="r data-v-a56d4a9a" u-s="{{['d']}}" u-r="paging" bindquery="{{e}}" u-i="a56d4a9a-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><view class="data-v-a56d4a9a" style="padding:30rpx"><view wx:for="{{c}}" wx:for-item="item" wx:key="i" class="address-a data-v-a56d4a9a" bindtap="{{item.h}}"><view class="top data-v-a56d4a9a"><view class="top-a data-v-a56d4a9a"><view class="data-v-a56d4a9a">{{item.a}}</view><view class="data-v-a56d4a9a">{{item.b}}</view></view><view class="top-b data-v-a56d4a9a">{{item.c}} {{item.d}}</view></view><view class="bottom data-v-a56d4a9a"><view class="bottom-r data-v-a56d4a9a"><view class="data-v-a56d4a9a" catchtap="{{item.e}}">删除</view><view class="data-v-a56d4a9a" style="margin-left:50rpx" catchtap="{{item.f}}">编辑</view><view class="data-v-a56d4a9a" catchtap="{{item.g}}" style="margin:0 50rpx">复制</view></view></view></view></view></z-paging><view class="bottom-btn data-v-a56d4a9a"><view class="button-a data-v-a56d4a9a" bindtap="{{h}}">新增收货地址</view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/address/list.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/address/list.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.address .address-a.data-v-a56d4a9a{width:100%;background:#fff;box-shadow:0 2rpx 21rpx rgba(184,184,184,.35);border-radius:17rpx;margin-bottom:30rpx}.address .address-a .top.data-v-a56d4a9a{padding:40rpx;border-bottom:1rpx solid #f3f3f3}.address .address-a .top .top-a.data-v-a56d4a9a{display:flex;align-items:center;justify-content:space-between;font-size:30rpx;font-weight:700;color:#222;margin-bottom:45rpx}.address .address-a .top .top-b.data-v-a56d4a9a{font-size:30rpx;font-weight:700;color:#999}.address .address-a .bottom.data-v-a56d4a9a{padding:35rpx;display:flex;align-items:center;justify-content:space-between}.address .address-a .bottom .bottom-che.data-v-a56d4a9a{display:flex;align-items:center;font-size:24rpx;font-weight:700;color:#222}.address .address-a .bottom .bottom-che image.data-v-a56d4a9a{width:32rpx;height:32rpx;margin-right:10rpx}.address .address-a .bottom .bottom-r.data-v-a56d4a9a{font-size:26rpx;font-weight:700;color:#999;display:flex;align-items:center}.address .bottom-btn.data-v-a56d4a9a{width:100%;height:150rpx;padding:30rpx;background-color:#fff;position:fixed;bottom:0;left:0;border-radius:20rpx 20rpx 0 0;box-shadow:0 6rpx 16rpx 2rpx rgba(170,170,170,.35);display:flex;align-items:center;justify-content:center}.address .bottom-btn .button-a.data-v-a56d4a9a{width:690rpx;height:90rpx;background:#799675;border-radius:15rpx;text-align:center;font-size:30rpx;color:#fff;line-height:90rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/cate/cate.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/cate/cate.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-search")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-search/wd-search.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const o=e.defineComponent({__name:"cate",setup(o){const l=e.ref(0),t=e.ref([]);e.ref([]);const n=e.ref(null),r=e.ref([]),u=e.ref(null),i=e.ref("");e.onLoad((()=>{a.api.goodsCate().then((e=>{t.value=e.list,u.value=e.list[0].id}))}));const c=(e,o)=>{u.value?a.api.goodsPage({pageNo:e,pageSize:o,categoryId:u.value,name:i.value}).then((e=>{n.value.complete(e.list)})).catch((e=>{n.value.complete(!1)})):a.api.goodsCate().then((l=>{t.value=l.list,u.value=l.list[0].id,a.api.goodsPage({pageNo:e,pageSize:o,categoryId:u.value,name:i.value}).then((e=>{n.value.complete(e.list)})).catch((e=>{n.value.complete(!1)}))}))},s=()=>{i.value="",n.value.reload()},d=e=>{i.value=e.value,n.value.reload()};let g=(e,a)=>{l.value=e,u.value=a,n.value.reload()};return(a,o)=>({a:e.o(d),b:e.o(s),c:e.p({"placeholder-left":!0,placeholder:"搜一搜药品名称","hide-cancel":!0,customStyle:{background:"#799675",height:"80rpx"}}),d:e.f(t.value,((a,o,t)=>({a:e.t(a.name),b:o,c:e.n(l.value==o?"u-tab-item-active":""),d:o,e:e.o((l=>e.unref(g)(o,a.id)),o)}))),e:e.f(r.value,((a,o,l)=>({a:a.cover,b:e.t(a.name),c:e.t(a.specs),d:e.t(a.currentPrice),e:e.t(a.originalPrice),f:o,g:e.o((o=>{return l=a.id,void e.index.navigateTo({url:`/pages/goods/goods?id=${l}`});var l}),o)}))),f:e.sr(n,"5aeaa743-1",{k:"paging"}),g:e.o(c),h:e.o((e=>r.value=e)),i:e.p({"use-page-scroll":!0,"paging-style":{"background-color":"#FFF"},modelValue:r.value})})}}),l=e._export_sfc(o,[["__scopeId","data-v-5aeaa743"]]);wx.createPage(l);
|
||||
8
unpackage/dist/build/mp-weixin/pages/cate/cate.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/cate/cate.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationBarBackgroundColor": "#799675",
|
||||
"usingComponents": {
|
||||
"wd-search": "../../uni_modules/wot-design-uni/components/wd-search/wd-search",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/cate/cate.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/cate/cate.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-wrap data-v-5aeaa743"><wd-search wx:if="{{c}}" class="data-v-5aeaa743" bindsearch="{{a}}" bindclear="{{b}}" u-i="5aeaa743-0" bind:__l="__l" u-p="{{c}}"/><view class="u-menu-wrap data-v-5aeaa743"><scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view data-v-5aeaa743"><view wx:for="{{d}}" wx:for-item="item" wx:key="b" class="{{['u-tab-item', 'data-v-5aeaa743', item.c]}}" data-current="{{item.d}}" catchtap="{{item.e}}"><text class="u-line-1 data-v-5aeaa743">{{item.a}}</text></view></scroll-view><z-paging wx:if="{{i}}" class="r data-v-5aeaa743" u-s="{{['d']}}" u-r="paging" bindquery="{{g}}" u-i="5aeaa743-1" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><view class="right-box data-v-5aeaa743"><view class="page-view data-v-5aeaa743"><view wx:for="{{e}}" wx:for-item="item" wx:key="f" class="page-view_item data-v-5aeaa743" bindtap="{{item.g}}"><image class="data-v-5aeaa743" src="{{item.a}}" mode="aspectFill"></image><view class="data-v-5aeaa743" style="flex:1"><view class="page-view_item_title data-v-5aeaa743">{{item.b}}</view><view class="page-view_item_info data-v-5aeaa743">{{item.c}}</view><view class="page-view_item_price data-v-5aeaa743"><view class="page-view_item_price_left data-v-5aeaa743">¥{{item.d}}</view><view class="page-view_item_price_right data-v-5aeaa743">¥{{item.e}}</view></view></view></view></view></view></z-paging></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/cate/cate.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/cate/cate.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-wrap.data-v-5aeaa743{height:100vh;display:flex;flex-direction:column}.u-search-box.data-v-5aeaa743{padding:18rpx 30rpx}.u-menu-wrap.data-v-5aeaa743{flex:1;display:flex;overflow:hidden}.u-search-inner.data-v-5aeaa743{background-color:#eaeaea;border-radius:100rpx;display:flex;align-items:center;padding:10rpx 16rpx}.u-search-text.data-v-5aeaa743{font-size:26rpx;color:#799675;margin-left:10rpx}.u-tab-view.data-v-5aeaa743{width:200rpx;height:100%}.u-tab-item.data-v-5aeaa743{height:110rpx;background:#f6f6f6;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:26rpx;color:#444;font-weight:400;line-height:1}.u-tab-item-active.data-v-5aeaa743{position:relative;color:#799675;font-size:30rpx;font-weight:600;background:#fff}.u-tab-item-active.data-v-5aeaa743:before{content:"";position:absolute;border-left:4px solid #799675;height:32rpx;left:0;top:39rpx}.u-tab-view.data-v-5aeaa743{height:100%}.right-box.data-v-5aeaa743{width:550rpx;flex:1;background-color:#fff}.page-view.data-v-5aeaa743{padding:16rpx}.page-view_item.data-v-5aeaa743{display:flex;align-items:center;margin-bottom:25rpx}.page-view_item image.data-v-5aeaa743{width:160rpx;height:160rpx;margin-right:22rpx;border-radius:18rpx}.page-view_item_title.data-v-5aeaa743{font-size:28rpx;font-weight:700;color:#232323}.page-view_item_info.data-v-5aeaa743{font-weight:400;font-size:24rpx;color:#232323;margin:20rpx 0}.page-view_item_price.data-v-5aeaa743{display:flex;align-items:center}.page-view_item_price_left.data-v-5aeaa743{font-weight:700;font-size:38rpx;color:#ff2929;margin-right:35rpx}.page-view_item_price_right.data-v-5aeaa743{font-size:24rpx;color:#999;-webkit-text-decoration-line:line-through;text-decoration-line:line-through}.class-item.data-v-5aeaa743{margin-bottom:30rpx;background-color:#fff;padding:16rpx;border-radius:8rpx}.item-title.data-v-5aeaa743{font-size:26rpx;color:#000;font-weight:700}.item-menu-name.data-v-5aeaa743{font-weight:400;font-size:24rpx;color:#000}.item-container.data-v-5aeaa743{display:flex;flex-wrap:wrap}.thumb-box.data-v-5aeaa743{width:33.333333%;display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:20rpx}.item-menu-image.data-v-5aeaa743{width:120rpx;height:120rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/equity/equity.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/equity/equity.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),i=require("../../store/index.js");if(!Array){e.resolveComponent("wd-navbar")()}Math;const s=e.defineComponent({__name:"equity",setup(s){const u=i.Store(),r=e.computed((()=>u.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));e.onShow((async()=>{await u.usersGetInfo()}));const a=[{name:"加盟",info:"购买、批发商品享5折折扣",text:"赠送货值抵扣券10000元",icon:"/static/equity/icon1.png",bei:"/static/equity/bei1.png",img:"/static/equity/img1.png",qy:"/static/equity/iconY1.png",discount:.5,debitVoucher:1e4},{name:"总代",info:"购买、批发商品享3.5折折扣",text:"赠送货值抵扣券40000元",icon:"/static/equity/icon2.png",bei:"/static/equity/bei2.png",img:"/static/equity/img2.png",qy:"/static/equity/iconY2.png",discount:.35,debitVoucher:4e4},{name:"官方",info:"购买、批发商品享2.5折折扣",text:"赠送货值抵扣券100000元",icon:"/static/equity/icon3.png",bei:"/static/equity/bei3.png",img:"/static/equity/img3.png",qy:"/static/equity/iconY3.png",discount:.25,debitVoucher:1e5}],n=e.ref(0),o=()=>{e.index.navigateBack()},g=()=>{e.index.showModal({title:"提示",content:"请联系客服开通权益包",showCancel:!1})};return(i,s)=>e.e({a:t._imports_0$7,b:e.o(o),c:e.p({title:"权益包",bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),d:!r.value.userRights},r.value.userRights?{}:{e:t._imports_1$5},{f:r.value.userRights&&1==r.value.userRights.rightsLevel},r.value.userRights&&1==r.value.userRights.rightsLevel?{g:t._imports_2$2}:{},{h:r.value.userRights&&2==r.value.userRights.rightsLevel},r.value.userRights&&2==r.value.userRights.rightsLevel?{i:t._imports_3$1}:{},{j:r.value.userRights&&3==r.value.userRights.rightsLevel},r.value.userRights&&3==r.value.userRights.rightsLevel?{k:t._imports_4$2}:{},{l:r.value.userRights},r.value.userRights?{m:e.t(r.value.userRights.rightsDiscount/10),n:1==r.value.userRights.rightsLevel?"#754023":2==r.value.userRights.rightsLevel?"#3874AF":3==r.value.userRights.rightsLevel?"#AF3838":""}:{},{o:r.value.userRights},r.value.userRights?{p:e.t(r.value.userRights.pice),q:1==r.value.userRights.rightsLevel?"#754023":2==r.value.userRights.rightsLevel?"#3874AF":3==r.value.userRights.rightsLevel?"#AF3838":""}:{},{r:t._imports_5$1,s:e.f(a,((i,s,u)=>e.e({a:i.qy,b:n.value==s},n.value==s?{c:t._imports_6$1}:{},{d:i.bei,e:i.icon,f:e.t(i.info),g:e.t(i.text),h:e.t(i.name),i:i.img,j:s,k:e.o((e=>n.value=s),s)}))),t:e.o(g)})}}),u=e._export_sfc(s,[["__scopeId","data-v-0e2d3100"]]);wx.createPage(u);
|
||||
7
unpackage/dist/build/mp-weixin/pages/equity/equity.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/equity/equity.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/equity/equity.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/equity/equity.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-0e2d3100"><image class="data-v-0e2d3100" src="{{a}}" style="width:750rpx;height:768rpx;position:absolute;top:0;left:0;z-index:-1" mode="widthFix"></image><wd-navbar wx:if="{{c}}" class="data-v-0e2d3100" bindclickLeft="{{b}}" u-i="0e2d3100-0" bind:__l="__l" u-p="{{c}}"></wd-navbar><view class="data-v-0e2d3100" style="padding:35rpx 80rpx;position:relative"><image wx:if="{{d}}" class="data-v-0e2d3100" src="{{e}}" style="width:593rpx;height:345rpx" mode="widthFix"></image><image wx:if="{{f}}" class="data-v-0e2d3100" src="{{g}}" style="width:593rpx;height:345rpx" mode="widthFix"></image><image wx:if="{{h}}" class="data-v-0e2d3100" src="{{i}}" style="width:593rpx;height:345rpx" mode="widthFix"></image><image wx:if="{{j}}" class="data-v-0e2d3100" src="{{k}}" style="width:593rpx;height:345rpx" mode="widthFix"></image><view wx:if="{{l}}" class="data-v-0e2d3100" style="{{'color:' + n + ';' + 'position:absolute;top:120rpx;left:280rpx;font-size:28rpx'}}">{{m}}折 </view><view wx:if="{{o}}" class="data-v-0e2d3100" style="{{'color:' + q + ';' + 'position:absolute;top:180rpx;left:140rpx;font-size:28rpx;font-weight:bold'}}"> 抵扣卷剩余:{{p}}</view><button class="equity_kf data-v-0e2d3100" open-type="contact"><image class="data-v-0e2d3100" src="{{r}}" style="width:48rpx;height:48rpx;margin-right:10rpx"></image> 联系客服 </button></view><view class="data-v-0e2d3100" style="padding:0 30rpx"><view class="data-v-0e2d3100"><text class="data-v-0e2d3100" style="font-weight:bold;font-size:32rpx;color:#754023">权益包等级</text><text class="data-v-0e2d3100" style="font-size:24rpx;color:#7e7e7e;margin-left:10rpx">点击下方卡片选择开通等级</text></view><view wx:for="{{s}}" wx:for-item="item" wx:key="j" class="data-v-0e2d3100" bindtap="{{item.k}}" style="position:relative;width:690rpx;height:224rpx;padding:24rpx 30rpx;margin-top:30rpx"><image class="data-v-0e2d3100" src="{{item.a}}" style="width:128rpx;position:absolute;top:0;right:12rpx" mode="widthFix"></image><image wx:if="{{item.b}}" class="data-v-0e2d3100" src="{{item.c}}" style="width:40rpx;height:40rpx;position:absolute;top:20rpx;right:60rpx"></image><image class="data-v-0e2d3100" src="{{item.d}}" style="width:690rpx;height:224rpx;position:absolute;z-index:-1;top:0;left:0"></image><view class="data-v-0e2d3100" style="display:flex;align-items:center;margin-bottom:12rpx"><image class="data-v-0e2d3100" src="{{item.e}}" style="width:104rpx;height:44rpx"></image></view><view class="data-v-0e2d3100" style="width:100%;background-color:#fff;border-radius:8rpx;padding:24rpx 40rpx;position:relative"><view class="data-v-0e2d3100" style="font-weight:bold;font-size:24rpx;color:#232323;margin-bottom:8rpx">{{item.f}}</view><view class="data-v-0e2d3100" style="font-weight:400;font-size:28rpx;color:#232323">{{item.g}}</view><view class="data-v-0e2d3100" style="width:222rpx;height:42rpx;position:absolute;right:0;bottom:0;z-index:10;text-align:right;display:flex;align-items:center;justify-content:flex-end;padding:0 10rpx"><view class="data-v-0e2d3100" style="font-weight:bold;font-size:24rpx;color:#ffffff">{{item.h}}特权</view></view><image class="data-v-0e2d3100" style="width:222rpx;height:42rpx;position:absolute;right:0;bottom:0;z-index:9" src="{{item.i}}"></image></view></view><view class="data-v-0e2d3100" style="width:690rpx;height:82rpx;background:linear-gradient(180deg, #ffc786 0%, #e99332 100%);border-radius:8rpx;display:flex;align-items:center;justify-content:center;margin-top:50rpx;color:#fff;font-size:30rpx;font-weight:bold" bindtap="{{t}}"> 立即开通 </view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/equity/equity.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/equity/equity.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.equity.data-v-0e2d3100{display:flex;align-items:center}.equity_kf.data-v-0e2d3100{position:absolute;top:60rpx;right:0;background:rgba(255,255,255,.68);border-radius:30rpx 0rpx 0rpx 30rpx;display:flex;align-items:center;justify-content:center;font-size:24rpx;color:#232323;padding:5rpx 30rpx}button.data-v-0e2d3100{all:unset}button.data-v-0e2d3100:after{all:unset}
|
||||
1
unpackage/dist/build/mp-weixin/pages/goods/goods.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/goods/goods.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),o=require("../../api/index.js"),s=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-swiper")+e.resolveComponent("mp-html"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper.js")+(()=>"../../uni_modules/mp-html/components/mp-html/mp-html.js"))();const a=e.defineComponent({__name:"goods",setup(a){const{navTo:n}=s.useNav(),r=e.ref(0);e.ref(["https://wot-ui.cn/assets/redpanda.jpg","https://wot-ui.cn/assets/capybara.jpg"]);const i=e.ref({});e.onLoad((e=>{o.api.goodsInfo({id:e.id}).then((e=>{i.value=e}))}));const d=()=>{n(`/pages/order/confirm?id=${i.value.id}`,!0)},p=()=>{e.index.navigateBack()};return(o,s)=>({a:e.o(p),b:e.p({fixed:!0,bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:e.w((({current:t,total:o},s,a)=>({a:e.t(t+1),b:e.t(o),c:a,d:s})),{name:"indicator",path:"c",vueId:"96d49b0d-1"}),d:e.t(i.value.sales),e:e.o((e=>r.value=e)),f:e.p({height:"750rpx",list:i.value.images,autoplay:!0,current:r.value}),g:e.t(i.value.name),h:e.t(i.value.stock),i:e.t(i.value.specs),j:e.t(i.value.currentPrice),k:e.p({content:i.value.detail}),l:t._imports_0$4,m:t._imports_1$2,n:e.o(d)})}}),n=e._export_sfc(a,[["__scopeId","data-v-96d49b0d"]]);wx.createPage(n);
|
||||
9
unpackage/dist/build/mp-weixin/pages/goods/goods.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/goods/goods.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-swiper": "../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper",
|
||||
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/goods/goods.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/goods/goods.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="goods data-v-96d49b0d"><wd-navbar wx:if="{{b}}" class="data-v-96d49b0d" bindclickLeft="{{a}}" u-i="96d49b0d-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><wd-swiper wx:if="{{f}}" class="data-v-96d49b0d" u-s="{{['indicator']}}" u-i="96d49b0d-1" bind:__l="__l" bindupdateCurrent="{{e}}" u-p="{{f}}"><view wx:for="{{c}}" wx:for-item="v0" wx:key="c" slot="{{v0.d}}"><view class="custom-indicator data-v-96d49b0d">{{v0.a}}/{{v0.b}}</view><view class="goods_sals data-v-96d49b0d">销量{{d}}</view></view></wd-swiper><view class="data-v-96d49b0d" style="height:35rpx"></view><view class="goods_block data-v-96d49b0d"><view class="data-v-96d49b0d"><view class="goods_block_tit data-v-96d49b0d">{{g}}</view><view class="goods_block_stock data-v-96d49b0d">库存{{h}}</view></view><view class="data-v-96d49b0d" style="margin-top:20rpx"><view class="goods_block_spec data-v-96d49b0d">{{i}}</view><view class="goods_block_price data-v-96d49b0d">¥{{j}}</view></view></view><view class="data-v-96d49b0d" style="font-weight:bold;font-size:30rpx;color:#232323;margin:30rpx 0 25rpx;text-align:center">商品详情</view><view class="data-v-96d49b0d" style="background-color:#fff"><mp-html wx:if="{{k}}" class="data-v-96d49b0d" u-i="96d49b0d-2" bind:__l="__l" u-p="{{k}}"/></view><view class="data-v-96d49b0d" style="height:145rpx"></view><view class="data-v-96d49b0d" style="display:flex;align-items:center;justify-content:space-between;padding:35rpx 60rpx;position:fixed;bottom:0;left:0;background-color:#fff;border-radius:24rpx 24rpx 0 0;width:100%"><view class="data-v-96d49b0d" style="display:flex;align-items:center;font-size:24rpx"><button class="data-v-96d49b0d" style="margin-right:24rpx" open-type="share"><image class="data-v-96d49b0d" style="width:40rpx;height:40rpx" src="{{l}}"></image><view class="data-v-96d49b0d">分享</view></button><button class="data-v-96d49b0d" open-type="contact"><image class="data-v-96d49b0d" style="width:40rpx;height:40rpx" src="{{m}}"></image><view class="data-v-96d49b0d">客服</view></button></view><view class="data-v-96d49b0d" style="width:468rpx;height:70rpx;background:#ffffff;border-radius:12rpx;border:1rpx solid #5d7a4e;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:28rpx;color:#5d7a4e" bindtap="{{n}}"> 立即购买 </view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/goods/goods.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/goods/goods.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.goods.data-v-96d49b0d{--wot-swiper-radius: 0}.goods_sals.data-v-96d49b0d{width:166rpx;height:44rpx;background:#fff;border-radius:46rpx 0rpx 0rpx 46rpx;opacity:.5;position:absolute;bottom:30rpx;right:0;font-weight:400;font-size:24rpx;color:#232323;display:flex;align-items:center;justify-content:center}.goods_block.data-v-96d49b0d{margin:auto;width:690rpx;background:#fff;box-shadow:0 0 6rpx 2rpx rgba(22,22,23,.07);border-radius:8rpx;padding:24rpx}.goods_block view.data-v-96d49b0d{display:flex;align-items:center;justify-content:space-between}.goods_block_tit.data-v-96d49b0d{font-weight:700;font-size:32rpx;color:#232323}.goods_block_stock.data-v-96d49b0d{font-weight:400;font-size:24rpx;color:#999}.goods_block_spec.data-v-96d49b0d{font-weight:700;font-size:24rpx;color:#232323}.goods_block_price.data-v-96d49b0d{font-weight:700;font-size:38rpx;color:#ff2929}.custom-indicator.data-v-96d49b0d{width:52rpx;height:52rpx;background:#fff;border-radius:6rpx;opacity:.5;display:flex;align-items:center;justify-content:center;font-size:24rpx;color:#232323;position:absolute;top:170rpx;right:24rpx}button.data-v-96d49b0d{all:unset}button.data-v-96d49b0d:after{all:unset}
|
||||
1
unpackage/dist/build/mp-weixin/pages/goods/prefecture.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/goods/prefecture.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const o=e.defineComponent({__name:"prefecture",setup(o){const n=e.ref(1),t=e.ref(""),r=e.ref(null),s=e.ref([]),i=e.ref([]);e.onLoad((()=>{a.api.noticeCatePage().then((e=>{i.value=e.list}))}));const p=(e,o)=>{a.api.goodsPage({pageNo:e,pageSize:o,type:n.value,categoryId:t.value,recommended:1}).then((e=>{r.value.complete(e.list)})).catch((e=>{r.value.complete(!1)}))},c=()=>{e.index.navigateBack()};return(a,o)=>({a:e.o(c),b:e.p({title:"进货专区",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.f(s.value,((a,o,n)=>({a:a.cover,b:e.t(a.name),c:e.t(a.specs),d:e.t(a.currentPrice),e:e.o((o=>{return n=a.id,void e.index.navigateTo({url:`/pages/goods/goods?id=${n}`});var n}),o),f:o}))),d:e.sr(r,"7e4b6259-1",{k:"paging"}),e:e.o(p),f:e.o((e=>s.value=e)),g:e.p({"use-page-scroll":!0,modelValue:s.value})})}}),n=e._export_sfc(o,[["__scopeId","data-v-7e4b6259"]]);wx.createPage(n);
|
||||
8
unpackage/dist/build/mp-weixin/pages/goods/prefecture.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/goods/prefecture.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "进货专区",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/goods/prefecture.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/goods/prefecture.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="notice data-v-7e4b6259"><wd-navbar wx:if="{{b}}" class="data-v-7e4b6259" bindclickLeft="{{a}}" u-i="7e4b6259-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><z-paging wx:if="{{g}}" class="r data-v-7e4b6259" u-s="{{['d']}}" u-r="paging" bindquery="{{e}}" u-i="7e4b6259-1" bind:__l="__l" bindupdateModelValue="{{f}}" u-p="{{g}}"><view class="p30 data-v-7e4b6259"><view wx:for="{{c}}" wx:for-item="item" wx:key="f" class="home_block data-v-7e4b6259" bindtap="{{item.e}}"><image class="home_block_left data-v-7e4b6259" src="{{item.a}}"></image><view class="home_block_right data-v-7e4b6259"><view class="home_block_right_title data-v-7e4b6259">{{item.b}}</view><view class="home_block_right_info data-v-7e4b6259">{{item.c}}</view><view class="data-v-7e4b6259" style="display:flex;justify-content:space-between;align-items:center;margin-top:25rpx"><view class="data-v-7e4b6259" style="font-size:36rpx;font-weight:bold;color:#ff2929">¥{{item.d}}</view><view class="home_block_right_button data-v-7e4b6259">下单</view></view></view></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/goods/prefecture.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/goods/prefecture.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.notice_block.data-v-7e4b6259{display:flex;align-items:center;justify-content:space-between;padding:0 35rpx;width:690rpx;height:106rpx;background:#fff;border-radius:16rpx;position:relative;font-weight:400;font-size:24rpx;color:#232323}.home_block.data-v-7e4b6259{width:690rpx;height:250rpx;background:#fff;border-radius:8rpx;display:flex;align-items:center;padding-right:25rpx;margin-bottom:25rpx}.home_block_left.data-v-7e4b6259{width:250rpx;height:250rpx;border-radius:8rpx;margin-right:25rpx}.home_block_right.data-v-7e4b6259{flex:1}.home_block_right_title.data-v-7e4b6259{font-weight:600;font-size:28rpx;color:#232323}.home_block_right_info.data-v-7e4b6259{font-weight:400;font-size:24rpx;color:#232323;margin-top:25rpx}.home_block_right_button.data-v-7e4b6259{width:128rpx;height:48rpx;background:#ff2a2a;box-shadow:0 2rpx 4rpx 2rpx #dbdbdb;border-radius:10rpx;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20rpx;color:#fff}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),n=require("../../store/index.js"),t=require("../../utils/fun.js"),s=require("../../api/index.js"),r=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-swiper")+e.resolveComponent("wd-notice-bar")+e.resolveComponent("z-paging")+e.resolveComponent("uni-popup"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-notice-bar/wd-notice-bar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const a=e.defineComponent({__name:"index",setup(a){const i=n.Store(),p=e.computed((()=>i.userInfo||{})),u=e.ref(),l=e.ref(0);e.ref(!1);const c=e.ref([]),d=e.ref({content:""});e.ref([]);const m=e.ref(null),v=e.ref([]),{navTo:g}=r.useNav(),f=(e,o)=>{s.api.goodsPage({pageNo:e,pageSize:o,recommended:1}).then((e=>{m.value.complete(e.list)})).catch((e=>{m.value.complete(!1)}))};e.onLoad((()=>{s.api.banner({imageAddress:1}).then((e=>{c.value=e.list})),s.api.noticePage({type:1}).then((e=>{0!=e.list&&(d.value=e.list[0])}))}));const _=async()=>{await i.usersGetInfo(),u.value.open()},b=()=>{e.index.navigateTo({url:"/pages/goods/prefecture"})},w=()=>{e.index.navigateTo({url:"/pages/notice/notice"})};return(n,s)=>({a:o._imports_0,b:o._imports_1,c:e.p({bordered:!1,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),d:e.o((e=>l.value=e)),e:e.p({customItemClass:"bannerRadius",height:"292rpx",list:["/static/homeY.png"],autoplay:!0,current:l.value}),f:e.o(b),g:o._imports_2,h:e.o((o=>e.unref(g)("/pages/equity/equity",!0))),i:o._imports_3,j:e.o(_),k:e.o((e=>l.value=e)),l:e.p({list:c.value,"value-key":"image",autoplay:!0,current:l.value}),m:o._imports_4,n:e.t(d.value.content),o:e.p({color:"#90B77B","background-color":"#E2ECDC"}),p:e.o(w),q:e.f(v.value,((o,n,t)=>({a:o.cover,b:e.t(o.name),c:e.t(o.specs),d:e.t(o.currentPrice),e:e.o((n=>{return t=o.id,void e.index.navigateTo({url:`/pages/goods/goods?id=${t}`});var t}),n),f:n}))),r:e.sr(m,"b7f702fb-4",{k:"paging"}),s:e.o(f),t:e.o((e=>v.value=e)),v:e.p({"use-page-scroll":!0,modelValue:v.value}),w:e.o((e=>n.$refs.popup.close())),x:o._imports_9,y:p.value.inviteCodeImg,z:e.t(p.value.inviteCode),A:e.o((o=>e.unref(t.copy)(p.value.inviteCode))),B:e.sr(u,"b7f702fb-5",{k:"popup"}),C:e.p({type:"center","border-radius":"16rpx"})})}}),i=e._export_sfc(a,[["__scopeId","data-v-b7f702fb"]]);wx.createPage(i);
|
||||
11
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
11
unpackage/dist/build/mp-weixin/pages/index/index.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-swiper": "../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper",
|
||||
"wd-notice-bar": "../../uni_modules/wot-design-uni/components/wd-notice-bar/wd-notice-bar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging",
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="home data-v-b7f702fb"><view style="width:100%;height:582rpx" class="home_top data-v-b7f702fb"><image class="data-v-b7f702fb" src="{{a}}" style="width:750rpx;height:582rpx;position:absolute;top:0;left:0;z-index:-1"></image><wd-navbar wx:if="{{c}}" class="data-v-b7f702fb" u-s="{{['left']}}" u-i="b7f702fb-0" bind:__l="__l" u-p="{{c}}"><view class="data-v-b7f702fb" style="display:flex;align-items:center" slot="left"><image class="data-v-b7f702fb" src="{{b}}" style="width:96rpx;height:96rpx;margin-right:25rpx;background-color:rgba(255, 255, 255, 0.3);border-radius:50%"></image><view class="data-v-b7f702fb" style="color:#fff;font-size:40rpx;font-weight:bold">苗草古方</view></view></wd-navbar><view class="p30 data-v-b7f702fb" style="display:flex;align-items:center;justify-content:space-between"><view class="data-v-b7f702fb" style="background-color:#fff;width:324rpx;border-radius:20rpx;overflow:hidden" bindtap="{{f}}"><wd-swiper wx:if="{{e}}" class="data-v-b7f702fb" u-i="b7f702fb-1" bind:__l="__l" bindupdateCurrent="{{d}}" u-p="{{e}}"></wd-swiper><view class="data-v-b7f702fb" style="height:72rpx;display:flex;align-items:center;padding:20rpx;font-size:28rpx;font-weight:bold">进货专区</view></view><view class="home_top_block data-v-b7f702fb"><view class="home_top_block_view data-v-b7f702fb" style="color:#776926" bindtap="{{h}}"><image class="data-v-b7f702fb" src="{{g}}"></image><view class="data-v-b7f702fb"><view class="data-v-b7f702fb" style="font-size:32rpx;font-weight:bold">权益包</view><view class="data-v-b7f702fb" style="font-size:24rpx;margin-top:10rpx">购买权益包</view><view class="data-v-b7f702fb" style="font-size:24rpx">至高享七折优惠</view></view></view><view class="home_top_block_view data-v-b7f702fb" style="background:#eef4f1;color:#175b39" bindtap="{{j}}"><image class="data-v-b7f702fb" src="{{i}}"></image><view class="data-v-b7f702fb"><view class="data-v-b7f702fb" style="font-size:32rpx;font-weight:bold">推荐好友</view><view class="data-v-b7f702fb" style="font-size:24rpx;margin-top:10rpx">推荐好友加盟</view><view class="data-v-b7f702fb" style="font-size:24rpx">边拿奖励边赚钱</view></view></view></view></view></view><view class="p30 data-v-b7f702fb"><wd-swiper wx:if="{{l}}" class="data-v-b7f702fb" u-i="b7f702fb-2" bind:__l="__l" bindupdateCurrent="{{k}}" u-p="{{l}}"></wd-swiper><view class="mt30 data-v-b7f702fb" bindtap="{{p}}"><wd-notice-bar wx:if="{{o}}" class="data-v-b7f702fb" u-s="{{['d']}}" u-i="b7f702fb-3" bind:__l="__l" u-p="{{o}}"><view class="data-v-b7f702fb" slot="prefix"><image class="data-v-b7f702fb" src="{{m}}" style="width:60rpx;height:60rpx"></image></view><view class="data-v-b7f702fb" style="font-size:28rpx">{{n}}</view></wd-notice-bar></view><z-paging wx:if="{{v}}" class="r data-v-b7f702fb" u-s="{{['d']}}" u-r="paging" bindquery="{{s}}" u-i="b7f702fb-4" bind:__l="__l" bindupdateModelValue="{{t}}" u-p="{{v}}"><view wx:for="{{q}}" wx:for-item="item" wx:key="f" class="home_block mt30 data-v-b7f702fb" bindtap="{{item.e}}"><image class="home_block_left data-v-b7f702fb" src="{{item.a}}"></image><view class="home_block_right data-v-b7f702fb"><view class="home_block_right_title data-v-b7f702fb">{{item.b}}</view><view class="home_block_right_info data-v-b7f702fb">{{item.c}}</view><view class="data-v-b7f702fb" style="display:flex;justify-content:space-between;align-items:center;margin-top:25rpx"><view class="data-v-b7f702fb" style="font-size:36rpx;font-weight:bold;color:#ff2929">¥{{item.d}}</view><view class="home_block_right_button data-v-b7f702fb">下单</view></view></view></view></z-paging></view><uni-popup wx:if="{{C}}" class="r data-v-b7f702fb" u-s="{{['d']}}" u-r="popup" u-i="b7f702fb-5" bind:__l="__l" u-p="{{C}}"><view class="shareBlock data-v-b7f702fb"><view class="data-v-b7f702fb" style="width:100%;text-align:right"><image bindtap="{{w}}" src="{{x}}" class="shareBlock_close data-v-b7f702fb"></image></view><image class="shareBlock_code data-v-b7f702fb" src="{{y}}"></image><view class="shareBlock_info data-v-b7f702fb">打开微信扫描二维码,注册时输入邀请码</view><view class="shareBlock_codeInfo data-v-b7f702fb"><view class="shareBlock_codeInfo_left data-v-b7f702fb"> 邀请码: <text class="data-v-b7f702fb" style="text-decoration:underline">{{z}}</text></view><view class="shareBlock_codeInfo_right data-v-b7f702fb" bindtap="{{A}}">点击复制</view></view></view></uni-popup></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/index/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.home_top.data-v-b7f702fb{--wot-swiper-radius: 0}.home_top_block.data-v-b7f702fb{height:364rpx;display:flex;flex-direction:column;justify-content:space-between}.home_top_block_view.data-v-b7f702fb{width:346rpx;height:170rpx;background:#f7f4e5;border-radius:30rpx;padding:25rpx;display:flex;align-items:center}.home_top_block_view image.data-v-b7f702fb{width:100rpx;height:100rpx;margin-right:24rpx}.home_block.data-v-b7f702fb{width:690rpx;height:250rpx;background:#fff;border-radius:8rpx;display:flex;align-items:center;padding-right:25rpx}.home_block_left.data-v-b7f702fb{width:250rpx;height:250rpx;border-radius:8rpx;margin-right:25rpx}.home_block_right.data-v-b7f702fb{flex:1}.home_block_right_title.data-v-b7f702fb{font-weight:600;font-size:28rpx;color:#232323}.home_block_right_info.data-v-b7f702fb{font-weight:400;font-size:24rpx;color:#232323;margin-top:25rpx}.home_block_right_button.data-v-b7f702fb{width:128rpx;height:48rpx;background:#ff2a2a;box-shadow:0 2rpx 4rpx 2rpx #dbdbdb;border-radius:10rpx;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20rpx;color:#fff}.shareBlock.data-v-b7f702fb{margin:auto;width:650rpx;height:688rpx;background:#fff;border-radius:16rpx;padding:20rpx;display:flex;flex-direction:column;align-items:center}.shareBlock_close.data-v-b7f702fb{width:68rpx;height:68rpx}.shareBlock_code.data-v-b7f702fb{width:392rpx;height:392rpx}.shareBlock_info.data-v-b7f702fb{font-size:24rpx;color:#ccc;margin:24rpx 0}.shareBlock_codeInfo.data-v-b7f702fb{display:flex;align-items:center}.shareBlock_codeInfo_left.data-v-b7f702fb{font-weight:700;font-size:32rpx;color:#232323}.shareBlock_codeInfo_right.data-v-b7f702fb{margin-left:20rpx;font-size:24rpx;color:#999}
|
||||
1
unpackage/dist/build/mp-weixin/pages/login/login.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/login/login.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),a=require("../../api/index.js"),s=require("../../utils/fun.js"),l=require("../../uni_modules/wot-design-uni/components/composables/useCountDown.js");require("../../uni_modules/wot-design-uni/locale/index.js"),require("../../uni_modules/wot-design-uni/dayjs/index.js");const t=require("../../store/index.js");if(!Array){e.resolveComponent("wd-navbar")()}Math;const u=e.defineComponent({__name:"login",setup(u){const i=t.Store(),{start:r,pause:n,reset:v,current:d}=l.useCountDown({time:6e4,onChange(e){},onFinish(){w.value="重新发送"}}),c={mobile:"",password:"",code:"",inviteCode:"",passwordNew:""},p=e.ref({...c});e.onLoad((()=>{e.index.getStorageSync("inviteCode")?(p.value.inviteCode=e.index.getStorageSync("inviteCode"),console.log(p.value.inviteCode)):console.log("未取到邀请码")}));const g=e.ref("login"),w=e.ref("点击获取验证码"),m=e.ref("password"),f=e.ref({mobile:"",password:"",code:""}),b=e.ref(!1),C=()=>{e.index.navigateBack()},h=e=>{m.value=e,f.value={}},x=e=>{(f.value.mobile||1!=e)&&(p.value.mobile||2!=e)?d.value.seconds?s.toast("请等待倒计时结束"):a.api.smsCode({mobile:2==e?p.value.mobile:f.value.mobile,scene:1}).then((e=>{r(),s.toast("验证码发送成功")})).catch((e=>{console.log(e),s.toast("验证码发送失败")})):s.toast("请输入手机号")},_=()=>{if("register"==g.value){if(!p.value.mobile)return s.toast("请输入手机号码");if(!p.value.code)return s.toast("请输入验证码");if(!p.value.password)return s.toast("请输入密码");if(!p.value.passwordNew)return s.toast("请再次输入密码");if(p.value.password!=p.value.passwordNew)return s.toast("两次密码输入不一致");a.api.registerApi(p.value).then((o=>{e.index.showModal({title:"提示",content:"注册成功",showCancel:!1,success:e=>{g.value="login",p.value={...c}}})}))}else{if(!f.value.mobile)return s.toast("请输入手机号码");if("password"===m.value){if(!f.value.password)return s.toast("请输入登录密码");a.api.loginApi(f.value).then((o=>{e.index.setStorageSync("Authorization",o.accessToken),i.setUserId(o.userId),i.usersGetInfo(),C()}))}else{if(!f.value.code)return s.toast("请输入验证码");a.api.smsLoginApi(f.value).then((o=>{e.index.setStorageSync("Authorization",o.accessToken),i.setUserId(o.userId),i.usersGetInfo(),C()}))}}};return(a,s)=>e.e({a:o._imports_0$3,b:e.o(C),c:e.p({"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),d:"login"==g.value},"login"==g.value?e.e({e:"password"===m.value},(m.value,{}),{f:"password"===m.value?1:"",g:e.o((e=>h("password"))),h:"code"===m.value},(m.value,{}),{i:"code"===m.value?1:"",j:e.o((e=>h("code")))}):{},{k:"login"==g.value},"login"==g.value?e.e({l:f.value.mobile,m:e.o((e=>f.value.mobile=e.detail.value)),n:"password"===m.value},"password"===m.value?{o:f.value.password,p:e.o((e=>f.value.password=e.detail.value))}:{q:f.value.code,r:e.o((e=>f.value.code=e.detail.value)),s:e.t(e.unref(d).seconds||w.value),t:e.o((e=>x(1)))}):{},{v:"register"==g.value},"register"==g.value?{w:p.value.mobile,x:e.o((e=>p.value.mobile=e.detail.value)),y:p.value.code,z:e.o((e=>p.value.code=e.detail.value)),A:e.t(e.unref(d).seconds||w.value),B:e.o((e=>x(2))),C:p.value.password,D:e.o((e=>p.value.password=e.detail.value)),E:p.value.passwordNew,F:e.o((e=>p.value.passwordNew=e.detail.value)),G:p.value.inviteCode,H:e.o((e=>p.value.inviteCode=e.detail.value))}:{},{I:"register"==g.value},"register"==g.value?{J:e.o((e=>g.value="login"))}:{},{K:"login"==g.value},"login"==g.value?{L:e.o((e=>g.value="register"))}:{},{M:e.t("register"==g.value?"注册":"登录"),N:b.value,O:b.value,P:e.o(_)})}}),i=e._export_sfc(u,[["__scopeId","data-v-74a867ba"]]);wx.createPage(i);
|
||||
7
unpackage/dist/build/mp-weixin/pages/login/login.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/login/login.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/login/login.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/login/login.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="login-container data-v-74a867ba"><image class="bg-image data-v-74a867ba" src="{{a}}" mode="aspectFill"></image><wd-navbar wx:if="{{c}}" class="data-v-74a867ba" bindclickLeft="{{b}}" u-i="74a867ba-0" bind:__l="__l" u-p="{{c}}"></wd-navbar><view class="content data-v-74a867ba"><view class="logo-container data-v-74a867ba">你好!!</view><view class="welcome-text data-v-74a867ba"><view class="data-v-74a867ba">欢迎来到</view><view class="welcome-tag data-v-74a867ba">苗草古方</view></view><view wx:if="{{d}}" class="tabs data-v-74a867ba"><view class="{{['tab-item', 'data-v-74a867ba', f && 'active']}}" bindtap="{{g}}"><text class="data-v-74a867ba">密码登录</text><view wx:if="{{e}}" class="underline data-v-74a867ba"></view></view><view class="{{['tab-item', 'data-v-74a867ba', i && 'active']}}" bindtap="{{j}}"><text class="data-v-74a867ba">验证码登录</text><view wx:if="{{h}}" class="underline data-v-74a867ba"></view></view></view><view class="form-container data-v-74a867ba"><view wx:if="{{k}}" class="data-v-74a867ba"><view class="input-item data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入用户名" style="font-weight:600;font-size:36rpx" placeholder-style="color: #999999;font-size: 28rpx;font-weight: 400 !important;" type="number" value="{{l}}" bindinput="{{m}}"/></view><view wx:if="{{n}}" class="input-item data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入密码" password placeholder-style="color: #999999;;font-size: 28rpx;" value="{{o}}" bindinput="{{p}}"/></view><view wx:else class="input-item code-input data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入验证码" placeholder-style="color: #999999;;font-size: 28rpx;" value="{{q}}" bindinput="{{r}}"/><view class="get-code data-v-74a867ba" bindtap="{{t}}">{{s}}</view></view></view><view wx:if="{{v}}" class="data-v-74a867ba"><view class="input-item data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入用户名" type="number" style="font-weight:600;font-size:36rpx" placeholder-style="color: #999999;font-size: 28rpx;font-weight: 400 !important;" value="{{w}}" bindinput="{{x}}"/></view><view class="input-item code-input data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入验证码" placeholder-style="color: #999999;;font-size: 28rpx;" value="{{y}}" bindinput="{{z}}"/><view class="get-code data-v-74a867ba" bindtap="{{B}}">{{A}}</view></view><view class="input-item data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入您的密码" password placeholder-style="color: #999999;;font-size: 28rpx;" value="{{C}}" bindinput="{{D}}"/></view><view class="input-item data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请再次输入您的密码" password placeholder-style="color: #999999;;font-size: 28rpx;" value="{{E}}" bindinput="{{F}}"/></view><view class="input-item data-v-74a867ba"><input class="data-v-74a867ba" placeholder="请输入邀请码(非必填)" placeholder-style="color: #999999;;font-size: 28rpx;" value="{{G}}" bindinput="{{H}}"/></view></view><view wx:if="{{I}}" class="register-text data-v-74a867ba" bindtap="{{J}}"><text class="data-v-74a867ba">已有账号?</text><text class="register-link data-v-74a867ba">立即登录</text></view><view wx:if="{{K}}" class="register-text data-v-74a867ba" bindtap="{{L}}"><text class="data-v-74a867ba">还没有账号?</text><text class="register-link data-v-74a867ba">立即注册</text></view><button class="login-btn data-v-74a867ba" loading="{{N}}" disabled="{{O}}" bindtap="{{P}}">{{M}}</button></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/login/login.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/login/login.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.login-container.data-v-74a867ba{position:relative;width:100%;height:100vh}.bg-image.data-v-74a867ba{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1}.back-btn.data-v-74a867ba{position:absolute;top:100rpx;left:40rpx;width:40rpx;height:40rpx;z-index:10}.content.data-v-74a867ba{padding:0 65rpx;margin-top:180rpx;position:absolute}.logo-container.data-v-74a867ba{margin-bottom:8rpx;font-weight:700;font-size:44rpx;color:#232323}.logo.data-v-74a867ba{width:180rpx;height:180rpx}.welcome-text.data-v-74a867ba{font-weight:700;font-size:44rpx;color:#232323;text-align:center;margin-bottom:60rpx;display:flex;align-items:flex-end}.welcome-tag.data-v-74a867ba{color:#5d7a4e;margin-left:12rpx;font-size:44rpx}.tabs.data-v-74a867ba{display:flex;margin-bottom:40rpx}.tab-item.data-v-74a867ba{position:relative;margin-right:60rpx}.tab-item text.data-v-74a867ba{font-weight:700;font-size:28rpx}.tab-item.active text.data-v-74a867ba{color:#232323}.tab-item:not(.active) text.data-v-74a867ba{color:#999}.underline.data-v-74a867ba{width:104rpx;height:4rpx;background:#5d7a4e;border-radius:170rpx}.form-container.data-v-74a867ba{width:100%}.input-item.data-v-74a867ba{width:620rpx;height:90rpx;background:#fff;border-radius:14rpx;border:2rpx solid #f6f6f6;margin-bottom:30rpx;padding:0 30rpx;display:flex;align-items:center}.input-item input.data-v-74a867ba{width:100%;height:100%;font-size:28rpx;color:#333}.code-input input.data-v-74a867ba{flex:1}.code-input .get-code.data-v-74a867ba{font-size:24rpx;color:#8e8e8e;margin-left:20rpx}.register-text.data-v-74a867ba{display:flex;margin-bottom:210rpx;font-size:26rpx;color:#232323}.register-link.data-v-74a867ba{color:#5d7a4e;margin-left:10rpx}.login-btn.data-v-74a867ba{width:474rpx;height:78rpx;line-height:78rpx;border-radius:39rpx;text-align:center;color:#fff!important;font-size:28rpx;margin:0 auto;margin-bottom:40rpx;background:#5d7a4e!important}.login-btn.data-v-74a867ba:after{border:none}.agreement.data-v-74a867ba{display:flex;justify-content:center;font-size:24rpx;color:#999}.agreement-link.data-v-74a867ba{color:#5d7a4e;margin:0 10rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/mine.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/mine.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js"),r=require("../../utils/fun.js"),t=require("../../store/index.js"),a=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("uni-popup"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/uni-popup/components/uni-popup/uni-popup.js"))();const s=e.defineComponent({__name:"mine",setup(s){const{navTo:n}=a.useNav(),p=t.Store(),i=e.computed((()=>p.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));return e.onShow((async()=>{await p.usersGetInfo()})),(t,a)=>e.e({a:o._imports_0$2,b:e.p({bordered:!1,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:i.value.avatar,d:e.t(i.value.nickname||"微信用户"),e:e.t(i.value.mobile),f:i.value.inviteCodeImg},i.value.inviteCodeImg?{g:o._imports_1$1,h:e.o((e=>t.$refs.popup.open()))}:{},{i:o._imports_2$1,j:e.o((o=>e.unref(n)("/pages/equity/equity",!0))),k:o._imports_0$1,l:e.t(i.value.money||0),m:e.t(i.value.performanceReward||0),n:e.t(i.value.directReferralReward||0),o:e.t(i.value.indirectReferralReward||0),p:e.o((o=>e.unref(n)("/pages/wallet/wallet",!0))),q:o._imports_4$1,r:o._imports_0$1,s:e.o((o=>e.unref(n)("/pages/mine/sett",!0))),t:o._imports_5,v:o._imports_0$1,w:e.o((o=>e.unref(n)("/pages/wallet/list",!0))),x:o._imports_6,y:o._imports_0$1,z:e.o((o=>e.unref(n)("/pages/team/team",!0))),A:o._imports_7,B:o._imports_0$1,C:e.o((o=>e.unref(n)("/pages/address/list",!0))),D:o._imports_5$1,E:o._imports_0$1,F:e.o((e=>t.$refs.popup.close())),G:o._imports_9,H:i.value.inviteCodeImg,I:e.t(i.value.inviteCode),J:e.o((o=>e.unref(r.copy)(i.value.inviteCode))),K:e.sr("popup","3478e6ca-1"),L:e.p({type:"center","border-radius":"16rpx"})})}}),n=e._export_sfc(s,[["__scopeId","data-v-3478e6ca"]]);wx.createPage(n);
|
||||
8
unpackage/dist/build/mp-weixin/pages/mine/mine.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/mine/mine.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/mine.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/mine.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-3478e6ca"><image class="data-v-3478e6ca" src="{{a}}" style="width:750rpx;height:762rpx;position:fixed;top:0;left:0;z-index:-1"></image><wd-navbar wx:if="{{b}}" class="data-v-3478e6ca" u-i="3478e6ca-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><view class="p30 data-v-3478e6ca"><view class="user-header data-v-3478e6ca"><image class="avatar data-v-3478e6ca" src="{{c}}"></image><view class="user-info data-v-3478e6ca"><view class="username data-v-3478e6ca">{{d}}</view><view class="phone data-v-3478e6ca">{{e}}</view></view><view wx:if="{{f}}" class="invite-code data-v-3478e6ca" bindtap="{{h}}"><image class="data-v-3478e6ca" style="width:38rpx;height:38rpx" src="{{g}}"></image><text class="data-v-3478e6ca">邀请码</text></view></view><view class="promo-bar data-v-3478e6ca"><text class="data-v-3478e6ca">购买权益包至高享2.5折优惠</text><view class="go-shop data-v-3478e6ca" bindtap="{{j}}"><text class="data-v-3478e6ca">去下单</text><image class="data-v-3478e6ca" src="{{i}}" style="width:26rpx;height:26rpx"></image></view></view><view class="wallet-section data-v-3478e6ca" bindtap="{{p}}"><view class="section-title data-v-3478e6ca"><text class="data-v-3478e6ca">我的钱包</text><image class="data-v-3478e6ca" src="{{k}}" style="width:34rpx;height:34rpx"></image></view><view class="wallet-cards data-v-3478e6ca"><view class="wallet-item data-v-3478e6ca"><text class="amount red data-v-3478e6ca">{{l}}</text><text class="label data-v-3478e6ca">余额</text><text class="desc data-v-3478e6ca">包含奖励</text></view><view class="wallet-item data-v-3478e6ca"><text class="amount data-v-3478e6ca">{{m}}</text><text class="label data-v-3478e6ca">业绩奖励</text><text class="desc data-v-3478e6ca">售出分成</text></view><view class="wallet-item data-v-3478e6ca"><text class="amount data-v-3478e6ca">{{n}}</text><text class="label data-v-3478e6ca">直推奖励</text></view><view class="wallet-item data-v-3478e6ca"><text class="amount data-v-3478e6ca">{{o}}</text><text class="label data-v-3478e6ca">间推奖励</text></view></view></view><view class="function-list data-v-3478e6ca"><view class="function-item data-v-3478e6ca" bindtap="{{s}}"><image class="data-v-3478e6ca" src="{{q}}"></image><text class="data-v-3478e6ca">个人信息</text><image class="data-v-3478e6ca" src="{{r}}" style="width:34rpx;height:34rpx"></image></view><view class="function-item data-v-3478e6ca" bindtap="{{w}}"><image class="data-v-3478e6ca" src="{{t}}"></image><text class="data-v-3478e6ca">我的账单</text><image class="data-v-3478e6ca" src="{{v}}" style="width:34rpx;height:34rpx"></image></view><view class="function-item data-v-3478e6ca" bindtap="{{z}}"><image class="data-v-3478e6ca" src="{{x}}"></image><text class="data-v-3478e6ca">我的团队</text><image class="data-v-3478e6ca" src="{{y}}" style="width:34rpx;height:34rpx"></image></view><view class="function-item data-v-3478e6ca" bindtap="{{C}}"><image class="data-v-3478e6ca" src="{{A}}"></image><text class="data-v-3478e6ca">地址管理</text><image class="data-v-3478e6ca" src="{{B}}" style="width:34rpx;height:34rpx"></image></view><button class="function-item data-v-3478e6ca" open-type="contact"><image class="data-v-3478e6ca" src="{{D}}"></image><text class="data-v-3478e6ca">联系客服</text><image class="data-v-3478e6ca" src="{{E}}" style="width:34rpx;height:34rpx"></image></button></view></view><uni-popup wx:if="{{L}}" class="r data-v-3478e6ca" u-s="{{['d']}}" u-r="popup" u-i="3478e6ca-1" bind:__l="__l" u-p="{{L}}"><view class="shareBlock data-v-3478e6ca"><view class="data-v-3478e6ca" style="width:100%;text-align:right"><image bindtap="{{F}}" src="{{G}}" class="shareBlock_close data-v-3478e6ca"></image></view><image class="shareBlock_code data-v-3478e6ca" src="{{H}}"></image><view class="shareBlock_info data-v-3478e6ca">打开微信扫描二维码,注册时输入邀请码</view><view class="shareBlock_codeInfo data-v-3478e6ca"><view class="shareBlock_codeInfo_left data-v-3478e6ca"> 邀请码: <text class="data-v-3478e6ca" style="text-decoration:underline">{{I}}</text></view><view class="shareBlock_codeInfo_right data-v-3478e6ca" bindtap="{{J}}">点击复制</view></view></view></uni-popup></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/mine.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/mine.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.container.data-v-3478e6ca{width:100%;min-height:100vh;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,sans-serif}.user-header.data-v-3478e6ca{background-size:cover;padding:40rpx 30rpx 60rpx;display:flex;position:relative}.user-header.data-v-3478e6ca:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0}.avatar.data-v-3478e6ca{width:152rpx;height:152rpx;border-radius:50%;margin-right:20rpx;background-color:#eee}.user-info.data-v-3478e6ca{flex:1;z-index:1;height:152rpx;display:flex;flex-direction:column;justify-content:center}.username.data-v-3478e6ca{font-size:34rpx;font-weight:700;color:#333}.phone.data-v-3478e6ca{font-size:30rpx;color:#666;margin-top:24rpx}.invite-code.data-v-3478e6ca{display:flex;align-items:center;flex-direction:column;z-index:1}.invite-code text.data-v-3478e6ca{font-size:24rpx;color:#232323;margin-top:10rpx}.qrcode-btn.data-v-3478e6ca{display:flex;align-items:center;font-size:26rpx;color:#666}.arrow.data-v-3478e6ca{margin-left:6rpx;color:#999}.promo-bar.data-v-3478e6ca{width:638rpx;height:70rpx;background:#799675;border-radius:16rpx 16rpx 0rpx 0rpx;padding:0 40rpx;display:flex;justify-content:space-between;align-items:center;font-size:28rpx;margin:0 auto;font-weight:700;font-size:24rpx;color:#ffff94}.go-shop.data-v-3478e6ca{display:flex;align-items:center}.wallet-section.data-v-3478e6ca{background-color:#fff;margin:0rpx 0 20rpx;padding:30rpx;border-radius:8rpx}.section-title.data-v-3478e6ca{display:flex;justify-content:space-between;align-items:center;padding:10rpx 0 20rpx;font-size:32rpx;font-weight:700;color:#333;border-bottom:1px solid #eee;margin-bottom:20rpx}.wallet-cards.data-v-3478e6ca{display:flex;justify-content:space-between}.wallet-item.data-v-3478e6ca{display:flex;flex-direction:column;flex:1;text-align:center}.label.data-v-3478e6ca{font-size:28rpx;color:#666}.amount.data-v-3478e6ca{font-size:36rpx;font-weight:700;margin-bottom:10rpx}.red.data-v-3478e6ca{color:#ff4d4f}.desc.data-v-3478e6ca{font-size:20rpx;color:#999;margin-top:6rpx}.order-section.data-v-3478e6ca{background-color:#fff;margin-bottom:20rpx;padding:30rpx;border-radius:8rpx}.order-types.data-v-3478e6ca{display:flex;justify-content:space-between;margin-top:20rpx}.order-type.data-v-3478e6ca{display:flex;flex-direction:column;align-items:center;width:22%}.order-type image.data-v-3478e6ca{width:56rpx;height:56rpx;margin-bottom:10rpx}.order-type text.data-v-3478e6ca{font-size:26rpx;color:#232323}.function-list.data-v-3478e6ca{background-color:#fff;margin-bottom:20rpx;border-radius:8rpx}.function-item.data-v-3478e6ca{display:flex;align-items:center;padding:30rpx;border-bottom:1rpx solid #f7f7f7}.function-item image.data-v-3478e6ca{width:48rpx;height:48rpx;margin-right:20rpx}.function-item text.data-v-3478e6ca{flex:1;font-size:28rpx;color:#333;font-weight:700}.info.data-v-3478e6ca{color:#232323!important;font-weight:500!important;text-align:right}button.data-v-3478e6ca{all:unset}button.data-v-3478e6ca:after{all:unset}.shareBlock.data-v-3478e6ca{margin:auto;width:650rpx;height:688rpx;background:#fff;border-radius:16rpx;padding:20rpx;display:flex;flex-direction:column;align-items:center}.shareBlock_close.data-v-3478e6ca{width:68rpx;height:68rpx}.shareBlock_code.data-v-3478e6ca{width:392rpx;height:392rpx}.shareBlock_info.data-v-3478e6ca{font-size:24rpx;color:#ccc;margin:24rpx 0}.shareBlock_codeInfo.data-v-3478e6ca{display:flex;align-items:center}.shareBlock_codeInfo_left.data-v-3478e6ca{font-weight:700;font-size:32rpx;color:#232323}.shareBlock_codeInfo_right.data-v-3478e6ca{margin-left:20rpx;font-size:24rpx;color:#999}
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/mobile.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/mobile.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../utils/fun.js"),s=require("../../uni_modules/wot-design-uni/components/composables/useCountDown.js");require("../../uni_modules/wot-design-uni/locale/index.js"),require("../../uni_modules/wot-design-uni/dayjs/index.js");const a=require("../../api/index.js"),n=require("../../store/index.js"),t=e.defineComponent({__name:"mobile",setup(t){const u=n.Store(),i=e.computed((()=>u.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));e.onShow((async()=>{await u.usersGetInfo()}));const l=e.ref("获取验证码"),d=e.ref("获取验证码"),c=e.ref({code:"",mobile:"",oldCode:""}),{start:r,pause:m,reset:v,current:b}=s.useCountDown({time:6e4,onChange(e){},onFinish(){l.value="重新发送"}}),{start:p,pause:h,reset:w,current:C}=s.useCountDown({time:6e4,onChange(e){},onFinish(){d.value="重新发送"}}),f=e=>{i.value.mobile?b.value.seconds?o.toast("请等待倒计时结束"):a.api.smsCode({mobile:i.value.mobile,scene:2}).then((e=>{r(),o.toast("验证码发送成功")})).catch((e=>{console.log(e),o.toast("验证码发送失败")})):o.toast("请输入旧手机号")},g=e=>{c.value.mobile?C.value.seconds?o.toast("请等待倒计时结束"):a.api.smsCode({mobile:c.value.mobile,scene:2}).then((e=>{p(),o.toast("验证码发送成功")})).catch((e=>{console.log(e),o.toast("验证码发送失败")})):o.toast("请输入旧手机号")},j=()=>{a.api.updateMobile(c.value).then((o=>{e.index.showModal({title:"提示",content:"修改成功",showCancel:!1,success:async()=>{await u.usersGetInfo(),e.index.navigateBack()}})}))};return(o,s)=>({a:i.value.mobile,b:c.value.oldCode,c:e.o((e=>c.value.oldCode=e.detail.value)),d:e.t(e.unref(b).seconds||l.value),e:e.o(f),f:c.value.mobile,g:e.o((e=>c.value.mobile=e.detail.value)),h:c.value.code,i:e.o((e=>c.value.code=e.detail.value)),j:e.t(e.unref(C).seconds||d.value),k:e.o(g),l:e.o(j)})}}),u=e._export_sfc(t,[["__scopeId","data-v-54d890b4"]]);wx.createPage(u);
|
||||
5
unpackage/dist/build/mp-weixin/pages/mine/mobile.json
vendored
Normal file
5
unpackage/dist/build/mp-weixin/pages/mine/mobile.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"navigationBarTitleText": "修改手机号",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/mobile.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/mobile.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="page-container data-v-54d890b4"><view class="form-group data-v-54d890b4"><text class="label data-v-54d890b4">旧手机号:</text><input class="input data-v-54d890b4" type="number" placeholder="请输入旧手机号" disabled value="{{a}}" maxlength="11"/></view><view class="form-group code-group data-v-54d890b4"><text class="label data-v-54d890b4">短信验证码:</text><input class="input data-v-54d890b4" type="number" placeholder="请输入短信验证码" maxlength="6" value="{{b}}" bindinput="{{c}}"/><view class="code-btn data-v-54d890b4" bindtap="{{e}}">{{d}}</view></view><view class="form-group data-v-54d890b4"><text class="label data-v-54d890b4">新手机号:</text><input class="input data-v-54d890b4" type="number" placeholder="请输入新手机号" maxlength="11" value="{{f}}" bindinput="{{g}}"/></view><view class="form-group code-group data-v-54d890b4"><text class="label data-v-54d890b4">短信验证码:</text><input class="input data-v-54d890b4" type="number" placeholder="请输入短信验证码" maxlength="6" value="{{h}}" bindinput="{{i}}"/><view class="code-btn data-v-54d890b4" bindtap="{{k}}">{{j}}</view></view><button class="confirm-btn data-v-54d890b4" bindtap="{{l}}">确定</button><view class="tips data-v-54d890b4"><text class="tips-title data-v-54d890b4">温馨提醒:</text><text class="tips-item data-v-54d890b4">1. 一个手机号只能作为一个账户的登录名;</text><text class="tips-item data-v-54d890b4">2. 手机号修改成功后,原手机号将不支持登录。</text></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/mobile.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/mobile.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.page-container.data-v-54d890b4{padding:30rpx;background-color:#fff}.form-group.data-v-54d890b4{display:flex;align-items:center;margin-bottom:40rpx}.label.data-v-54d890b4{font-size:26rpx;color:#333;width:180rpx;font-weight:700}.input.data-v-54d890b4{flex:1;height:60rpx;line-height:60rpx;border-bottom:1px solid #eee;font-size:28rpx;color:#666}.code-group.data-v-54d890b4{justify-content:space-between}.code-btn.data-v-54d890b4{width:175rpx;height:60rpx;line-height:60rpx;font-size:28rpx;color:#5d7a4e;border:1rpx solid #5d7a4e;text-align:center;border-radius:14rpx}.confirm-btn.data-v-54d890b4{width:100%;height:80rpx;line-height:80rpx;font-size:32rpx;color:#fff;background-color:#5d7a4e;border-radius:10rpx;margin-top:50rpx}.tips.data-v-54d890b4{margin-top:60rpx;font-size:26rpx;color:#999;line-height:44rpx}.tips-title.data-v-54d890b4{display:block;margin-bottom:20rpx;font-weight:500}.tips-item.data-v-54d890b4{display:block}
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/sett.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/sett.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),s=require("../../api/index.js"),n=require("../../utils/fun.js"),o=require("../../store/index.js"),t=require("../../uni_modules/wot-design-uni/components/wd-message-box/index.js");if(require("../../uni_modules/wot-design-uni/locale/index.js"),require("../../uni_modules/wot-design-uni/dayjs/index.js"),!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-message-box"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-message-box/wd-message-box.js"))();const i={__name:"sett",setup(i){const r=t.useMessage(),u=o.Store(),l=()=>{e.index.navigateBack()},c=e.computed((()=>u.userInfo||{})),d=e.ref({avatar:"",nickname:"",mobile:"",sex:0});function m(){r.prompt({title:"请输入昵称",inputValue:d.value.nickname}).then((async e=>{await s.api.usersUpdate({nickname:e.value||"微信用户"}),await u.usersGetInfo()})).catch((e=>{console.log(e)}))}e.onShow((async()=>{await u.usersGetInfo()})),e.onLoad((async()=>{if(e.index.getStorageSync("userInfo")){const a=await getUser();e.index.setStorageSync("userInfo",a),d.value={...a}}})),e.ref("");const v=async e=>{try{if(e.detail.avatarUrl){const a=await n.uploadFiles(e.detail.avatarUrl);await s.api.usersUpdate({avatar:a,mobile:c.value.mobile,nickname:c.value.nickname||"微信用户"}),await u.usersGetInfo()}}catch(a){console.error("选择头像失败:",a)}},g=async()=>{e.index.showModal({title:"提示",content:"是否确认退出登录?",success:function(e){e.confirm?u.logoutUser():e.cancel&&console.log("用户点击取消")}})},p=()=>{e.index.navigateTo({url:"/pages/mine/mobile"})};return(s,n)=>e.e({a:e.o(l),b:e.p({bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",title:"个人信息",safeAreaInsetTop:!0}),c:a._imports_0$6,d:c.value.avatar},c.value.avatar?{e:c.value.avatar}:{f:a._imports_1$4},{g:e.o(v),h:e.t(c.value.nickname||"微信用户"),i:a._imports_0$1,j:e.o(m),k:e.t(c.value.mobile),l:a._imports_0$1,m:e.o(p),n:c.value.userRights},c.value.userRights?{o:e.t(c.value.userRights.rights.rightsName)}:{},{p:e.o(g)})}},r=e._export_sfc(i,[["__scopeId","data-v-2463a4f2"]]);wx.createPage(r);
|
||||
8
unpackage/dist/build/mp-weixin/pages/mine/sett.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/mine/sett.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-message-box": "../../uni_modules/wot-design-uni/components/wd-message-box/wd-message-box"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/sett.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/sett.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-2463a4f2"><wd-navbar wx:if="{{b}}" class="data-v-2463a4f2" bindclickLeft="{{a}}" u-i="2463a4f2-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><image class="data-v-2463a4f2" src="{{c}}" style="width:750rpx;height:690rpx;position:absolute;top:0;left:0;z-index:-1" mode="widthFix"></image><view class="data-v-2463a4f2" style="padding:30rpx"><view class="card data-v-2463a4f2"><view class="avatar-row data-v-2463a4f2"><text class="label data-v-2463a4f2">头像</text><button class="avatar-btn data-v-2463a4f2" open-type="chooseAvatar" bindchooseavatar="{{g}}"><view class="avatar-uploader data-v-2463a4f2"><image wx:if="{{d}}" src="{{e}}" class="avatar-image data-v-2463a4f2"></image><view wx:else class="avatar-placeholder data-v-2463a4f2"><image class="data-v-2463a4f2" src="{{f}}"></image></view></view></button></view><view class="form-row data-v-2463a4f2" bindtap="{{j}}"><text class="label required data-v-2463a4f2">账户名称</text><view class="form-row-right data-v-2463a4f2" style="font-size:28rpx"><view class="data-v-2463a4f2">{{h}}</view><image class="data-v-2463a4f2" src="{{i}}" style="opacity:0.5;width:30rpx;height:30rpx" mode="widthFix"></image></view></view><view class="form-row data-v-2463a4f2" bindtap="{{m}}"><text class="label required data-v-2463a4f2">手机号</text><view class="form-row-right data-v-2463a4f2" style="font-size:28rpx"><view class="data-v-2463a4f2">{{k}}</view><image class="data-v-2463a4f2" src="{{l}}" style="opacity:0.5;width:30rpx;height:30rpx" mode="widthFix"></image></view></view><view class="form-row data-v-2463a4f2"><text class="label required data-v-2463a4f2">等级</text><view wx:if="{{n}}" class="data-v-2463a4f2" style="font-size:28rpx">{{o}}</view><view wx:else class="data-v-2463a4f2" style="font-size:28rpx">-</view></view></view><view class="save-btn data-v-2463a4f2" bindtap="{{p}}">退出登录</view></view><wd-message-box class="data-v-2463a4f2" u-i="2463a4f2-1" bind:__l="__l"/></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/mine/sett.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/mine/sett.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.card.data-v-2463a4f2{border-radius:16rpx;padding:0 30rpx;background-color:#fff}.avatar-row.data-v-2463a4f2{height:170rpx;display:flex;align-items:center;justify-content:space-between}.avatar-row .avatar-btn.data-v-2463a4f2{width:90rpx;height:90rpx;margin:0;padding:0;border-radius:50%}.avatar-row .avatar-btn.data-v-2463a4f2:after{border-width:0}.avatar-row .label.data-v-2463a4f2{font-size:28rpx;color:#232323}.avatar-uploader.data-v-2463a4f2{width:90rpx;height:90rpx;border-radius:50%;position:relative}.avatar-uploader .avatar-image.data-v-2463a4f2{width:100%;height:100%}.avatar-uploader .avatar-placeholder.data-v-2463a4f2{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.avatar-uploader .avatar-placeholder image.data-v-2463a4f2{width:90rpx;height:90rpx;background-color:#f5f5f5}.form-row.data-v-2463a4f2{height:82rpx;display:flex;align-items:center;justify-content:space-between;border-bottom:1rpx solid #f5f5f5}.form-row .label.data-v-2463a4f2{font-size:28rpx;color:#232323}.form-row .input.data-v-2463a4f2{flex:1;text-align:right;font-size:24rpx;color:#232323;padding-left:20rpx}.form-row .input-disabled.data-v-2463a4f2{color:#999}.form-row-right.data-v-2463a4f2{display:flex;align-items:center;justify-content:space-between}.form-row-right image.data-v-2463a4f2{margin-left:10rpx}.save-btn.data-v-2463a4f2{margin-top:35rpx;width:690rpx;height:110rpx;background:#fff;box-shadow:0 2rpx 8rpx 2rpx rgba(0,88,219,.06);border-radius:8rpx;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:30rpx;color:#5d7a4e}
|
||||
1
unpackage/dist/build/mp-weixin/pages/notice/details.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/notice/details.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../api/index.js"),n=require("../../utils/fun.js");if(!Array){e.resolveComponent("mp-html")()}Math;const o=e.defineComponent({__name:"details",setup(o){const a=e.ref({});return e.onLoad((e=>{t.api.noticeInfo({id:e.id}).then((e=>{a.value=e}))})),(t,o)=>e.e({a:e.t(a.value.title),b:e.t(e.unref(n.timeFormat)(a.value.createTime,"yyyy-MM-dd hh:mm:ss")),c:a.value.video},a.value.video?{d:a.value.cover,e:a.value.video}:{},{f:e.p({content:a.value.content})})}});wx.createPage(o);
|
||||
7
unpackage/dist/build/mp-weixin/pages/notice/details.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/notice/details.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "公告",
|
||||
"navigationBarBackgroundColor": "#fff",
|
||||
"usingComponents": {
|
||||
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/notice/details.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/notice/details.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="padding:30rpx"><view style="font-size:34rpx">{{a}}</view><view style="height:20rpx"></view><view style="color:#999;font-size:30rpx">发布时间:{{b}}</view><view style="height:20rpx"></view><video wx:if="{{c}}" style="width:690rpx;height:388rpx" poster="{{d}}" src="{{e}}" direction="{{90}}"></video><view style="height:20rpx"></view><view><mp-html wx:if="{{f}}" u-i="1c73d952-0" bind:__l="__l" u-p="{{f}}"/></view><view style=""></view></view>
|
||||
0
unpackage/dist/build/mp-weixin/pages/notice/details.wxss
vendored
Normal file
0
unpackage/dist/build/mp-weixin/pages/notice/details.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/notice/notice.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/notice/notice.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),t=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const n=e.defineComponent({__name:"notice",setup(n){const o=e.ref(1),l=e.ref(""),i=e.ref(null),u=e.ref([]),s=e.ref([]);e.onLoad((()=>{t.api.noticeCatePage().then((e=>{s.value=e.list}))}));const r=(e,a)=>{o.value=e,l.value=a,i.value.reload()},c=(e,a)=>{t.api.noticePage({pageNo:e,pageSize:a,type:o.value,categoryId:l.value}).then((e=>{i.value.complete(e.list)})).catch((e=>{i.value.complete(!1)}))},v=()=>{e.index.navigateBack()};return(t,n)=>({a:e.o(v),b:e.p({title:"公告",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.n(1==o.value?"active":""),d:e.o((e=>r(1,""))),e:e.f(s.value,((a,t,n)=>({a:e.t(a.categoryName),b:e.n(2==o.value&&l.value==a.id?"active":""),c:e.o((e=>r(2,a.id)),t),d:t}))),f:e.f(u.value,((t,n,l)=>e.e({a:e.t(1==o.value?t.content:t.title)},2==o.value?{b:a._imports_0$1}:{},{c:n,d:e.o((a=>(a=>{1==o.value?e.index.showModal({title:"通知",content:a.content,showCancel:!1}):e.index.navigateTo({url:"/pages/notice/details?id="+a.id})})(t)),n)}))),g:e.t(1==o.value?"通知":2==o.value?s.value.find((e=>e.id==l.value)).categoryName:""),h:2==o.value,i:e.sr(i,"795fab27-1",{k:"paging"}),j:e.o(c),k:e.o((e=>u.value=e)),l:e.p({"use-page-scroll":!0,modelValue:u.value})})}}),o=e._export_sfc(n,[["__scopeId","data-v-795fab27"]]);wx.createPage(o);
|
||||
8
unpackage/dist/build/mp-weixin/pages/notice/notice.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/notice/notice.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/notice/notice.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/notice/notice.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="notice data-v-795fab27"><wd-navbar wx:if="{{b}}" class="data-v-795fab27" bindclickLeft="{{a}}" u-i="795fab27-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><view class="nav-tabs data-v-795fab27"><view class="{{['tab-item', 'data-v-795fab27', c]}}" bindtap="{{d}}">通知</view><view wx:for="{{e}}" wx:for-item="item" wx:key="d" class="{{['tab-item', 'data-v-795fab27', item.b]}}" bindtap="{{item.c}}">{{item.a}}</view></view><z-paging wx:if="{{l}}" class="r data-v-795fab27" u-s="{{['d']}}" u-r="paging" bindquery="{{j}}" u-i="795fab27-1" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><view class="p30 data-v-795fab27"><view wx:for="{{f}}" wx:for-item="item" wx:key="c" class="notice_block data-v-795fab27" bindtap="{{item.d}}"><view class="data-v-795fab27">{{g}}:{{item.a}}</view><image wx:if="{{h}}" class="data-v-795fab27" style="width:40rpx;height:40rpx" src="{{item.b}}"></image></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/notice/notice.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/notice/notice.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.notice_block.data-v-795fab27{display:flex;align-items:center;justify-content:space-between;padding:0 35rpx;width:690rpx;height:106rpx;background:#fff;border-radius:16rpx;position:relative;font-weight:400;font-size:24rpx;color:#232323}.notice .nav-tabs.data-v-795fab27{display:flex;background-color:#fff;padding:24rpx 0;border-bottom:1rpx solid #eee}.notice .tab-item.data-v-795fab27{font-size:15px;color:#999;position:relative;padding:0 10px;z-index:9}.notice .tab-item.active.data-v-795fab27{color:#333;font-weight:700}.notice .tab-item.active.data-v-795fab27:after{content:"";position:absolute;bottom:0rpx;right:20rpx;width:40rpx;height:12rpx;background:#627c54;border-radius:24rpx;z-index:5;opacity:.8}
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/confirm.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/confirm.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),u=require("../../api/index.js"),t=require("../../store/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-input-number")+e.resolveComponent("wd-textarea"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-input-number/wd-input-number.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-textarea/wd-textarea.js"))();const l={__name:"confirm",setup(l){const o=t.Store(),s=e.computed((()=>(o.userInfo.userRights||(v.value.payType=1),o.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0},userRights:null}))),i=e.ref({}),r=e.ref(null),v=e.ref({goodsId:null,goodsNum:1,totalAmount:0,payableAmount:0,payAmount:0,payType:1,receiverId:null,note:"",orderType:1}),n=e.computed((()=>i.value.currentPrice*v.value.goodsNum)),p=e.computed((()=>{var e,a;if(1===v.value.payType){const u=(null==(a=null==(e=s.value.userRights)?void 0:e.rights)?void 0:a.rightsDiscount)||100;return n.value*u/100}return n.value})),d=()=>{var a;let t=JSON.parse(JSON.stringify(v.value));r.value?(e.index.showLoading({mask:!0}),t.receiverId=null==(a=r.value)?void 0:a.id,1==t.payType&&(t.payAmount=p.value,t.totalAmount=n.value,t.payableAmount=p.value,t.totalAmount=n.value),2==t.payType&&(t.deductibleAmount=n.value,t.totalAmount=n.value,t.deductionAmount=n.value,t.totalAmount=n.value),3==t.payType&&(s.value.userRights.pice<n.value?(t.deductibleAmount=s.value.userRights.pice,t.deductionAmount=s.value.userRights.pice,t.payAmount=n.value-s.value.userRights.pice,t.payableAmount=n.value-s.value.userRights.pice,t.totalAmount=n.value):(t.deductibleAmount=n.value,t.totalAmount=n.value,t.deductionAmount=n.value,t.totalAmount=n.value,t.payType=2)),u.api.orderCreate(t).then((a=>{e.index.hideLoading(),e.index.navigateTo({url:"/pages/order/success?id="+a})})).catch((()=>{e.index.hideLoading()}))):e.index.showToast({title:"请选择收货地址",icon:"none"})};e.onLoad((async a=>{v.value.goodsId=a.id,await o.usersGetInfo(),u.api.goodsInfo({id:a.id}).then((e=>{i.value=e})),u.api.addressPage({isDefault:1}).then((e=>{e.list.length&&(r.value=e.list[0],v.value.receiverId=r.value.id)})),e.index.$on("address",(e=>{r.value=e}))}));const c=(e,a)=>Math.min(e,a),m=()=>{e.index.navigateTo({url:"/pages/address/list?type=1"})},g=()=>{e.index.navigateTo({url:"/pages/goods/goods?id="+i.value.id})},y=()=>{e.index.navigateBack()};return(u,t)=>{return e.e({a:e.o(y),b:e.p({title:"下单",bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:r.value},r.value?{d:e.t(r.value.receiverArea),e:e.t(r.value.receiverAddress),f:e.t(r.value.receiverName),g:e.t(r.value.receiverPhone)}:{},{h:a._imports_0$1,i:e.o(m),j:i.value.cover,k:e.t(i.value.name),l:e.t(i.value.specs),m:e.t(i.value.currentPrice),n:e.o(g),o:a._imports_0$1,p:e.o((e=>v.value.goodsNum=e)),q:e.p({modelValue:v.value.goodsNum}),r:e.o((e=>v.value.note=e)),s:e.p({placeholder:"请填写订单备注",modelValue:v.value.note}),t:e.t(s.value.money||0),v:1===v.value.payType?1:"",w:e.o((e=>v.value.payType=1)),x:1===v.value.payType&&s.value.userRights},1===v.value.payType&&s.value.userRights?{y:e.t(s.value.userRights.rights.rightsName),z:e.t(s.value.userRights.rights.rightsDiscount/10)}:{},{A:s.value.userRights},s.value.userRights?{B:e.t(s.value.userRights.pice||0),C:2===v.value.payType?1:"",D:e.o((e=>v.value.payType=2))}:{},{E:2===v.value.payType},(v.value.payType,{}),{F:s.value.userRights},s.value.userRights?e.e({G:n.value>s.value.userRights.pice+s.value.money},n.value>s.value.userRights.pice+s.value.money?{H:e.t(c(s.value.money,n.value-s.value.userRights.pice)),I:e.t(c(s.value.userRights.pice,n.value-s.value.money))}:e.e({J:e.t((o=0,h=n.value-s.value.userRights.pice,Math.max(o,h))),K:c(n.value-(n.value-s.value.userRights.pice),s.value.userRights.pice)>n.value},c(n.value-(n.value-s.value.userRights.pice),s.value.userRights.pice)>n.value?{L:e.t(n.value)}:{M:e.t(c(n.value-(n.value-s.value.userRights.pice),s.value.userRights.pice))}),{N:3===v.value.payType?1:"",O:e.o((e=>v.value.payType=3))}):{},{P:3===v.value.payType},(v.value.payType,{}),{Q:e.t((l=p.value,`¥ ${parseFloat(l).toFixed(2)}`)),R:e.o(d)});var l,o,h}}},o=e._export_sfc(l,[["__scopeId","data-v-46acca1b"]]);wx.createPage(o);
|
||||
9
unpackage/dist/build/mp-weixin/pages/order/confirm.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/order/confirm.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-input-number": "../../uni_modules/wot-design-uni/components/wd-input-number/wd-input-number",
|
||||
"wd-textarea": "../../uni_modules/wot-design-uni/components/wd-textarea/wd-textarea"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/confirm.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/confirm.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/pages/order/confirm.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/confirm.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.container.data-v-46acca1b{display:flex;flex-direction:column;background-color:#f5f5f5;position:relative}.address-card.data-v-46acca1b{margin:25rpx;margin-bottom:0;padding:30rpx;background-color:#fff;border-radius:16rpx}.address-content.data-v-46acca1b{display:flex;justify-content:space-between;align-items:center}.address-text.data-v-46acca1b{flex:1}.province-city.data-v-46acca1b{font-size:15px;margin-bottom:5px}.address-detail.data-v-46acca1b{font-size:14px;color:#666}.arrow-right.data-v-46acca1b{color:#ccc;font-size:18px}.product-section.data-v-46acca1b{margin:25rpx;padding:30rpx;background-color:#fff;border-radius:16rpx;margin-bottom:0}.section-title.data-v-46acca1b{font-size:15px;color:#333;margin-bottom:15px;font-weight:500}.product-list.data-v-46acca1b{display:flex;justify-content:space-between;align-items:center}.product-item.data-v-46acca1b{display:flex;align-items:center}.product-image.data-v-46acca1b{width:80px;height:80px;border-radius:4px;margin-right:10px}.product-info.data-v-46acca1b{flex:1}.product-name.data-v-46acca1b{font-size:14px;margin-bottom:5px}.product-spec.data-v-46acca1b{font-size:13px;color:#999;margin:10rpx 0}.product-price.data-v-46acca1b{font-size:36rpx;font-weight:700;color:#ff2929}.price-section.data-v-46acca1b{margin:25rpx;padding:30rpx;background-color:#fff;border-radius:16rpx;margin-bottom:0}.price-item.data-v-46acca1b{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.price-item-pay.data-v-46acca1b{display:flex;align-items:center;justify-content:space-between;margin-bottom:15rpx;padding:24rpx 0rpx;border:1rpx solid #f7f7f7;border-radius:10rpx;background-color:#f7f7f7}.price-total.data-v-46acca1b{display:flex;align-items:center;justify-content:space-between}.price-label.data-v-46acca1b,.price-value.data-v-46acca1b{font-size:14px;color:#333}.total.data-v-46acca1b{color:#ff2929;font-weight:500}.remark-section.data-v-46acca1b{margin:25rpx;padding:30rpx;background-color:#fff;border-radius:16rpx;margin-bottom:0}.remark-content.data-v-46acca1b{border-radius:16rpx;border:1rpx solid #f7f7f7;overflow:hidden;height:100rpx}.footer.data-v-46acca1b{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;height:100rpx;padding:0 30rpx;background-color:#fff;border-top:1rpx solid #eee}.total-price.data-v-46acca1b{font-size:15px;color:#333}.pay-button.data-v-46acca1b{background-color:#799675;color:#fff;font-size:16px;padding:0 30px;height:36px;line-height:36px;border-radius:18px}.active-border.data-v-46acca1b{background-color:rgba(121,150,117,.1);border:1rpx solid #799675}.active-border .price-label.data-v-46acca1b{color:#799675}
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/order.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/order.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/index.js"),t=require("../../utils/fun.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const a=e.defineComponent({__name:"order",setup(a){const r=e.ref(null),d=e.ref([]),n=e.ref({orderType:1,payStatus:"",orderStatus:""}),u=e=>{n.value.orderStatus=e,r.value.reload()},s=(e,t)=>{o.api.orderPage({pageNo:e,pageSize:t,...n.value}).then((e=>{r.value.complete(e.list)})).catch((e=>{r.value.complete(!1)}))};return(o,a)=>({a:e.p({title:"订单",safeAreaInsetTop:!0}),b:e.n(""===n.value.orderStatus?"active":""),c:e.o((e=>u(""))),d:e.n(0===n.value.orderStatus?"active":""),e:e.o((e=>u(0))),f:e.n(1==n.value.orderStatus?"active":""),g:e.o((e=>u(1))),h:e.n(2==n.value.orderStatus?"active":""),i:e.o((e=>u(2))),j:e.f(d.value,((o,a,r)=>e.e({a:e.t(o.orderNo),b:0===o.orderStatus},(o.orderStatus,{}),{c:1==o.orderStatus},(o.orderStatus,{}),{d:o.goods.cover,e:e.t(o.goods.name),f:e.t(o.goods.specs),g:e.t(o.goodsNum),h:o.deductionAmount},o.deductionAmount?{i:e.t(o.deductionAmount)}:{},{j:e.t(o.payableAmount),k:e.t(e.unref(t.timeFormat)(o.createTime,"yyyy-MM-dd hh:mm:ss")),l:1==o.orderStatus},1==o.orderStatus?{m:e.o((t=>{return a=o.goodsId,void e.index.navigateTo({url:"/pages/goods/goods?id="+a});var a}),a)}:{},{n:a}))),k:e.sr(r,"c72dbade-0",{k:"paging"}),l:e.o(s),m:e.o((e=>d.value=e)),n:e.p({modelValue:d.value})})}}),r=e._export_sfc(a,[["__scopeId","data-v-c72dbade"]]);wx.createPage(r);
|
||||
8
unpackage/dist/build/mp-weixin/pages/order/order.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/order/order.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/order.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/order.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="container data-v-c72dbade"><z-paging wx:if="{{n}}" class="r data-v-c72dbade" u-s="{{['d']}}" u-r="paging" bindquery="{{l}}" u-i="c72dbade-0" bind:__l="__l" bindupdateModelValue="{{m}}" u-p="{{n}}"><wd-navbar wx:if="{{a}}" class="data-v-c72dbade" u-i="c72dbade-1,c72dbade-0" bind:__l="__l" u-p="{{a}}"></wd-navbar><view class="nav-tabs data-v-c72dbade"><view class="{{['tab-item', 'data-v-c72dbade', b]}}" bindtap="{{c}}">全部</view><view class="{{['tab-item', 'data-v-c72dbade', d]}}" bindtap="{{e}}">待付款</view><view class="{{['tab-item', 'data-v-c72dbade', f]}}" bindtap="{{g}}">已完成</view><view class="{{['tab-item', 'data-v-c72dbade', h]}}" bindtap="{{i}}">已取消</view></view><view class="order-list data-v-c72dbade"><view wx:for="{{j}}" wx:for-item="item" wx:key="n" class="order-item data-v-c72dbade"><view class="order-header data-v-c72dbade"><text class="order-id data-v-c72dbade">{{item.a}}</text><text wx:if="{{item.b}}" class="order-status pending data-v-c72dbade">待付款</text><text wx:if="{{item.c}}" class="order-status completed data-v-c72dbade">已完成</text></view><view class="order-content data-v-c72dbade"><image class="product-image data-v-c72dbade" src="{{item.d}}" mode="aspectFill"></image><view class="product-info data-v-c72dbade"><view class="product-name data-v-c72dbade"><view class="data-v-c72dbade">{{item.e}}</view></view><view class="product-spec data-v-c72dbade"><view class="data-v-c72dbade">{{item.f}}</view><view class="product-count data-v-c72dbade">×{{item.g}}</view></view><view class="product-price data-v-c72dbade"><view wx:if="{{item.h}}" class="data-v-c72dbade" style="font-size:26rpx">已抵扣金额:¥{{item.i}}</view><view wx:else class="data-v-c72dbade"></view><text class="data-v-c72dbade" style="font-weight:bold">¥{{item.j}}</text></view></view></view><view class="order-footer data-v-c72dbade"><view class="order-time data-v-c72dbade">{{item.k}}</view><view class="order-actions data-v-c72dbade"><view wx:if="{{item.l}}" class="btn-buy-again data-v-c72dbade" bindtap="{{item.m}}">再次购买</view></view></view></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/order.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/order.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.container.data-v-c72dbade{padding:0;background-color:#f5f5f5;min-height:100vh}.nav-tabs.data-v-c72dbade{display:flex;background-color:#fff;padding:24rpx 0;border-bottom:1rpx solid #eee}.tab-item.data-v-c72dbade{font-size:15px;color:#999;position:relative;padding:0 10px;z-index:9}.tab-item.active.data-v-c72dbade{color:#333;font-weight:700}.tab-item.active.data-v-c72dbade:after{content:"";position:absolute;bottom:0rpx;right:20rpx;width:40rpx;height:12rpx;background:#627c54;border-radius:24rpx;z-index:5;opacity:.5}.order-list.data-v-c72dbade{padding:10px}.order-item.data-v-c72dbade{background-color:#fff;margin-bottom:36rpx;border-radius:16rpx;padding:36rpx}.order-header.data-v-c72dbade{font-size:28rpx;display:flex;justify-content:space-between;border-bottom:1rpx solid #eeeeee;padding-bottom:24rpx;color:#232323}.order-id.data-v-c72dbade{font-size:14px;color:#333}.order-status.data-v-c72dbade{font-size:14px;font-weight:500}.pending.data-v-c72dbade{color:#ff5722}.completed.data-v-c72dbade{color:#4caf50}.cancelled.data-v-c72dbade{color:#f44336}.order-content.data-v-c72dbade{display:flex;padding:20rpx 0}.product-image.data-v-c72dbade{width:150rpx;height:150rpx;border-radius:8rpx;margin-right:20rpx;background-color:#f0f0f0}.product-info.data-v-c72dbade{flex:1;display:flex;flex-direction:column;justify-content:space-between}.product-name.data-v-c72dbade{font-size:28rpx;color:#232323;font-weight:600;display:flex;align-items:center;justify-content:space-between}.product-spec.data-v-c72dbade{font-size:28rpx;color:#666;margin-top:20rpx;display:flex;align-items:center;justify-content:space-between}.product-count.data-v-c72dbade{font-size:24rpx;color:#232323;text-align:right}.product-price.data-v-c72dbade{font-size:36rpx;color:#ff3d3d;text-align:right;display:flex;align-items:center;justify-content:space-between}.order-footer.data-v-c72dbade{display:flex;justify-content:space-between;align-items:center;padding:24rpx 0 0;border-top:1rpx solid #f5f5f5}.order-time.data-v-c72dbade{font-size:24rpx;color:#232323}.order-actions.data-v-c72dbade{display:flex;gap:10px}.btn-cancel.data-v-c72dbade,.btn-pay.data-v-c72dbade,.btn-reorder.data-v-c72dbade,.btn-buy-again.data-v-c72dbade{width:150rpx;height:56rpx;border-radius:28rpx;display:flex;align-items:center;justify-content:center;font-size:24rpx}.btn-cancel.data-v-c72dbade{border:1rpx solid #999999;color:#999}.btn-pay.data-v-c72dbade{color:#ff6f00;border:1rpx solid #ff6f00}.btn-reorder.data-v-c72dbade{color:#fff;background-color:#458f3b;border:none}.btn-buy-again.data-v-c72dbade{color:#fff;background-color:#f44336;border:none}.btn-cancel.data-v-c72dbade:active,.btn-pay.data-v-c72dbade:active,.btn-reorder.data-v-c72dbade:active,.btn-buy-again.data-v-c72dbade:active{opacity:.8}
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/success.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/success.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
unpackage/dist/build/mp-weixin/pages/order/success.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/pages/order/success.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/success.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/success.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="app data-v-768c96cd" style="{{p}}"><wd-navbar wx:if="{{a}}" class="data-v-768c96cd" u-i="768c96cd-0" bind:__l="__l" u-p="{{a}}"></wd-navbar><view class="header data-v-768c96cd"><image src="{{b}}" class="success-image data-v-768c96cd"></image><view class="success-title data-v-768c96cd">{{c}}</view><view class="hr data-v-768c96cd"></view></view><view class="info-box data-v-768c96cd"><view class="info-amount data-v-768c96cd">¥ {{d}}</view><view wx:if="{{e}}" class="left-circle data-v-768c96cd"></view><view wx:if="{{f}}" class="right-circle data-v-768c96cd"></view><view wx:if="{{g}}" class="info-main data-v-768c96cd"><view wx:if="{{h}}" class="info-cell data-v-768c96cd"><view class="left data-v-768c96cd">抵扣金额</view><view class="right data-v-768c96cd" style="color:#ff2929">¥{{i}}</view></view><view wx:if="{{j}}" class="info-cell data-v-768c96cd"><view class="left data-v-768c96cd">订单编号</view><view class="right data-v-768c96cd">{{k}}</view></view><view wx:if="{{l}}" class="info-cell data-v-768c96cd"><view class="left data-v-768c96cd">付款时间</view><view class="right data-v-768c96cd">{{m}}</view></view></view></view><view class="button-query data-v-768c96cd" bindtap="{{n}}">查看订单</view><view class="button-query1 data-v-768c96cd" bindtap="{{o}}">返回首页</view><view class="footer-hr data-v-768c96cd"></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/order/success.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/order/success.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.app.data-v-768c96cd{--bgcolor: #f3f3f3;background-color:var(--bgcolor);min-height:calc(100vh - var(--window-bottom) - var(--window-top))}.header.data-v-768c96cd{background-color:var(--main);text-align:center;color:#fff;padding:80rpx 30rpx 50rpx}.header .success-image.data-v-768c96cd{width:120rpx;height:120rpx}.header .success-title.data-v-768c96cd{font-size:34rpx;margin-top:40rpx;font-weight:700}.header .hr.data-v-768c96cd{margin-top:40rpx;width:100%;height:30rpx;border-radius:20rpx;opacity:.1;background-color:#000}.info-box.data-v-768c96cd{width:calc(100% - 100rpx);margin:-64rpx 50rpx 0;position:relative;background-color:#fff}.info-box .info-amount.data-v-768c96cd{height:150rpx;line-height:150rpx;text-align:center;color:var(--main);font-weight:700;font-size:60rpx;border-bottom:4rpx dashed #f3f3f3}.info-box .left-circle.data-v-768c96cd{background-color:var(--bgcolor);position:absolute;width:40rpx;height:40rpx;border-radius:50%;top:130rpx;left:-20rpx}.info-box .right-circle.data-v-768c96cd{background-color:var(--bgcolor);position:absolute;width:40rpx;height:40rpx;border-radius:50%;top:130rpx;right:-20rpx}.info-box .info-main.data-v-768c96cd{padding:30rpx;font-size:26rpx;color:#333}.info-box .info-main .info-cell.data-v-768c96cd{display:flex;line-height:50rpx}.info-box .info-main .info-cell .left.data-v-768c96cd{width:200rpx;text-align:left}.info-box .info-main .info-cell .right.data-v-768c96cd{flex:1;text-align:right}.uni-ad.data-v-768c96cd{margin-top:50rpx;min-height:100rpx}.uni-ad .ad-interactive.data-v-768c96cd{text-align:center}.button-query.data-v-768c96cd{background-color:var(--main);color:#fff;width:calc(100% - 120rpx);margin:50rpx 60rpx 0;padding:20rpx 30rpx;border-radius:50rpx;text-align:center;box-sizing:border-box}.button-query.data-v-768c96cd:active{opacity:.7}.button-query1.data-v-768c96cd{border:1rpx solid var(--main);color:var(--main);width:calc(100% - 120rpx);margin:50rpx 60rpx 0;padding:20rpx 30rpx;border-radius:50rpx;text-align:center;box-sizing:border-box}.footer-hr.data-v-768c96cd{height:100rpx;display:block}
|
||||
1
unpackage/dist/build/mp-weixin/pages/protocol/protocol.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/protocol/protocol.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={data:()=>({}),methods:{}};const r=require("../../common/vendor.js")._export_sfc(e,[["render",function(e,r,t,n,o,c){return{}}]]);wx.createPage(r);
|
||||
4
unpackage/dist/build/mp-weixin/pages/protocol/protocol.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/protocol/protocol.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/protocol/protocol.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/protocol/protocol.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view></view>
|
||||
0
unpackage/dist/build/mp-weixin/pages/protocol/protocol.wxss
vendored
Normal file
0
unpackage/dist/build/mp-weixin/pages/protocol/protocol.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/team/team.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/team/team.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),a=require("../../api/index.js"),r=require("../../utils/fun.js"),n=require("../../store/index.js");if(!Array){(e.resolveComponent("wd-datetime-picker")+e.resolveComponent("uni-dateformat")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker.js")+(()=>"../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const u=e.defineComponent({__name:"team",setup(u){const o=e.ref(null),s=e.ref([]),i=e.ref({}),l=e.ref(!0),m=e.ref(!1),v=n.Store(),p=e.computed((()=>v.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));function d(){p.value.userRights&&3==p.value.userRights.rightsLevel&&a.api.getTeamMonthlyPerformanceAward({month:r.timeFormat(g.value,"yyyy-MM-ddThh:mm:ss")}).then((e=>{i.value=e}))}e.onShow((()=>{})),e.onLoad((()=>{m.value=f((new Date).getTime()),d()}));const g=e.ref((new Date).getTime());e.ref({});const c=(e,t)=>{a.api.usersGetInfoTeam({pageNo:e,pageSize:t}).then((e=>{o.value.complete(e.list),d()})).catch((e=>{o.value.complete(!1)}))},h=e=>{m.value=f(e.value),o.value.reload()};function f(e){const t=new Date(e<1e12?1e3*e:e),a=new Date,r=a.getFullYear(),n=a.getMonth(),u=t.getFullYear(),o=t.getMonth();return r===u&&n===o}return(a,r)=>e.e({a:p.value.userRights&&3==p.value.userRights.rightsLevel},p.value.userRights&&3==p.value.userRights.rightsLevel?{b:t._imports_0$5,c:t._imports_1$3,d:e.o(h),e:e.o((e=>l.value=!0)),f:e.o((e=>l.value=!1)),g:e.o((e=>g.value=e)),h:e.p({type:"year-month",modelValue:g.value}),i:e.t(i.value.investmentAmount),j:e.t(m.value?"可":"已"),k:e.t(i.value.expectedReturn),l:e.t(i.value.totalExpectedReturn)}:{},{m:p.value.puser},p.value.puser?{n:e.t(p.value.puser?`${p.value.puser.nickname} ${p.value.puser.mobile}`:"无")}:{},{o:e.f(s.value,((t,a,r)=>e.e({a:t.avatar,b:e.t(t.nickname||"微信用户"),c:e.t(t.mobile),d:"e5e17f81-2-"+r+",e5e17f81-0",e:e.p({format:"yyyy-MM-dd hh:mm:ss",date:t.createTime}),f:t.userRights},t.userRights?{g:e.t(t.userRights.rights.rightsName)}:{},{h:a}))),p:e.sr(o,"e5e17f81-0",{k:"paging"}),q:e.o(c),r:e.o((e=>s.value=e)),s:e.p({"refresher-enabled":l.value,modelValue:s.value})})}}),o=e._export_sfc(u,[["__scopeId","data-v-e5e17f81"]]);wx.createPage(o);
|
||||
8
unpackage/dist/build/mp-weixin/pages/team/team.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/pages/team/team.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的团队",
|
||||
"usingComponents": {
|
||||
"wd-datetime-picker": "../../uni_modules/wot-design-uni/components/wd-datetime-picker/wd-datetime-picker",
|
||||
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/team/team.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/team/team.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-e5e17f81"><z-paging wx:if="{{s}}" class="r data-v-e5e17f81" u-s="{{['d']}}" u-r="paging" bindquery="{{q}}" u-i="e5e17f81-0" bind:__l="__l" bindupdateModelValue="{{r}}" u-p="{{s}}"><view class="p30 data-v-e5e17f81"><view wx:if="{{a}}" class="data-v-e5e17f81" style="position:relative;width:690rpx;height:228rpx;padding:30rpx 25rpx;box-shadow:0rpx 2rpx 8rpx 2rpx rgba(0,88,219,0.06);border-radius:16rpx;overflow:hidden"><image class="data-v-e5e17f81" style="width:690rpx;height:228rpx;position:absolute;top:0;left:0;z-index:-1" src="{{b}}"></image><view class="data-v-e5e17f81" style="display:flex;align-items:center;justify-content:space-between;margin-bottom:30rpx"><view class="data-v-e5e17f81" style="font-size:32rpx;font-weight:bold"> 团队业绩奖励 <text class="data-v-e5e17f81" style="font-weight:500;font-size:28rpx;color:#999">(元)</text></view><wd-datetime-picker wx:if="{{h}}" class="data-v-e5e17f81" u-s="{{['d']}}" bindconfirm="{{d}}" bindclose="{{e}}" bindopen="{{f}}" u-i="e5e17f81-1,e5e17f81-0" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view class="data-v-e5e17f81" style="font-size:28rpx;font-weight:bold;color:#5d7a4e;display:flex;align-items:center"> 11月 <image class="data-v-e5e17f81" src="{{c}}" style="width:34rpx;height:34rpx"></image></view></wd-datetime-picker></view><view class="data-v-e5e17f81" style="display:flex;align-items:center;justify-content:space-between;font-size:26rpx;margin-bottom:30rpx"><view class="data-v-e5e17f81">本月团队业绩:{{i}}</view><view class="data-v-e5e17f81">{{j}}获得业绩奖励:{{k}}</view></view><view class="data-v-e5e17f81" style="font-size:26rpx"> 累计获得奖励: <text class="data-v-e5e17f81" style="color:#fe3535">{{l}}</text></view></view><view wx:if="{{m}}" class="data-v-e5e17f81" style="font-size:30rpx;background-color:#fff;border-radius:8rpx;padding:25rpx;margin-bottom:25rpx"> 推荐人:{{n}}</view><view class="data-v-e5e17f81" style="font-weight:bold;font-size:32rpx;margin:30rpx 0">团队成员列表</view><view wx:for="{{o}}" wx:for-item="item" wx:key="h" class="user-card data-v-e5e17f81"><view class="avatar-container data-v-e5e17f81"><image class="avatar data-v-e5e17f81" src="{{item.a}}" mode="aspectFit"></image><view class="avatar-container_name data-v-e5e17f81">{{item.b}}</view></view><view class="data-v-e5e17f81" style="display:flex;align-items:center;justify-content:space-between;margin-top:20rpx"><view class="phone-time-row data-v-e5e17f81"><view class="phone data-v-e5e17f81">{{item.c}}</view><view class="time data-v-e5e17f81"><uni-dateformat wx:if="{{item.e}}" class="data-v-e5e17f81" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"></uni-dateformat></view></view><view class="action-section data-v-e5e17f81"><view wx:if="{{item.f}}" class="action-btn join data-v-e5e17f81">{{item.g}}</view><view wx:else class="action-btn join data-v-e5e17f81">无</view><view class="level-text data-v-e5e17f81">当前等级</view></view></view></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/team/team.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/team/team.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.user-card.data-v-e5e17f81{border-radius:16rpx;width:690rpx;height:244rpx;background:#fff;padding:30rpx;margin-bottom:30rpx;box-shadow:0 2rpx 8rpx 2rpx rgba(0,88,219,.06)}.avatar-container.data-v-e5e17f81{display:flex;align-items:center}.avatar-container_name.data-v-e5e17f81{font-weight:700;font-size:28rpx;color:#232323}.avatar-container .avatar.data-v-e5e17f81{width:72rpx;height:72rpx;border-radius:50%;margin-right:20rpx;background-color:#999}.info-section.data-v-e5e17f81{flex:1}.username.data-v-e5e17f81{font-size:36rpx;color:#333;font-weight:500;margin-bottom:20rpx;display:block}.phone-time-row.data-v-e5e17f81{margin-top:10rpx}.phone.data-v-e5e17f81{font-weight:400;font-size:28rpx;color:#232323}.time.data-v-e5e17f81{margin-top:20rpx;font-weight:400;font-size:24rpx;color:#999}.action-section.data-v-e5e17f81{display:flex;flex-direction:column;align-items:center}.action-btn.data-v-e5e17f81{font-weight:700;font-size:28rpx;color:#5d7a4e;margin-bottom:4rpx}.level-text.data-v-e5e17f81{margin-top:20rpx;font-weight:400;font-size:24rpx;color:#999}
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/list.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/list.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),o=require("../../api/index.js"),n=require("../../store/index.js"),t=require("../../utils/fun.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-picker")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-picker/wd-picker.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const l=e.defineComponent({__name:"list",setup(l){const r=n.Store(),s=e.ref(null),u=e.ref([]),i=e.ref([]),p=e.ref(!0),m=e.ref(""),c=e.ref({bizType:""});e.computed((()=>r.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));const d=(e,a)=>{o.api.moneyRecord({pageNo:e,pageSize:a,...c.value}).then((e=>{i.value=Object.entries(e.bizType).map((([e,a])=>({value:e,label:a}))),i.value.unshift({label:"全部",value:""}),s.value.complete(e.list)})).catch((e=>{s.value.complete(!1)}))},v=e=>{e.value?m.value=e.selectedItems.label:m.value="",s.value.reload()},f=()=>{e.index.navigateBack()};return(o,n)=>({a:e.o(f),b:e.p({title:"我的账单",bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:a._imports_0$8,d:e.t(m.value||"筛选"),e:a._imports_1$6,f:e.o((e=>p.value=!0)),g:e.o((e=>p.value=!1)),h:e.o(v),i:e.o((e=>c.value.bizType=e)),j:e.p({columns:i.value,"use-default-slot":!0,modelValue:c.value.bizType}),k:e.f(u.value,((a,o,n)=>({a:e.t(a.title),b:e.t(e.unref(t.timeFormat)(a.createTime,"yyyy-MM-dd hh:mm:ss")),c:e.t(a.money),d:o}))),l:e.sr(s,"5fb110a8-1",{k:"paging"}),m:e.o(d),n:e.o((e=>u.value=e)),o:e.p({"refresher-enabled":p.value,"use-page-scroll":!0,modelValue:u.value})})}}),r=e._export_sfc(l,[["__scopeId","data-v-5fb110a8"]]);wx.createPage(r);
|
||||
9
unpackage/dist/build/mp-weixin/pages/wallet/list.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/wallet/list.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的账单",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-picker": "../../uni_modules/wot-design-uni/components/wd-picker/wd-picker",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/list.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/list.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-5fb110a8"><wd-navbar wx:if="{{b}}" class="data-v-5fb110a8" bindclickLeft="{{a}}" u-i="5fb110a8-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><z-paging wx:if="{{o}}" class="r data-v-5fb110a8" u-s="{{['d']}}" u-r="paging" bindquery="{{m}}" u-i="5fb110a8-1" bind:__l="__l" bindupdateModelValue="{{n}}" u-p="{{o}}"><view class="p30 data-v-5fb110a8"><view class="data-v-5fb110a8"><view class="data-v-5fb110a8" style="display:flex;align-items:center;justify-content:space-between"><image class="data-v-5fb110a8" style="width:74rpx;height:34rpx" mode="widthFix" src="{{c}}"></image><wd-picker wx:if="{{j}}" class="data-v-5fb110a8" u-s="{{['d']}}" bindclose="{{f}}" bindopen="{{g}}" bindconfirm="{{h}}" u-i="5fb110a8-2,5fb110a8-1" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view class="data-v-5fb110a8" style="display:flex;align-items:center;font-size:28rpx">{{d}} <image class="data-v-5fb110a8" style="margin-left:15rpx;width:35rpx;height:35rpx" src="{{e}}"></image></view></wd-picker></view><view wx:for="{{k}}" wx:for-item="item" wx:key="d" class="wall_list data-v-5fb110a8"><view class="data-v-5fb110a8"><view class="data-v-5fb110a8" style="margin-bottom:25rpx;font-size:28rpx">{{item.a}}</view><view class="data-v-5fb110a8" style="font-size:24rpx;color:#999">{{item.b}}</view></view><view class="data-v-5fb110a8" style="font-size:32rpx;font-weight:bold;color:#799675">¥{{item.c}}</view></view></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/list.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/list.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.block_wall.data-v-5fb110a8{display:flex;align-items:center;justify-content:center;flex-direction:column}.block_wall_tit.data-v-5fb110a8{display:flex;align-items:center}.wall_list.data-v-5fb110a8{width:690rpx;height:118rpx;background:#fff;box-shadow:0 2rpx 8rpx 2rpx rgba(0,88,219,.06);border-radius:8rpx;display:flex;align-items:center;justify-content:space-between;padding:0 30rpx;margin-top:30rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/wallet.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/wallet.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),a=require("../../common/assets.js"),o=require("../../api/index.js"),t=require("../../store/index.js"),n=require("../../utils/fun.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-picker")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-picker/wd-picker.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const r=e.defineComponent({__name:"wallet",setup(r){const l=e.ref({}),u=t.Store(),s=e.ref(null),i=e.ref([]),p=e.ref([]),c=e.ref(!0),m=e.ref(""),v=e.ref(!1),d=e.ref({bizType:""}),f=e.computed((()=>u.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}}));e.onShow((async()=>{f.value.branchCompany&&o.api.rewardReport().then((e=>{l.value=e}))}));const _=(e,a)=>{o.api.moneyRecord({pageNo:e,pageSize:a,...d.value}).then((e=>{p.value=Object.entries(e.bizType).map((([e,a])=>({value:e,label:a}))),p.value.unshift({label:"全部",value:""}),s.value.complete(e.list)})).catch((e=>{s.value.complete(!1)}))},b=e=>{e.value?m.value=e.selectedItems.label:m.value="",s.value.reload()},w=()=>{e.index.navigateBack()},y=()=>{e.index.showModal({title:"提示",content:"每月初结算上月业绩,“团队补货”为团队补货回款,例:本月整个团队总补货回款为20W,则月度团队补货收益为20W×12%=24000元",showCancel:!1})},g=()=>{v.value=!v.value},h=()=>{e.index.navigateTo({url:"/pages/wallet/zhaun"})};return(o,t)=>e.e({a:e.o(w),b:e.p({title:"钱包",bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:a._imports_0$9,d:a._imports_1$7,e:e.o(g),f:`/static/icons/yan${v.value?"s":""}.png`,g:e.t(v.value?"****":f.value.money),h:a._imports_2$3,i:e.o(h),j:e.t(f.value.performanceReward||0),k:e.t(f.value.directReferralReward||0),l:e.t(f.value.indirectReferralReward||0),m:e.t(f.value.specialReward||0),n:f.value.branchCompany},f.value.branchCompany?{o:a._imports_3$2,p:e.o(y),q:e.t(l.value.total_monthly_performance),r:e.f(l.value.money_count,((a,o,t)=>({a:e.t(a.money||0),b:e.t(a.name),c:e.t(a.count||0),d:o}))),s:e.t(l.value.restock_reward||0)}:{},{t:a._imports_0$8,v:e.t(m.value||"筛选"),w:a._imports_1$6,x:e.o((e=>c.value=!0)),y:e.o((e=>c.value=!1)),z:e.o(b),A:e.o((e=>d.value.bizType=e)),B:e.p({columns:p.value,"use-default-slot":!0,modelValue:d.value.bizType}),C:e.f(i.value,((a,o,t)=>({a:e.t(a.title),b:e.t(e.unref(n.timeFormat)(a.createTime,"yyyy-MM-dd hh:mm:ss")),c:e.t(a.money),d:o}))),D:e.sr(s,"52fa05db-0",{k:"paging"}),E:e.o(_),F:e.o((e=>i.value=e)),G:e.p({"refresher-enabled":c.value,modelValue:i.value})})}}),l=e._export_sfc(r,[["__scopeId","data-v-52fa05db"]]);wx.createPage(l);
|
||||
9
unpackage/dist/build/mp-weixin/pages/wallet/wallet.json
vendored
Normal file
9
unpackage/dist/build/mp-weixin/pages/wallet/wallet.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"wd-navbar": "../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar",
|
||||
"wd-picker": "../../uni_modules/wot-design-uni/components/wd-picker/wd-picker",
|
||||
"z-paging": "../../uni_modules/z-paging/components/z-paging/z-paging"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/wallet.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/wallet.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-52fa05db"><z-paging wx:if="{{G}}" class="r data-v-52fa05db" u-s="{{['d']}}" u-r="paging" bindquery="{{E}}" u-i="52fa05db-0" bind:__l="__l" bindupdateModelValue="{{F}}" u-p="{{G}}"><wd-navbar wx:if="{{b}}" class="data-v-52fa05db" bindclickLeft="{{a}}" u-i="52fa05db-1,52fa05db-0" bind:__l="__l" u-p="{{b}}"></wd-navbar><view class="p30 data-v-52fa05db"><image class="data-v-52fa05db" src="{{c}}" mode="widthFix" style="position:absolute;top:0;left:0;width:100%;z-index:-1"></image><view class="data-v-52fa05db" style="position:relative"><image class="data-v-52fa05db" src="{{d}}" style="width:690rpx;height:382rpx;position:absolute;top:0;left:0;z-index:-1"></image><view class="data-v-52fa05db" style="padding:24rpx 30rpx;font-size:36rpx;font-weight:bold;margin-bottom:24rpx">我的钱包</view><view class="data-v-52fa05db" style="display:flex;align-items:center;margin-bottom:14rpx;padding:0 30rpx"><view class="data-v-52fa05db" style="font-size:24rpx;color:#666a6d;margin:0 10rpx">我的余额(元)</view><image class="data-v-52fa05db" bindtap="{{e}}" src="{{f}}" style="width:35rpx;height:35rpx"></image></view><view class="data-v-52fa05db" style="font-size:58rpx;font-weight:bold;color:#69a24a;padding:0 30rpx;margin-bottom:25rpx;display:flex;align-items:center;justify-content:space-between">{{g}} <view class="data-v-52fa05db" bindtap="{{i}}" style="color:#8ec287;padding:8rpx 30rpx;border-radius:30rpx;font-size:28rpx;background-color:rgba(255, 255, 255, 0.8);font-weight:400;display:flex;align-items:center"><image class="data-v-52fa05db" src="{{h}}" style="width:35rpx;height:35rpx"></image><text class="data-v-52fa05db" style="margin-left:10rpx">划转</text></view></view><view class="data-v-52fa05db" style="width:690rpx;height:110rpx;background:#e9f2e7;border-radius:8rpx;display:flex;align-items:center;justify-content:space-between;padding:0 30rpx;margin-bottom:35rpx"><view class="block_wall data-v-52fa05db"><view class="block_wall_tit data-v-52fa05db" style="font-size:24rpx"><view class="data-v-52fa05db">业绩奖励</view></view><view class="data-v-52fa05db" style="font-size:32rpx;font-weight:bold">{{j}}</view></view><view class="block_wall data-v-52fa05db"><view class="block_wall_tit data-v-52fa05db" style="font-size:24rpx"><view class="data-v-52fa05db">直推奖励</view></view><view class="data-v-52fa05db" style="font-size:32rpx;font-weight:bold">{{k}}</view></view><view class="block_wall data-v-52fa05db"><view class="block_wall_tit data-v-52fa05db" style="font-size:24rpx"><view class="data-v-52fa05db">间推奖励</view></view><view class="data-v-52fa05db" style="font-size:32rpx;font-weight:bold">{{l}}</view></view><view class="block_wall data-v-52fa05db"><view class="block_wall_tit data-v-52fa05db" style="font-size:24rpx"><view class="data-v-52fa05db">特殊奖励</view></view><view class="data-v-52fa05db" style="font-size:32rpx;font-weight:bold">{{m}}</view></view></view></view><view wx:if="{{n}}" class="wallet-section data-v-52fa05db"><view class="section-title data-v-52fa05db"><view class="data-v-52fa05db"><text class="data-v-52fa05db">市场报单业绩</text><text class="data-v-52fa05db" style="font-size:24rpx;font-weight:500">(元)</text><image class="data-v-52fa05db" src="{{o}}" bindtap="{{p}}" style="width:28rpx;height:28rpx"></image></view><view class="data-v-52fa05db" style="font-size:26rpx">合计:{{q}}元</view></view><view class="wallet-cards data-v-52fa05db"><view wx:for="{{r}}" wx:for-item="item" wx:key="d" class="wallet-item data-v-52fa05db"><text class="amount red data-v-52fa05db">{{item.a}}</text><text class="label data-v-52fa05db">{{item.b}}</text><text class="desc data-v-52fa05db">已招募{{item.c}}个</text></view><view class="wallet-item data-v-52fa05db"><text class="amount data-v-52fa05db">{{s}}</text><text class="label data-v-52fa05db">团队补货</text></view></view></view><view class="data-v-52fa05db"><view class="data-v-52fa05db" style="display:flex;align-items:center;justify-content:space-between"><image class="data-v-52fa05db" style="width:74rpx;height:34rpx" mode="widthFix" src="{{t}}"></image><wd-picker wx:if="{{B}}" class="data-v-52fa05db" u-s="{{['d']}}" bindclose="{{x}}" bindopen="{{y}}" bindconfirm="{{z}}" u-i="52fa05db-2,52fa05db-0" bind:__l="__l" bindupdateModelValue="{{A}}" u-p="{{B}}"><view class="data-v-52fa05db" style="display:flex;align-items:center;font-size:28rpx">{{v}} <image class="data-v-52fa05db" style="margin-left:15rpx;width:35rpx;height:35rpx" src="{{w}}"></image></view></wd-picker></view><view wx:for="{{C}}" wx:for-item="item" wx:key="d" class="wall_list data-v-52fa05db"><view class="data-v-52fa05db"><view class="data-v-52fa05db" style="margin-bottom:25rpx;font-size:28rpx">{{item.a}}</view><view class="data-v-52fa05db" style="font-size:24rpx;color:#999">{{item.b}}</view></view><view class="data-v-52fa05db" style="font-size:32rpx;font-weight:bold;color:#799675">¥{{item.c}}</view></view></view></view></z-paging></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/wallet.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/wallet.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.block_wall.data-v-52fa05db{display:flex;align-items:center;justify-content:center;flex-direction:column}.block_wall_tit.data-v-52fa05db{display:flex;align-items:center}.wall_list.data-v-52fa05db{width:690rpx;height:118rpx;background:#fff;box-shadow:0 2rpx 8rpx 2rpx rgba(0,88,219,.06);border-radius:8rpx;display:flex;align-items:center;justify-content:space-between;padding:0 30rpx;margin-top:30rpx}.wallet-section.data-v-52fa05db{background-color:#fff;margin:0rpx 0 20rpx;padding:30rpx;border-radius:8rpx}.section-title.data-v-52fa05db{display:flex;align-items:center;justify-content:space-between;padding:10rpx 0 20rpx;font-size:32rpx;font-weight:700;color:#333;border-bottom:1px solid #eee;margin-bottom:20rpx}.wallet-cards.data-v-52fa05db{display:flex;justify-content:space-between}.wallet-item.data-v-52fa05db{display:flex;flex-direction:column;flex:1;text-align:center;color:#333}.label.data-v-52fa05db{font-size:28rpx;color:#666}.amount.data-v-52fa05db{font-size:36rpx;font-weight:700;margin-bottom:10rpx;color:#799675}.desc.data-v-52fa05db{font-size:20rpx;color:#999;margin-top:6rpx}
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),o=require("../../api/index.js"),n=require("../../store/index.js"),s=require("../../utils/fun.js"),t=require("../../uni_modules/wot-design-uni/components/composables/useCountDown.js");require("../../uni_modules/wot-design-uni/locale/index.js"),require("../../uni_modules/wot-design-uni/dayjs/index.js");const a={__name:"zhaun",setup(a){let i=e.ref({toPhone:"",smsCode:"",money:""});const u=e.ref("获取验证码"),{start:l,pause:r,reset:d,current:c}=t.useCountDown({time:6e4,onChange(e){},onFinish(){u.value="重新发送"}}),m=e=>{h.value.mobile?c.value.seconds?s.toast("请等待倒计时结束"):o.api.smsCode({mobile:h.value.mobile,scene:6}).then((e=>{l(),s.toast("验证码发送成功")})).catch((e=>{console.log(e),s.toast("验证码发送失败")})):s.toast("请输入手机号")},v=n.Store(),h=e.computed((()=>v.userInfo||{inviteCode:"",nickname:"",mobile:"",avatar:"",paywallet:{balance:0}})),f=()=>i.value.toPhone?i.value.money?i.value.smsCode?void o.api.transfer2other(i.value).then((o=>{e.index.showModal({title:"提示",content:"划转成功",showCancel:!1,success:()=>{e.index.reLaunch({url:"/pages/mine/mine"})}})})):e.index.showToast({title:"请输入验证码",icon:"none"}):e.index.showToast({title:"请输入划转金额",icon:"none"}):e.index.showToast({title:"请输入划转手机号",icon:"none"});return(o,n)=>({a:e.t(h.value.money),b:e.unref(i).money,c:e.o((o=>e.unref(i).money=o.detail.value)),d:e.unref(i).toPhone,e:e.o((o=>e.unref(i).toPhone=o.detail.value)),f:h.value.mobile,g:e.o((e=>h.value.mobile=e.detail.value)),h:e.unref(i).smsCode,i:e.o((o=>e.unref(i).smsCode=o.detail.value)),j:e.t(e.unref(c).seconds||u.value),k:e.o(m),l:e.o(f)})}},i=e._export_sfc(a,[["__scopeId","data-v-94f7856c"]]);wx.createPage(i);
|
||||
4
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "余额划转",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-94f7856c" style="padding:30rpx"><view class="card_zhaun data-v-94f7856c" style="color:#949494">当前余额:{{a}}</view><view class="card_zhaun data-v-94f7856c"><view class="card_zhaun_flex data-v-94f7856c"><view class="card_zhaun_flex_title data-v-94f7856c">划转金额</view><input class="data-v-94f7856c" type="number" placeholder="请输入金额" value="{{b}}" bindinput="{{c}}"/></view><view class="card_zhaun_flex data-v-94f7856c"><view class="card_zhaun_flex_title data-v-94f7856c">划转给(手机号)</view><input class="data-v-94f7856c" type="number" placeholder="请输入手机号" value="{{d}}" bindinput="{{e}}"/></view><view class="card_zhaun_flex data-v-94f7856c"><view class="card_zhaun_flex_title data-v-94f7856c">当前手机号</view><input class="data-v-94f7856c" type="number" disabled placeholder="请输入手机号" value="{{f}}" bindinput="{{g}}"/></view><view class="card_zhaun_flex data-v-94f7856c"><view class="card_zhaun_flex_title data-v-94f7856c">验证码</view><view class="data-v-94f7856c" style="display:flex;align-items:center;justify-content:space-between;border-bottom:1rpx solid #e8e8e8"><input class="data-v-94f7856c" style="border:0" type="number" placeholder="请输入验证码" value="{{h}}" bindinput="{{i}}"/><view class="code-btn data-v-94f7856c" bindtap="{{k}}">{{j}}</view></view></view></view><view class="card_zhaun data-v-94f7856c"><view class="data-v-94f7856c" style="color:#f29100">温馨提示</view><view class="data-v-94f7856c" style="height:10rpx"></view><view class="data-v-94f7856c" style="font-size:28rpx;color:#909399"><view class="data-v-94f7856c">1.划转金额实时到账,不扣手续费;</view><view class="data-v-94f7856c" style="height:10rpx"></view><view class="data-v-94f7856c">2.划转成功后实时生效,不支持撤回。</view></view></view><view class="bottom-btn data-v-94f7856c"><view class="button-a data-v-94f7856c" bindtap="{{l}}">确认</view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/pages/wallet/zhaun.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.card_zhaun.data-v-94f7856c{padding:30rpx;background-color:#fff;border-radius:16rpx;margin-bottom:25rpx}.card_zhaun_flex.data-v-94f7856c{margin-bottom:20rpx}.card_zhaun_flex_title.data-v-94f7856c{font-size:28rpx;margin-bottom:20rpx}.card_zhaun_flex input.data-v-94f7856c{font-size:28rpx;border-bottom:1rpx solid #e8e8e8;padding:5rpx 0}.bottom-btn.data-v-94f7856c{width:100%;height:150rpx;padding:30rpx;background-color:#fff;position:fixed;bottom:0;left:0;border-radius:20rpx 20rpx 0 0;box-shadow:0 6rpx 16rpx 2rpx rgba(170,170,170,.35);display:flex;align-items:center;justify-content:center}.bottom-btn .button-a.data-v-94f7856c{width:690rpx;height:90rpx;background:#799675;border-radius:15rpx;text-align:center;font-size:30rpx;color:#fff;line-height:90rpx}.code-btn.data-v-94f7856c{width:175rpx;height:60rpx;line-height:60rpx;font-size:28rpx;color:#5d7a4e;border:1rpx solid #5d7a4e;text-align:center;border-radius:14rpx}
|
||||
29
unpackage/dist/build/mp-weixin/project.config.json
vendored
Normal file
29
unpackage/dist/build/mp-weixin/project.config.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"description": "项目配置文件。",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
},
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"es6": true,
|
||||
"postcss": false,
|
||||
"minified": false,
|
||||
"newFeature": true,
|
||||
"bigPackageSizeSupport": true,
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
}
|
||||
},
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.12.1",
|
||||
"appid": "wx80532d1eec915730",
|
||||
"projectname": "dajiankuang",
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 2
|
||||
}
|
||||
}
|
||||
7
unpackage/dist/build/mp-weixin/project.private.config.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/project.private.config.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
"projectname": "dajiankuang",
|
||||
"setting": {
|
||||
"compileHotReLoad": true
|
||||
}
|
||||
}
|
||||
20
unpackage/dist/build/mp-weixin/static/customicons.css
vendored
Normal file
20
unpackage/dist/build/mp-weixin/static/customicons.css
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
@font-face {
|
||||
font-family: "customicons"; /* Project id 2878519 */
|
||||
src:url('/static/customicons.ttf') format('truetype');
|
||||
}
|
||||
|
||||
.customicons {
|
||||
font-family: "customicons" !important;
|
||||
}
|
||||
|
||||
.youxi:before {
|
||||
content: "\e60e";
|
||||
}
|
||||
|
||||
.wenjian:before {
|
||||
content: "\e60f";
|
||||
}
|
||||
|
||||
.zhuanfa:before {
|
||||
content: "\e610";
|
||||
}
|
||||
BIN
unpackage/dist/build/mp-weixin/static/customicons.ttf
vendored
Normal file
BIN
unpackage/dist/build/mp-weixin/static/customicons.ttf
vendored
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user