diff --git a/api/user.js b/api/user.js
index 3082089..4b66f06 100644
--- a/api/user.js
+++ b/api/user.js
@@ -350,3 +350,12 @@ export function billionsWithdrawalRecord(params) {
export function localShopPay(data) {
return request.post('abutment/paytest', data)
}
+
+// 本地生活-支付登录
+export function localShopLogin(data) {
+ return request.post('abutment/code', data)
+}
+
+export function makeMyWxImage() {
+ return request.get('procurement/makeMyWxImage')
+}
diff --git a/bundle/pages/express_details/index.vue b/bundle/pages/express_details/index.vue
deleted file mode 100644
index 06c40a1..0000000
--- a/bundle/pages/express_details/index.vue
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item[0]}}
- {{item[1]}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bundle/pages/goods_logistics/goods_logistics.vue b/bundle/pages/goods_logistics/goods_logistics.vue
index ef8a939..7e2d8da 100644
--- a/bundle/pages/goods_logistics/goods_logistics.vue
+++ b/bundle/pages/goods_logistics/goods_logistics.vue
@@ -1,6 +1,3 @@
-
-
-
diff --git a/bundle/pages/order_details/order_details.vue b/bundle/pages/order_details/order_details.vue
index 290d129..bf8eabf 100644
--- a/bundle/pages/order_details/order_details.vue
+++ b/bundle/pages/order_details/order_details.vue
@@ -33,7 +33,7 @@
-
+
@@ -76,13 +76,11 @@
-
-
-
- {{orderDetail.consignee}}
- {{orderDetail.mobile}}
- {{orderDetail.delivery_address}}
-
+
+
+ {{orderDetail.consignee}}
+ {{orderDetail.mobile}}
+ {{orderDetail.delivery_address}}
@@ -179,7 +177,10 @@
订单编号
- {{orderDetail.order_sn}}
+
+ {{orderDetail.order_sn}}
+ 复制
+
订单类型
@@ -318,7 +319,7 @@
methods: {
async handleExpress() {
- const {code, data, msg} = await getExpress({order_id: this.id})
+ const {code, data, msg} = await getExpress({order_id: 510})
if (code == 1) {
this.expressStateText = data.state_text
if (data.list) {
diff --git a/bundle/pages/user_spread/user_spread.vue b/bundle/pages/user_spread/user_spread.vue
index 4efcbee..1d2fcf7 100644
--- a/bundle/pages/user_spread/user_spread.vue
+++ b/bundle/pages/user_spread/user_spread.vue
@@ -189,6 +189,10 @@
我的邀请码
+
+
+
+ 点击下载
{{userInfo.procurement.distribution_code}}
点击复制
@@ -246,7 +250,8 @@
applyDetail,
getSuperiorInfo,
getDistribution,
- veryfiyDistribute
+ veryfiyDistribute,
+ makeMyWxImage
} from "@/api/user";
import area from '@/utils/area'
import {mapGetters} from 'vuex';
@@ -287,7 +292,8 @@
showRegion: false,
regionLists: area,
distributionInfo: {},
- fileList:[]
+ fileList:[],
+ wxImage: ''
};
},
onLoad(options) {
@@ -295,9 +301,17 @@
this.getSuperiorInfoFun()
// 判断是否是分销会员
this.veryfiyDistributeFun()
+ // 获取二维码
+ this.handleMakeMyWxImage()
},
methods: {
+ async handleMakeMyWxImage() {
+ const {code, msg, data} = await makeMyWxImage()
+ if (code == 1) {
+ this.wxImage = data.wx_image
+ }
+ },
// 上传手持身份证
uploadHandCard() {
uni.chooseImage({
@@ -473,6 +487,49 @@
});
},
+ saveQrcode() {
+ // #ifndef H5
+ uni.showLoading({title: '正在下载……'});
+ uni.downloadFile({
+ url: this.wxImage,
+ success: (res) => {
+ if (res.statusCode === 200) {
+ //隐藏加载框
+ uni.hideLoading();
+ uni.saveImageToPhotosAlbum({
+ filePath: res.tempFilePath,
+ success: function(res) {
+ uni.showToast({
+ icon: 'none',
+ mask: true,
+ title: '文件已保存',
+ duration: 3000
+ });
+
+ },
+ fail: function() {
+ console.log('保存失败');
+ }
+ });
+ }
+ },
+ fail: function() {
+ uni.showToast({
+ icon: 'none',
+ mask: true,
+ title: '失败请重新下载'
+ });
+ }
+ })
+ // #endif
+
+ // #ifdef H5
+ this.$toast({
+ title: '请长按图片保存'
+ })
+ // #endif
+ },
+
// 原版本 填写邀请码
// bindSuperiorFun() {
// bindSuperior({
@@ -807,5 +864,10 @@
border-radius: 10rpx;
margin-top: 60rpx;
}
-
+
+ .wxImage {
+ width: 320rpx;
+ height: 320rpx;
+ margin-top: 40rpx;
+ }
diff --git a/bundle_b/pages/local_shop/local_pay.vue b/bundle_b/pages/local_shop/local_pay.vue
index 3694e49..8534e01 100644
--- a/bundle_b/pages/local_shop/local_pay.vue
+++ b/bundle_b/pages/local_shop/local_pay.vue
@@ -6,7 +6,7 @@
商家名称
¥
-
@@ -59,12 +59,31 @@
+
+
+
+
+
+
@@ -204,4 +251,23 @@
}
}
}
+
+ .pay-popup {
+ .content {
+ padding: 40rpx 0;
+ text-align: center;
+ width: 560rpx;
+ border-radius: 20rpx;
+ }
+
+ .img-icon {
+ width: 112rpx;
+ height: 112rpx;
+ display: inline-block;
+ }
+
+ .btn {
+ margin: 80rpx 60rpx 0;
+ }
+ }
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 2ed257e..a958ec9 100644
--- a/pages.json
+++ b/pages.json
@@ -322,15 +322,6 @@
"navigationBarTitleText": "订单详情"
}
},
- {
- "path": "pages/express_details/index",
- "meta": {
- "auth": true
- },
- "style": {
- "navigationBarTitleText": "物流详情"
- }
- },
{
"path": "pages/user_address/user_address",
"meta": {
diff --git a/pages/goods_cate/goods_cate.vue b/pages/goods_cate/goods_cate.vue
index 56f0b2d..fd68722 100644
--- a/pages/goods_cate/goods_cate.vue
+++ b/pages/goods_cate/goods_cate.vue
@@ -19,6 +19,9 @@
import {
strToParams
} from '@/utils/tools'
+ import {
+ bindSuperior
+ } from '@/api/user'
import {
getLevelOneList,
getGoodsList,
@@ -53,6 +56,16 @@
let data = strToParams(decodeURIComponent(query.scene))
this.p_id = data.id ? parseInt(data.id) : 0;
this.set = data.set ? parseInt(data.set) : 0;
+ if (data.icde) {
+ const [err,res] = await uni.login()
+ if (err) {
+ this.$toast({ title: "登录失败" })
+ return
+ }
+ if (res) {
+ await bindSuperior({code: res.code, invite_code: data.icde})
+ }
+ }
}
}
this.$store.commit("setPid", this.p_id);